@bpmn-io/element-templates-validator 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +545 -503
- package/dist/index.js +545 -503
- package/package.json +13 -13
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { forEach, filter } from 'min-dash';
|
2
2
|
|
3
3
|
var name$1 = "@camunda/element-templates-json-schema";
|
4
|
-
var version$1 = "0.
|
4
|
+
var version$1 = "0.18.1";
|
5
5
|
|
6
6
|
function getDefaultExportFromCjs (x) {
|
7
7
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
@@ -9,530 +9,565 @@ function getDefaultExportFromCjs (x) {
|
|
9
9
|
|
10
10
|
var standaloneValidator = {exports: {}};
|
11
11
|
|
12
|
-
var equal
|
12
|
+
var equal = {};
|
13
13
|
|
14
|
-
|
14
|
+
var fastDeepEqual;
|
15
|
+
var hasRequiredFastDeepEqual;
|
15
16
|
|
17
|
+
function requireFastDeepEqual () {
|
18
|
+
if (hasRequiredFastDeepEqual) return fastDeepEqual;
|
19
|
+
hasRequiredFastDeepEqual = 1;
|
16
20
|
|
21
|
+
// do not edit .js files directly - edit src/index.jst
|
17
22
|
|
18
|
-
var fastDeepEqual = function equal(a, b) {
|
19
|
-
if (a === b) return true;
|
20
23
|
|
21
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
22
|
-
if (a.constructor !== b.constructor) return false;
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
length = a.length;
|
27
|
-
if (length != b.length) return false;
|
28
|
-
for (i = length; i-- !== 0;)
|
29
|
-
if (!equal(a[i], b[i])) return false;
|
30
|
-
return true;
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
36
|
-
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
37
|
-
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
38
|
-
|
39
|
-
keys = Object.keys(a);
|
40
|
-
length = keys.length;
|
41
|
-
if (length !== Object.keys(b).length) return false;
|
42
|
-
|
43
|
-
for (i = length; i-- !== 0;)
|
44
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
45
|
-
|
46
|
-
for (i = length; i-- !== 0;) {
|
47
|
-
var key = keys[i];
|
48
|
-
|
49
|
-
if (!equal(a[key], b[key])) return false;
|
50
|
-
}
|
51
|
-
|
52
|
-
return true;
|
53
|
-
}
|
25
|
+
fastDeepEqual = function equal(a, b) {
|
26
|
+
if (a === b) return true;
|
54
27
|
|
55
|
-
|
56
|
-
|
57
|
-
};
|
28
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
29
|
+
if (a.constructor !== b.constructor) return false;
|
58
30
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
31
|
+
var length, i, keys;
|
32
|
+
if (Array.isArray(a)) {
|
33
|
+
length = a.length;
|
34
|
+
if (length != b.length) return false;
|
35
|
+
for (i = length; i-- !== 0;)
|
36
|
+
if (!equal(a[i], b[i])) return false;
|
37
|
+
return true;
|
38
|
+
}
|
64
39
|
|
65
|
-
standaloneValidator.exports = validate14$1;standaloneValidator.exports.default = validate14$1;const schema17$1 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"scopes":{"$id":"#/scopes","type":"array","description":"Special scoped bindings that allow you to configure nested elements.","allOf":[{"examples":[[{"type":"bpmn:Error","id":"Error_1","properties":[{"value":"error-code","binding":{"type":"property","name":"errorCode"}},{"value":"error-message","binding":{"type":"property","name":"camunda:errorMessage"}},{"value":"error-name","binding":{"type":"property","name":"name"}}]}]]}],"items":{"$id":"#/scopes/item","type":"object","default":{},"properties":{"type":{"$id":"#scopes/item/type","type":"string","description":"The type of a scope.","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","description":"List of properties of a scope.","default":[],"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema29 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0$1 = new RegExp("^(https|http)://.*", "u");const pattern1$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18$1 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema19$1 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20$1 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0$1 = equal$1.default;function validate17$1(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0$1[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0$1[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17$1.errors = vErrors;return errors === 0;}function validate16$1(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0$1(data2.property, schema19$1.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0$1[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0$1[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18$1.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data22 = data0.value;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err57 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18$1.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err58 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err59 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err60 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err61 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data0.choices !== undefined){let data27 = data0.choices;if(Array.isArray(data27)){const len4 = data27.length;for(let i4=0; i4<len4; i4++){let data28 = data27[i4];if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.value === undefined){const err62 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data28.name === undefined){const err63 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data28.name !== undefined){if(typeof data28.name !== "string"){const err64 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data28.value !== undefined){if(typeof data28.value !== "string"){const err65 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data28.condition !== undefined){if(!(validate17$1(data28.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data28,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err66 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err67 of vErrors){if((((((err67.keyword !== "errorMessage") && (!err67.emUsed)) && (err67.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err67.keyword in emErrors2)) && (err67.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err67.schemaPath.slice(40)))){emErrors2[err67.keyword].push(err67);err67.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err68 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18$1.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}const emErrs6 = [];for(const err69 of vErrors){if(!err69.emUsed){emErrs6.push(err69);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err70 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.constraints !== undefined){let data32 = data0.constraints;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.notEmpty !== undefined){if(typeof data32.notEmpty !== "boolean"){const err71 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data32.minLength !== undefined){if(!(typeof data32.minLength == "number")){const err72 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data32.maxLength !== undefined){if(!(typeof data32.maxLength == "number")){const err73 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data32.pattern !== undefined){let data36 = data32.pattern;const _errs102 = errors;let valid45 = false;let passing3 = null;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.value !== undefined){if(typeof data36.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data36.message !== undefined){if(typeof data36.message !== "string"){const err75 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var _valid6 = _errs103 === errors;if(_valid6){valid45 = true;passing3 = 0;}const _errs109 = errors;if(typeof data36 !== "string"){const err77 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid6 = _errs109 === errors;if(_valid6 && valid45){valid45 = false;passing3 = [passing3, 1];}else {if(_valid6){valid45 = true;passing3 = 1;}}if(!valid45){const err78 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err80 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data40 = data[i5];const _errs118 = errors;let valid50 = true;const _errs119 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.binding === undefined) && ("binding")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data40.binding !== undefined){let data41 = data40.binding;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {if(data41.type !== undefined){if("property" !== data41.type){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}}}var _valid7 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid7){const _errs122 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){let data43 = data40.type;if(!(((((data43 === "String") || (data43 === "Text")) || (data43 === "Hidden")) || (data43 === "Dropdown")) || (data43 === "Boolean"))){const err86 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(errors > 0){const emErrs7 = [];for(const err87 of vErrors){if(((((err87.keyword !== "errorMessage") && (!err87.emUsed)) && ((err87.instancePath === instancePath+"/" + i5+"/type") || ((err87.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err87.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err87.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err87.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err87);err87.emUsed = true;}}if(emErrs7.length){const err88 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data43) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const emErrs8 = [];for(const err89 of vErrors){if(!err89.emUsed){emErrs8.push(err89);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid7 = _errs122 === errors;valid50 = _valid7;}if(!valid50){const err90 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const _errs125 = errors;let valid54 = true;const _errs126 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.binding === undefined) && ("binding")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data40.binding !== undefined){let data44 = data40.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data44.type !== undefined){if("camunda:executionListener" !== data44.type){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}}}}}var _valid8 = _errs126 === errors;errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}if(_valid8){const _errs129 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){if(!(data40.type === "Hidden")){const err94 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(errors > 0){const emErrs9 = [];for(const err95 of vErrors){if(((((err95.keyword !== "errorMessage") && (!err95.emUsed)) && ((err95.instancePath === instancePath+"/" + i5+"/type") || ((err95.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err95.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err95.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err95.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err95);err95.emUsed = true;}}if(emErrs9.length){const err96 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data40 && data40.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const emErrs10 = [];for(const err97 of vErrors){if(!err97.emUsed){emErrs10.push(err97);}}vErrors = emErrs10;errors = emErrs10.length;}}if(data40.binding !== undefined){let data47 = data40.binding;const _errs132 = errors;let valid58 = false;let passing4 = null;const _errs133 = errors;const _errs134 = errors;const _errs135 = errors;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.implementationType !== undefined){if("script" !== data47.implementationType){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}var valid59 = _errs135 === errors;if(valid59){const err99 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}var _valid9 = _errs133 === errors;if(_valid9){valid58 = true;passing4 = 0;}const _errs137 = errors;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.scriptFormat === undefined){const err100 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}var _valid9 = _errs137 === errors;if(_valid9 && valid58){valid58 = false;passing4 = [passing4, 1];}else {if(_valid9){valid58 = true;passing4 = 1;}const _errs138 = errors;const _errs140 = errors;const _errs141 = errors;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if((data47.implementationType === undefined) && ("implementationType")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}var valid62 = _errs141 === errors;if(valid62){const err102 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}const _errs143 = errors;const _errs144 = errors;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if((data47.scriptFormat === undefined) && ("scriptFormat")){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var valid63 = _errs144 === errors;if(valid63){const err104 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var _valid9 = _errs138 === errors;if(_valid9 && valid58){valid58 = false;passing4 = [passing4, 2];}else {if(_valid9){valid58 = true;passing4 = 2;}}}if(!valid58){const err105 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.implementationType !== undefined){let data49 = data47.implementationType;if(!((((data49 === "class") || (data49 === "delegateExpression")) || (data49 === "expression")) || (data49 === "script"))){const err106 = {instancePath:instancePath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}}var _valid8 = _errs129 === errors;valid54 = _valid8;}if(!valid54){const err107 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const _errs147 = errors;let valid65 = true;const _errs148 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.binding === undefined) && ("binding")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data40.binding !== undefined){let data50 = data40.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data50.type !== undefined){let data51 = data50.type;if(!((((((data51 === "camunda:property") || (data51 === "camunda:outputParameter")) || (data51 === "camunda:in")) || (data51 === "camunda:in:businessKey")) || (data51 === "camunda:out")) || (data51 === "camunda:errorEventDefinition"))){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}}}}}var _valid10 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid10){const _errs151 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){let data52 = data40.type;if(!(((data52 === "String") || (data52 === "Hidden")) || (data52 === "Dropdown"))){const err111 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs11 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.instancePath === instancePath+"/" + i5+"/type") || ((err112.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err112.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err112.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err112.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs11.push(err112);err112.emUsed = true;}}if(emErrs11.length){const err113 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data52) + " for binding type " + JSON.stringify(data40 && data40.binding && data40.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs12 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs12.push(err114);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid10 = _errs151 === errors;valid65 = _valid10;}if(!valid65){const err115 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs154 = errors;let valid69 = true;const _errs155 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.binding === undefined) && ("binding")){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {if(data40.binding !== undefined){let data53 = data40.binding;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if((data53.type === undefined) && ("type")){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data53.type !== undefined){let data54 = data53.type;if(!((data54 === "camunda:inputParameter") || (data54 === "camunda:field"))){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}}}}}}var _valid11 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid11){const _errs158 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){let data55 = data40.type;if(!((((data55 === "String") || (data55 === "Text")) || (data55 === "Hidden")) || (data55 === "Dropdown"))){const err119 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs13 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/type") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err120.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs13.push(err120);err120.emUsed = true;}}if(emErrs13.length){const err121 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data55) + " for binding type " + JSON.stringify(data40 && data40.binding && data40.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs14 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs14.push(err122);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid11 = _errs158 === errors;valid69 = _valid11;}if(!valid69){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.binding === undefined){const err124 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data40.binding !== undefined){let data56 = data40.binding;const _errs163 = errors;let valid75 = true;const _errs164 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.type === undefined) && ("type")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {if(data56.type !== undefined){let data57 = data56.type;if(!((((data57 === "property") || (data57 === "camunda:property")) || (data57 === "camunda:inputParameter")) || (data57 === "camunda:field"))){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}}var _valid12 = _errs164 === errors;errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}if(_valid12){const _errs166 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.name === undefined){const err127 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err128 of vErrors){if(((((err128.keyword !== "errorMessage") && (!err128.emUsed)) && ((err128.instancePath === instancePath+"/" + i5+"/binding") || ((err128.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err128.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err128.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err128.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err128);err128.emUsed = true;}}if(emErrs15.length){const err129 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data56 && data56.type) + " requires name"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const emErrs16 = [];for(const err130 of vErrors){if(!err130.emUsed){emErrs16.push(err130);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid12 = _errs166 === errors;valid75 = _valid12;}if(!valid75){const err131 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const _errs168 = errors;let valid77 = true;const _errs169 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.type === undefined) && ("type")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {if(data56.type !== undefined){if("camunda:outputParameter" !== data56.type){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}}var _valid13 = _errs169 === errors;errors = _errs168;if(vErrors !== null){if(_errs168){vErrors.length = _errs168;}else {vErrors = null;}}if(_valid13){const _errs171 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.source === undefined){const err134 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err135 of vErrors){if(((((err135.keyword !== "errorMessage") && (!err135.emUsed)) && ((err135.instancePath === instancePath+"/" + i5+"/binding") || ((err135.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err135.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err135.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err135.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err135);err135.emUsed = true;}}if(emErrs17.length){const err136 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data56 && data56.type) + " requires source"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}const emErrs18 = [];for(const err137 of vErrors){if(!err137.emUsed){emErrs18.push(err137);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid13 = _errs171 === errors;valid77 = _valid13;}if(!valid77){const err138 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const _errs173 = errors;let valid79 = true;const _errs174 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.type === undefined) && ("type")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {if(data56.type !== undefined){if("camunda:in" !== data56.type){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}}var _valid14 = _errs174 === errors;errors = _errs173;if(vErrors !== null){if(_errs173){vErrors.length = _errs173;}else {vErrors = null;}}if(_valid14){const _errs176 = errors;const _errs177 = errors;let valid81 = false;const _errs178 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.variables === undefined){const err141 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs178 === errors;valid81 = valid81 || _valid15;if(!valid81){const _errs179 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.target === undefined){const err142 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid15 = _errs179 === errors;valid81 = valid81 || _valid15;}if(!valid81){const err143 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err144 of vErrors){if(((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && ((err144.instancePath === instancePath+"/" + i5+"/binding") || ((err144.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err144.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err144.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err144.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err144);err144.emUsed = true;}}if(emErrs19.length){const err145 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data56 && data56.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const emErrs20 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs20.push(err146);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs176 === errors;valid79 = _valid14;}if(!valid79){const err147 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const _errs181 = errors;let valid82 = true;const _errs182 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.type === undefined) && ("type")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {if(data56.type !== undefined){if("camunda:out" !== data56.type){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}}var _valid16 = _errs182 === errors;errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}if(_valid16){const _errs184 = errors;const _errs185 = errors;let valid84 = false;let passing5 = null;const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;const _errs189 = errors;let valid86 = false;const _errs190 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.source === undefined) && ("source")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid18 = _errs190 === errors;valid86 = valid86 || _valid18;if(!valid86){const _errs191 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.sourceExpression === undefined) && ("sourceExpression")){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid18 = _errs191 === errors;valid86 = valid86 || _valid18;}if(!valid86){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}}var valid85 = _errs188 === errors;if(valid85){const err153 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.variables === undefined){const err154 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid17 = _errs186 === errors;if(_valid17){valid84 = true;passing5 = 0;}const _errs192 = errors;const _errs193 = errors;const _errs194 = errors;const _errs195 = errors;let valid88 = false;const _errs196 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.variables === undefined) && ("variables")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}var _valid19 = _errs196 === errors;valid88 = valid88 || _valid19;if(!valid88){const _errs197 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.sourceExpression === undefined) && ("sourceExpression")){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}var _valid19 = _errs197 === errors;valid88 = valid88 || _valid19;}if(!valid88){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}}var valid87 = _errs194 === errors;if(valid87){const err158 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs193;if(vErrors !== null){if(_errs193){vErrors.length = _errs193;}else {vErrors = null;}}}if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.source === undefined){const err159 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid17 = _errs192 === errors;if(_valid17 && valid84){valid84 = false;passing5 = [passing5, 1];}else {if(_valid17){valid84 = true;passing5 = 1;}const _errs198 = errors;const _errs199 = errors;const _errs200 = errors;const _errs201 = errors;let valid90 = false;const _errs202 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.variables === undefined) && ("variables")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var _valid20 = _errs202 === errors;valid90 = valid90 || _valid20;if(!valid90){const _errs203 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.source === undefined) && ("source")){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}var _valid20 = _errs203 === errors;valid90 = valid90 || _valid20;}if(!valid90){const err162 = {};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs201;if(vErrors !== null){if(_errs201){vErrors.length = _errs201;}else {vErrors = null;}}}var valid89 = _errs200 === errors;if(valid89){const err163 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs199;if(vErrors !== null){if(_errs199){vErrors.length = _errs199;}else {vErrors = null;}}}if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.sourceExpression === undefined){const err164 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}var _valid17 = _errs198 === errors;if(_valid17 && valid84){valid84 = false;passing5 = [passing5, 2];}else {if(_valid17){valid84 = true;passing5 = 2;}const _errs204 = errors;const _errs205 = errors;const _errs206 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.source === undefined) && ("source")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}var valid91 = _errs206 === errors;if(valid91){const err166 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs205;if(vErrors !== null){if(_errs205){vErrors.length = _errs205;}else {vErrors = null;}}}if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.variables === undefined){const err167 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data56.sourceExpression === undefined){const err168 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}var _valid17 = _errs204 === errors;if(_valid17 && valid84){valid84 = false;passing5 = [passing5, 3];}else {if(_valid17){valid84 = true;passing5 = 3;}const _errs207 = errors;const _errs208 = errors;const _errs209 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.sourceExpression === undefined) && ("sourceExpression")){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}var valid92 = _errs209 === errors;if(valid92){const err170 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}}if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.variables === undefined){const err171 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data56.source === undefined){const err172 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}var _valid17 = _errs207 === errors;if(_valid17 && valid84){valid84 = false;passing5 = [passing5, 4];}else {if(_valid17){valid84 = true;passing5 = 4;}}}}}if(!valid84){const err173 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}else {errors = _errs185;if(vErrors !== null){if(_errs185){vErrors.length = _errs185;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err174 of vErrors){if(((((err174.keyword !== "errorMessage") && (!err174.emUsed)) && ((err174.instancePath === instancePath+"/" + i5+"/binding") || ((err174.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err174.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err174.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err174.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs21.push(err174);err174.emUsed = true;}}if(emErrs21.length){const err175 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data56 && data56.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}const emErrs22 = [];for(const err176 of vErrors){if(!err176.emUsed){emErrs22.push(err176);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid16 = _errs184 === errors;valid82 = _valid16;}if(!valid82){const err177 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}const _errs211 = errors;let valid93 = true;const _errs212 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.type === undefined) && ("type")){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}else {if(data56.type !== undefined){if("camunda:errorEventDefinition" !== data56.type){const err179 = {};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}}var _valid21 = _errs212 === errors;errors = _errs211;if(vErrors !== null){if(_errs211){vErrors.length = _errs211;}else {vErrors = null;}}if(_valid21){const _errs214 = errors;const _errs215 = errors;let valid95 = false;let passing6 = null;const _errs216 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.errorRef === undefined){const err180 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}var _valid22 = _errs216 === errors;if(_valid22){valid95 = true;passing6 = 0;}if(!valid95){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}else {errors = _errs215;if(vErrors !== null){if(_errs215){vErrors.length = _errs215;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err182 of vErrors){if(((((err182.keyword !== "errorMessage") && (!err182.emUsed)) && ((err182.instancePath === instancePath+"/" + i5+"/binding") || ((err182.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err182.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err182.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err182.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs23.push(err182);err182.emUsed = true;}}if(emErrs23.length){const err183 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data56 && data56.type) + " requires errorRef"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}const emErrs24 = [];for(const err184 of vErrors){if(!err184.emUsed){emErrs24.push(err184);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid21 = _errs214 === errors;valid93 = _valid21;}if(!valid93){const err185 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.type === undefined){const err186 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data56.type !== undefined){let data62 = data56.type;if(typeof data62 !== "string"){const err187 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(!((((((((((data62 === "property") || (data62 === "camunda:property")) || (data62 === "camunda:inputParameter")) || (data62 === "camunda:outputParameter")) || (data62 === "camunda:in")) || (data62 === "camunda:out")) || (data62 === "camunda:in:businessKey")) || (data62 === "camunda:executionListener")) || (data62 === "camunda:field")) || (data62 === "camunda:errorEventDefinition"))){const err188 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(errors > 0){const emErrs25 = [];for(const err189 of vErrors){if(((((err189.keyword !== "errorMessage") && (!err189.emUsed)) && ((err189.instancePath === instancePath+"/" + i5+"/binding/type") || ((err189.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err189.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err189.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err189.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err189);err189.emUsed = true;}}if(emErrs25.length){const err190 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data62) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}const emErrs26 = [];for(const err191 of vErrors){if(!err191.emUsed){emErrs26.push(err191);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data56.name !== undefined){if(typeof data56.name !== "string"){const err192 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data56.event !== undefined){if(typeof data56.event !== "string"){const err193 = {instancePath:instancePath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data56.scriptFormat !== undefined){if(typeof data56.scriptFormat !== "string"){const err194 = {instancePath:instancePath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data56.source !== undefined){if(typeof data56.source !== "string"){const err195 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data56.target !== undefined){if(typeof data56.target !== "string"){const err196 = {instancePath:instancePath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data56.expression !== undefined){if(typeof data56.expression !== "boolean"){const err197 = {instancePath:instancePath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data56.variables !== undefined){let data69 = data56.variables;if(typeof data69 !== "string"){const err198 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(!((data69 === "all") || (data69 === "local"))){const err199 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data56.sourceExpression !== undefined){if(typeof data56.sourceExpression !== "string"){const err200 = {instancePath:instancePath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}else {const err201 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}else {const err202 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err203 of vErrors){if((((((err203.keyword !== "errorMessage") && (!err203.emUsed)) && (err203.instancePath === instancePath+"/" + i5)) && (err203.keyword in emErrors3)) && (err203.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err203.schemaPath.slice(15)))){emErrors3[err203.keyword].push(err203);err203.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err204 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18$1.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}const emErrs27 = [];for(const err205 of vErrors){if(!err205.emUsed){emErrs27.push(err205);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err206 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}validate16$1.errors = vErrors;return errors === 0;}const schema25 = {"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs11 = errors;let valid7 = true;const _errs12 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0$1(data2.property, schema19$1.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs12 === errors;errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}if(_valid1){const _errs16 = errors;const _errs17 = errors;const _errs18 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid11 = _errs18 === errors;if(valid11){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs16 === errors;valid7 = _valid1;}if(!valid7){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs24 = errors;let valid13 = false;let passing0 = null;const _errs25 = errors;const _errs28 = errors;let valid15 = false;let passing1 = null;const _errs29 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs29 === errors;if(_valid3){valid15 = true;passing1 = 0;}const _errs32 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs32 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid3){valid15 = true;passing1 = 1;}const _errs37 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs37 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 2];}else {if(_valid3){valid15 = true;passing1 = 2;}}}if(!valid15){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0$1[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs25 === errors;if(_valid2){valid13 = true;passing0 = 0;}const _errs43 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs49 = errors;let valid26 = false;let passing2 = null;const _errs50 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs50 === errors;if(_valid4){valid26 = true;passing2 = 0;}const _errs53 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs53 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 1];}else {if(_valid4){valid26 = true;passing2 = 1;}const _errs58 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs58 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 2];}else {if(_valid4){valid26 = true;passing2 = 2;}}}if(!valid26){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0$1[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs43 === errors;if(_valid2 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid2){valid13 = true;passing0 = 1;}}if(!valid13){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}}}const _errs65 = errors;let valid34 = true;const _errs66 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs68 = errors;const _errs69 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid36 = _errs69 === errors;if(valid36){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}}}}var _valid5 = _errs66 === errors;errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}if(_valid5){const _errs70 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema25.items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs70 === errors;valid34 = _valid5;}if(!valid34){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data22 = data0.value;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err57 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",keyword:"type",params:{type: schema25.items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err58 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err59 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err60 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err61 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data0.choices !== undefined){let data27 = data0.choices;if(Array.isArray(data27)){const len4 = data27.length;for(let i4=0; i4<len4; i4++){let data28 = data27[i4];if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.value === undefined){const err62 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data28.name === undefined){const err63 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data28.name !== undefined){if(typeof data28.name !== "string"){const err64 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data28.value !== undefined){if(typeof data28.value !== "string"){const err65 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data28.condition !== undefined){if(!(validate17$1(data28.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data28,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err66 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err67 of vErrors){if((((((err67.keyword !== "errorMessage") && (!err67.emUsed)) && (err67.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err67.keyword in emErrors2)) && (err67.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err67.schemaPath.slice(32)))){emErrors2[err67.keyword].push(err67);err67.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err68 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema25.items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}const emErrs6 = [];for(const err69 of vErrors){if(!err69.emUsed){emErrs6.push(err69);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err70 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.constraints !== undefined){let data32 = data0.constraints;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.notEmpty !== undefined){if(typeof data32.notEmpty !== "boolean"){const err71 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data32.minLength !== undefined){if(!(typeof data32.minLength == "number")){const err72 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data32.maxLength !== undefined){if(!(typeof data32.maxLength == "number")){const err73 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data32.pattern !== undefined){let data36 = data32.pattern;const _errs101 = errors;let valid44 = false;let passing3 = null;const _errs102 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.value !== undefined){if(typeof data36.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data36.message !== undefined){if(typeof data36.message !== "string"){const err75 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var _valid6 = _errs102 === errors;if(_valid6){valid44 = true;passing3 = 0;}const _errs108 = errors;if(typeof data36 !== "string"){const err77 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid6 = _errs108 === errors;if(_valid6 && valid44){valid44 = false;passing3 = [passing3, 1];}else {if(_valid6){valid44 = true;passing3 = 1;}}if(!valid44){const err78 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err80 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15$1(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17$1.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0$1.test(data7)){const err11 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1$1.test(data9)){const err13 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17$1.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1$1.test(data11)){const err20 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.instancePath === instancePath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17$1.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.instancePath === instancePath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0$1[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {instancePath:instancePath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {instancePath:instancePath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.instancePath === instancePath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0$1[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0$1.test(data18)){const err40 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.instancePath === instancePath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17$1.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.instancePath === instancePath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0$1[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17$1.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16$1(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16$1.errors : vErrors.concat(validate16$1.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data20 = data.scopes;if(Array.isArray(data20)){const len2 = data20.length;for(let i2=0; i2<len2; i2++){let data21 = data20[i2];const _errs46 = errors;let valid17 = true;const _errs47 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data21.type !== undefined){if(!(data21.type === "bpmn:Error")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.id === undefined){const err50 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.instancePath === instancePath+"/scopes/" + i2) || ((err51.instancePath.indexOf(instancePath+"/scopes/" + i2) === 0) && (err51.instancePath[instancePath+"/scopes/" + i2.length] === "/")))) && (err51.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err51.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err51);err51.emUsed = true;}}if(emErrs6.length){const err52 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data21 && data21.type) + ", missing id"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs7 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs7.push(err53);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs49 === errors;valid17 = _valid0;}if(!valid17){const err54 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type === undefined){const err55 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data21.properties === undefined){const err56 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data21.type !== undefined){let data23 = data21.type;if(typeof data23 !== "string"){const err57 = {instancePath:instancePath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(!((data23 === "camunda:Connector") || (data23 === "bpmn:Error"))){const err58 = {instancePath:instancePath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema17$1.properties.scopes.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(errors > 0){const emErrs8 = [];for(const err59 of vErrors){if(((((err59.keyword !== "errorMessage") && (!err59.emUsed)) && ((err59.instancePath === instancePath+"/scopes/" + i2+"/type") || ((err59.instancePath.indexOf(instancePath+"/scopes/" + i2+"/type") === 0) && (err59.instancePath[instancePath+"/scopes/" + i2+"/type".length] === "/")))) && (err59.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err59.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err59);err59.emUsed = true;}}if(emErrs8.length){const err60 = {instancePath:instancePath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data23) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const emErrs9 = [];for(const err61 of vErrors){if(!err61.emUsed){emErrs9.push(err61);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data21.properties !== undefined){let data24 = data21.properties;if(!(validate20(data24, {instancePath:instancePath+"/scopes/" + i2+"/properties",parentData:data21,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];const _errs60 = errors;let valid25 = true;const _errs61 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data25.binding !== undefined){let data26 = data25.binding;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data26.type !== undefined){if("property" !== data26.type){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid1 = _errs61 === errors;errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}if(_valid1){const _errs64 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data28 = data25.type;if(!(((((data28 === "String") || (data28 === "Text")) || (data28 === "Hidden")) || (data28 === "Dropdown")) || (data28 === "Boolean"))){const err65 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs10 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err66.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err66.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err66.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err66.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err66);err66.emUsed = true;}}if(emErrs10.length){const err67 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data28) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs11 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs11.push(err68);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs64 === errors;valid25 = _valid1;}if(!valid25){const err69 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs67 = errors;let valid29 = true;const _errs68 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data25.binding !== undefined){let data29 = data25.binding;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data29.type !== undefined){if("camunda:executionListener" !== data29.type){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid2 = _errs68 === errors;errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}if(_valid2){const _errs71 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){if(!(data25.type === "Hidden")){const err73 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs12 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err74.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err74.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err74.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err74.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err74);err74.emUsed = true;}}if(emErrs12.length){const err75 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data25 && data25.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs13 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs13.push(err76);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data25.binding !== undefined){let data32 = data25.binding;const _errs74 = errors;let valid33 = false;let passing0 = null;const _errs75 = errors;const _errs76 = errors;const _errs77 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){if("script" !== data32.implementationType){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var valid34 = _errs77 === errors;if(valid34){const err78 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid3 = _errs75 === errors;if(_valid3){valid33 = true;passing0 = 0;}const _errs79 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.scriptFormat === undefined){const err79 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid3 = _errs79 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 1];}else {if(_valid3){valid33 = true;passing0 = 1;}const _errs80 = errors;const _errs82 = errors;const _errs83 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.implementationType === undefined) && ("implementationType")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var valid37 = _errs83 === errors;if(valid37){const err81 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}const _errs85 = errors;const _errs86 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.scriptFormat === undefined) && ("scriptFormat")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid38 = _errs86 === errors;if(valid38){const err83 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs85;if(vErrors !== null){if(_errs85){vErrors.length = _errs85;}else {vErrors = null;}}}var _valid3 = _errs80 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 2];}else {if(_valid3){valid33 = true;passing0 = 2;}}}if(!valid33){const err84 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){let data34 = data32.implementationType;if(!((((data34 === "class") || (data34 === "delegateExpression")) || (data34 === "expression")) || (data34 === "script"))){const err85 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}var _valid2 = _errs71 === errors;valid29 = _valid2;}if(!valid29){const err86 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const _errs89 = errors;let valid40 = true;const _errs90 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data25.binding !== undefined){let data35 = data25.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data35.type !== undefined){let data36 = data35.type;if(!((((((data36 === "camunda:property") || (data36 === "camunda:outputParameter")) || (data36 === "camunda:in")) || (data36 === "camunda:in:businessKey")) || (data36 === "camunda:out")) || (data36 === "camunda:errorEventDefinition"))){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var _valid4 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid4){const _errs93 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data37 = data25.type;if(!(((data37 === "String") || (data37 === "Hidden")) || (data37 === "Dropdown"))){const err90 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrs14 = [];for(const err91 of vErrors){if(((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && ((err91.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err91.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err91.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err91.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err91.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err91);err91.emUsed = true;}}if(emErrs14.length){const err92 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data37) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const emErrs15 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs15.push(err93);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs93 === errors;valid40 = _valid4;}if(!valid40){const err94 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs96 = errors;let valid44 = true;const _errs97 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data25.binding !== undefined){let data38 = data25.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((data39 === "camunda:inputParameter") || (data39 === "camunda:field"))){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}}}}var _valid5 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid5){const _errs100 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data40 = data25.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err98 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(errors > 0){const emErrs16 = [];for(const err99 of vErrors){if(((((err99.keyword !== "errorMessage") && (!err99.emUsed)) && ((err99.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err99.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err99.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err99.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err99.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err99);err99.emUsed = true;}}if(emErrs16.length){const err100 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const emErrs17 = [];for(const err101 of vErrors){if(!err101.emUsed){emErrs17.push(err101);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs100 === errors;valid44 = _valid5;}if(!valid44){const err102 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.binding === undefined){const err103 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data25.binding !== undefined){let data41 = data25.binding;const _errs105 = errors;let valid50 = true;const _errs106 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {if(data41.type !== undefined){let data42 = data41.type;if(!((((data42 === "property") || (data42 === "camunda:property")) || (data42 === "camunda:inputParameter")) || (data42 === "camunda:field"))){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}}var _valid6 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.name === undefined){const err106 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err107 of vErrors){if(((((err107.keyword !== "errorMessage") && (!err107.emUsed)) && ((err107.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err107.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err107.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err107.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err107.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err107);err107.emUsed = true;}}if(emErrs18.length){const err108 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires name"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const emErrs19 = [];for(const err109 of vErrors){if(!err109.emUsed){emErrs19.push(err109);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs108 === errors;valid50 = _valid6;}if(!valid50){const err110 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs110 = errors;let valid52 = true;const _errs111 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data41.type !== undefined){if("camunda:outputParameter" !== data41.type){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs113 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err113 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err114.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err114.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err114);err114.emUsed = true;}}if(emErrs20.length){const err115 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires source"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs21 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs21.push(err116);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs113 === errors;valid52 = _valid7;}if(!valid52){const err117 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs115 = errors;let valid54 = true;const _errs116 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data41.type !== undefined){if("camunda:in" !== data41.type){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid8 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid8){const _errs118 = errors;const _errs119 = errors;let valid56 = false;const _errs120 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err120 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid9 = _errs120 === errors;valid56 = valid56 || _valid9;if(!valid56){const _errs121 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.target === undefined){const err121 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid9 = _errs121 === errors;valid56 = valid56 || _valid9;}if(!valid56){const err122 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err123.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err123.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err123.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err123.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err123);err123.emUsed = true;}}if(emErrs22.length){const err124 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs23 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs23.push(err125);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs118 === errors;valid54 = _valid8;}if(!valid54){const err126 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const _errs123 = errors;let valid57 = true;const _errs124 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data41.type !== undefined){if("camunda:out" !== data41.type){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}var _valid10 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid10){const _errs126 = errors;const _errs127 = errors;let valid59 = false;let passing1 = null;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;const _errs131 = errors;let valid61 = false;const _errs132 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid12 = _errs132 === errors;valid61 = valid61 || _valid12;if(!valid61){const _errs133 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid12 = _errs133 === errors;valid61 = valid61 || _valid12;}if(!valid61){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}}var valid60 = _errs130 === errors;if(valid60){const err132 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err133 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid11 = _errs128 === errors;if(_valid11){valid59 = true;passing1 = 0;}const _errs134 = errors;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;let valid63 = false;const _errs138 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var _valid13 = _errs138 === errors;valid63 = valid63 || _valid13;if(!valid63){const _errs139 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid13 = _errs139 === errors;valid63 = valid63 || _valid13;}if(!valid63){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}var valid62 = _errs136 === errors;if(valid62){const err137 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err138 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs134 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 1];}else {if(_valid11){valid59 = true;passing1 = 1;}const _errs140 = errors;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;let valid65 = false;const _errs144 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var _valid14 = _errs144 === errors;valid65 = valid65 || _valid14;if(!valid65){const _errs145 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid14 = _errs145 === errors;valid65 = valid65 || _valid14;}if(!valid65){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var valid64 = _errs142 === errors;if(valid64){const err142 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.sourceExpression === undefined){const err143 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid11 = _errs140 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 2];}else {if(_valid11){valid59 = true;passing1 = 2;}const _errs146 = errors;const _errs147 = errors;const _errs148 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid66 = _errs148 === errors;if(valid66){const err145 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err146 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data41.sourceExpression === undefined){const err147 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid11 = _errs146 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 3];}else {if(_valid11){valid59 = true;passing1 = 3;}const _errs149 = errors;const _errs150 = errors;const _errs151 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}var valid67 = _errs151 === errors;if(valid67){const err149 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err150 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data41.source === undefined){const err151 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid11 = _errs149 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 4];}else {if(_valid11){valid59 = true;passing1 = 4;}}}}}if(!valid59){const err152 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err153.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err153.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err153.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err153);err153.emUsed = true;}}if(emErrs24.length){const err154 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs25 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs25.push(err155);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs126 === errors;valid57 = _valid10;}if(!valid57){const err156 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs153 = errors;let valid68 = true;const _errs154 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data41.type !== undefined){if("camunda:errorEventDefinition" !== data41.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid15 = _errs154 === errors;errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}if(_valid15){const _errs156 = errors;const _errs157 = errors;let valid70 = false;let passing2 = null;const _errs158 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.errorRef === undefined){const err159 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid16 = _errs158 === errors;if(_valid16){valid70 = true;passing2 = 0;}if(!valid70){const err160 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err161 of vErrors){if(((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && ((err161.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err161.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err161.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err161.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err161.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err161);err161.emUsed = true;}}if(emErrs26.length){const err162 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires errorRef"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const emErrs27 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs27.push(err163);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs156 === errors;valid68 = _valid15;}if(!valid68){const err164 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.type === undefined){const err165 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data41.type !== undefined){let data47 = data41.type;if(typeof data47 !== "string"){const err166 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!((((((((((data47 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:outputParameter")) || (data47 === "camunda:in")) || (data47 === "camunda:out")) || (data47 === "camunda:in:businessKey")) || (data47 === "camunda:executionListener")) || (data47 === "camunda:field")) || (data47 === "camunda:errorEventDefinition"))){const err167 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(errors > 0){const emErrs28 = [];for(const err168 of vErrors){if(((((err168.keyword !== "errorMessage") && (!err168.emUsed)) && ((err168.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") || ((err168.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") === 0) && (err168.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type".length] === "/")))) && (err168.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err168.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err168);err168.emUsed = true;}}if(emErrs28.length){const err169 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data47) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const emErrs29 = [];for(const err170 of vErrors){if(!err170.emUsed){emErrs29.push(err170);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data41.name !== undefined){if(typeof data41.name !== "string"){const err171 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data41.event !== undefined){if(typeof data41.event !== "string"){const err172 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data41.scriptFormat !== undefined){if(typeof data41.scriptFormat !== "string"){const err173 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data41.source !== undefined){if(typeof data41.source !== "string"){const err174 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data41.target !== undefined){if(typeof data41.target !== "string"){const err175 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data41.expression !== undefined){if(typeof data41.expression !== "boolean"){const err176 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data41.variables !== undefined){let data54 = data41.variables;if(typeof data54 !== "string"){const err177 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(!((data54 === "all") || (data54 === "local"))){const err178 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data41.sourceExpression !== undefined){if(typeof data41.sourceExpression !== "string"){const err179 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i3) + "\""}};for(const err182 of vErrors){if((((((err182.keyword !== "errorMessage") && (!err182.emUsed)) && (err182.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3)) && (err182.keyword in emErrors6)) && (err182.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err182.schemaPath.slice(38)))){emErrors6[err182.keyword].push(err182);err182.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err183 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema29.items.errorMessage[key6]};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}const emErrs30 = [];for(const err184 of vErrors){if(!err184.emUsed){emErrs30.push(err184);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err185 = {instancePath:instancePath+"/scopes/" + i2+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data21 && data21.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err187 of vErrors){if((((((err187.keyword !== "errorMessage") && (!err187.emUsed)) && (err187.instancePath === instancePath+"/scopes/" + i2)) && (err187.keyword in emErrors7)) && (err187.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err187.schemaPath.slice(25)))){emPropParams3 = obj0$1[err187.keyword];emParamsErrors3 = emErrors7[err187.keyword][err187.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err187);err187.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err188 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17$1.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}const emErrs31 = [];for(const err189 of vErrors){if(!err189.emUsed){emErrs31.push(err189);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err190 = {instancePath:instancePath+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}validate15$1.errors = vErrors;return errors === 0;}function validate14$1(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15$1(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15$1(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14$1.errors = vErrors;return errors === 0;}
|
66
40
|
|
67
|
-
var standaloneValidatorExports = standaloneValidator.exports;
|
68
|
-
var validateTemplate$1 = /*@__PURE__*/getDefaultExportFromCjs(standaloneValidatorExports);
|
69
41
|
|
70
|
-
|
42
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
43
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
44
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
71
45
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
'n': '\n',
|
76
|
-
'r': '\r',
|
77
|
-
't': '\t',
|
78
|
-
'"': '"',
|
79
|
-
'/': '/',
|
80
|
-
'\\': '\\'
|
81
|
-
};
|
82
|
-
|
83
|
-
var A_CODE = 'a'.charCodeAt();
|
84
|
-
|
85
|
-
|
86
|
-
jsonSourceMap.parse = function (source, _, options) {
|
87
|
-
var pointers = {};
|
88
|
-
var line = 0;
|
89
|
-
var column = 0;
|
90
|
-
var pos = 0;
|
91
|
-
var bigint = options && options.bigint && typeof BigInt != 'undefined';
|
92
|
-
return {
|
93
|
-
data: _parse('', true),
|
94
|
-
pointers: pointers
|
95
|
-
};
|
46
|
+
keys = Object.keys(a);
|
47
|
+
length = keys.length;
|
48
|
+
if (length !== Object.keys(b).length) return false;
|
96
49
|
|
97
|
-
|
98
|
-
|
99
|
-
var data;
|
100
|
-
map(ptr, 'value');
|
101
|
-
var char = getChar();
|
102
|
-
switch (char) {
|
103
|
-
case 't': read('rue'); data = true; break;
|
104
|
-
case 'f': read('alse'); data = false; break;
|
105
|
-
case 'n': read('ull'); data = null; break;
|
106
|
-
case '"': data = parseString(); break;
|
107
|
-
case '[': data = parseArray(ptr); break;
|
108
|
-
case '{': data = parseObject(ptr); break;
|
109
|
-
default:
|
110
|
-
backChar();
|
111
|
-
if ('-0123456789'.indexOf(char) >= 0)
|
112
|
-
data = parseNumber();
|
113
|
-
else
|
114
|
-
unexpectedToken();
|
115
|
-
}
|
116
|
-
map(ptr, 'valueEnd');
|
117
|
-
whitespace();
|
118
|
-
if (topLevel && pos < source.length) unexpectedToken();
|
119
|
-
return data;
|
120
|
-
}
|
121
|
-
|
122
|
-
function whitespace() {
|
123
|
-
loop:
|
124
|
-
while (pos < source.length) {
|
125
|
-
switch (source[pos]) {
|
126
|
-
case ' ': column++; break;
|
127
|
-
case '\t': column += 4; break;
|
128
|
-
case '\r': column = 0; break;
|
129
|
-
case '\n': column = 0; line++; break;
|
130
|
-
default: break loop;
|
131
|
-
}
|
132
|
-
pos++;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
function parseString() {
|
137
|
-
var str = '';
|
138
|
-
var char;
|
139
|
-
while (true) {
|
140
|
-
char = getChar();
|
141
|
-
if (char == '"') {
|
142
|
-
break;
|
143
|
-
} else if (char == '\\') {
|
144
|
-
char = getChar();
|
145
|
-
if (char in escapedChars)
|
146
|
-
str += escapedChars[char];
|
147
|
-
else if (char == 'u')
|
148
|
-
str += getCharCode();
|
149
|
-
else
|
150
|
-
wasUnexpectedToken();
|
151
|
-
} else {
|
152
|
-
str += char;
|
153
|
-
}
|
154
|
-
}
|
155
|
-
return str;
|
156
|
-
}
|
50
|
+
for (i = length; i-- !== 0;)
|
51
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
157
52
|
|
158
|
-
|
159
|
-
|
160
|
-
var integer = true;
|
161
|
-
if (source[pos] == '-') numStr += getChar();
|
53
|
+
for (i = length; i-- !== 0;) {
|
54
|
+
var key = keys[i];
|
162
55
|
|
163
|
-
|
164
|
-
|
165
|
-
: getDigits();
|
166
|
-
|
167
|
-
if (source[pos] == '.') {
|
168
|
-
numStr += getChar() + getDigits();
|
169
|
-
integer = false;
|
170
|
-
}
|
171
|
-
|
172
|
-
if (source[pos] == 'e' || source[pos] == 'E') {
|
173
|
-
numStr += getChar();
|
174
|
-
if (source[pos] == '+' || source[pos] == '-') numStr += getChar();
|
175
|
-
numStr += getDigits();
|
176
|
-
integer = false;
|
177
|
-
}
|
178
|
-
|
179
|
-
var result = +numStr;
|
180
|
-
return bigint && integer && (result > Number.MAX_SAFE_INTEGER || result < Number.MIN_SAFE_INTEGER)
|
181
|
-
? BigInt(numStr)
|
182
|
-
: result;
|
183
|
-
}
|
184
|
-
|
185
|
-
function parseArray(ptr) {
|
186
|
-
whitespace();
|
187
|
-
var arr = [];
|
188
|
-
var i = 0;
|
189
|
-
if (getChar() == ']') return arr;
|
190
|
-
backChar();
|
191
|
-
|
192
|
-
while (true) {
|
193
|
-
var itemPtr = ptr + '/' + i;
|
194
|
-
arr.push(_parse(itemPtr));
|
195
|
-
whitespace();
|
196
|
-
var char = getChar();
|
197
|
-
if (char == ']') break;
|
198
|
-
if (char != ',') wasUnexpectedToken();
|
199
|
-
whitespace();
|
200
|
-
i++;
|
201
|
-
}
|
202
|
-
return arr;
|
203
|
-
}
|
204
|
-
|
205
|
-
function parseObject(ptr) {
|
206
|
-
whitespace();
|
207
|
-
var obj = {};
|
208
|
-
if (getChar() == '}') return obj;
|
209
|
-
backChar();
|
210
|
-
|
211
|
-
while (true) {
|
212
|
-
var loc = getLoc();
|
213
|
-
if (getChar() != '"') wasUnexpectedToken();
|
214
|
-
var key = parseString();
|
215
|
-
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
216
|
-
mapLoc(propPtr, 'key', loc);
|
217
|
-
map(propPtr, 'keyEnd');
|
218
|
-
whitespace();
|
219
|
-
if (getChar() != ':') wasUnexpectedToken();
|
220
|
-
whitespace();
|
221
|
-
obj[key] = _parse(propPtr);
|
222
|
-
whitespace();
|
223
|
-
var char = getChar();
|
224
|
-
if (char == '}') break;
|
225
|
-
if (char != ',') wasUnexpectedToken();
|
226
|
-
whitespace();
|
227
|
-
}
|
228
|
-
return obj;
|
229
|
-
}
|
230
|
-
|
231
|
-
function read(str) {
|
232
|
-
for (var i=0; i<str.length; i++)
|
233
|
-
if (getChar() !== str[i]) wasUnexpectedToken();
|
234
|
-
}
|
235
|
-
|
236
|
-
function getChar() {
|
237
|
-
checkUnexpectedEnd();
|
238
|
-
var char = source[pos];
|
239
|
-
pos++;
|
240
|
-
column++; // new line?
|
241
|
-
return char;
|
242
|
-
}
|
243
|
-
|
244
|
-
function backChar() {
|
245
|
-
pos--;
|
246
|
-
column--;
|
247
|
-
}
|
248
|
-
|
249
|
-
function getCharCode() {
|
250
|
-
var count = 4;
|
251
|
-
var code = 0;
|
252
|
-
while (count--) {
|
253
|
-
code <<= 4;
|
254
|
-
var char = getChar().toLowerCase();
|
255
|
-
if (char >= 'a' && char <= 'f')
|
256
|
-
code += char.charCodeAt() - A_CODE + 10;
|
257
|
-
else if (char >= '0' && char <= '9')
|
258
|
-
code += +char;
|
259
|
-
else
|
260
|
-
wasUnexpectedToken();
|
261
|
-
}
|
262
|
-
return String.fromCharCode(code);
|
263
|
-
}
|
56
|
+
if (!equal(a[key], b[key])) return false;
|
57
|
+
}
|
264
58
|
|
265
|
-
|
266
|
-
|
267
|
-
while (source[pos] >= '0' && source[pos] <= '9')
|
268
|
-
digits += getChar();
|
269
|
-
|
270
|
-
if (digits.length) return digits;
|
271
|
-
checkUnexpectedEnd();
|
272
|
-
unexpectedToken();
|
273
|
-
}
|
274
|
-
|
275
|
-
function map(ptr, prop) {
|
276
|
-
mapLoc(ptr, prop, getLoc());
|
277
|
-
}
|
278
|
-
|
279
|
-
function mapLoc(ptr, prop, loc) {
|
280
|
-
pointers[ptr] = pointers[ptr] || {};
|
281
|
-
pointers[ptr][prop] = loc;
|
282
|
-
}
|
283
|
-
|
284
|
-
function getLoc() {
|
285
|
-
return {
|
286
|
-
line: line,
|
287
|
-
column: column,
|
288
|
-
pos: pos
|
289
|
-
};
|
290
|
-
}
|
291
|
-
|
292
|
-
function unexpectedToken() {
|
293
|
-
throw new SyntaxError('Unexpected token ' + source[pos] + ' in JSON at position ' + pos);
|
294
|
-
}
|
295
|
-
|
296
|
-
function wasUnexpectedToken() {
|
297
|
-
backChar();
|
298
|
-
unexpectedToken();
|
299
|
-
}
|
300
|
-
|
301
|
-
function checkUnexpectedEnd() {
|
302
|
-
if (pos >= source.length)
|
303
|
-
throw new SyntaxError('Unexpected end of JSON input');
|
304
|
-
}
|
305
|
-
};
|
306
|
-
|
307
|
-
|
308
|
-
jsonSourceMap.stringify = function (data, _, options) {
|
309
|
-
if (!validType(data)) return;
|
310
|
-
var wsLine = 0;
|
311
|
-
var wsPos, wsColumn;
|
312
|
-
var whitespace = typeof options == 'object'
|
313
|
-
? options.space
|
314
|
-
: options;
|
315
|
-
switch (typeof whitespace) {
|
316
|
-
case 'number':
|
317
|
-
var len = whitespace > 10
|
318
|
-
? 10
|
319
|
-
: whitespace < 0
|
320
|
-
? 0
|
321
|
-
: Math.floor(whitespace);
|
322
|
-
whitespace = len && repeat(len, ' ');
|
323
|
-
wsPos = len;
|
324
|
-
wsColumn = len;
|
325
|
-
break;
|
326
|
-
case 'string':
|
327
|
-
whitespace = whitespace.slice(0, 10);
|
328
|
-
wsPos = 0;
|
329
|
-
wsColumn = 0;
|
330
|
-
for (var j=0; j<whitespace.length; j++) {
|
331
|
-
var char = whitespace[j];
|
332
|
-
switch (char) {
|
333
|
-
case ' ': wsColumn++; break;
|
334
|
-
case '\t': wsColumn += 4; break;
|
335
|
-
case '\r': wsColumn = 0; break;
|
336
|
-
case '\n': wsColumn = 0; wsLine++; break;
|
337
|
-
default: throw new Error('whitespace characters not allowed in JSON');
|
338
|
-
}
|
339
|
-
wsPos++;
|
340
|
-
}
|
341
|
-
break;
|
342
|
-
default:
|
343
|
-
whitespace = undefined;
|
344
|
-
}
|
345
|
-
|
346
|
-
var json = '';
|
347
|
-
var pointers = {};
|
348
|
-
var line = 0;
|
349
|
-
var column = 0;
|
350
|
-
var pos = 0;
|
351
|
-
var es6 = options && options.es6 && typeof Map == 'function';
|
352
|
-
_stringify(data, 0, '');
|
353
|
-
return {
|
354
|
-
json: json,
|
355
|
-
pointers: pointers
|
356
|
-
};
|
357
|
-
|
358
|
-
function _stringify(_data, lvl, ptr) {
|
359
|
-
map(ptr, 'value');
|
360
|
-
switch (typeof _data) {
|
361
|
-
case 'number':
|
362
|
-
case 'bigint':
|
363
|
-
case 'boolean':
|
364
|
-
out('' + _data); break;
|
365
|
-
case 'string':
|
366
|
-
out(quoted(_data)); break;
|
367
|
-
case 'object':
|
368
|
-
if (_data === null) {
|
369
|
-
out('null');
|
370
|
-
} else if (typeof _data.toJSON == 'function') {
|
371
|
-
out(quoted(_data.toJSON()));
|
372
|
-
} else if (Array.isArray(_data)) {
|
373
|
-
stringifyArray();
|
374
|
-
} else if (es6) {
|
375
|
-
if (_data.constructor.BYTES_PER_ELEMENT)
|
376
|
-
stringifyArray();
|
377
|
-
else if (_data instanceof Map)
|
378
|
-
stringifyMapSet();
|
379
|
-
else if (_data instanceof Set)
|
380
|
-
stringifyMapSet(true);
|
381
|
-
else
|
382
|
-
stringifyObject();
|
383
|
-
} else {
|
384
|
-
stringifyObject();
|
385
|
-
}
|
386
|
-
}
|
387
|
-
map(ptr, 'valueEnd');
|
388
|
-
|
389
|
-
function stringifyArray() {
|
390
|
-
if (_data.length) {
|
391
|
-
out('[');
|
392
|
-
var itemLvl = lvl + 1;
|
393
|
-
for (var i=0; i<_data.length; i++) {
|
394
|
-
if (i) out(',');
|
395
|
-
indent(itemLvl);
|
396
|
-
var item = validType(_data[i]) ? _data[i] : null;
|
397
|
-
var itemPtr = ptr + '/' + i;
|
398
|
-
_stringify(item, itemLvl, itemPtr);
|
399
|
-
}
|
400
|
-
indent(lvl);
|
401
|
-
out(']');
|
402
|
-
} else {
|
403
|
-
out('[]');
|
404
|
-
}
|
405
|
-
}
|
406
|
-
|
407
|
-
function stringifyObject() {
|
408
|
-
var keys = Object.keys(_data);
|
409
|
-
if (keys.length) {
|
410
|
-
out('{');
|
411
|
-
var propLvl = lvl + 1;
|
412
|
-
for (var i=0; i<keys.length; i++) {
|
413
|
-
var key = keys[i];
|
414
|
-
var value = _data[key];
|
415
|
-
if (validType(value)) {
|
416
|
-
if (i) out(',');
|
417
|
-
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
418
|
-
indent(propLvl);
|
419
|
-
map(propPtr, 'key');
|
420
|
-
out(quoted(key));
|
421
|
-
map(propPtr, 'keyEnd');
|
422
|
-
out(':');
|
423
|
-
if (whitespace) out(' ');
|
424
|
-
_stringify(value, propLvl, propPtr);
|
425
|
-
}
|
426
|
-
}
|
427
|
-
indent(lvl);
|
428
|
-
out('}');
|
429
|
-
} else {
|
430
|
-
out('{}');
|
431
|
-
}
|
432
|
-
}
|
433
|
-
|
434
|
-
function stringifyMapSet(isSet) {
|
435
|
-
if (_data.size) {
|
436
|
-
out('{');
|
437
|
-
var propLvl = lvl + 1;
|
438
|
-
var first = true;
|
439
|
-
var entries = _data.entries();
|
440
|
-
var entry = entries.next();
|
441
|
-
while (!entry.done) {
|
442
|
-
var item = entry.value;
|
443
|
-
var key = item[0];
|
444
|
-
var value = isSet ? true : item[1];
|
445
|
-
if (validType(value)) {
|
446
|
-
if (!first) out(',');
|
447
|
-
first = false;
|
448
|
-
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
449
|
-
indent(propLvl);
|
450
|
-
map(propPtr, 'key');
|
451
|
-
out(quoted(key));
|
452
|
-
map(propPtr, 'keyEnd');
|
453
|
-
out(':');
|
454
|
-
if (whitespace) out(' ');
|
455
|
-
_stringify(value, propLvl, propPtr);
|
456
|
-
}
|
457
|
-
entry = entries.next();
|
458
|
-
}
|
459
|
-
indent(lvl);
|
460
|
-
out('}');
|
461
|
-
} else {
|
462
|
-
out('{}');
|
463
|
-
}
|
464
|
-
}
|
465
|
-
}
|
466
|
-
|
467
|
-
function out(str) {
|
468
|
-
column += str.length;
|
469
|
-
pos += str.length;
|
470
|
-
json += str;
|
471
|
-
}
|
472
|
-
|
473
|
-
function indent(lvl) {
|
474
|
-
if (whitespace) {
|
475
|
-
json += '\n' + repeat(lvl, whitespace);
|
476
|
-
line++;
|
477
|
-
column = 0;
|
478
|
-
while (lvl--) {
|
479
|
-
if (wsLine) {
|
480
|
-
line += wsLine;
|
481
|
-
column = wsColumn;
|
482
|
-
} else {
|
483
|
-
column += wsColumn;
|
484
|
-
}
|
485
|
-
pos += wsPos;
|
486
|
-
}
|
487
|
-
pos += 1; // \n character
|
488
|
-
}
|
489
|
-
}
|
490
|
-
|
491
|
-
function map(ptr, prop) {
|
492
|
-
pointers[ptr] = pointers[ptr] || {};
|
493
|
-
pointers[ptr][prop] = {
|
494
|
-
line: line,
|
495
|
-
column: column,
|
496
|
-
pos: pos
|
497
|
-
};
|
498
|
-
}
|
499
|
-
|
500
|
-
function repeat(n, str) {
|
501
|
-
return Array(n + 1).join(str);
|
502
|
-
}
|
503
|
-
};
|
59
|
+
return true;
|
60
|
+
}
|
504
61
|
|
62
|
+
// true if both NaN, false otherwise
|
63
|
+
return a!==a && b!==b;
|
64
|
+
};
|
65
|
+
return fastDeepEqual;
|
66
|
+
}
|
505
67
|
|
506
|
-
var
|
507
|
-
|
508
|
-
|
68
|
+
var hasRequiredEqual;
|
69
|
+
|
70
|
+
function requireEqual () {
|
71
|
+
if (hasRequiredEqual) return equal;
|
72
|
+
hasRequiredEqual = 1;
|
73
|
+
Object.defineProperty(equal, "__esModule", { value: true });
|
74
|
+
// https://github.com/ajv-validator/ajv/issues/889
|
75
|
+
const equal$1 = requireFastDeepEqual();
|
76
|
+
equal$1.code = 'require("ajv/dist/runtime/equal").default';
|
77
|
+
equal.default = equal$1;
|
78
|
+
|
79
|
+
return equal;
|
509
80
|
}
|
510
81
|
|
82
|
+
var hasRequiredStandaloneValidator;
|
511
83
|
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
var ESC_N = /\n/g;
|
516
|
-
|
517
|
-
var ESC_T = /\t/g;
|
518
|
-
function quoted(str) {
|
519
|
-
str = str.replace(ESC_QUOTE, '\\$&')
|
520
|
-
.replace(ESC_F, '\\f')
|
521
|
-
.replace(ESC_B, '\\b')
|
522
|
-
.replace(ESC_N, '\\n')
|
523
|
-
.replace(ESC_R, '\\r')
|
524
|
-
.replace(ESC_T, '\\t');
|
525
|
-
return '"' + str + '"';
|
84
|
+
function requireStandaloneValidator () {
|
85
|
+
if (hasRequiredStandaloneValidator) return standaloneValidator.exports;
|
86
|
+
hasRequiredStandaloneValidator = 1;
|
87
|
+
standaloneValidator.exports = validate14;standaloneValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"scopes":{"$id":"#/scopes","type":"array","description":"Special scoped bindings that allow you to configure nested elements.","allOf":[{"examples":[[{"type":"bpmn:Error","id":"Error_1","properties":[{"value":"error-code","binding":{"type":"property","name":"errorCode"}},{"value":"error-message","binding":{"type":"property","name":"camunda:errorMessage"}},{"value":"error-name","binding":{"type":"property","name":"name"}}]}]]}],"items":{"$id":"#/scopes/item","type":"object","default":{},"properties":{"type":{"$id":"#scopes/item/type","type":"string","description":"The type of a scope.","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","description":"List of properties of a scope.","default":[],"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema29 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0 = requireEqual().default;function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!(((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){if("camunda:executionListener" !== data46.type){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data42 && data42.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}if(data42.binding !== undefined){let data49 = data42.binding;const _errs147 = errors;let valid64 = false;let passing5 = null;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.implementationType !== undefined){if("script" !== data49.implementationType){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}var valid65 = _errs150 === errors;if(valid65){const err108 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}var _valid11 = _errs148 === errors;if(_valid11){valid64 = true;passing5 = 0;}const _errs152 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.scriptFormat === undefined){const err109 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid11 = _errs152 === errors;if(_valid11 && valid64){valid64 = false;passing5 = [passing5, 1];}else {if(_valid11){valid64 = true;passing5 = 1;}const _errs153 = errors;const _errs155 = errors;const _errs156 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.implementationType === undefined) && ("implementationType")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var valid68 = _errs156 === errors;if(valid68){const err111 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}}const _errs158 = errors;const _errs159 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.scriptFormat === undefined) && ("scriptFormat")){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var valid69 = _errs159 === errors;if(valid69){const err113 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs158;if(vErrors !== null){if(_errs158){vErrors.length = _errs158;}else {vErrors = null;}}}var _valid11 = _errs153 === errors;if(_valid11 && valid64){valid64 = false;passing5 = [passing5, 2];}else {if(_valid11){valid64 = true;passing5 = 2;}}}if(!valid64){const err114 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.implementationType !== undefined){let data51 = data49.implementationType;if(!((((data51 === "class") || (data51 === "delegateExpression")) || (data51 === "expression")) || (data51 === "script"))){const err115 = {instancePath:instancePath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err116 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const _errs162 = errors;let valid71 = true;const _errs163 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data42.binding !== undefined){let data52 = data42.binding;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data52.type !== undefined){let data53 = data52.type;if(!((((((data53 === "camunda:property") || (data53 === "camunda:outputParameter")) || (data53 === "camunda:in")) || (data53 === "camunda:in:businessKey")) || (data53 === "camunda:out")) || (data53 === "camunda:errorEventDefinition"))){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}}}}var _valid12 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid12){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data54 = data42.type;if(!(((data54 === "String") || (data54 === "Hidden")) || (data54 === "Dropdown"))){const err120 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(errors > 0){const emErrs11 = [];for(const err121 of vErrors){if(((((err121.keyword !== "errorMessage") && (!err121.emUsed)) && ((err121.instancePath === instancePath+"/" + i5+"/type") || ((err121.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err121.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err121.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err121.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs11.push(err121);err121.emUsed = true;}}if(emErrs11.length){const err122 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data54) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const emErrs12 = [];for(const err123 of vErrors){if(!err123.emUsed){emErrs12.push(err123);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid12 = _errs166 === errors;valid71 = _valid12;}if(!valid71){const err124 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const _errs169 = errors;let valid75 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {if(data42.binding !== undefined){let data55 = data42.binding;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.type === undefined) && ("type")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {if(data55.type !== undefined){let data56 = data55.type;if(!((data56 === "camunda:inputParameter") || (data56 === "camunda:field"))){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}}}}}var _valid13 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid13){const _errs173 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data57 = data42.type;if(!((((data57 === "String") || (data57 === "Text")) || (data57 === "Hidden")) || (data57 === "Dropdown"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs13 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs13.push(err129);err129.emUsed = true;}}if(emErrs13.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data57) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs14 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs14.push(err131);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid13 = _errs173 === errors;valid75 = _valid13;}if(!valid75){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err133 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(data42.binding !== undefined){let data58 = data42.binding;const _errs178 = errors;let valid81 = true;const _errs179 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data58.type !== undefined){let data59 = data58.type;if(!((((data59 === "property") || (data59 === "camunda:property")) || (data59 === "camunda:inputParameter")) || (data59 === "camunda:field"))){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}}var _valid14 = _errs179 === errors;errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}if(_valid14){const _errs181 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.name === undefined){const err136 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/binding") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err137.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err137.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err137);err137.emUsed = true;}}if(emErrs15.length){const err138 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires name"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs16 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs16.push(err139);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid14 = _errs181 === errors;valid81 = _valid14;}if(!valid81){const err140 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs183 = errors;let valid83 = true;const _errs184 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {if(data58.type !== undefined){if("camunda:outputParameter" !== data58.type){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}}var _valid15 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid15){const _errs186 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.source === undefined){const err143 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err144 of vErrors){if(((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && ((err144.instancePath === instancePath+"/" + i5+"/binding") || ((err144.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err144.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err144.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err144.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err144);err144.emUsed = true;}}if(emErrs17.length){const err145 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires source"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const emErrs18 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs18.push(err146);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid15 = _errs186 === errors;valid83 = _valid15;}if(!valid83){const err147 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const _errs188 = errors;let valid85 = true;const _errs189 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {if(data58.type !== undefined){if("camunda:in" !== data58.type){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}}var _valid16 = _errs189 === errors;errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}if(_valid16){const _errs191 = errors;const _errs192 = errors;let valid87 = false;const _errs193 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err150 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid17 = _errs193 === errors;valid87 = valid87 || _valid17;if(!valid87){const _errs194 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.target === undefined){const err151 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid17 = _errs194 === errors;valid87 = valid87 || _valid17;}if(!valid87){const err152 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs192;if(vErrors !== null){if(_errs192){vErrors.length = _errs192;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.instancePath === instancePath+"/" + i5+"/binding") || ((err153.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err153.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err153.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err153);err153.emUsed = true;}}if(emErrs19.length){const err154 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs20 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs20.push(err155);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid16 = _errs191 === errors;valid85 = _valid16;}if(!valid85){const err156 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data58.type !== undefined){if("camunda:out" !== data58.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;const _errs200 = errors;let valid90 = false;let passing6 = null;const _errs201 = errors;const _errs202 = errors;const _errs203 = errors;const _errs204 = errors;let valid92 = false;const _errs205 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid20 = _errs205 === errors;valid92 = valid92 || _valid20;if(!valid92){const _errs206 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var _valid20 = _errs206 === errors;valid92 = valid92 || _valid20;}if(!valid92){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}else {errors = _errs204;if(vErrors !== null){if(_errs204){vErrors.length = _errs204;}else {vErrors = null;}}}var valid91 = _errs203 === errors;if(valid91){const err162 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs202;if(vErrors !== null){if(_errs202){vErrors.length = _errs202;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err163 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}var _valid19 = _errs201 === errors;if(_valid19){valid90 = true;passing6 = 0;}const _errs207 = errors;const _errs208 = errors;const _errs209 = errors;const _errs210 = errors;let valid94 = false;const _errs211 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.variables === undefined) && ("variables")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}var _valid21 = _errs211 === errors;valid94 = valid94 || _valid21;if(!valid94){const _errs212 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}var _valid21 = _errs212 === errors;valid94 = valid94 || _valid21;}if(!valid94){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}}var valid93 = _errs209 === errors;if(valid93){const err167 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.source === undefined){const err168 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}var _valid19 = _errs207 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 1];}else {if(_valid19){valid90 = true;passing6 = 1;}const _errs213 = errors;const _errs214 = errors;const _errs215 = errors;const _errs216 = errors;let valid96 = false;const _errs217 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.variables === undefined) && ("variables")){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}var _valid22 = _errs217 === errors;valid96 = valid96 || _valid22;if(!valid96){const _errs218 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}var _valid22 = _errs218 === errors;valid96 = valid96 || _valid22;}if(!valid96){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var valid95 = _errs215 === errors;if(valid95){const err172 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.sourceExpression === undefined){const err173 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var _valid19 = _errs213 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 2];}else {if(_valid19){valid90 = true;passing6 = 2;}const _errs219 = errors;const _errs220 = errors;const _errs221 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}var valid97 = _errs221 === errors;if(valid97){const err175 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {errors = _errs220;if(vErrors !== null){if(_errs220){vErrors.length = _errs220;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err176 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data58.sourceExpression === undefined){const err177 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid19 = _errs219 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 3];}else {if(_valid19){valid90 = true;passing6 = 3;}const _errs222 = errors;const _errs223 = errors;const _errs224 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}var valid98 = _errs224 === errors;if(valid98){const err179 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err180 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data58.source === undefined){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}var _valid19 = _errs222 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 4];}else {if(_valid19){valid90 = true;passing6 = 4;}}}}}if(!valid90){const err182 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err183 of vErrors){if(((((err183.keyword !== "errorMessage") && (!err183.emUsed)) && ((err183.instancePath === instancePath+"/" + i5+"/binding") || ((err183.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err183.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err183.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err183.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs21.push(err183);err183.emUsed = true;}}if(emErrs21.length){const err184 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const emErrs22 = [];for(const err185 of vErrors){if(!err185.emUsed){emErrs22.push(err185);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err186 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const _errs226 = errors;let valid99 = true;const _errs227 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}else {if(data58.type !== undefined){if("camunda:errorEventDefinition" !== data58.type){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}}var _valid23 = _errs227 === errors;errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}if(_valid23){const _errs229 = errors;const _errs230 = errors;let valid101 = false;let passing7 = null;const _errs231 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.errorRef === undefined){const err189 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var _valid24 = _errs231 === errors;if(_valid24){valid101 = true;passing7 = 0;}if(!valid101){const err190 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs230;if(vErrors !== null){if(_errs230){vErrors.length = _errs230;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err191 of vErrors){if(((((err191.keyword !== "errorMessage") && (!err191.emUsed)) && ((err191.instancePath === instancePath+"/" + i5+"/binding") || ((err191.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err191.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err191.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err191.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs23.push(err191);err191.emUsed = true;}}if(emErrs23.length){const err192 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires errorRef"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}const emErrs24 = [];for(const err193 of vErrors){if(!err193.emUsed){emErrs24.push(err193);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid23 = _errs229 === errors;valid99 = _valid23;}if(!valid99){const err194 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.type === undefined){const err195 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data58.type !== undefined){let data64 = data58.type;if(typeof data64 !== "string"){const err196 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(!((((((((((data64 === "property") || (data64 === "camunda:property")) || (data64 === "camunda:inputParameter")) || (data64 === "camunda:outputParameter")) || (data64 === "camunda:in")) || (data64 === "camunda:out")) || (data64 === "camunda:in:businessKey")) || (data64 === "camunda:executionListener")) || (data64 === "camunda:field")) || (data64 === "camunda:errorEventDefinition"))){const err197 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(errors > 0){const emErrs25 = [];for(const err198 of vErrors){if(((((err198.keyword !== "errorMessage") && (!err198.emUsed)) && ((err198.instancePath === instancePath+"/" + i5+"/binding/type") || ((err198.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err198.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err198.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err198.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err198);err198.emUsed = true;}}if(emErrs25.length){const err199 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data64) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}const emErrs26 = [];for(const err200 of vErrors){if(!err200.emUsed){emErrs26.push(err200);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data58.name !== undefined){if(typeof data58.name !== "string"){const err201 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data58.event !== undefined){if(typeof data58.event !== "string"){const err202 = {instancePath:instancePath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data58.scriptFormat !== undefined){if(typeof data58.scriptFormat !== "string"){const err203 = {instancePath:instancePath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data58.source !== undefined){if(typeof data58.source !== "string"){const err204 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data58.target !== undefined){if(typeof data58.target !== "string"){const err205 = {instancePath:instancePath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data58.expression !== undefined){if(typeof data58.expression !== "boolean"){const err206 = {instancePath:instancePath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(data58.variables !== undefined){let data71 = data58.variables;if(typeof data71 !== "string"){const err207 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(!((data71 === "all") || (data71 === "local"))){const err208 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data58.sourceExpression !== undefined){if(typeof data58.sourceExpression !== "string"){const err209 = {instancePath:instancePath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}}else {const err210 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err212 of vErrors){if((((((err212.keyword !== "errorMessage") && (!err212.emUsed)) && (err212.instancePath === instancePath+"/" + i5)) && (err212.keyword in emErrors3)) && (err212.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err212.schemaPath.slice(15)))){emErrors3[err212.keyword].push(err212);err212.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err213 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}const emErrs27 = [];for(const err214 of vErrors){if(!err214.emUsed){emErrs27.push(err214);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err215 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}validate16.errors = vErrors;return errors === 0;}const schema25 = {"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs11 = errors;let valid7 = true;const _errs12 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs12 === errors;errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}if(_valid1){const _errs16 = errors;const _errs17 = errors;const _errs18 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid11 = _errs18 === errors;if(valid11){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs16 === errors;valid7 = _valid1;}if(!valid7){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs24 = errors;let valid13 = false;let passing0 = null;const _errs25 = errors;const _errs28 = errors;let valid15 = false;let passing1 = null;const _errs29 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs29 === errors;if(_valid3){valid15 = true;passing1 = 0;}const _errs32 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs32 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid3){valid15 = true;passing1 = 1;}const _errs37 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs37 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 2];}else {if(_valid3){valid15 = true;passing1 = 2;}}}if(!valid15){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs25 === errors;if(_valid2){valid13 = true;passing0 = 0;}const _errs43 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs49 = errors;let valid26 = false;let passing2 = null;const _errs50 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs50 === errors;if(_valid4){valid26 = true;passing2 = 0;}const _errs53 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs53 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 1];}else {if(_valid4){valid26 = true;passing2 = 1;}const _errs58 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs58 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 2];}else {if(_valid4){valid26 = true;passing2 = 2;}}}if(!valid26){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs43 === errors;if(_valid2 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid2){valid13 = true;passing0 = 1;}}if(!valid13){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}}}const _errs65 = errors;let valid34 = true;const _errs66 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs68 = errors;const _errs69 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid36 = _errs69 === errors;if(valid36){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}}}}var _valid5 = _errs66 === errors;errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}if(_valid5){const _errs70 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema25.items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs70 === errors;valid34 = _valid5;}if(!valid34){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs74 = errors;let valid38 = true;const _errs75 = errors;const _errs76 = errors;let valid39 = false;const _errs77 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs77 === errors;if(_valid7){valid39 = true;}const _errs79 = errors;const _errs80 = errors;const _errs81 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid41 = _errs81 === errors;if(valid41){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}var _valid7 = _errs79 === errors;if(_valid7 && valid39){valid39 = false;}else {if(_valid7){valid39 = true;}}if(!valid39){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid6 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs82 === errors;valid38 = _valid6;ifClause0 = "then";}else {const _errs85 = errors;const _errs86 = errors;const _errs87 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid43 = _errs87 === errors;if(valid43){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}var _valid6 = _errs85 === errors;valid38 = _valid6;ifClause0 = "else";}if(!valid38){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",keyword:"type",params:{type: schema25.items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(32)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema25.items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs116 = errors;let valid50 = false;let passing4 = null;const _errs117 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs117 === errors;if(_valid8){valid50 = true;passing4 = 0;}const _errs123 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs123 === errors;if(_valid8 && valid50){valid50 = false;passing4 = [passing4, 1];}else {if(_valid8){valid50 = true;passing4 = 1;}}if(!valid50){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.instancePath === instancePath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.instancePath === instancePath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {instancePath:instancePath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {instancePath:instancePath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.instancePath === instancePath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.instancePath === instancePath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.instancePath === instancePath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data20 = data.scopes;if(Array.isArray(data20)){const len2 = data20.length;for(let i2=0; i2<len2; i2++){let data21 = data20[i2];const _errs46 = errors;let valid17 = true;const _errs47 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data21.type !== undefined){if(!(data21.type === "bpmn:Error")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.id === undefined){const err50 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.instancePath === instancePath+"/scopes/" + i2) || ((err51.instancePath.indexOf(instancePath+"/scopes/" + i2) === 0) && (err51.instancePath[instancePath+"/scopes/" + i2.length] === "/")))) && (err51.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err51.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err51);err51.emUsed = true;}}if(emErrs6.length){const err52 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data21 && data21.type) + ", missing id"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs7 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs7.push(err53);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs49 === errors;valid17 = _valid0;}if(!valid17){const err54 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type === undefined){const err55 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data21.properties === undefined){const err56 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data21.type !== undefined){let data23 = data21.type;if(typeof data23 !== "string"){const err57 = {instancePath:instancePath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(!((data23 === "camunda:Connector") || (data23 === "bpmn:Error"))){const err58 = {instancePath:instancePath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.properties.scopes.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(errors > 0){const emErrs8 = [];for(const err59 of vErrors){if(((((err59.keyword !== "errorMessage") && (!err59.emUsed)) && ((err59.instancePath === instancePath+"/scopes/" + i2+"/type") || ((err59.instancePath.indexOf(instancePath+"/scopes/" + i2+"/type") === 0) && (err59.instancePath[instancePath+"/scopes/" + i2+"/type".length] === "/")))) && (err59.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err59.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err59);err59.emUsed = true;}}if(emErrs8.length){const err60 = {instancePath:instancePath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data23) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const emErrs9 = [];for(const err61 of vErrors){if(!err61.emUsed){emErrs9.push(err61);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data21.properties !== undefined){let data24 = data21.properties;if(!(validate20(data24, {instancePath:instancePath+"/scopes/" + i2+"/properties",parentData:data21,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];const _errs60 = errors;let valid25 = true;const _errs61 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data25.binding !== undefined){let data26 = data25.binding;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data26.type !== undefined){if("property" !== data26.type){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid1 = _errs61 === errors;errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}if(_valid1){const _errs64 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data28 = data25.type;if(!(((((data28 === "String") || (data28 === "Text")) || (data28 === "Hidden")) || (data28 === "Dropdown")) || (data28 === "Boolean"))){const err65 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs10 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err66.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err66.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err66.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err66.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err66);err66.emUsed = true;}}if(emErrs10.length){const err67 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data28) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs11 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs11.push(err68);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs64 === errors;valid25 = _valid1;}if(!valid25){const err69 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs67 = errors;let valid29 = true;const _errs68 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data25.binding !== undefined){let data29 = data25.binding;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data29.type !== undefined){if("camunda:executionListener" !== data29.type){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid2 = _errs68 === errors;errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}if(_valid2){const _errs71 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){if(!(data25.type === "Hidden")){const err73 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs12 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err74.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err74.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err74.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err74.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err74);err74.emUsed = true;}}if(emErrs12.length){const err75 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data25 && data25.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs13 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs13.push(err76);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data25.binding !== undefined){let data32 = data25.binding;const _errs74 = errors;let valid33 = false;let passing0 = null;const _errs75 = errors;const _errs76 = errors;const _errs77 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){if("script" !== data32.implementationType){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var valid34 = _errs77 === errors;if(valid34){const err78 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid3 = _errs75 === errors;if(_valid3){valid33 = true;passing0 = 0;}const _errs79 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.scriptFormat === undefined){const err79 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid3 = _errs79 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 1];}else {if(_valid3){valid33 = true;passing0 = 1;}const _errs80 = errors;const _errs82 = errors;const _errs83 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.implementationType === undefined) && ("implementationType")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var valid37 = _errs83 === errors;if(valid37){const err81 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}const _errs85 = errors;const _errs86 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.scriptFormat === undefined) && ("scriptFormat")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid38 = _errs86 === errors;if(valid38){const err83 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs85;if(vErrors !== null){if(_errs85){vErrors.length = _errs85;}else {vErrors = null;}}}var _valid3 = _errs80 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 2];}else {if(_valid3){valid33 = true;passing0 = 2;}}}if(!valid33){const err84 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){let data34 = data32.implementationType;if(!((((data34 === "class") || (data34 === "delegateExpression")) || (data34 === "expression")) || (data34 === "script"))){const err85 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}var _valid2 = _errs71 === errors;valid29 = _valid2;}if(!valid29){const err86 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const _errs89 = errors;let valid40 = true;const _errs90 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data25.binding !== undefined){let data35 = data25.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data35.type !== undefined){let data36 = data35.type;if(!((((((data36 === "camunda:property") || (data36 === "camunda:outputParameter")) || (data36 === "camunda:in")) || (data36 === "camunda:in:businessKey")) || (data36 === "camunda:out")) || (data36 === "camunda:errorEventDefinition"))){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var _valid4 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid4){const _errs93 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data37 = data25.type;if(!(((data37 === "String") || (data37 === "Hidden")) || (data37 === "Dropdown"))){const err90 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrs14 = [];for(const err91 of vErrors){if(((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && ((err91.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err91.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err91.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err91.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err91.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err91);err91.emUsed = true;}}if(emErrs14.length){const err92 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data37) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const emErrs15 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs15.push(err93);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs93 === errors;valid40 = _valid4;}if(!valid40){const err94 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs96 = errors;let valid44 = true;const _errs97 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data25.binding !== undefined){let data38 = data25.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((data39 === "camunda:inputParameter") || (data39 === "camunda:field"))){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}}}}var _valid5 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid5){const _errs100 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data40 = data25.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err98 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(errors > 0){const emErrs16 = [];for(const err99 of vErrors){if(((((err99.keyword !== "errorMessage") && (!err99.emUsed)) && ((err99.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err99.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err99.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err99.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err99.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err99);err99.emUsed = true;}}if(emErrs16.length){const err100 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const emErrs17 = [];for(const err101 of vErrors){if(!err101.emUsed){emErrs17.push(err101);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs100 === errors;valid44 = _valid5;}if(!valid44){const err102 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.binding === undefined){const err103 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data25.binding !== undefined){let data41 = data25.binding;const _errs105 = errors;let valid50 = true;const _errs106 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {if(data41.type !== undefined){let data42 = data41.type;if(!((((data42 === "property") || (data42 === "camunda:property")) || (data42 === "camunda:inputParameter")) || (data42 === "camunda:field"))){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}}var _valid6 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.name === undefined){const err106 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err107 of vErrors){if(((((err107.keyword !== "errorMessage") && (!err107.emUsed)) && ((err107.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err107.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err107.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err107.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err107.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err107);err107.emUsed = true;}}if(emErrs18.length){const err108 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires name"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const emErrs19 = [];for(const err109 of vErrors){if(!err109.emUsed){emErrs19.push(err109);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs108 === errors;valid50 = _valid6;}if(!valid50){const err110 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs110 = errors;let valid52 = true;const _errs111 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data41.type !== undefined){if("camunda:outputParameter" !== data41.type){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs113 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err113 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err114.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err114.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err114);err114.emUsed = true;}}if(emErrs20.length){const err115 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires source"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs21 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs21.push(err116);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs113 === errors;valid52 = _valid7;}if(!valid52){const err117 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs115 = errors;let valid54 = true;const _errs116 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data41.type !== undefined){if("camunda:in" !== data41.type){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid8 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid8){const _errs118 = errors;const _errs119 = errors;let valid56 = false;const _errs120 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err120 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid9 = _errs120 === errors;valid56 = valid56 || _valid9;if(!valid56){const _errs121 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.target === undefined){const err121 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid9 = _errs121 === errors;valid56 = valid56 || _valid9;}if(!valid56){const err122 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err123.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err123.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err123.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err123.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err123);err123.emUsed = true;}}if(emErrs22.length){const err124 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs23 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs23.push(err125);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs118 === errors;valid54 = _valid8;}if(!valid54){const err126 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const _errs123 = errors;let valid57 = true;const _errs124 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data41.type !== undefined){if("camunda:out" !== data41.type){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}var _valid10 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid10){const _errs126 = errors;const _errs127 = errors;let valid59 = false;let passing1 = null;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;const _errs131 = errors;let valid61 = false;const _errs132 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid12 = _errs132 === errors;valid61 = valid61 || _valid12;if(!valid61){const _errs133 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid12 = _errs133 === errors;valid61 = valid61 || _valid12;}if(!valid61){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}}var valid60 = _errs130 === errors;if(valid60){const err132 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err133 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid11 = _errs128 === errors;if(_valid11){valid59 = true;passing1 = 0;}const _errs134 = errors;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;let valid63 = false;const _errs138 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var _valid13 = _errs138 === errors;valid63 = valid63 || _valid13;if(!valid63){const _errs139 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid13 = _errs139 === errors;valid63 = valid63 || _valid13;}if(!valid63){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}var valid62 = _errs136 === errors;if(valid62){const err137 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err138 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs134 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 1];}else {if(_valid11){valid59 = true;passing1 = 1;}const _errs140 = errors;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;let valid65 = false;const _errs144 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var _valid14 = _errs144 === errors;valid65 = valid65 || _valid14;if(!valid65){const _errs145 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid14 = _errs145 === errors;valid65 = valid65 || _valid14;}if(!valid65){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var valid64 = _errs142 === errors;if(valid64){const err142 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.sourceExpression === undefined){const err143 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid11 = _errs140 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 2];}else {if(_valid11){valid59 = true;passing1 = 2;}const _errs146 = errors;const _errs147 = errors;const _errs148 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid66 = _errs148 === errors;if(valid66){const err145 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err146 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data41.sourceExpression === undefined){const err147 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid11 = _errs146 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 3];}else {if(_valid11){valid59 = true;passing1 = 3;}const _errs149 = errors;const _errs150 = errors;const _errs151 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}var valid67 = _errs151 === errors;if(valid67){const err149 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err150 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data41.source === undefined){const err151 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid11 = _errs149 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 4];}else {if(_valid11){valid59 = true;passing1 = 4;}}}}}if(!valid59){const err152 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err153.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err153.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err153.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err153);err153.emUsed = true;}}if(emErrs24.length){const err154 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs25 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs25.push(err155);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs126 === errors;valid57 = _valid10;}if(!valid57){const err156 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs153 = errors;let valid68 = true;const _errs154 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data41.type !== undefined){if("camunda:errorEventDefinition" !== data41.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid15 = _errs154 === errors;errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}if(_valid15){const _errs156 = errors;const _errs157 = errors;let valid70 = false;let passing2 = null;const _errs158 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.errorRef === undefined){const err159 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid16 = _errs158 === errors;if(_valid16){valid70 = true;passing2 = 0;}if(!valid70){const err160 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err161 of vErrors){if(((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && ((err161.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err161.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err161.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err161.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err161.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err161);err161.emUsed = true;}}if(emErrs26.length){const err162 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires errorRef"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const emErrs27 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs27.push(err163);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs156 === errors;valid68 = _valid15;}if(!valid68){const err164 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.type === undefined){const err165 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data41.type !== undefined){let data47 = data41.type;if(typeof data47 !== "string"){const err166 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!((((((((((data47 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:outputParameter")) || (data47 === "camunda:in")) || (data47 === "camunda:out")) || (data47 === "camunda:in:businessKey")) || (data47 === "camunda:executionListener")) || (data47 === "camunda:field")) || (data47 === "camunda:errorEventDefinition"))){const err167 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(errors > 0){const emErrs28 = [];for(const err168 of vErrors){if(((((err168.keyword !== "errorMessage") && (!err168.emUsed)) && ((err168.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") || ((err168.instancePath.indexOf(instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") === 0) && (err168.instancePath[instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type".length] === "/")))) && (err168.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err168.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err168);err168.emUsed = true;}}if(emErrs28.length){const err169 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data47) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const emErrs29 = [];for(const err170 of vErrors){if(!err170.emUsed){emErrs29.push(err170);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data41.name !== undefined){if(typeof data41.name !== "string"){const err171 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data41.event !== undefined){if(typeof data41.event !== "string"){const err172 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data41.scriptFormat !== undefined){if(typeof data41.scriptFormat !== "string"){const err173 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data41.source !== undefined){if(typeof data41.source !== "string"){const err174 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data41.target !== undefined){if(typeof data41.target !== "string"){const err175 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data41.expression !== undefined){if(typeof data41.expression !== "boolean"){const err176 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data41.variables !== undefined){let data54 = data41.variables;if(typeof data54 !== "string"){const err177 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(!((data54 === "all") || (data54 === "local"))){const err178 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data41.sourceExpression !== undefined){if(typeof data41.sourceExpression !== "string"){const err179 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i3) + "\""}};for(const err182 of vErrors){if((((((err182.keyword !== "errorMessage") && (!err182.emUsed)) && (err182.instancePath === instancePath+"/scopes/" + i2+"/properties/" + i3)) && (err182.keyword in emErrors6)) && (err182.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err182.schemaPath.slice(38)))){emErrors6[err182.keyword].push(err182);err182.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err183 = {instancePath:instancePath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema29.items.errorMessage[key6]};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}const emErrs30 = [];for(const err184 of vErrors){if(!err184.emUsed){emErrs30.push(err184);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err185 = {instancePath:instancePath+"/scopes/" + i2+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data21 && data21.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err187 of vErrors){if((((((err187.keyword !== "errorMessage") && (!err187.emUsed)) && (err187.instancePath === instancePath+"/scopes/" + i2)) && (err187.keyword in emErrors7)) && (err187.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err187.schemaPath.slice(25)))){emPropParams3 = obj0[err187.keyword];emParamsErrors3 = emErrors7[err187.keyword][err187.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err187);err187.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err188 = {instancePath:instancePath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}const emErrs31 = [];for(const err189 of vErrors){if(!err189.emUsed){emErrs31.push(err189);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err190 = {instancePath:instancePath+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
88
|
+
return standaloneValidator.exports;
|
526
89
|
}
|
527
90
|
|
91
|
+
var standaloneValidatorExports = requireStandaloneValidator();
|
92
|
+
var validateTemplate$1 = /*@__PURE__*/getDefaultExportFromCjs(standaloneValidatorExports);
|
93
|
+
|
94
|
+
var jsonSourceMap = {};
|
528
95
|
|
529
|
-
var
|
530
|
-
|
531
|
-
function
|
532
|
-
|
533
|
-
|
96
|
+
var hasRequiredJsonSourceMap;
|
97
|
+
|
98
|
+
function requireJsonSourceMap () {
|
99
|
+
if (hasRequiredJsonSourceMap) return jsonSourceMap;
|
100
|
+
hasRequiredJsonSourceMap = 1;
|
101
|
+
|
102
|
+
var escapedChars = {
|
103
|
+
'b': '\b',
|
104
|
+
'f': '\f',
|
105
|
+
'n': '\n',
|
106
|
+
'r': '\r',
|
107
|
+
't': '\t',
|
108
|
+
'"': '"',
|
109
|
+
'/': '/',
|
110
|
+
'\\': '\\'
|
111
|
+
};
|
112
|
+
|
113
|
+
var A_CODE = 'a'.charCodeAt();
|
114
|
+
|
115
|
+
|
116
|
+
jsonSourceMap.parse = function (source, _, options) {
|
117
|
+
var pointers = {};
|
118
|
+
var line = 0;
|
119
|
+
var column = 0;
|
120
|
+
var pos = 0;
|
121
|
+
var bigint = options && options.bigint && typeof BigInt != 'undefined';
|
122
|
+
return {
|
123
|
+
data: _parse('', true),
|
124
|
+
pointers: pointers
|
125
|
+
};
|
126
|
+
|
127
|
+
function _parse(ptr, topLevel) {
|
128
|
+
whitespace();
|
129
|
+
var data;
|
130
|
+
map(ptr, 'value');
|
131
|
+
var char = getChar();
|
132
|
+
switch (char) {
|
133
|
+
case 't': read('rue'); data = true; break;
|
134
|
+
case 'f': read('alse'); data = false; break;
|
135
|
+
case 'n': read('ull'); data = null; break;
|
136
|
+
case '"': data = parseString(); break;
|
137
|
+
case '[': data = parseArray(ptr); break;
|
138
|
+
case '{': data = parseObject(ptr); break;
|
139
|
+
default:
|
140
|
+
backChar();
|
141
|
+
if ('-0123456789'.indexOf(char) >= 0)
|
142
|
+
data = parseNumber();
|
143
|
+
else
|
144
|
+
unexpectedToken();
|
145
|
+
}
|
146
|
+
map(ptr, 'valueEnd');
|
147
|
+
whitespace();
|
148
|
+
if (topLevel && pos < source.length) unexpectedToken();
|
149
|
+
return data;
|
150
|
+
}
|
151
|
+
|
152
|
+
function whitespace() {
|
153
|
+
loop:
|
154
|
+
while (pos < source.length) {
|
155
|
+
switch (source[pos]) {
|
156
|
+
case ' ': column++; break;
|
157
|
+
case '\t': column += 4; break;
|
158
|
+
case '\r': column = 0; break;
|
159
|
+
case '\n': column = 0; line++; break;
|
160
|
+
default: break loop;
|
161
|
+
}
|
162
|
+
pos++;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
function parseString() {
|
167
|
+
var str = '';
|
168
|
+
var char;
|
169
|
+
while (true) {
|
170
|
+
char = getChar();
|
171
|
+
if (char == '"') {
|
172
|
+
break;
|
173
|
+
} else if (char == '\\') {
|
174
|
+
char = getChar();
|
175
|
+
if (char in escapedChars)
|
176
|
+
str += escapedChars[char];
|
177
|
+
else if (char == 'u')
|
178
|
+
str += getCharCode();
|
179
|
+
else
|
180
|
+
wasUnexpectedToken();
|
181
|
+
} else {
|
182
|
+
str += char;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
return str;
|
186
|
+
}
|
187
|
+
|
188
|
+
function parseNumber() {
|
189
|
+
var numStr = '';
|
190
|
+
var integer = true;
|
191
|
+
if (source[pos] == '-') numStr += getChar();
|
192
|
+
|
193
|
+
numStr += source[pos] == '0'
|
194
|
+
? getChar()
|
195
|
+
: getDigits();
|
196
|
+
|
197
|
+
if (source[pos] == '.') {
|
198
|
+
numStr += getChar() + getDigits();
|
199
|
+
integer = false;
|
200
|
+
}
|
201
|
+
|
202
|
+
if (source[pos] == 'e' || source[pos] == 'E') {
|
203
|
+
numStr += getChar();
|
204
|
+
if (source[pos] == '+' || source[pos] == '-') numStr += getChar();
|
205
|
+
numStr += getDigits();
|
206
|
+
integer = false;
|
207
|
+
}
|
208
|
+
|
209
|
+
var result = +numStr;
|
210
|
+
return bigint && integer && (result > Number.MAX_SAFE_INTEGER || result < Number.MIN_SAFE_INTEGER)
|
211
|
+
? BigInt(numStr)
|
212
|
+
: result;
|
213
|
+
}
|
214
|
+
|
215
|
+
function parseArray(ptr) {
|
216
|
+
whitespace();
|
217
|
+
var arr = [];
|
218
|
+
var i = 0;
|
219
|
+
if (getChar() == ']') return arr;
|
220
|
+
backChar();
|
221
|
+
|
222
|
+
while (true) {
|
223
|
+
var itemPtr = ptr + '/' + i;
|
224
|
+
arr.push(_parse(itemPtr));
|
225
|
+
whitespace();
|
226
|
+
var char = getChar();
|
227
|
+
if (char == ']') break;
|
228
|
+
if (char != ',') wasUnexpectedToken();
|
229
|
+
whitespace();
|
230
|
+
i++;
|
231
|
+
}
|
232
|
+
return arr;
|
233
|
+
}
|
234
|
+
|
235
|
+
function parseObject(ptr) {
|
236
|
+
whitespace();
|
237
|
+
var obj = {};
|
238
|
+
if (getChar() == '}') return obj;
|
239
|
+
backChar();
|
240
|
+
|
241
|
+
while (true) {
|
242
|
+
var loc = getLoc();
|
243
|
+
if (getChar() != '"') wasUnexpectedToken();
|
244
|
+
var key = parseString();
|
245
|
+
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
246
|
+
mapLoc(propPtr, 'key', loc);
|
247
|
+
map(propPtr, 'keyEnd');
|
248
|
+
whitespace();
|
249
|
+
if (getChar() != ':') wasUnexpectedToken();
|
250
|
+
whitespace();
|
251
|
+
obj[key] = _parse(propPtr);
|
252
|
+
whitespace();
|
253
|
+
var char = getChar();
|
254
|
+
if (char == '}') break;
|
255
|
+
if (char != ',') wasUnexpectedToken();
|
256
|
+
whitespace();
|
257
|
+
}
|
258
|
+
return obj;
|
259
|
+
}
|
260
|
+
|
261
|
+
function read(str) {
|
262
|
+
for (var i=0; i<str.length; i++)
|
263
|
+
if (getChar() !== str[i]) wasUnexpectedToken();
|
264
|
+
}
|
265
|
+
|
266
|
+
function getChar() {
|
267
|
+
checkUnexpectedEnd();
|
268
|
+
var char = source[pos];
|
269
|
+
pos++;
|
270
|
+
column++; // new line?
|
271
|
+
return char;
|
272
|
+
}
|
273
|
+
|
274
|
+
function backChar() {
|
275
|
+
pos--;
|
276
|
+
column--;
|
277
|
+
}
|
278
|
+
|
279
|
+
function getCharCode() {
|
280
|
+
var count = 4;
|
281
|
+
var code = 0;
|
282
|
+
while (count--) {
|
283
|
+
code <<= 4;
|
284
|
+
var char = getChar().toLowerCase();
|
285
|
+
if (char >= 'a' && char <= 'f')
|
286
|
+
code += char.charCodeAt() - A_CODE + 10;
|
287
|
+
else if (char >= '0' && char <= '9')
|
288
|
+
code += +char;
|
289
|
+
else
|
290
|
+
wasUnexpectedToken();
|
291
|
+
}
|
292
|
+
return String.fromCharCode(code);
|
293
|
+
}
|
294
|
+
|
295
|
+
function getDigits() {
|
296
|
+
var digits = '';
|
297
|
+
while (source[pos] >= '0' && source[pos] <= '9')
|
298
|
+
digits += getChar();
|
299
|
+
|
300
|
+
if (digits.length) return digits;
|
301
|
+
checkUnexpectedEnd();
|
302
|
+
unexpectedToken();
|
303
|
+
}
|
304
|
+
|
305
|
+
function map(ptr, prop) {
|
306
|
+
mapLoc(ptr, prop, getLoc());
|
307
|
+
}
|
308
|
+
|
309
|
+
function mapLoc(ptr, prop, loc) {
|
310
|
+
pointers[ptr] = pointers[ptr] || {};
|
311
|
+
pointers[ptr][prop] = loc;
|
312
|
+
}
|
313
|
+
|
314
|
+
function getLoc() {
|
315
|
+
return {
|
316
|
+
line: line,
|
317
|
+
column: column,
|
318
|
+
pos: pos
|
319
|
+
};
|
320
|
+
}
|
321
|
+
|
322
|
+
function unexpectedToken() {
|
323
|
+
throw new SyntaxError('Unexpected token ' + source[pos] + ' in JSON at position ' + pos);
|
324
|
+
}
|
325
|
+
|
326
|
+
function wasUnexpectedToken() {
|
327
|
+
backChar();
|
328
|
+
unexpectedToken();
|
329
|
+
}
|
330
|
+
|
331
|
+
function checkUnexpectedEnd() {
|
332
|
+
if (pos >= source.length)
|
333
|
+
throw new SyntaxError('Unexpected end of JSON input');
|
334
|
+
}
|
335
|
+
};
|
336
|
+
|
337
|
+
|
338
|
+
jsonSourceMap.stringify = function (data, _, options) {
|
339
|
+
if (!validType(data)) return;
|
340
|
+
var wsLine = 0;
|
341
|
+
var wsPos, wsColumn;
|
342
|
+
var whitespace = typeof options == 'object'
|
343
|
+
? options.space
|
344
|
+
: options;
|
345
|
+
switch (typeof whitespace) {
|
346
|
+
case 'number':
|
347
|
+
var len = whitespace > 10
|
348
|
+
? 10
|
349
|
+
: whitespace < 0
|
350
|
+
? 0
|
351
|
+
: Math.floor(whitespace);
|
352
|
+
whitespace = len && repeat(len, ' ');
|
353
|
+
wsPos = len;
|
354
|
+
wsColumn = len;
|
355
|
+
break;
|
356
|
+
case 'string':
|
357
|
+
whitespace = whitespace.slice(0, 10);
|
358
|
+
wsPos = 0;
|
359
|
+
wsColumn = 0;
|
360
|
+
for (var j=0; j<whitespace.length; j++) {
|
361
|
+
var char = whitespace[j];
|
362
|
+
switch (char) {
|
363
|
+
case ' ': wsColumn++; break;
|
364
|
+
case '\t': wsColumn += 4; break;
|
365
|
+
case '\r': wsColumn = 0; break;
|
366
|
+
case '\n': wsColumn = 0; wsLine++; break;
|
367
|
+
default: throw new Error('whitespace characters not allowed in JSON');
|
368
|
+
}
|
369
|
+
wsPos++;
|
370
|
+
}
|
371
|
+
break;
|
372
|
+
default:
|
373
|
+
whitespace = undefined;
|
374
|
+
}
|
375
|
+
|
376
|
+
var json = '';
|
377
|
+
var pointers = {};
|
378
|
+
var line = 0;
|
379
|
+
var column = 0;
|
380
|
+
var pos = 0;
|
381
|
+
var es6 = options && options.es6 && typeof Map == 'function';
|
382
|
+
_stringify(data, 0, '');
|
383
|
+
return {
|
384
|
+
json: json,
|
385
|
+
pointers: pointers
|
386
|
+
};
|
387
|
+
|
388
|
+
function _stringify(_data, lvl, ptr) {
|
389
|
+
map(ptr, 'value');
|
390
|
+
switch (typeof _data) {
|
391
|
+
case 'number':
|
392
|
+
case 'bigint':
|
393
|
+
case 'boolean':
|
394
|
+
out('' + _data); break;
|
395
|
+
case 'string':
|
396
|
+
out(quoted(_data)); break;
|
397
|
+
case 'object':
|
398
|
+
if (_data === null) {
|
399
|
+
out('null');
|
400
|
+
} else if (typeof _data.toJSON == 'function') {
|
401
|
+
out(quoted(_data.toJSON()));
|
402
|
+
} else if (Array.isArray(_data)) {
|
403
|
+
stringifyArray();
|
404
|
+
} else if (es6) {
|
405
|
+
if (_data.constructor.BYTES_PER_ELEMENT)
|
406
|
+
stringifyArray();
|
407
|
+
else if (_data instanceof Map)
|
408
|
+
stringifyMapSet();
|
409
|
+
else if (_data instanceof Set)
|
410
|
+
stringifyMapSet(true);
|
411
|
+
else
|
412
|
+
stringifyObject();
|
413
|
+
} else {
|
414
|
+
stringifyObject();
|
415
|
+
}
|
416
|
+
}
|
417
|
+
map(ptr, 'valueEnd');
|
418
|
+
|
419
|
+
function stringifyArray() {
|
420
|
+
if (_data.length) {
|
421
|
+
out('[');
|
422
|
+
var itemLvl = lvl + 1;
|
423
|
+
for (var i=0; i<_data.length; i++) {
|
424
|
+
if (i) out(',');
|
425
|
+
indent(itemLvl);
|
426
|
+
var item = validType(_data[i]) ? _data[i] : null;
|
427
|
+
var itemPtr = ptr + '/' + i;
|
428
|
+
_stringify(item, itemLvl, itemPtr);
|
429
|
+
}
|
430
|
+
indent(lvl);
|
431
|
+
out(']');
|
432
|
+
} else {
|
433
|
+
out('[]');
|
434
|
+
}
|
435
|
+
}
|
436
|
+
|
437
|
+
function stringifyObject() {
|
438
|
+
var keys = Object.keys(_data);
|
439
|
+
if (keys.length) {
|
440
|
+
out('{');
|
441
|
+
var propLvl = lvl + 1;
|
442
|
+
for (var i=0; i<keys.length; i++) {
|
443
|
+
var key = keys[i];
|
444
|
+
var value = _data[key];
|
445
|
+
if (validType(value)) {
|
446
|
+
if (i) out(',');
|
447
|
+
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
448
|
+
indent(propLvl);
|
449
|
+
map(propPtr, 'key');
|
450
|
+
out(quoted(key));
|
451
|
+
map(propPtr, 'keyEnd');
|
452
|
+
out(':');
|
453
|
+
if (whitespace) out(' ');
|
454
|
+
_stringify(value, propLvl, propPtr);
|
455
|
+
}
|
456
|
+
}
|
457
|
+
indent(lvl);
|
458
|
+
out('}');
|
459
|
+
} else {
|
460
|
+
out('{}');
|
461
|
+
}
|
462
|
+
}
|
463
|
+
|
464
|
+
function stringifyMapSet(isSet) {
|
465
|
+
if (_data.size) {
|
466
|
+
out('{');
|
467
|
+
var propLvl = lvl + 1;
|
468
|
+
var first = true;
|
469
|
+
var entries = _data.entries();
|
470
|
+
var entry = entries.next();
|
471
|
+
while (!entry.done) {
|
472
|
+
var item = entry.value;
|
473
|
+
var key = item[0];
|
474
|
+
var value = isSet ? true : item[1];
|
475
|
+
if (validType(value)) {
|
476
|
+
if (!first) out(',');
|
477
|
+
first = false;
|
478
|
+
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
479
|
+
indent(propLvl);
|
480
|
+
map(propPtr, 'key');
|
481
|
+
out(quoted(key));
|
482
|
+
map(propPtr, 'keyEnd');
|
483
|
+
out(':');
|
484
|
+
if (whitespace) out(' ');
|
485
|
+
_stringify(value, propLvl, propPtr);
|
486
|
+
}
|
487
|
+
entry = entries.next();
|
488
|
+
}
|
489
|
+
indent(lvl);
|
490
|
+
out('}');
|
491
|
+
} else {
|
492
|
+
out('{}');
|
493
|
+
}
|
494
|
+
}
|
495
|
+
}
|
496
|
+
|
497
|
+
function out(str) {
|
498
|
+
column += str.length;
|
499
|
+
pos += str.length;
|
500
|
+
json += str;
|
501
|
+
}
|
502
|
+
|
503
|
+
function indent(lvl) {
|
504
|
+
if (whitespace) {
|
505
|
+
json += '\n' + repeat(lvl, whitespace);
|
506
|
+
line++;
|
507
|
+
column = 0;
|
508
|
+
while (lvl--) {
|
509
|
+
if (wsLine) {
|
510
|
+
line += wsLine;
|
511
|
+
column = wsColumn;
|
512
|
+
} else {
|
513
|
+
column += wsColumn;
|
514
|
+
}
|
515
|
+
pos += wsPos;
|
516
|
+
}
|
517
|
+
pos += 1; // \n character
|
518
|
+
}
|
519
|
+
}
|
520
|
+
|
521
|
+
function map(ptr, prop) {
|
522
|
+
pointers[ptr] = pointers[ptr] || {};
|
523
|
+
pointers[ptr][prop] = {
|
524
|
+
line: line,
|
525
|
+
column: column,
|
526
|
+
pos: pos
|
527
|
+
};
|
528
|
+
}
|
529
|
+
|
530
|
+
function repeat(n, str) {
|
531
|
+
return Array(n + 1).join(str);
|
532
|
+
}
|
533
|
+
};
|
534
|
+
|
535
|
+
|
536
|
+
var VALID_TYPES = ['number', 'bigint', 'boolean', 'string', 'object'];
|
537
|
+
function validType(data) {
|
538
|
+
return VALID_TYPES.indexOf(typeof data) >= 0;
|
539
|
+
}
|
540
|
+
|
541
|
+
|
542
|
+
var ESC_QUOTE = /"|\\/g;
|
543
|
+
var ESC_B = /[\b]/g;
|
544
|
+
var ESC_F = /\f/g;
|
545
|
+
var ESC_N = /\n/g;
|
546
|
+
var ESC_R = /\r/g;
|
547
|
+
var ESC_T = /\t/g;
|
548
|
+
function quoted(str) {
|
549
|
+
str = str.replace(ESC_QUOTE, '\\$&')
|
550
|
+
.replace(ESC_F, '\\f')
|
551
|
+
.replace(ESC_B, '\\b')
|
552
|
+
.replace(ESC_N, '\\n')
|
553
|
+
.replace(ESC_R, '\\r')
|
554
|
+
.replace(ESC_T, '\\t');
|
555
|
+
return '"' + str + '"';
|
556
|
+
}
|
557
|
+
|
558
|
+
|
559
|
+
var ESC_0 = /~/g;
|
560
|
+
var ESC_1 = /\//g;
|
561
|
+
function escapeJsonPointer(str) {
|
562
|
+
return str.replace(ESC_0, '~0')
|
563
|
+
.replace(ESC_1, '~1');
|
564
|
+
}
|
565
|
+
return jsonSourceMap;
|
534
566
|
}
|
535
567
|
|
568
|
+
var jsonSourceMapExports = requireJsonSourceMap();
|
569
|
+
var jsonMap = /*@__PURE__*/getDefaultExportFromCjs(jsonSourceMapExports);
|
570
|
+
|
536
571
|
function _validate(object, validateFn) {
|
537
572
|
const dataPointerMap = generateDataPointerMap(object);
|
538
573
|
|
@@ -641,7 +676,7 @@ function ignoreSupportiveErrors(errors) {
|
|
641
676
|
* @return {Object}
|
642
677
|
*/
|
643
678
|
function generateDataPointerMap(object) {
|
644
|
-
return
|
679
|
+
return jsonMap.stringify(object, null, 2).pointers;
|
645
680
|
}
|
646
681
|
|
647
682
|
function getSchemaVersion() {
|
@@ -673,13 +708,20 @@ function validateAll(objects) {
|
|
673
708
|
}
|
674
709
|
|
675
710
|
var name = "@camunda/zeebe-element-templates-json-schema";
|
676
|
-
var version = "0.
|
711
|
+
var version = "0.21.0";
|
677
712
|
|
678
713
|
var standaloneZeebeValidator = {exports: {}};
|
679
714
|
|
680
|
-
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}]}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = equal$1.default;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"type":"string"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"const":"processId"}},"required":["property"]}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","description":"Indicates whether the property can be a feel expression","enum":["optional","required","static"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data22 = data0.value;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err57 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err58 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err59 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err60 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err61 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data0.choices !== undefined){let data27 = data0.choices;if(Array.isArray(data27)){const len4 = data27.length;for(let i4=0; i4<len4; i4++){let data28 = data27[i4];if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.value === undefined){const err62 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data28.name === undefined){const err63 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data28.name !== undefined){if(typeof data28.name !== "string"){const err64 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data28.value !== undefined){if(typeof data28.value !== "string"){const err65 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data28.condition !== undefined){if(!(validate17(data28.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data28,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err66 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err67 of vErrors){if((((((err67.keyword !== "errorMessage") && (!err67.emUsed)) && (err67.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err67.keyword in emErrors2)) && (err67.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err67.schemaPath.slice(40)))){emErrors2[err67.keyword].push(err67);err67.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err68 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}const emErrs6 = [];for(const err69 of vErrors){if(!err69.emUsed){emErrs6.push(err69);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err70 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.constraints !== undefined){let data32 = data0.constraints;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.notEmpty !== undefined){if(typeof data32.notEmpty !== "boolean"){const err71 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data32.minLength !== undefined){if(!(typeof data32.minLength == "number")){const err72 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data32.maxLength !== undefined){if(!(typeof data32.maxLength == "number")){const err73 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data32.pattern !== undefined){let data36 = data32.pattern;const _errs102 = errors;let valid45 = false;let passing3 = null;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.value !== undefined){if(typeof data36.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data36.message !== undefined){if(typeof data36.message !== "string"){const err75 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var _valid6 = _errs103 === errors;if(_valid6){valid45 = true;passing3 = 0;}const _errs109 = errors;if(typeof data36 !== "string"){const err77 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid6 = _errs109 === errors;if(_valid6 && valid45){valid45 = false;passing3 = [passing3, 1];}else {if(_valid6){valid45 = true;passing3 = 1;}}if(!valid45){const err78 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err80 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data40 = data[i5];const _errs118 = errors;let valid50 = true;const _errs119 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.binding === undefined) && ("binding")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data40.binding !== undefined){let data41 = data40.binding;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {if(data41.type !== undefined){if("property" !== data41.type){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}}}var _valid7 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid7){const _errs122 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){let data43 = data40.type;if(!((((((data43 === "String") || (data43 === "Text")) || (data43 === "Hidden")) || (data43 === "Dropdown")) || (data43 === "Boolean")) || (data43 === "Number"))){const err86 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(errors > 0){const emErrs7 = [];for(const err87 of vErrors){if(((((err87.keyword !== "errorMessage") && (!err87.emUsed)) && ((err87.instancePath === instancePath+"/" + i5+"/type") || ((err87.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err87.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err87.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err87.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err87);err87.emUsed = true;}}if(emErrs7.length){const err88 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data43) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const emErrs8 = [];for(const err89 of vErrors){if(!err89.emUsed){emErrs8.push(err89);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid7 = _errs122 === errors;valid50 = _valid7;}if(!valid50){const err90 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const _errs125 = errors;let valid54 = true;const _errs126 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.binding === undefined) && ("binding")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data40.binding !== undefined){let data44 = data40.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data44.type !== undefined){let data45 = data44.type;if(!(((((((((data45 === "zeebe:input") || (data45 === "zeebe:output")) || (data45 === "zeebe:property")) || (data45 === "zeebe:taskHeader")) || (data45 === "zeebe:taskDefinition:type")) || (data45 === "bpmn:Message#property")) || (data45 === "bpmn:Message#zeebe:subscription#property")) || (data45 === "zeebe:taskDefinition")) || (data45 === "zeebe:calledElement"))){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}}}}}var _valid8 = _errs126 === errors;errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}if(_valid8){const _errs129 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){let data46 = data40.type;if(!((((((data46 === "String") || (data46 === "Text")) || (data46 === "Hidden")) || (data46 === "Dropdown")) || (data46 === "Boolean")) || (data46 === "Number"))){const err94 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(errors > 0){const emErrs9 = [];for(const err95 of vErrors){if(((((err95.keyword !== "errorMessage") && (!err95.emUsed)) && ((err95.instancePath === instancePath+"/" + i5+"/type") || ((err95.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err95.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err95.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err95.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err95);err95.emUsed = true;}}if(emErrs9.length){const err96 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data46) + " for binding type " + JSON.stringify(data40 && data40.binding && data40.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const emErrs10 = [];for(const err97 of vErrors){if(!err97.emUsed){emErrs10.push(err97);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid8 = _errs129 === errors;valid54 = _valid8;}if(!valid54){const err98 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const _errs132 = errors;let valid58 = true;const _errs133 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.optional === undefined) && ("optional")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data40.optional !== undefined){if(true !== data40.optional){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}var _valid9 = _errs133 === errors;errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}if(_valid9){const _errs135 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.binding !== undefined){let data48 = data40.binding;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.type === undefined){const err101 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data48.type !== undefined){let data49 = data48.type;if(!((((data49 === "zeebe:input") || (data49 === "zeebe:output")) || (data49 === "zeebe:property")) || (data49 === "zeebe:taskHeader"))){const err102 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(errors > 0){const emErrs11 = [];for(const err103 of vErrors){if(((((err103.keyword !== "errorMessage") && (!err103.emUsed)) && ((err103.instancePath === instancePath+"/" + i5+"/binding/type") || ((err103.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err103.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err103.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err103.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err103);err103.emUsed = true;}}if(emErrs11.length){const err104 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data49) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const emErrs12 = [];for(const err105 of vErrors){if(!err105.emUsed){emErrs12.push(err105);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid9 = _errs135 === errors;valid58 = _valid9;}if(!valid58){const err106 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const _errs139 = errors;let valid62 = true;const _errs140 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.optional === undefined) && ("optional")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data40.optional !== undefined){if(true !== data40.optional){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid10 = _errs140 === errors;errors = _errs139;if(vErrors !== null){if(_errs139){vErrors.length = _errs139;}else {vErrors = null;}}if(_valid10){const _errs142 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.constraints !== undefined){let data51 = data40.constraints;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.notEmpty === undefined){const err109 = {instancePath:instancePath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data51.notEmpty !== undefined){if(false !== data51.notEmpty){const err110 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(errors > 0){const emErrs13 = [];for(const err111 of vErrors){if(((((err111.keyword !== "errorMessage") && (!err111.emUsed)) && ((err111.instancePath === instancePath+"/" + i5+"/constraints/notEmpty") || ((err111.instancePath.indexOf(instancePath+"/" + i5+"/constraints/notEmpty") === 0) && (err111.instancePath[instancePath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err111.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err111.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err111);err111.emUsed = true;}}if(emErrs13.length){const err112 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const emErrs14 = [];for(const err113 of vErrors){if(!err113.emUsed){emErrs14.push(err113);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid10 = _errs142 === errors;valid62 = _valid10;}if(!valid62){const err114 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}const _errs146 = errors;let valid66 = true;const _errs147 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.feel === undefined) && ("feel")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data40.feel !== undefined){const _errs149 = errors;const _errs150 = errors;if(null !== data40.feel){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var valid68 = _errs150 === errors;if(valid68){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}}}}var _valid11 = _errs147 === errors;errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}if(_valid11){const _errs151 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type === undefined){const err118 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data40.type !== undefined){let data54 = data40.type;if(!((((data54 === "String") || (data54 === "Text")) || (data54 === "Number")) || (data54 === "Boolean"))){const err119 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs15 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/type") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err120.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs15.push(err120);err120.emUsed = true;}}if(emErrs15.length){const err121 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs16 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs16.push(err122);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid11 = _errs151 === errors;valid66 = _valid11;}if(!valid66){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs154 = errors;let valid70 = true;const _errs155 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.language === undefined) && ("language")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data40.language !== undefined){const _errs157 = errors;const _errs158 = errors;if(null !== data40.language){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid72 = _errs158 === errors;if(valid72){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}}}}var _valid12 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid12){const _errs159 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.type !== undefined){if(!(data40.type === "Text")){const err127 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(errors > 0){const emErrs17 = [];for(const err128 of vErrors){if(((((err128.keyword !== "errorMessage") && (!err128.emUsed)) && ((err128.instancePath === instancePath+"/" + i5+"/type") || ((err128.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err128.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err128.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err128.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs17.push(err128);err128.emUsed = true;}}if(emErrs17.length){const err129 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const emErrs18 = [];for(const err130 of vErrors){if(!err130.emUsed){emErrs18.push(err130);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid12 = _errs159 === errors;valid70 = _valid12;}if(!valid70){const err131 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const _errs162 = errors;let valid74 = true;const _errs163 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.value === undefined) && ("value")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}var _valid13 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid13){const _errs164 = errors;const _errs165 = errors;const _errs166 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.generatedValue === undefined) && ("generatedValue")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var valid75 = _errs166 === errors;if(valid75){const err134 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs165;if(vErrors !== null){if(_errs165){vErrors.length = _errs165;}else {vErrors = null;}}}var _valid13 = _errs164 === errors;valid74 = _valid13;}if(!valid74){const err135 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}const _errs168 = errors;let valid76 = true;const _errs169 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {if(data40.type !== undefined){let data57 = data40.type;if(!((data57 === "Boolean") || (data57 === "Dropdown"))){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}}var _valid14 = _errs169 === errors;errors = _errs168;if(vErrors !== null){if(_errs168){vErrors.length = _errs168;}else {vErrors = null;}}if(_valid14){const _errs171 = errors;const _errs172 = errors;const _errs173 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.generatedValue === undefined) && ("generatedValue")){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var valid78 = _errs173 === errors;if(valid78){const err139 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}var _valid14 = _errs171 === errors;valid76 = _valid14;}if(!valid76){const err140 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs175 = errors;let valid79 = true;const _errs176 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.feel === undefined) && ("feel")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {if(data40.type !== undefined){let data58 = data40.type;if(!((data58 === "String") || (data58 === "Text"))){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}}var _valid15 = _errs176 === errors;errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}if(_valid15){const _errs178 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.feel !== undefined){let data59 = data40.feel;if(!((data59 === "optional") || (data59 === "required"))){const err143 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}var _valid15 = _errs178 === errors;valid79 = _valid15;}if(!valid79){const err144 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs181 = errors;let valid82 = true;const _errs182 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.feel === undefined) && ("feel")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data40.feel !== undefined){if("required" !== data40.feel){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs182 === errors;errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}if(_valid16){const _errs184 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.value !== undefined){if(typeof data40.value !== "string"){const err147 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}var _valid16 = _errs184 === errors;valid82 = _valid16;}if(!valid82){const err148 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.binding === undefined){const err149 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data40.binding !== undefined){let data62 = data40.binding;const _errs190 = errors;let valid87 = true;const _errs191 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data62.type !== undefined){let data63 = data62.type;if(!(((((data63 === "property") || (data63 === "zeebe:property")) || (data63 === "zeebe:input")) || (data63 === "bpmn:Message#property")) || (data63 === "bpmn:Message#zeebe:subscription#property"))){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var _valid17 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid17){const _errs193 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.name === undefined){const err152 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.instancePath === instancePath+"/" + i5+"/binding") || ((err153.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err153.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err153.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err153);err153.emUsed = true;}}if(emErrs19.length){const err154 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data62 && data62.type) + " requires name"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs20 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs20.push(err155);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid17 = _errs193 === errors;valid87 = _valid17;}if(!valid87){const err156 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs195 = errors;let valid89 = true;const _errs196 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data62.type !== undefined){if("zeebe:output" !== data62.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid18 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid18){const _errs198 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.source === undefined){const err159 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err160 of vErrors){if(((((err160.keyword !== "errorMessage") && (!err160.emUsed)) && ((err160.instancePath === instancePath+"/" + i5+"/binding") || ((err160.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err160.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err160.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err160.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err160);err160.emUsed = true;}}if(emErrs21.length){const err161 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data62 && data62.type) + " requires source"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}const emErrs22 = [];for(const err162 of vErrors){if(!err162.emUsed){emErrs22.push(err162);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid18 = _errs198 === errors;valid89 = _valid18;}if(!valid89){const err163 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const _errs200 = errors;let valid91 = true;const _errs201 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data62.type !== undefined){if("zeebe:taskHeader" !== data62.type){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}}var _valid19 = _errs201 === errors;errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}if(_valid19){const _errs203 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.key === undefined){const err166 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err167 of vErrors){if(((((err167.keyword !== "errorMessage") && (!err167.emUsed)) && ((err167.instancePath === instancePath+"/" + i5+"/binding") || ((err167.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err167.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err167.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err167.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err167);err167.emUsed = true;}}if(emErrs23.length){const err168 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data62 && data62.type) + " requires key"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const emErrs24 = [];for(const err169 of vErrors){if(!err169.emUsed){emErrs24.push(err169);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid19 = _errs203 === errors;valid91 = _valid19;}if(!valid91){const err170 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}const _errs205 = errors;let valid93 = true;const _errs206 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}else {if(data62.type !== undefined){if("zeebe:taskDefinition" !== data62.type){const err172 = {};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}}var _valid20 = _errs206 === errors;errors = _errs205;if(vErrors !== null){if(_errs205){vErrors.length = _errs205;}else {vErrors = null;}}if(_valid20){const _errs208 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.property === undefined){const err173 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data62.property !== undefined){let data67 = data62.property;if(!((data67 === "type") || (data67 === "retries"))){const err174 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}var _valid20 = _errs208 === errors;valid93 = _valid20;}if(!valid93){const err175 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}const _errs213 = errors;let valid96 = true;const _errs214 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {if(data62.type !== undefined){if("zeebe:calledElement" !== data62.type){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}}var _valid21 = _errs214 === errors;errors = _errs213;if(vErrors !== null){if(_errs213){vErrors.length = _errs213;}else {vErrors = null;}}if(_valid21){const _errs216 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.property === undefined){const err178 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if(data62.property !== undefined){if("processId" !== data62.property){const err179 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}var _valid21 = _errs216 === errors;valid96 = _valid21;}if(!valid96){const err180 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.type === undefined){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(data62.type !== undefined){let data70 = data62.type;if(typeof data70 !== "string"){const err182 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(!((((((((((data70 === "property") || (data70 === "zeebe:taskDefinition:type")) || (data70 === "zeebe:input")) || (data70 === "zeebe:output")) || (data70 === "zeebe:property")) || (data70 === "zeebe:taskHeader")) || (data70 === "bpmn:Message#property")) || (data70 === "bpmn:Message#zeebe:subscription#property")) || (data70 === "zeebe:taskDefinition")) || (data70 === "zeebe:calledElement"))){const err183 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(errors > 0){const emErrs25 = [];for(const err184 of vErrors){if(((((err184.keyword !== "errorMessage") && (!err184.emUsed)) && ((err184.instancePath === instancePath+"/" + i5+"/binding/type") || ((err184.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err184.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err184.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err184.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err184);err184.emUsed = true;}}if(emErrs25.length){const err185 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data70) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}const emErrs26 = [];for(const err186 of vErrors){if(!err186.emUsed){emErrs26.push(err186);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data62.name !== undefined){if(typeof data62.name !== "string"){const err187 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data62.source !== undefined){if(typeof data62.source !== "string"){const err188 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data62.key !== undefined){if(typeof data62.key !== "string"){const err189 = {instancePath:instancePath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data62.property !== undefined){if(typeof data62.property !== "string"){const err190 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data40.optional !== undefined){if(typeof data40.optional !== "boolean"){const err192 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data40.feel !== undefined){let data76 = data40.feel;if(typeof data76 !== "string"){const err193 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(!(((data76 === "optional") || (data76 === "required")) || (data76 === "static"))){const err194 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data40.language !== undefined){if(typeof data40.language !== "string"){const err195 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data40.generatedValue !== undefined){let data78 = data40.generatedValue;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if(data78.type === undefined){const err196 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data78.type !== undefined){if("uuid" !== data78.type){const err197 = {instancePath:instancePath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}else {const err198 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data40.tooltip !== undefined){if(typeof data40.tooltip !== "string"){const err199 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}else {const err200 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err201 of vErrors){if((((((err201.keyword !== "errorMessage") && (!err201.emUsed)) && (err201.instancePath === instancePath+"/" + i5)) && (err201.keyword in emErrors3)) && (err201.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err201.schemaPath.slice(15)))){emPropParams2 = obj0[err201.keyword];emParamsErrors2 = emErrors3[err201.keyword][err201.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err201);err201.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err202 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}const emErrs27 = [];for(const err203 of vErrors){if(!err203.emUsed){emErrs27.push(err203);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err204 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.instancePath === instancePath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.instancePath === instancePath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {instancePath:instancePath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {instancePath:instancePath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.instancePath === instancePath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.instancePath === instancePath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.instancePath === instancePath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data.properties !== undefined){let data19 = data.properties;if(Array.isArray(data19)){const _errs45 = errors;const len2 = data19.length;for(let i2=0; i2<len2; i2++){let data20 = data19[i2];const _errs46 = errors;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if((data20.binding === undefined) && ("binding")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data20.binding !== undefined){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data21.type !== undefined){if("bpmn:Message#property" !== data21.type){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs45;if(vErrors !== null){if(_errs45){vErrors.length = _errs45;}else {vErrors = null;}}}}}}}var _valid0 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err53 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.elementType !== undefined){let data23 = data.elementType;const _errs52 = errors;let valid20 = true;const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data24 = data23.value;if(!(((((data24 === "bpmn:StartEvent") || (data24 === "bpmn:IntermediateCatchEvent")) || (data24 === "bpmn:IntermediateThrowEvent")) || (data24 === "bpmn:BoundaryEvent")) || (data24 === "bpmn:EndEvent"))){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid1 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid1){const _errs55 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err55 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err57 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.value !== undefined){let data25 = data23.value;if(!(((((((data25 === "bpmn:ReceiveTask") || (data25 === "bpmn:SendTask")) || (data25 === "bpmn:StartEvent")) || (data25 === "bpmn:IntermediateCatchEvent")) || (data25 === "bpmn:IntermediateThrowEvent")) || (data25 === "bpmn:BoundaryEvent")) || (data25 === "bpmn:EndEvent"))){const err58 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err59 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs58 = errors;let valid23 = true;const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data.properties !== undefined){let data26 = data.properties;if(Array.isArray(data26)){const _errs61 = errors;const len3 = data26.length;for(let i3=0; i3<len3; i3++){let data27 = data26[i3];const _errs62 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data27.binding !== undefined){let data28 = data27.binding;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.type === undefined) && ("type")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data28.type !== undefined){if("bpmn:Message#zeebe:subscription#property" !== data28.type){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}}}}}var valid25 = _errs62 === errors;if(valid25){break;}}if(!valid25){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}}}}var _valid2 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid2){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err65 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data.elementType !== undefined){let data30 = data.elementType;const _errs68 = errors;let valid30 = true;const _errs69 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value !== undefined){let data31 = data30.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}var _valid3 = _errs69 === errors;errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}if(_valid3){const _errs71 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.eventDefinition === undefined){const err67 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err69 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data30.value !== undefined){let data32 = data30.value;if(!((((((data32 === "bpmn:ReceiveTask") || (data32 === "bpmn:StartEvent")) || (data32 === "bpmn:IntermediateCatchEvent")) || (data32 === "bpmn:IntermediateThrowEvent")) || (data32 === "bpmn:BoundaryEvent")) || (data32 === "bpmn:EndEvent"))){const err70 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}}var _valid2 = _errs65 === errors;valid23 = _valid2;}if(!valid23){const err71 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}const _errs74 = errors;let valid33 = true;const _errs75 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {if(data.properties !== undefined){let data33 = data.properties;if(Array.isArray(data33)){const _errs77 = errors;const len4 = data33.length;for(let i4=0; i4<len4; i4++){let data34 = data33[i4];const _errs78 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data35.type !== undefined){if("zeebe:calledElement" !== data35.type){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var valid35 = _errs78 === errors;if(valid35){break;}}if(!valid35){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}}}}}var _valid4 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}if(_valid4){const _errs81 = errors;const _errs82 = errors;let valid38 = false;const _errs83 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err77 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.elementType !== undefined){let data37 = data.elementType;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.value === undefined){const err78 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data37.value !== undefined){if("bpmn:CallActivity" !== data37.value){const err79 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}var _valid5 = _errs83 === errors;valid38 = valid38 || _valid5;if(!valid38){const _errs86 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err80 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err81 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}var _valid5 = _errs86 === errors;valid38 = valid38 || _valid5;}if(!valid38){const err82 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var _valid4 = _errs81 === errors;valid33 = _valid4;}if(!valid33){const err83 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.icon !== undefined){let data41 = data.icon;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.contents === undefined){const err84 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data41.contents !== undefined){let data42 = data41.contents;if(typeof data42 === "string"){if(!pattern4.test(data42)){const err85 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}else {const err86 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err87 of vErrors){if((((((err87.keyword !== "errorMessage") && (!err87.emUsed)) && (err87.instancePath === instancePath+"/icon/contents")) && (err87.keyword in emErrors6)) && (err87.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err87.schemaPath.slice(37)))){emErrors6[err87.keyword].push(err87);err87.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err88 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}const emErrs6 = [];for(const err89 of vErrors){if(!err89.emUsed){emErrs6.push(err89);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err90 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err91 of vErrors){if((((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && (err91.instancePath === instancePath+"/icon")) && (err91.keyword in emErrors7)) && (err91.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err91.schemaPath.slice(17)))){emPropParams3 = obj0[err91.keyword];emParamsErrors3 = emErrors7[err91.keyword][err91.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err91);err91.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err92 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}const emErrs7 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs7.push(err93);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data43 = data.elementType;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.eventDefinition !== undefined){if(!(data43.eventDefinition === "bpmn:MessageEventDefinition")){const err94 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}const _errs98 = errors;let valid47 = true;const _errs99 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.eventDefinition === undefined) && ("eventDefinition")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var _valid6 = _errs99 === errors;errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}if(_valid6){const _errs100 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.value === undefined){const err96 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data43.value !== undefined){let data45 = data43.value;if(!(((((data45 === "bpmn:StartEvent") || (data45 === "bpmn:IntermediateCatchEvent")) || (data45 === "bpmn:IntermediateThrowEvent")) || (data45 === "bpmn:BoundaryEvent")) || (data45 === "bpmn:EndEvent"))){const err97 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}var _valid6 = _errs100 === errors;valid47 = _valid6;}if(!valid47){const err98 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data.groups !== undefined){let data46 = data.groups;if(Array.isArray(data46)){const len5 = data46.length;for(let i5=0; i5<len5; i5++){let data47 = data46[i5];if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.tooltip !== undefined){if(typeof data47.tooltip !== "string"){const err99 = {instancePath:instancePath+"/groups/" + i5+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data47.openByDefault !== undefined){if(typeof data47.openByDefault !== "boolean"){const err100 = {instancePath:instancePath+"/groups/" + i5+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}}}}else {const err101 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
715
|
+
var hasRequiredStandaloneZeebeValidator;
|
716
|
+
|
717
|
+
function requireStandaloneZeebeValidator () {
|
718
|
+
if (hasRequiredStandaloneZeebeValidator) return standaloneZeebeValidator.exports;
|
719
|
+
hasRequiredStandaloneZeebeValidator = 1;
|
720
|
+
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}]}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"engines":{"$id":"#/engines","type":"object","description":"Defines the compatibility of this element template with different engines. Keys are engine names, values are semantic version ranges.","default":{},"examples":[{"camunda":"^8.5"}],"properties":{"camunda":{"$id":"#/engines/camunda","type":"string","description":"A semantic version range that denotes compatible Camunda versions.","default":""}}},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = requireEqual().default;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"type":"string"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"const":"processId"}},"required":["property"]}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","description":"Indicates whether the property can be a feel expression","enum":["optional","required","static"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!((((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean")) || (data45 === "Number"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!(((((((((data47 === "zeebe:input") || (data47 === "zeebe:output")) || (data47 === "zeebe:property")) || (data47 === "zeebe:taskHeader")) || (data47 === "zeebe:taskDefinition:type")) || (data47 === "bpmn:Message#property")) || (data47 === "bpmn:Message#zeebe:subscription#property")) || (data47 === "zeebe:taskDefinition")) || (data47 === "zeebe:calledElement"))){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data48 = data42.type;if(!((((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown")) || (data48 === "Boolean")) || (data48 === "Number"))){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err107 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const _errs147 = errors;let valid64 = true;const _errs148 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}var _valid11 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid11){const _errs150 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data50 = data42.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err110 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "zeebe:input") || (data51 === "zeebe:output")) || (data51 === "zeebe:property")) || (data51 === "zeebe:taskHeader"))){const err111 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs11 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.instancePath === instancePath+"/" + i5+"/binding/type") || ((err112.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err112.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err112.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err112.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err112);err112.emUsed = true;}}if(emErrs11.length){const err113 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data51) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs12 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs12.push(err114);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid11 = _errs150 === errors;valid64 = _valid11;}if(!valid64){const err115 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs154 = errors;let valid68 = true;const _errs155 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}}var _valid12 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid12){const _errs157 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.constraints !== undefined){let data53 = data42.constraints;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.notEmpty === undefined){const err118 = {instancePath:instancePath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data53.notEmpty !== undefined){if(false !== data53.notEmpty){const err119 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs13 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/constraints/notEmpty") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/constraints/notEmpty") === 0) && (err120.instancePath[instancePath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err120);err120.emUsed = true;}}if(emErrs13.length){const err121 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs14 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs14.push(err122);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid12 = _errs157 === errors;valid68 = _valid12;}if(!valid68){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data42.feel !== undefined){const _errs164 = errors;const _errs165 = errors;if(null !== data42.feel){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid74 = _errs165 === errors;if(valid74){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}}}var _valid13 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid13){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err127 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.type !== undefined){let data56 = data42.type;if(!((((data56 === "String") || (data56 === "Text")) || (data56 === "Number")) || (data56 === "Boolean"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs15 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs15.push(err129);err129.emUsed = true;}}if(emErrs15.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs16 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs16.push(err131);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid13 = _errs166 === errors;valid72 = _valid13;}if(!valid72){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs169 = errors;let valid76 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.language === undefined) && ("language")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data42.language !== undefined){const _errs172 = errors;const _errs173 = errors;if(null !== data42.language){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid78 = _errs173 === errors;if(valid78){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}}}}var _valid14 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid14){const _errs174 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Text")){const err136 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(errors > 0){const emErrs17 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/type") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err137.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err137.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs17.push(err137);err137.emUsed = true;}}if(emErrs17.length){const err138 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs18 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs18.push(err139);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid14 = _errs174 === errors;valid76 = _valid14;}if(!valid76){const err140 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs177 = errors;let valid80 = true;const _errs178 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.value === undefined) && ("value")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs178 === errors;errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}if(_valid15){const _errs179 = errors;const _errs180 = errors;const _errs181 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid81 = _errs181 === errors;if(valid81){const err143 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}}var _valid15 = _errs179 === errors;valid80 = _valid15;}if(!valid80){const err144 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs183 = errors;let valid82 = true;const _errs184 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data42.type !== undefined){let data59 = data42.type;if(!((data59 === "Boolean") || (data59 === "Dropdown"))){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid16){const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid84 = _errs188 === errors;if(valid84){const err148 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}var _valid16 = _errs186 === errors;valid82 = _valid16;}if(!valid82){const err149 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const _errs190 = errors;let valid85 = true;const _errs191 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data42.type !== undefined){let data60 = data42.type;if(!((data60 === "String") || (data60 === "Text"))){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var _valid17 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid17){const _errs193 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel !== undefined){let data61 = data42.feel;if(!((data61 === "optional") || (data61 === "required"))){const err152 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid17 = _errs193 === errors;valid85 = _valid17;}if(!valid85){const err153 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data42.feel !== undefined){if("required" !== data42.feel){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){if(typeof data42.value !== "string"){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err157 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err158 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data42.binding !== undefined){let data64 = data42.binding;const _errs205 = errors;let valid93 = true;const _errs206 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data64.type !== undefined){let data65 = data64.type;if(!(((((data65 === "property") || (data65 === "zeebe:property")) || (data65 === "zeebe:input")) || (data65 === "bpmn:Message#property")) || (data65 === "bpmn:Message#zeebe:subscription#property"))){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}var _valid19 = _errs206 === errors;errors = _errs205;if(vErrors !== null){if(_errs205){vErrors.length = _errs205;}else {vErrors = null;}}if(_valid19){const _errs208 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.name === undefined){const err161 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err162 of vErrors){if(((((err162.keyword !== "errorMessage") && (!err162.emUsed)) && ((err162.instancePath === instancePath+"/" + i5+"/binding") || ((err162.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err162.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err162.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err162.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err162);err162.emUsed = true;}}if(emErrs19.length){const err163 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data64 && data64.type) + " requires name"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const emErrs20 = [];for(const err164 of vErrors){if(!err164.emUsed){emErrs20.push(err164);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid19 = _errs208 === errors;valid93 = _valid19;}if(!valid93){const err165 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const _errs210 = errors;let valid95 = true;const _errs211 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {if(data64.type !== undefined){if("zeebe:output" !== data64.type){const err167 = {};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}}var _valid20 = _errs211 === errors;errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}if(_valid20){const _errs213 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.source === undefined){const err168 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err169 of vErrors){if(((((err169.keyword !== "errorMessage") && (!err169.emUsed)) && ((err169.instancePath === instancePath+"/" + i5+"/binding") || ((err169.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err169.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err169.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err169.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err169);err169.emUsed = true;}}if(emErrs21.length){const err170 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data64 && data64.type) + " requires source"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}const emErrs22 = [];for(const err171 of vErrors){if(!err171.emUsed){emErrs22.push(err171);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid20 = _errs213 === errors;valid95 = _valid20;}if(!valid95){const err172 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}const _errs215 = errors;let valid97 = true;const _errs216 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err173 = {};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}else {if(data64.type !== undefined){if("zeebe:taskHeader" !== data64.type){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}}var _valid21 = _errs216 === errors;errors = _errs215;if(vErrors !== null){if(_errs215){vErrors.length = _errs215;}else {vErrors = null;}}if(_valid21){const _errs218 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.key === undefined){const err175 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err176 of vErrors){if(((((err176.keyword !== "errorMessage") && (!err176.emUsed)) && ((err176.instancePath === instancePath+"/" + i5+"/binding") || ((err176.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err176.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err176.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err176.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err176);err176.emUsed = true;}}if(emErrs23.length){const err177 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data64 && data64.type) + " requires key"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}const emErrs24 = [];for(const err178 of vErrors){if(!err178.emUsed){emErrs24.push(err178);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid21 = _errs218 === errors;valid97 = _valid21;}if(!valid97){const err179 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}const _errs220 = errors;let valid99 = true;const _errs221 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}else {if(data64.type !== undefined){if("zeebe:taskDefinition" !== data64.type){const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}}var _valid22 = _errs221 === errors;errors = _errs220;if(vErrors !== null){if(_errs220){vErrors.length = _errs220;}else {vErrors = null;}}if(_valid22){const _errs223 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.property === undefined){const err182 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data64.property !== undefined){let data69 = data64.property;if(!((data69 === "type") || (data69 === "retries"))){const err183 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}var _valid22 = _errs223 === errors;valid99 = _valid22;}if(!valid99){const err184 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const _errs228 = errors;let valid102 = true;const _errs229 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data64.type !== undefined){if("zeebe:calledElement" !== data64.type){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}}}var _valid23 = _errs229 === errors;errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}if(_valid23){const _errs231 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.property === undefined){const err187 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data64.property !== undefined){if("processId" !== data64.property){const err188 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}var _valid23 = _errs231 === errors;valid102 = _valid23;}if(!valid102){const err189 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.type === undefined){const err190 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data64.type !== undefined){let data72 = data64.type;if(typeof data72 !== "string"){const err191 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(!((((((((((data72 === "property") || (data72 === "zeebe:taskDefinition:type")) || (data72 === "zeebe:input")) || (data72 === "zeebe:output")) || (data72 === "zeebe:property")) || (data72 === "zeebe:taskHeader")) || (data72 === "bpmn:Message#property")) || (data72 === "bpmn:Message#zeebe:subscription#property")) || (data72 === "zeebe:taskDefinition")) || (data72 === "zeebe:calledElement"))){const err192 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(errors > 0){const emErrs25 = [];for(const err193 of vErrors){if(((((err193.keyword !== "errorMessage") && (!err193.emUsed)) && ((err193.instancePath === instancePath+"/" + i5+"/binding/type") || ((err193.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err193.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err193.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err193.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err193);err193.emUsed = true;}}if(emErrs25.length){const err194 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data72) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}const emErrs26 = [];for(const err195 of vErrors){if(!err195.emUsed){emErrs26.push(err195);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data64.name !== undefined){if(typeof data64.name !== "string"){const err196 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data64.source !== undefined){if(typeof data64.source !== "string"){const err197 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data64.key !== undefined){if(typeof data64.key !== "string"){const err198 = {instancePath:instancePath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data64.property !== undefined){if(typeof data64.property !== "string"){const err199 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}else {const err200 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err201 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data42.feel !== undefined){let data78 = data42.feel;if(typeof data78 !== "string"){const err202 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(!(((data78 === "optional") || (data78 === "required")) || (data78 === "static"))){const err203 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err204 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data42.generatedValue !== undefined){let data80 = data42.generatedValue;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.type === undefined){const err205 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data80.type !== undefined){if("uuid" !== data80.type){const err206 = {instancePath:instancePath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}else {const err207 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err208 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}}else {const err209 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err210 of vErrors){if((((((err210.keyword !== "errorMessage") && (!err210.emUsed)) && (err210.instancePath === instancePath+"/" + i5)) && (err210.keyword in emErrors3)) && (err210.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err210.schemaPath.slice(15)))){emPropParams2 = obj0[err210.keyword];emParamsErrors2 = emErrors3[err210.keyword][err210.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err210);err210.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err211 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}const emErrs27 = [];for(const err212 of vErrors){if(!err212.emUsed){emErrs27.push(err212);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err213 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.instancePath === instancePath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.instancePath === instancePath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {instancePath:instancePath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {instancePath:instancePath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.instancePath === instancePath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.instancePath === instancePath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.instancePath === instancePath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data.properties !== undefined){let data19 = data.properties;if(Array.isArray(data19)){const _errs45 = errors;const len2 = data19.length;for(let i2=0; i2<len2; i2++){let data20 = data19[i2];const _errs46 = errors;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if((data20.binding === undefined) && ("binding")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data20.binding !== undefined){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data21.type !== undefined){if("bpmn:Message#property" !== data21.type){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs45;if(vErrors !== null){if(_errs45){vErrors.length = _errs45;}else {vErrors = null;}}}}}}}var _valid0 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err53 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.elementType !== undefined){let data23 = data.elementType;const _errs52 = errors;let valid20 = true;const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data24 = data23.value;if(!(((((data24 === "bpmn:StartEvent") || (data24 === "bpmn:IntermediateCatchEvent")) || (data24 === "bpmn:IntermediateThrowEvent")) || (data24 === "bpmn:BoundaryEvent")) || (data24 === "bpmn:EndEvent"))){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid1 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid1){const _errs55 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err55 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err57 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.value !== undefined){let data25 = data23.value;if(!(((((((data25 === "bpmn:ReceiveTask") || (data25 === "bpmn:SendTask")) || (data25 === "bpmn:StartEvent")) || (data25 === "bpmn:IntermediateCatchEvent")) || (data25 === "bpmn:IntermediateThrowEvent")) || (data25 === "bpmn:BoundaryEvent")) || (data25 === "bpmn:EndEvent"))){const err58 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err59 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs58 = errors;let valid23 = true;const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data.properties !== undefined){let data26 = data.properties;if(Array.isArray(data26)){const _errs61 = errors;const len3 = data26.length;for(let i3=0; i3<len3; i3++){let data27 = data26[i3];const _errs62 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data27.binding !== undefined){let data28 = data27.binding;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.type === undefined) && ("type")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data28.type !== undefined){if("bpmn:Message#zeebe:subscription#property" !== data28.type){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}}}}}var valid25 = _errs62 === errors;if(valid25){break;}}if(!valid25){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}}}}var _valid2 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid2){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err65 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data.elementType !== undefined){let data30 = data.elementType;const _errs68 = errors;let valid30 = true;const _errs69 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value !== undefined){let data31 = data30.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}var _valid3 = _errs69 === errors;errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}if(_valid3){const _errs71 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.eventDefinition === undefined){const err67 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err69 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data30.value !== undefined){let data32 = data30.value;if(!((((((data32 === "bpmn:ReceiveTask") || (data32 === "bpmn:StartEvent")) || (data32 === "bpmn:IntermediateCatchEvent")) || (data32 === "bpmn:IntermediateThrowEvent")) || (data32 === "bpmn:BoundaryEvent")) || (data32 === "bpmn:EndEvent"))){const err70 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}}var _valid2 = _errs65 === errors;valid23 = _valid2;}if(!valid23){const err71 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}const _errs74 = errors;let valid33 = true;const _errs75 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {if(data.properties !== undefined){let data33 = data.properties;if(Array.isArray(data33)){const _errs77 = errors;const len4 = data33.length;for(let i4=0; i4<len4; i4++){let data34 = data33[i4];const _errs78 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data35.type !== undefined){if("zeebe:calledElement" !== data35.type){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var valid35 = _errs78 === errors;if(valid35){break;}}if(!valid35){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}}}}}var _valid4 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}if(_valid4){const _errs81 = errors;const _errs82 = errors;let valid38 = false;const _errs83 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err77 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.elementType !== undefined){let data37 = data.elementType;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.value === undefined){const err78 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data37.value !== undefined){if("bpmn:CallActivity" !== data37.value){const err79 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}var _valid5 = _errs83 === errors;valid38 = valid38 || _valid5;if(!valid38){const _errs86 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err80 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err81 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}var _valid5 = _errs86 === errors;valid38 = valid38 || _valid5;}if(!valid38){const err82 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var _valid4 = _errs81 === errors;valid33 = _valid4;}if(!valid33){const err83 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data41 = data.engines;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.camunda !== undefined){if(typeof data41.camunda !== "string"){const err84 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data.icon !== undefined){let data43 = data.icon;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.contents === undefined){const err86 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data43.contents !== undefined){let data44 = data43.contents;if(typeof data44 === "string"){if(!pattern4.test(data44)){const err87 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err89 of vErrors){if((((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && (err89.instancePath === instancePath+"/icon/contents")) && (err89.keyword in emErrors6)) && (err89.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err89.schemaPath.slice(37)))){emErrors6[err89.keyword].push(err89);err89.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err90 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}const emErrs6 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs6.push(err91);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err92 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err93 of vErrors){if((((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && (err93.instancePath === instancePath+"/icon")) && (err93.keyword in emErrors7)) && (err93.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err93.schemaPath.slice(17)))){emPropParams3 = obj0[err93.keyword];emParamsErrors3 = emErrors7[err93.keyword][err93.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err93);err93.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err94 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}const emErrs7 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs7.push(err95);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data45 = data.elementType;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.eventDefinition !== undefined){if(!(data45.eventDefinition === "bpmn:MessageEventDefinition")){const err96 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}const _errs102 = errors;let valid48 = true;const _errs103 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if((data45.eventDefinition === undefined) && ("eventDefinition")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var _valid6 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid6){const _errs104 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.value === undefined){const err98 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data45.value !== undefined){let data47 = data45.value;if(!(((((data47 === "bpmn:StartEvent") || (data47 === "bpmn:IntermediateCatchEvent")) || (data47 === "bpmn:IntermediateThrowEvent")) || (data47 === "bpmn:BoundaryEvent")) || (data47 === "bpmn:EndEvent"))){const err99 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}var _valid6 = _errs104 === errors;valid48 = _valid6;}if(!valid48){const err100 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data.groups !== undefined){let data48 = data.groups;if(Array.isArray(data48)){const len5 = data48.length;for(let i5=0; i5<len5; i5++){let data49 = data48[i5];if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.tooltip !== undefined){if(typeof data49.tooltip !== "string"){const err101 = {instancePath:instancePath+"/groups/" + i5+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data49.openByDefault !== undefined){if(typeof data49.openByDefault !== "boolean"){const err102 = {instancePath:instancePath+"/groups/" + i5+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}else {const err103 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
721
|
+
return standaloneZeebeValidator.exports;
|
722
|
+
}
|
681
723
|
|
682
|
-
var standaloneZeebeValidatorExports =
|
724
|
+
var standaloneZeebeValidatorExports = requireStandaloneZeebeValidator();
|
683
725
|
var validateTemplate = /*@__PURE__*/getDefaultExportFromCjs(standaloneZeebeValidatorExports);
|
684
726
|
|
685
727
|
function getZeebeSchemaPackage() {
|