@bpmn-io/element-templates-validator 0.1.0 → 0.5.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.js CHANGED
@@ -4,6 +4,61 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var minDash = require('min-dash');
6
6
 
7
+ var name$1 = "@camunda/element-templates-json-schema";
8
+ var version$1 = "0.7.0";
9
+
10
+ // do not edit .js files directly - edit src/index.jst
11
+
12
+
13
+
14
+ var fastDeepEqual = function equal(a, b) {
15
+ if (a === b) return true;
16
+
17
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
18
+ if (a.constructor !== b.constructor) return false;
19
+
20
+ var length, i, keys;
21
+ if (Array.isArray(a)) {
22
+ length = a.length;
23
+ if (length != b.length) return false;
24
+ for (i = length; i-- !== 0;)
25
+ if (!equal(a[i], b[i])) return false;
26
+ return true;
27
+ }
28
+
29
+
30
+
31
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
32
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
33
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
34
+
35
+ keys = Object.keys(a);
36
+ length = keys.length;
37
+ if (length !== Object.keys(b).length) return false;
38
+
39
+ for (i = length; i-- !== 0;)
40
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
41
+
42
+ for (i = length; i-- !== 0;) {
43
+ var key = keys[i];
44
+
45
+ if (!equal(a[key], b[key])) return false;
46
+ }
47
+
48
+ return true;
49
+ }
50
+
51
+ // true if both NaN, false otherwise
52
+ return a!==a && b!==b;
53
+ };
54
+
55
+ // do NOT remove this file - it would break pre-compiled schemas
56
+ // https://github.com/ajv-validator/ajv/issues/889
57
+ var equal = fastDeepEqual;
58
+
59
+ var standaloneValidator = validate14$1;var _default$1 = validate14$1;const schema17$1 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","title":"element template name","description":"The name of the element template"},"id":{"$id":"#/id","type":"string","title":"element template id","description":"The identifier of the element template"},"description":{"$id":"#/description","type":"string","title":"element template description","description":"The description of the element template"},"version":{"$id":"#/version","type":"number","title":"element template version","description":"The version of the element template"},"isDefault":{"$id":"#/isDefault","type":"boolean","title":"element template is default","description":"Indicates whether the element template is a default template"},"appliesTo":{"$id":"#/appliesTo","type":"array","title":"element template applies to","description":"The definition for which element types the element template can be applied","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^(.*?:)","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"metadata":{"$id":"#/metadata","type":"object","title":"element template metadata","description":"Some metadata for further configuration"},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","title":"element template entries visible","description":"Select whether non-template entries are visible in the properties panel"},"groups":{"$id":"#/groups","type":"array","title":"element template properties groups","description":"The custom defined groups of the element template","default":[],"items":{"$id":"#/groups/group","type":"object","title":"element template group","description":"A custom defined group for the element template","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","title":"group id","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","title":"group label","description":"The label of the custom group"}}}}},"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","title":"element template scope","description":"Special scoped bindings that allow you to configure nested elements","items":{"$id":"#/scopes/item","type":"object","title":"element template scope item","description":"Scoped binding to configure nested elements","properties":{"type":{"$id":"#scopes/item/type","type":"string","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}},"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}]}}}};const schema18$1 = {"allOf":[{"type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"type":"object","title":"element template property","description":"A property defined for the element template","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"title":"property value","description":"The value of the control field for the property"},"description":{"$id":"#/properties/property/description","type":"string","title":"property description","description":"The description of the control field"},"label":{"$id":"#/properties/property/label","type":"string","title":"property label","description":"The label of the control field for the property"},"type":{"$id":"#/properties/property/type","type":"string","title":"property type","description":"The type of the control field"},"editable":{"$id":"#/properties/property/editable","type":"boolean","title":"property editable","description":"Indicates whether the property is editable or not"},"choices":{"$id":"#/properties/property/choices","type":"array","title":"property choices","description":"The choices for dropdown properties","items":{"$id":"#/properties/property/choices/item","type":"object","properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","title":"choice name","description":"The name of the choice"},"value":{"$id":"#/properties/property/choices/item/value","type":"string","title":"choice value","description":"The value of the choice"}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","title":"property constraints","description":"The validation constraints","properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","title":"property constraints not empty","description":"The control field must not be empty"},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","title":"property constraints min length","description":"The minimal length for the control field value"},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","title":"property constraints max length","description":"The maximal length for the control field value"},"pattern":{"$id":"#/properties/property/constraints/pattern","title":"property constraints pattern","description":"A regular expression pattern for the constraints","oneOf":[{"type":"object","properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","title":"property constraints pattern value","description":"The regular expression of the pattern constraint"},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","title":"property constraints pattern message","description":"The validation message of the pattern constraint"}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","title":"property group","description":"The custom group of the control field for the property"}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"type":"object","title":"element template property","description":"A property defined for the element template","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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","title":"property binding","description":"A binding to a BPMN 2.0 property","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"}}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","title":"property binding type","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"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 }","description":"The type of the property binding"},"name":{"$id":"#/properties/property/binding/name","type":"string","title":"property binding name","description":"The name of binding xml property"},"event":{"$id":"#/properties/property/binding/event","type":"string","title":"property binding event","description":"The event type of an execution listener binding"},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","title":"property binding script format","description":"The format of a script property binding (camunda:outputParameter, camunda:inputParameter)"},"source":{"$id":"#/properties/property/binding/source","type":"string","title":"property binding source","description":"The source value of a property binding (camunda:outputParameter, camunda:out)"},"target":{"$id":"#/properties/property/binding/target","type":"string","title":"property binding target","description":"The target value to be mapped to (camunda:in)"},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","title":"property binding expression","description":"True indicates that the control field value is an expression (camunda:in, camunda:field)"},"variables":{"$id":"#/properties/property/binding/variables","type":"string","title":"property binding variables","enum":["all","local"],"description":"Either all or local indicating the variable mapping (camunda:in)"},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","title":"property binding source expression","description":"The string containing the expression for the source attribute (camunda:out)"}}}}}}]};const schema19 = {"type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"type":"object","title":"element template property","description":"A property defined for the element template","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"title":"property value","description":"The value of the control field for the property"},"description":{"$id":"#/properties/property/description","type":"string","title":"property description","description":"The description of the control field"},"label":{"$id":"#/properties/property/label","type":"string","title":"property label","description":"The label of the control field for the property"},"type":{"$id":"#/properties/property/type","type":"string","title":"property type","description":"The type of the control field"},"editable":{"$id":"#/properties/property/editable","type":"boolean","title":"property editable","description":"Indicates whether the property is editable or not"},"choices":{"$id":"#/properties/property/choices","type":"array","title":"property choices","description":"The choices for dropdown properties","items":{"$id":"#/properties/property/choices/item","type":"object","properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","title":"choice name","description":"The name of the choice"},"value":{"$id":"#/properties/property/choices/item/value","type":"string","title":"choice value","description":"The value of the choice"}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","title":"property constraints","description":"The validation constraints","properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","title":"property constraints not empty","description":"The control field must not be empty"},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","title":"property constraints min length","description":"The minimal length for the control field value"},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","title":"property constraints max length","description":"The maximal length for the control field value"},"pattern":{"$id":"#/properties/property/constraints/pattern","title":"property constraints pattern","description":"A regular expression pattern for the constraints","oneOf":[{"type":"object","properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","title":"property constraints pattern value","description":"The regular expression of the pattern constraint"},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","title":"property constraints pattern message","description":"The validation message of the pattern constraint"}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","title":"property group","description":"The custom group of the control field for the property"}}}};const schema20 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"type":"object","title":"element template property","description":"A property defined for the element template","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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","title":"property binding","description":"A binding to a BPMN 2.0 property","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"}}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","title":"property binding type","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"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 }","description":"The type of the property binding"},"name":{"$id":"#/properties/property/binding/name","type":"string","title":"property binding name","description":"The name of binding xml property"},"event":{"$id":"#/properties/property/binding/event","type":"string","title":"property binding event","description":"The event type of an execution listener binding"},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","title":"property binding script format","description":"The format of a script property binding (camunda:outputParameter, camunda:inputParameter)"},"source":{"$id":"#/properties/property/binding/source","type":"string","title":"property binding source","description":"The source value of a property binding (camunda:outputParameter, camunda:out)"},"target":{"$id":"#/properties/property/binding/target","type":"string","title":"property binding target","description":"The target value to be mapped to (camunda:in)"},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","title":"property binding expression","description":"True indicates that the control field value is an expression (camunda:in, camunda:field)"},"variables":{"$id":"#/properties/property/binding/variables","type":"string","title":"property binding variables","enum":["all","local"],"description":"Either all or local indicating the variable mapping (camunda:in)"},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","title":"property binding source expression","description":"The string containing the expression for the source attribute (camunda:out)"}}}}}};const pattern0$1 = new RegExp("^(.*?:)", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate15$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should 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 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0$1.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^(.*?:)"},message:"should match pattern \""+"^(.*?:)"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17$1.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.metadata !== undefined){let data7 = data.metadata;if(!(data7 && typeof data7 == "object" && !Array.isArray(data7))){const err15 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err16 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.groups !== undefined){let data9 = data.groups;if(Array.isArray(data9)){const len1 = data9.length;for(let i1=0; i1<len1; i1++){let data10 = data9[i1];if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.id === undefined){const err17 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data10.label === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data10.id !== undefined){if(typeof data10.id !== "string"){const err19 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.label !== undefined){if(typeof data10.label !== "string"){const err20 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"required":{"id":[],"label":[]}};const templates1 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/groups/" + i1)) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(33)))){emPropParams0 = obj0$1[err22.keyword];emParamsErrors0 = emErrors1[err22.keyword][err22.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err22);err22.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err23 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.groups.items.errorMessage[key1][keyProp0]};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 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}if(errors > 0){const emErrors2 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath)) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(9)))){emPropParams1 = obj0$1[err26.keyword];emParamsErrors1 = emErrors2[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err27 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].errorMessage[key2][keyProp1]};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 && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data13 = data.properties;if(Array.isArray(data13)){const len2 = data13.length;for(let i2=0; i2<len2; i2++){let data14 = data13[i2];const _errs35 = errors;let valid13 = true;const _errs36 = errors;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if((data14.type === undefined) && ("type")){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data14.type !== undefined){if(!equal(data14.type, "Dropdown")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}}var _valid0 = _errs36 === errors;errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}if(_valid0){const _errs38 = errors;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.choices === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(errors > 0){const emErrs3 = [];for(const err32 of vErrors){if(((((err32.keyword !== "errorMessage") && (!err32.emUsed)) && ((err32.dataPath === dataPath+"/properties/" + i2) || ((err32.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err32.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err32.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err32.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs3.push(err32);err32.emUsed = true;}}if(emErrs3.length){const err33 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs3},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}const emErrs4 = [];for(const err34 of vErrors){if(!err34.emUsed){emErrs4.push(err34);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid0 = _errs38 === errors;valid13 = _valid0;}if(!valid13){const err35 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.value !== undefined){let data16 = data14.value;if((typeof data16 !== "string") && (typeof data16 !== "boolean")){const err36 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18$1.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data14.description !== undefined){if(typeof data14.description !== "string"){const err37 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data14.label !== undefined){if(typeof data14.label !== "string"){const err38 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data14.type !== undefined){if(typeof data14.type !== "string"){const err39 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data14.editable !== undefined){if(typeof data14.editable !== "boolean"){const err40 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data14.choices !== undefined){let data21 = data14.choices;if(Array.isArray(data21)){const len3 = data21.length;for(let i3=0; i3<len3; i3++){let data22 = data21[i3];if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.value === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data22.name === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data22.name !== undefined){if(typeof data22.name !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.value !== undefined){if(typeof data22.value !== "string"){const err44 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(errors > 0){const emErrs5 = [];for(const err46 of vErrors){if(((((err46.keyword !== "errorMessage") && (!err46.emUsed)) && ((err46.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err46.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err46.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err46.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err46.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs5.push(err46);err46.emUsed = true;}}if(emErrs5.length){const err47 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs5},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const emErrs6 = [];for(const err48 of vErrors){if(!err48.emUsed){emErrs6.push(err48);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data14.constraints !== undefined){let data25 = data14.constraints;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.notEmpty !== undefined){if(typeof data25.notEmpty !== "boolean"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.minLength !== undefined){if(!(typeof data25.minLength == "number")){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data25.maxLength !== undefined){if(!(typeof data25.maxLength == "number")){const err52 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data25.pattern !== undefined){let data29 = data25.pattern;const _errs66 = errors;let valid20 = false;let passing0 = null;const _errs67 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err53 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data29.message !== undefined){if(typeof data29.message !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid1 = _errs67 === errors;if(_valid1){valid20 = true;passing0 = 0;}const _errs73 = errors;if(typeof data29 !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid1 = _errs73 === errors;if(_valid1 && valid20){valid20 = false;passing0 = [passing0, 1];}else {if(_valid1){valid20 = true;passing0 = 1;}}if(!valid20){const err57 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}}}}else {const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data14.group !== undefined){if(typeof data14.group !== "string"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(Array.isArray(data13)){const len4 = data13.length;for(let i4=0; i4<len4; i4++){let data33 = data13[i4];const _errs82 = errors;let valid25 = true;const _errs83 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data33.binding !== undefined){let data34 = data33.binding;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data34.type !== undefined){if(!equal(data34.type, "property")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid2 = _errs83 === errors;errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}if(_valid2){const _errs86 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data36 = data33.type;if(!(((((data36 === "String") || (data36 === "Text")) || (data36 === "Hidden")) || (data36 === "Dropdown")) || (data36 === "Boolean"))){const err65 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs7 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.dataPath === dataPath+"/properties/" + i4+"/type") || ((err66.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err66.dataPath[dataPath+"/properties/" + i4+"/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] === "/")){emErrs7.push(err66);err66.emUsed = true;}}if(emErrs7.length){const err67 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data36) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs8 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs8.push(err68);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid2 = _errs86 === errors;valid25 = _valid2;}if(!valid25){const err69 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs89 = errors;let valid29 = true;const _errs90 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data33.binding !== undefined){let data37 = data33.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "camunda:executionListener")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid3 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid3){const _errs93 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){if(!(data33.type === "Hidden")){const err73 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs9 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.dataPath === dataPath+"/properties/" + i4+"/type") || ((err74.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err74.dataPath[dataPath+"/properties/" + i4+"/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] === "/")){emErrs9.push(err74);err74.emUsed = true;}}if(emErrs9.length){const err75 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data33 && data33.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs10 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs10.push(err76);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid3 = _errs93 === errors;valid29 = _valid3;}if(!valid29){const err77 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const _errs96 = errors;let valid33 = true;const _errs97 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data33.binding !== undefined){let data40 = data33.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((((data41 === "camunda:property") || (data41 === "camunda:outputParameter")) || (data41 === "camunda:in")) || (data41 === "camunda:in:businessKey")) || (data41 === "camunda:out")) || (data41 === "camunda:errorEventDefinition"))){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}}}}}var _valid4 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid4){const _errs100 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data42 = data33.type;if(!(((data42 === "String") || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err81 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if(errors > 0){const emErrs11 = [];for(const err82 of vErrors){if(((((err82.keyword !== "errorMessage") && (!err82.emUsed)) && ((err82.dataPath === dataPath+"/properties/" + i4+"/type") || ((err82.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err82.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err82.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err82.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs11.push(err82);err82.emUsed = true;}}if(emErrs11.length){const err83 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data33 && data33.binding && data33.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}const emErrs12 = [];for(const err84 of vErrors){if(!err84.emUsed){emErrs12.push(err84);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid4 = _errs100 === errors;valid33 = _valid4;}if(!valid33){const err85 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs103 = errors;let valid37 = true;const _errs104 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data33.binding !== undefined){let data43 = data33.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data43.type !== undefined){let data44 = data43.type;if(!((data44 === "camunda:inputParameter") || (data44 === "camunda:field"))){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}}}var _valid5 = _errs104 === errors;errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}if(_valid5){const _errs107 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data45 = data33.type;if(!((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown"))){const err89 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(errors > 0){const emErrs13 = [];for(const err90 of vErrors){if(((((err90.keyword !== "errorMessage") && (!err90.emUsed)) && ((err90.dataPath === dataPath+"/properties/" + i4+"/type") || ((err90.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err90.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err90.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err90.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs13.push(err90);err90.emUsed = true;}}if(emErrs13.length){const err91 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data45) + " for binding type " + JSON.stringify(data33 && data33.binding && data33.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}const emErrs14 = [];for(const err92 of vErrors){if(!err92.emUsed){emErrs14.push(err92);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid5 = _errs107 === errors;valid37 = _valid5;}if(!valid37){const err93 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.binding === undefined){const err94 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(data33.binding !== undefined){let data46 = data33.binding;const _errs112 = errors;let valid43 = true;const _errs113 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((((data47 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:field"))){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}var _valid6 = _errs113 === errors;errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}if(_valid6){const _errs115 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.name === undefined){const err97 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err98 of vErrors){if(((((err98.keyword !== "errorMessage") && (!err98.emUsed)) && ((err98.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err98.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err98.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err98.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err98.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err98);err98.emUsed = true;}}if(emErrs15.length){const err99 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires name"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const emErrs16 = [];for(const err100 of vErrors){if(!err100.emUsed){emErrs16.push(err100);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid6 = _errs115 === errors;valid43 = _valid6;}if(!valid43){const err101 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs117 = errors;let valid45 = true;const _errs118 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:outputParameter")){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid7 = _errs118 === errors;errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}if(_valid7){const _errs120 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.source === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err105.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err105.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err105.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err105);err105.emUsed = true;}}if(emErrs17.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires source"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs18 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs18.push(err107);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid7 = _errs120 === errors;valid45 = _valid7;}if(!valid45){const err108 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const _errs122 = errors;let valid47 = true;const _errs123 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:in")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}}var _valid8 = _errs123 === errors;errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}if(_valid8){const _errs125 = errors;const _errs126 = errors;let valid49 = false;const _errs127 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err111 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var _valid9 = _errs127 === errors;valid49 = valid49 || _valid9;if(!valid49){const _errs128 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.target === undefined){const err112 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var _valid9 = _errs128 === errors;valid49 = valid49 || _valid9;}if(!valid49){const err113 = {keyword:"anyOf",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err114.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err114.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err114);err114.emUsed = true;}}if(emErrs19.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs20 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs20.push(err116);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid8 = _errs125 === errors;valid47 = _valid8;}if(!valid47){const err117 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs130 = errors;let valid50 = true;const _errs131 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:out")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid10 = _errs131 === errors;errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}if(_valid10){const _errs133 = errors;const _errs134 = errors;let valid52 = false;let passing1 = null;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;const _errs138 = errors;let valid54 = false;const _errs139 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.source === undefined) && ("source")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid12 = _errs139 === errors;valid54 = valid54 || _valid12;if(!valid54){const _errs140 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.sourceExpression === undefined) && ("sourceExpression")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid12 = _errs140 === errors;valid54 = valid54 || _valid12;}if(!valid54){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}var valid53 = _errs137 === errors;if(!valid53){errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}else {const err123 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var _valid11 = _errs135 === errors;if(_valid11){valid52 = true;passing1 = 0;}const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;const _errs144 = errors;let valid56 = false;const _errs145 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.variables === undefined) && ("variables")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var _valid13 = _errs145 === errors;valid56 = valid56 || _valid13;if(!valid56){const _errs146 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.sourceExpression === undefined) && ("sourceExpression")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid13 = _errs146 === errors;valid56 = valid56 || _valid13;}if(!valid56){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}var valid55 = _errs143 === errors;if(!valid55){errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}else {const err128 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.source === undefined){const err129 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid11 = _errs141 === errors;if(_valid11 && valid52){valid52 = false;passing1 = [passing1, 1];}else {if(_valid11){valid52 = true;passing1 = 1;}const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;let valid58 = false;const _errs151 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.variables === undefined) && ("variables")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid14 = _errs151 === errors;valid58 = valid58 || _valid14;if(!valid58){const _errs152 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.source === undefined) && ("source")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid14 = _errs152 === errors;valid58 = valid58 || _valid14;}if(!valid58){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}var valid57 = _errs149 === errors;if(!valid57){errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}else {const err133 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.sourceExpression === undefined){const err134 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var _valid11 = _errs147 === errors;if(_valid11 && valid52){valid52 = false;passing1 = [passing1, 2];}else {if(_valid11){valid52 = true;passing1 = 2;}const _errs153 = errors;const _errs154 = errors;const _errs155 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.source === undefined) && ("source")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var valid59 = _errs155 === errors;if(!valid59){errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}else {const err136 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err137 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data46.sourceExpression === undefined){const err138 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs153 === errors;if(_valid11 && valid52){valid52 = false;passing1 = [passing1, 3];}else {if(_valid11){valid52 = true;passing1 = 3;}const _errs156 = errors;const _errs157 = errors;const _errs158 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.sourceExpression === undefined) && ("sourceExpression")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var valid60 = _errs158 === errors;if(!valid60){errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}else {const err140 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err141 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data46.source === undefined){const err142 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid11 = _errs156 === errors;if(_valid11 && valid52){valid52 = false;passing1 = [passing1, 4];}else {if(_valid11){valid52 = true;passing1 = 4;}}}}}if(!valid52){const err143 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err144 of vErrors){if(((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && ((err144.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err144.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err144.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err144.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err144.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs21.push(err144);err144.emUsed = true;}}if(emErrs21.length){const err145 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const emErrs22 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs22.push(err146);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid10 = _errs133 === errors;valid50 = _valid10;}if(!valid50){const err147 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const _errs160 = errors;let valid61 = true;const _errs161 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:errorEventDefinition")){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}}var _valid15 = _errs161 === errors;errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}if(_valid15){const _errs163 = errors;const _errs164 = errors;let valid63 = false;let passing2 = null;const _errs165 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.errorRef === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid16 = _errs165 === errors;if(_valid16){valid63 = true;passing2 = 0;}if(!valid63){const err151 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err152 of vErrors){if(((((err152.keyword !== "errorMessage") && (!err152.emUsed)) && ((err152.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err152.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err152.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err152.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err152.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs23.push(err152);err152.emUsed = true;}}if(emErrs23.length){const err153 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires errorRef"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const emErrs24 = [];for(const err154 of vErrors){if(!err154.emUsed){emErrs24.push(err154);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid15 = _errs163 === errors;valid61 = _valid15;}if(!valid61){const err155 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.type === undefined){const err156 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data46.type !== undefined){let data52 = data46.type;if(typeof data52 !== "string"){const err157 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(!((((((((((data52 === "property") || (data52 === "camunda:property")) || (data52 === "camunda:inputParameter")) || (data52 === "camunda:outputParameter")) || (data52 === "camunda:in")) || (data52 === "camunda:out")) || (data52 === "camunda:in:businessKey")) || (data52 === "camunda:executionListener")) || (data52 === "camunda:field")) || (data52 === "camunda:errorEventDefinition"))){const err158 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(errors > 0){const emErrs25 = [];for(const err159 of vErrors){if(((((err159.keyword !== "errorMessage") && (!err159.emUsed)) && ((err159.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err159.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err159.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err159.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err159.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err159);err159.emUsed = true;}}if(emErrs25.length){const err160 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data52) + "; 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 = [err160];}else {vErrors.push(err160);}errors++;}const emErrs26 = [];for(const err161 of vErrors){if(!err161.emUsed){emErrs26.push(err161);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data46.name !== undefined){if(typeof data46.name !== "string"){const err162 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data46.event !== undefined){if(typeof data46.event !== "string"){const err163 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data46.scriptFormat !== undefined){if(typeof data46.scriptFormat !== "string"){const err164 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data46.source !== undefined){if(typeof data46.source !== "string"){const err165 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data46.target !== undefined){if(typeof data46.target !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data46.expression !== undefined){if(typeof data46.expression !== "boolean"){const err167 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data46.variables !== undefined){let data59 = data46.variables;if(typeof data59 !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(!((data59 === "all") || (data59 === "local"))){const err169 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data46.sourceExpression !== undefined){if(typeof data46.sourceExpression !== "string"){const err170 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err173 of vErrors){if((((((err173.keyword !== "errorMessage") && (!err173.emUsed)) && (err173.dataPath === dataPath+"/properties/" + i4)) && (err173.keyword in emErrors3)) && (err173.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err173.schemaPath.slice(38)))){emPropParams2 = obj0$1[err173.keyword];emParamsErrors2 = emErrors3[err173.keyword][err173.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err173);err173.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 err174 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18$1.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}const emErrs27 = [];for(const err175 of vErrors){if(!err175.emUsed){emErrs27.push(err175);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err176 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data.scopes !== undefined){let data61 = data.scopes;if(Array.isArray(data61)){const len5 = data61.length;for(let i5=0; i5<len5; i5++){let data62 = data61[i5];const _errs189 = errors;let valid68 = true;const _errs190 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}else {if(data62.type !== undefined){if(!(data62.type === "bpmn:Error")){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}}var _valid17 = _errs190 === errors;errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}if(_valid17){const _errs192 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.id === undefined){const err179 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(errors > 0){const emErrs28 = [];for(const err180 of vErrors){if(((((err180.keyword !== "errorMessage") && (!err180.emUsed)) && ((err180.dataPath === dataPath+"/scopes/" + i5) || ((err180.dataPath.indexOf(dataPath+"/scopes/" + i5) === 0) && (err180.dataPath[dataPath+"/scopes/" + i5.length] === "/")))) && (err180.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err180.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs28.push(err180);err180.emUsed = true;}}if(emErrs28.length){const err181 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs28},message:"invalid scope " + JSON.stringify(data62 && data62.type) + ", missing id"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}const emErrs29 = [];for(const err182 of vErrors){if(!err182.emUsed){emErrs29.push(err182);}}vErrors = emErrs29;errors = emErrs29.length;}var _valid17 = _errs192 === errors;valid68 = _valid17;}if(!valid68){const err183 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.type === undefined){const err184 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(data62.properties === undefined){const err185 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data62.type !== undefined){let data64 = data62.type;if(typeof data64 !== "string"){const err186 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(!((data64 === "camunda:Connector") || (data64 === "bpmn:Error"))){const err187 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues: schema17$1.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(errors > 0){const emErrs30 = [];for(const err188 of vErrors){if(((((err188.keyword !== "errorMessage") && (!err188.emUsed)) && ((err188.dataPath === dataPath+"/scopes/" + i5+"/type") || ((err188.dataPath.indexOf(dataPath+"/scopes/" + i5+"/type") === 0) && (err188.dataPath[dataPath+"/scopes/" + i5+"/type".length] === "/")))) && (err188.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err188.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs30.push(err188);err188.emUsed = true;}}if(emErrs30.length){const err189 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs30},message:"invalid scope type " + JSON.stringify(data64) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}const emErrs31 = [];for(const err190 of vErrors){if(!err190.emUsed){emErrs31.push(err190);}}vErrors = emErrs31;errors = emErrs31.length;}}if(data62.properties !== undefined){let data65 = data62.properties;if(Array.isArray(data65)){const len6 = data65.length;for(let i6=0; i6<len6; i6++){let data66 = data65[i6];const _errs202 = errors;let valid76 = true;const _errs203 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if((data66.type === undefined) && ("type")){const err191 = {};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}else {if(data66.type !== undefined){if(!equal(data66.type, "Dropdown")){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}}var _valid18 = _errs203 === errors;errors = _errs202;if(vErrors !== null){if(_errs202){vErrors.length = _errs202;}else {vErrors = null;}}if(_valid18){const _errs205 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.choices === undefined){const err193 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(errors > 0){const emErrs32 = [];for(const err194 of vErrors){if(((((err194.keyword !== "errorMessage") && (!err194.emUsed)) && ((err194.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6) || ((err194.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6) === 0) && (err194.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6.length] === "/")))) && (err194.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err194.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs32.push(err194);err194.emUsed = true;}}if(emErrs32.length){const err195 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs32},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const emErrs33 = [];for(const err196 of vErrors){if(!err196.emUsed){emErrs33.push(err196);}}vErrors = emErrs33;errors = emErrs33.length;}var _valid18 = _errs205 === errors;valid76 = _valid18;}if(!valid76){const err197 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.value !== undefined){let data68 = data66.value;if((typeof data68 !== "string") && (typeof data68 !== "boolean")){const err198 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema19.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data66.description !== undefined){if(typeof data66.description !== "string"){const err199 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data66.label !== undefined){if(typeof data66.label !== "string"){const err200 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data66.type !== undefined){if(typeof data66.type !== "string"){const err201 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data66.editable !== undefined){if(typeof data66.editable !== "boolean"){const err202 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data66.choices !== undefined){let data73 = data66.choices;if(Array.isArray(data73)){const len7 = data73.length;for(let i7=0; i7<len7; i7++){let data74 = data73[i7];if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.value === undefined){const err203 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if(data74.name === undefined){const err204 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if(data74.name !== undefined){if(typeof data74.name !== "string"){const err205 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data74.value !== undefined){if(typeof data74.value !== "string"){const err206 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}else {const err207 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(errors > 0){const emErrs34 = [];for(const err208 of vErrors){if(((((err208.keyword !== "errorMessage") && (!err208.emUsed)) && ((err208.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) || ((err208.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) === 0) && (err208.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7.length] === "/")))) && (err208.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err208.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs34.push(err208);err208.emUsed = true;}}if(emErrs34.length){const err209 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs34},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}const emErrs35 = [];for(const err210 of vErrors){if(!err210.emUsed){emErrs35.push(err210);}}vErrors = emErrs35;errors = emErrs35.length;}}}else {const err211 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data66.constraints !== undefined){let data77 = data66.constraints;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.notEmpty !== undefined){if(typeof data77.notEmpty !== "boolean"){const err212 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data77.minLength !== undefined){if(!(typeof data77.minLength == "number")){const err213 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data77.maxLength !== undefined){if(!(typeof data77.maxLength == "number")){const err214 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data77.pattern !== undefined){let data81 = data77.pattern;const _errs233 = errors;let valid83 = false;let passing3 = null;const _errs234 = errors;if(data81 && typeof data81 == "object" && !Array.isArray(data81)){if(data81.value !== undefined){if(typeof data81.value !== "string"){const err215 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data81.message !== undefined){if(typeof data81.message !== "string"){const err216 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}else {const err217 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}var _valid19 = _errs234 === errors;if(_valid19){valid83 = true;passing3 = 0;}const _errs240 = errors;if(typeof data81 !== "string"){const err218 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid19 = _errs240 === errors;if(_valid19 && valid83){valid83 = false;passing3 = [passing3, 1];}else {if(_valid19){valid83 = true;passing3 = 1;}}if(!valid83){const err219 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {errors = _errs233;if(vErrors !== null){if(_errs233){vErrors.length = _errs233;}else {vErrors = null;}}}}}else {const err220 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data66.group !== undefined){if(typeof data66.group !== "string"){const err221 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if(Array.isArray(data65)){const len8 = data65.length;for(let i8=0; i8<len8; i8++){let data85 = data65[i8];const _errs250 = errors;let valid89 = true;const _errs251 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data85.binding !== undefined){let data86 = data85.binding;if(data86 && typeof data86 == "object" && !Array.isArray(data86)){if((data86.type === undefined) && ("type")){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(data86.type !== undefined){if(!equal(data86.type, "property")){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}}}}}var _valid20 = _errs251 === errors;errors = _errs250;if(vErrors !== null){if(_errs250){vErrors.length = _errs250;}else {vErrors = null;}}if(_valid20){const _errs254 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){let data88 = data85.type;if(!(((((data88 === "String") || (data88 === "Text")) || (data88 === "Hidden")) || (data88 === "Dropdown")) || (data88 === "Boolean"))){const err227 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if(errors > 0){const emErrs36 = [];for(const err228 of vErrors){if(((((err228.keyword !== "errorMessage") && (!err228.emUsed)) && ((err228.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err228.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err228.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err228.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err228.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs36.push(err228);err228.emUsed = true;}}if(emErrs36.length){const err229 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs36},message:"invalid property type " + JSON.stringify(data88) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}const emErrs37 = [];for(const err230 of vErrors){if(!err230.emUsed){emErrs37.push(err230);}}vErrors = emErrs37;errors = emErrs37.length;}}}var _valid20 = _errs254 === errors;valid89 = _valid20;}if(!valid89){const err231 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}const _errs257 = errors;let valid93 = true;const _errs258 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}else {if(data85.binding !== undefined){let data89 = data85.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if((data89.type === undefined) && ("type")){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}else {if(data89.type !== undefined){if(!equal(data89.type, "camunda:executionListener")){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}}}}}}var _valid21 = _errs258 === errors;errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}if(_valid21){const _errs261 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){if(!(data85.type === "Hidden")){const err235 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(errors > 0){const emErrs38 = [];for(const err236 of vErrors){if(((((err236.keyword !== "errorMessage") && (!err236.emUsed)) && ((err236.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err236.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err236.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err236.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err236.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs38.push(err236);err236.emUsed = true;}}if(emErrs38.length){const err237 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs38},message:"invalid property type " + JSON.stringify(data85 && data85.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}const emErrs39 = [];for(const err238 of vErrors){if(!err238.emUsed){emErrs39.push(err238);}}vErrors = emErrs39;errors = emErrs39.length;}}}var _valid21 = _errs261 === errors;valid93 = _valid21;}if(!valid93){const err239 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}const _errs264 = errors;let valid97 = true;const _errs265 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data85.binding !== undefined){let data92 = data85.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {if(data92.type !== undefined){let data93 = data92.type;if(!((((((data93 === "camunda:property") || (data93 === "camunda:outputParameter")) || (data93 === "camunda:in")) || (data93 === "camunda:in:businessKey")) || (data93 === "camunda:out")) || (data93 === "camunda:errorEventDefinition"))){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}}}}}var _valid22 = _errs265 === errors;errors = _errs264;if(vErrors !== null){if(_errs264){vErrors.length = _errs264;}else {vErrors = null;}}if(_valid22){const _errs268 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){let data94 = data85.type;if(!(((data94 === "String") || (data94 === "Hidden")) || (data94 === "Dropdown"))){const err243 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if(errors > 0){const emErrs40 = [];for(const err244 of vErrors){if(((((err244.keyword !== "errorMessage") && (!err244.emUsed)) && ((err244.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err244.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err244.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err244.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err244.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs40.push(err244);err244.emUsed = true;}}if(emErrs40.length){const err245 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs40},message:"invalid property type " + JSON.stringify(data94) + " for binding type " + JSON.stringify(data85 && data85.binding && data85.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}const emErrs41 = [];for(const err246 of vErrors){if(!err246.emUsed){emErrs41.push(err246);}}vErrors = emErrs41;errors = emErrs41.length;}}}var _valid22 = _errs268 === errors;valid97 = _valid22;}if(!valid97){const err247 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}const _errs271 = errors;let valid101 = true;const _errs272 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}else {if(data85.binding !== undefined){let data95 = data85.binding;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if((data95.type === undefined) && ("type")){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}else {if(data95.type !== undefined){let data96 = data95.type;if(!((data96 === "camunda:inputParameter") || (data96 === "camunda:field"))){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}}}}}}var _valid23 = _errs272 === errors;errors = _errs271;if(vErrors !== null){if(_errs271){vErrors.length = _errs271;}else {vErrors = null;}}if(_valid23){const _errs275 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){let data97 = data85.type;if(!((((data97 === "String") || (data97 === "Text")) || (data97 === "Hidden")) || (data97 === "Dropdown"))){const err251 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(errors > 0){const emErrs42 = [];for(const err252 of vErrors){if(((((err252.keyword !== "errorMessage") && (!err252.emUsed)) && ((err252.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err252.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err252.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err252.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err252.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs42.push(err252);err252.emUsed = true;}}if(emErrs42.length){const err253 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs42},message:"invalid property type " + JSON.stringify(data97) + " for binding type " + JSON.stringify(data85 && data85.binding && data85.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}const emErrs43 = [];for(const err254 of vErrors){if(!err254.emUsed){emErrs43.push(err254);}}vErrors = emErrs43;errors = emErrs43.length;}}}var _valid23 = _errs275 === errors;valid101 = _valid23;}if(!valid101){const err255 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.binding === undefined){const err256 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if(data85.binding !== undefined){let data98 = data85.binding;const _errs280 = errors;let valid107 = true;const _errs281 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data98.type !== undefined){let data99 = data98.type;if(!((((data99 === "property") || (data99 === "camunda:property")) || (data99 === "camunda:inputParameter")) || (data99 === "camunda:field"))){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}}}var _valid24 = _errs281 === errors;errors = _errs280;if(vErrors !== null){if(_errs280){vErrors.length = _errs280;}else {vErrors = null;}}if(_valid24){const _errs283 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.name === undefined){const err259 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(errors > 0){const emErrs44 = [];for(const err260 of vErrors){if(((((err260.keyword !== "errorMessage") && (!err260.emUsed)) && ((err260.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err260.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err260.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err260.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err260.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs44.push(err260);err260.emUsed = true;}}if(emErrs44.length){const err261 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs44},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires name"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}const emErrs45 = [];for(const err262 of vErrors){if(!err262.emUsed){emErrs45.push(err262);}}vErrors = emErrs45;errors = emErrs45.length;}var _valid24 = _errs283 === errors;valid107 = _valid24;}if(!valid107){const err263 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}const _errs285 = errors;let valid109 = true;const _errs286 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err264 = {};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:outputParameter")){const err265 = {};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}}var _valid25 = _errs286 === errors;errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}if(_valid25){const _errs288 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.source === undefined){const err266 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}if(errors > 0){const emErrs46 = [];for(const err267 of vErrors){if(((((err267.keyword !== "errorMessage") && (!err267.emUsed)) && ((err267.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err267.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err267.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err267.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err267.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs46.push(err267);err267.emUsed = true;}}if(emErrs46.length){const err268 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs46},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires source"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const emErrs47 = [];for(const err269 of vErrors){if(!err269.emUsed){emErrs47.push(err269);}}vErrors = emErrs47;errors = emErrs47.length;}var _valid25 = _errs288 === errors;valid109 = _valid25;}if(!valid109){const err270 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}const _errs290 = errors;let valid111 = true;const _errs291 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:in")){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}}var _valid26 = _errs291 === errors;errors = _errs290;if(vErrors !== null){if(_errs290){vErrors.length = _errs290;}else {vErrors = null;}}if(_valid26){const _errs293 = errors;const _errs294 = errors;let valid113 = false;const _errs295 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err273 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}var _valid27 = _errs295 === errors;valid113 = valid113 || _valid27;if(!valid113){const _errs296 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.target === undefined){const err274 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}}var _valid27 = _errs296 === errors;valid113 = valid113 || _valid27;}if(!valid113){const err275 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {errors = _errs294;if(vErrors !== null){if(_errs294){vErrors.length = _errs294;}else {vErrors = null;}}}if(errors > 0){const emErrs48 = [];for(const err276 of vErrors){if(((((err276.keyword !== "errorMessage") && (!err276.emUsed)) && ((err276.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err276.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err276.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err276.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err276.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs48.push(err276);err276.emUsed = true;}}if(emErrs48.length){const err277 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs48},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}const emErrs49 = [];for(const err278 of vErrors){if(!err278.emUsed){emErrs49.push(err278);}}vErrors = emErrs49;errors = emErrs49.length;}var _valid26 = _errs293 === errors;valid111 = _valid26;}if(!valid111){const err279 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}const _errs298 = errors;let valid114 = true;const _errs299 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:out")){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}}}var _valid28 = _errs299 === errors;errors = _errs298;if(vErrors !== null){if(_errs298){vErrors.length = _errs298;}else {vErrors = null;}}if(_valid28){const _errs301 = errors;const _errs302 = errors;let valid116 = false;let passing4 = null;const _errs303 = errors;const _errs304 = errors;const _errs305 = errors;const _errs306 = errors;let valid118 = false;const _errs307 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.source === undefined) && ("source")){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}var _valid30 = _errs307 === errors;valid118 = valid118 || _valid30;if(!valid118){const _errs308 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.sourceExpression === undefined) && ("sourceExpression")){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}var _valid30 = _errs308 === errors;valid118 = valid118 || _valid30;}if(!valid118){const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}}var valid117 = _errs305 === errors;if(!valid117){errors = _errs304;if(vErrors !== null){if(_errs304){vErrors.length = _errs304;}else {vErrors = null;}}}else {const err285 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err286 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}var _valid29 = _errs303 === errors;if(_valid29){valid116 = true;passing4 = 0;}const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;const _errs312 = errors;let valid120 = false;const _errs313 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.variables === undefined) && ("variables")){const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}var _valid31 = _errs313 === errors;valid120 = valid120 || _valid31;if(!valid120){const _errs314 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.sourceExpression === undefined) && ("sourceExpression")){const err288 = {};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}var _valid31 = _errs314 === errors;valid120 = valid120 || _valid31;}if(!valid120){const err289 = {};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs312;if(vErrors !== null){if(_errs312){vErrors.length = _errs312;}else {vErrors = null;}}}var valid119 = _errs311 === errors;if(!valid119){errors = _errs310;if(vErrors !== null){if(_errs310){vErrors.length = _errs310;}else {vErrors = null;}}}else {const err290 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.source === undefined){const err291 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}var _valid29 = _errs309 === errors;if(_valid29 && valid116){valid116 = false;passing4 = [passing4, 1];}else {if(_valid29){valid116 = true;passing4 = 1;}const _errs315 = errors;const _errs316 = errors;const _errs317 = errors;const _errs318 = errors;let valid122 = false;const _errs319 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.variables === undefined) && ("variables")){const err292 = {};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}var _valid32 = _errs319 === errors;valid122 = valid122 || _valid32;if(!valid122){const _errs320 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.source === undefined) && ("source")){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}var _valid32 = _errs320 === errors;valid122 = valid122 || _valid32;}if(!valid122){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {errors = _errs318;if(vErrors !== null){if(_errs318){vErrors.length = _errs318;}else {vErrors = null;}}}var valid121 = _errs317 === errors;if(!valid121){errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}else {const err295 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.sourceExpression === undefined){const err296 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}var _valid29 = _errs315 === errors;if(_valid29 && valid116){valid116 = false;passing4 = [passing4, 2];}else {if(_valid29){valid116 = true;passing4 = 2;}const _errs321 = errors;const _errs322 = errors;const _errs323 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.source === undefined) && ("source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}var valid123 = _errs323 === errors;if(!valid123){errors = _errs322;if(vErrors !== null){if(_errs322){vErrors.length = _errs322;}else {vErrors = null;}}}else {const err298 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err299 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(data98.sourceExpression === undefined){const err300 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}var _valid29 = _errs321 === errors;if(_valid29 && valid116){valid116 = false;passing4 = [passing4, 3];}else {if(_valid29){valid116 = true;passing4 = 3;}const _errs324 = errors;const _errs325 = errors;const _errs326 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.sourceExpression === undefined) && ("sourceExpression")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var valid124 = _errs326 === errors;if(!valid124){errors = _errs325;if(vErrors !== null){if(_errs325){vErrors.length = _errs325;}else {vErrors = null;}}}else {const err302 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err303 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}if(data98.source === undefined){const err304 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}var _valid29 = _errs324 === errors;if(_valid29 && valid116){valid116 = false;passing4 = [passing4, 4];}else {if(_valid29){valid116 = true;passing4 = 4;}}}}}if(!valid116){const err305 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs302;if(vErrors !== null){if(_errs302){vErrors.length = _errs302;}else {vErrors = null;}}}if(errors > 0){const emErrs50 = [];for(const err306 of vErrors){if(((((err306.keyword !== "errorMessage") && (!err306.emUsed)) && ((err306.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err306.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err306.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err306.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err306.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs50.push(err306);err306.emUsed = true;}}if(emErrs50.length){const err307 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs50},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}const emErrs51 = [];for(const err308 of vErrors){if(!err308.emUsed){emErrs51.push(err308);}}vErrors = emErrs51;errors = emErrs51.length;}var _valid28 = _errs301 === errors;valid114 = _valid28;}if(!valid114){const err309 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}const _errs328 = errors;let valid125 = true;const _errs329 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err310 = {};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:errorEventDefinition")){const err311 = {};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}}var _valid33 = _errs329 === errors;errors = _errs328;if(vErrors !== null){if(_errs328){vErrors.length = _errs328;}else {vErrors = null;}}if(_valid33){const _errs331 = errors;const _errs332 = errors;let valid127 = false;let passing5 = null;const _errs333 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.errorRef === undefined){const err312 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}var _valid34 = _errs333 === errors;if(_valid34){valid127 = true;passing5 = 0;}if(!valid127){const err313 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}else {errors = _errs332;if(vErrors !== null){if(_errs332){vErrors.length = _errs332;}else {vErrors = null;}}}if(errors > 0){const emErrs52 = [];for(const err314 of vErrors){if(((((err314.keyword !== "errorMessage") && (!err314.emUsed)) && ((err314.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err314.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err314.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err314.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err314.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs52.push(err314);err314.emUsed = true;}}if(emErrs52.length){const err315 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs52},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires errorRef"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}const emErrs53 = [];for(const err316 of vErrors){if(!err316.emUsed){emErrs53.push(err316);}}vErrors = emErrs53;errors = emErrs53.length;}var _valid33 = _errs331 === errors;valid125 = _valid33;}if(!valid125){const err317 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.type === undefined){const err318 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if(data98.type !== undefined){let data104 = data98.type;if(typeof data104 !== "string"){const err319 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(!((((((((((data104 === "property") || (data104 === "camunda:property")) || (data104 === "camunda:inputParameter")) || (data104 === "camunda:outputParameter")) || (data104 === "camunda:in")) || (data104 === "camunda:out")) || (data104 === "camunda:in:businessKey")) || (data104 === "camunda:executionListener")) || (data104 === "camunda:field")) || (data104 === "camunda:errorEventDefinition"))){const err320 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema20.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if(errors > 0){const emErrs54 = [];for(const err321 of vErrors){if(((((err321.keyword !== "errorMessage") && (!err321.emUsed)) && ((err321.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") || ((err321.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") === 0) && (err321.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type".length] === "/")))) && (err321.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err321.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs54.push(err321);err321.emUsed = true;}}if(emErrs54.length){const err322 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs54},message:"invalid property.binding type " + JSON.stringify(data104) + "; 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 = [err322];}else {vErrors.push(err322);}errors++;}const emErrs55 = [];for(const err323 of vErrors){if(!err323.emUsed){emErrs55.push(err323);}}vErrors = emErrs55;errors = emErrs55.length;}}if(data98.name !== undefined){if(typeof data98.name !== "string"){const err324 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}if(data98.event !== undefined){if(typeof data98.event !== "string"){const err325 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}if(data98.scriptFormat !== undefined){if(typeof data98.scriptFormat !== "string"){const err326 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}if(data98.source !== undefined){if(typeof data98.source !== "string"){const err327 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}if(data98.target !== undefined){if(typeof data98.target !== "string"){const err328 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}}if(data98.expression !== undefined){if(typeof data98.expression !== "boolean"){const err329 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}if(data98.variables !== undefined){let data111 = data98.variables;if(typeof data111 !== "string"){const err330 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if(!((data111 === "all") || (data111 === "local"))){const err331 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema20.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}}if(data98.sourceExpression !== undefined){if(typeof data98.sourceExpression !== "string"){const err332 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}}else {const err333 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}}}else {const err334 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(errors > 0){const emErrors4 = {"required":{"binding":[]}};const templates4 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i8) + "\""}}};let emPropParams3;let emParamsErrors3;for(const err335 of vErrors){if((((((err335.keyword !== "errorMessage") && (!err335.emUsed)) && (err335.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8)) && (err335.keyword in emErrors4)) && (err335.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err335.schemaPath.slice(38)))){emPropParams3 = obj0$1[err335.keyword];emParamsErrors3 = emErrors4[err335.keyword][err335.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err335);err335.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp3 in emErrors4[key4]){emParamsErrors3 = emErrors4[key4][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates4[key4] && templates4[key4][keyProp3];const err336 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema20.items.errorMessage[key4][keyProp3]};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}}const emErrs56 = [];for(const err337 of vErrors){if(!err337.emUsed){emErrs56.push(err337);}}vErrors = emErrs56;errors = emErrs56.length;}}}else {const err338 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}}else {const err339 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if(errors > 0){const emErrors5 = {"required":{"type":[],"properties":[]}};const templates5 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data62 && data62.type) + ", missing properties=[]"}}};let emPropParams4;let emParamsErrors4;for(const err340 of vErrors){if((((((err340.keyword !== "errorMessage") && (!err340.emUsed)) && (err340.dataPath === dataPath+"/scopes/" + i5)) && (err340.keyword in emErrors5)) && (err340.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err340.schemaPath.slice(25)))){emPropParams4 = obj0$1[err340.keyword];emParamsErrors4 = emErrors5[err340.keyword][err340.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err340);err340.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp4 in emErrors5[key5]){emParamsErrors4 = emErrors5[key5][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates5[key5] && templates5[key5][keyProp4];const err341 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17$1.properties.scopes.items.errorMessage[key5][keyProp4]};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}}const emErrs57 = [];for(const err342 of vErrors){if(!err342.emUsed){emErrs57.push(err342);}}vErrors = emErrs57;errors = emErrs57.length;}}}else {const err343 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}else {const err344 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}validate15$1.errors = vErrors;return errors === 0;}function validate14$1(data, {dataPath="", 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, {dataPath,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], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should 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 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should 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;}
60
+ standaloneValidator.default = _default$1;
61
+
7
62
  var escapedChars = {
8
63
  'b': '\b',
9
64
  'f': '\f',
@@ -473,76 +528,12 @@ var jsonSourceMap = {
473
528
  stringify: stringify
474
529
  };
475
530
 
476
- var version = "0.3.1";
477
-
478
- // do not edit .js files directly - edit src/index.jst
479
-
480
-
481
-
482
- var fastDeepEqual = function equal(a, b) {
483
- if (a === b) return true;
484
-
485
- if (a && b && typeof a == 'object' && typeof b == 'object') {
486
- if (a.constructor !== b.constructor) return false;
487
-
488
- var length, i, keys;
489
- if (Array.isArray(a)) {
490
- length = a.length;
491
- if (length != b.length) return false;
492
- for (i = length; i-- !== 0;)
493
- if (!equal(a[i], b[i])) return false;
494
- return true;
495
- }
496
-
497
-
498
-
499
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
500
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
501
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
502
-
503
- keys = Object.keys(a);
504
- length = keys.length;
505
- if (length !== Object.keys(b).length) return false;
506
-
507
- for (i = length; i-- !== 0;)
508
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
509
-
510
- for (i = length; i-- !== 0;) {
511
- var key = keys[i];
512
-
513
- if (!equal(a[key], b[key])) return false;
514
- }
515
-
516
- return true;
517
- }
518
-
519
- // true if both NaN, false otherwise
520
- return a!==a && b!==b;
521
- };
522
-
523
- // do NOT remove this file - it would break pre-compiled schemas
524
- // https://github.com/ajv-validator/ajv/issues/889
525
- var equal = fastDeepEqual;
526
-
527
- var standaloneValidator = validate14;var _default = validate14;const schema17 = {"type":"object","required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","title":"element template name","description":"The name of the element template"},"id":{"$id":"#/id","type":"string","title":"element template id","description":"The identifier of the element template"},"description":{"$id":"#/description","type":"string","title":"element template description","description":"The description of the element template"},"version":{"$id":"#/version","type":"number","title":"element template version","description":"The version of the element template"},"isDefault":{"$id":"#/isDefault","type":"boolean","title":"element template is default","description":"Indicates whether the element template is a default template"},"appliesTo":{"$id":"#/appliesTo","type":"array","title":"element template applies to","description":"The definition for which element types the element template can be applied","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^(.*?:)","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"metadata":{"$id":"#/metadata","type":"object","title":"element template metadata","description":"Some metadata for further configuration"},"scopes":{"oneOf":[{"$ref":"#/definitions/scopes_old"},{"$ref":"#/definitions/scopes"}]},"entriesVisible":{"$id":"#/entriesVisible","deprecated":true,"type":["object","boolean"],"title":"element template entries visible","description":"@Deprecated - Select which entries are visible in the properties panel"}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}};const schema18 = {"type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"$id":"#/properties/property","type":"object","title":"element template property","description":"A property defined for the element template","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"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\""}}}},{"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":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"title":"property value","description":"The value of the control field for the property"},"description":{"$id":"#/properties/property/description","type":"string","title":"property description","description":"The description of the control field"},"label":{"$id":"#/properties/property/label","type":"string","title":"property label","description":"The label of the control field for the property"},"type":{"$id":"#/properties/property/type","type":"string","title":"property type","description":"The type of the control field"},"editable":{"$id":"#/properties/property/editable","type":"boolean","title":"property editable","description":"Indicates whether the property is editable or not"},"choices":{"$id":"#/properties/property/choices","type":"array","title":"property choices","description":"The choices for dropdown properties","items":{"$id":"#/properties/property/choices/item","type":"object","properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","title":"choice name","description":"The name of the choice"},"value":{"$id":"#/properties/property/choices/item/value","type":"string","title":"choice value","description":"The value of the choice"}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"binding":{"$id":"#/properties/property/binding","type":"object","title":"property binding","description":"A binding to a BPMN 2.0 property","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":{"oneOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables or target"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"]},{"required":["source"]},{"required":["sourceExpression"]}],"errorMessage":"property.binding ${0/type} requires variables, sourceExpression or source"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","title":"property binding type","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"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 }","description":"The type of the property binding"},"name":{"$id":"#/properties/property/binding/name","type":"string","title":"property binding name","description":"The name of binding xml property"},"event":{"$id":"#/properties/property/binding/event","type":"string","title":"property binding event","description":"The event type of an execution listener binding"},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","title":"property binding script format","description":"The format of a script property binding (camunda:outputParameter, camunda:inputParameter)"},"source":{"$id":"#/properties/property/binding/source","type":"string","title":"property binding source","description":"The source value of a property binding (camunda:outputParameter, camunda:out)"},"target":{"$id":"#/properties/property/binding/target","type":"string","title":"property binding target","description":"The target value to be mapped to (camunda:in)"},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","title":"property binding expression","description":"True indicates that the control field value is an expression (camunda:in, camunda:field)"},"variables":{"$id":"#/properties/property/binding/variables","type":"string","title":"property binding variables","enum":["all","local"],"description":"Either all or local indicating the variable mapping (camunda:in)"},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","title":"property binding source expression","description":"The string containing the expression for the source attribute (camunda:out)"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","title":"property constraints","description":"The validation constraints","properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","title":"property constraints not empty","description":"The control field must not be empty"},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","title":"property constraints min length","description":"The minimal length for the control field value"},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","title":"property constraints max length","description":"The maximal length for the control field value"},"pattern":{"$id":"#/properties/property/constraints/pattern","title":"property constraints pattern","description":"A regular expression pattern for the constraints","oneOf":[{"type":"object","properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","title":"property constraints pattern value","description":"The regular expression of the pattern constraint"},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","title":"property constraints pattern message","description":"The validation message of the pattern constraint"}}},{"type":"string"}]}}}}}};const pattern0 = new RegExp("^(.*?:)", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate16(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){if(!(key0 === "camunda:Connector")){const err0 = {keyword:"not",dataPath:dataPath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/additionalProperties/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;if(errors > 0){const emErrs0 = [];for(const err1 of vErrors){if(((((err1.keyword !== "errorMessage") && (!err1.emUsed)) && ((err1.dataPath === dataPath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")) || ((err1.dataPath.indexOf(dataPath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")) === 0) && (err1.dataPath[dataPath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1").length] === "/")))) && (err1.schemaPath.indexOf("#/additionalProperties") === 0)) && (err1.schemaPath["#/additionalProperties".length] === "/")){emErrs0.push(err1);err1.emUsed = true;}}if(emErrs0.length){const err2 = {keyword:"errorMessage",dataPath:dataPath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/additionalProperties/errorMessage",params:{errors: emErrs0},message:"invalid scope " + JSON.stringify(key0) + ", object descriptor is only supported for \"camunda:Connector\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const emErrs1 = [];for(const err3 of vErrors){if(!err3.emUsed){emErrs1.push(err3);}}vErrors = emErrs1;errors = emErrs1.length;}}}if(data["camunda:Connector"] !== undefined){let data1 = data["camunda:Connector"];if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.properties !== undefined){let data2 = data1.properties;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs12 = errors;let valid7 = true;const _errs13 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if((data3.type === undefined) && ("type")){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(data3.type !== undefined){if(!equal(data3.type, "Dropdown")){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}var _valid0 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid0){const _errs15 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.choices === undefined){const err6 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(errors > 0){const emErrs2 = [];for(const err7 of vErrors){if(((((err7.keyword !== "errorMessage") && (!err7.emUsed)) && ((err7.dataPath === dataPath+"/camunda:Connector/properties/" + i0) || ((err7.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0) === 0) && (err7.dataPath[dataPath+"/camunda:Connector/properties/" + i0.length] === "/")))) && (err7.schemaPath.indexOf("#/definitions/properties/items/allOf/0/then") === 0)) && (err7.schemaPath["#/definitions/properties/items/allOf/0/then".length] === "/")){emErrs2.push(err7);err7.emUsed = true;}}if(emErrs2.length){const err8 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/0/then/errorMessage",params:{errors: emErrs2},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}const emErrs3 = [];for(const err9 of vErrors){if(!err9.emUsed){emErrs3.push(err9);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid0 = _errs15 === errors;valid7 = _valid0;}if(!valid7){const err10 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const _errs17 = errors;let valid9 = true;const _errs18 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if((data3.binding === undefined) && ("binding")){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data3.binding !== undefined){let data5 = data3.binding;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if((data5.type === undefined) && ("type")){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data5.type !== undefined){if(!equal(data5.type, "property")){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}}}}var _valid1 = _errs18 === errors;errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}if(_valid1){const _errs21 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data7 = data3.type;if(!(((((data7 === "String") || (data7 === "Text")) || (data7 === "Hidden")) || (data7 === "Dropdown")) || (data7 === "Boolean"))){const err14 = {keyword:"enum",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrs4 = [];for(const err15 of vErrors){if(((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && ((err15.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/type") || ((err15.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/type") === 0) && (err15.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/type".length] === "/")))) && (err15.schemaPath.indexOf("#/definitions/properties/items/allOf/1/then/properties/type") === 0)) && (err15.schemaPath["#/definitions/properties/items/allOf/1/then/properties/type".length] === "/")){emErrs4.push(err15);err15.emUsed = true;}}if(emErrs4.length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs4},message:"invalid property type " + JSON.stringify(data7) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const emErrs5 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs5.push(err17);}}vErrors = emErrs5;errors = emErrs5.length;}}}var _valid1 = _errs21 === errors;valid9 = _valid1;}if(!valid9){const err18 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}const _errs24 = errors;let valid13 = true;const _errs25 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if((data3.binding === undefined) && ("binding")){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data3.binding !== undefined){let data8 = data3.binding;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if((data8.type === undefined) && ("type")){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data8.type !== undefined){if(!equal(data8.type, "camunda:executionListener")){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}}}}}var _valid2 = _errs25 === errors;errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}if(_valid2){const _errs28 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){if(!(data3.type === "Hidden")){const err22 = {keyword:"enum",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrs6 = [];for(const err23 of vErrors){if(((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && ((err23.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/type") || ((err23.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/type") === 0) && (err23.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/type".length] === "/")))) && (err23.schemaPath.indexOf("#/definitions/properties/items/allOf/2/then/properties/type") === 0)) && (err23.schemaPath["#/definitions/properties/items/allOf/2/then/properties/type".length] === "/")){emErrs6.push(err23);err23.emUsed = true;}}if(emErrs6.length){const err24 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs6},message:"invalid property type " + JSON.stringify(data3 && data3.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}const emErrs7 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs7.push(err25);}}vErrors = emErrs7;errors = emErrs7.length;}}}var _valid2 = _errs28 === errors;valid13 = _valid2;}if(!valid13){const err26 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}const _errs31 = errors;let valid17 = true;const _errs32 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if((data3.binding === undefined) && ("binding")){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {if(data3.binding !== undefined){let data11 = data3.binding;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if((data11.type === undefined) && ("type")){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {if(data11.type !== undefined){let data12 = data11.type;if(!((((((data12 === "camunda:property") || (data12 === "camunda:outputParameter")) || (data12 === "camunda:in")) || (data12 === "camunda:in:businessKey")) || (data12 === "camunda:out")) || (data12 === "camunda:errorEventDefinition"))){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}}}}}var _valid3 = _errs32 === errors;errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}if(_valid3){const _errs35 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data13 = data3.type;if(!(((data13 === "String") || (data13 === "Hidden")) || (data13 === "Dropdown"))){const err30 = {keyword:"enum",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(errors > 0){const emErrs8 = [];for(const err31 of vErrors){if(((((err31.keyword !== "errorMessage") && (!err31.emUsed)) && ((err31.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/type") || ((err31.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/type") === 0) && (err31.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/type".length] === "/")))) && (err31.schemaPath.indexOf("#/definitions/properties/items/allOf/3/then/properties/type") === 0)) && (err31.schemaPath["#/definitions/properties/items/allOf/3/then/properties/type".length] === "/")){emErrs8.push(err31);err31.emUsed = true;}}if(emErrs8.length){const err32 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs8},message:"invalid property type " + JSON.stringify(data13) + " for binding type " + JSON.stringify(data3 && data3.binding && data3.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const emErrs9 = [];for(const err33 of vErrors){if(!err33.emUsed){emErrs9.push(err33);}}vErrors = emErrs9;errors = emErrs9.length;}}}var _valid3 = _errs35 === errors;valid17 = _valid3;}if(!valid17){const err34 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const _errs38 = errors;let valid21 = true;const _errs39 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if((data3.binding === undefined) && ("binding")){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data3.binding !== undefined){let data14 = data3.binding;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if((data14.type === undefined) && ("type")){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {if(data14.type !== undefined){let data15 = data14.type;if(!((data15 === "camunda:inputParameter") || (data15 === "camunda:field"))){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}}}}}var _valid4 = _errs39 === errors;errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}if(_valid4){const _errs42 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data16 = data3.type;if(!((((data16 === "String") || (data16 === "Text")) || (data16 === "Hidden")) || (data16 === "Dropdown"))){const err38 = {keyword:"enum",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(errors > 0){const emErrs10 = [];for(const err39 of vErrors){if(((((err39.keyword !== "errorMessage") && (!err39.emUsed)) && ((err39.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/type") || ((err39.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/type") === 0) && (err39.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/type".length] === "/")))) && (err39.schemaPath.indexOf("#/definitions/properties/items/allOf/4/then/properties/type") === 0)) && (err39.schemaPath["#/definitions/properties/items/allOf/4/then/properties/type".length] === "/")){emErrs10.push(err39);err39.emUsed = true;}}if(emErrs10.length){const err40 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data16) + " for binding type " + JSON.stringify(data3 && data3.binding && data3.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const emErrs11 = [];for(const err41 of vErrors){if(!err41.emUsed){emErrs11.push(err41);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid4 = _errs42 === errors;valid21 = _valid4;}if(!valid21){const err42 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.binding === undefined){const err43 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data3.value !== undefined){let data17 = data3.value;if((typeof data17 !== "string") && (typeof data17 !== "boolean")){const err44 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/value",schemaPath:"#/definitions/properties/items/properties/value/type",params:{type: schema18.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data3.description !== undefined){if(typeof data3.description !== "string"){const err45 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/description",schemaPath:"#/definitions/properties/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data3.label !== undefined){if(typeof data3.label !== "string"){const err46 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/label",schemaPath:"#/definitions/properties/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data3.type !== undefined){if(typeof data3.type !== "string"){const err47 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/type",schemaPath:"#/definitions/properties/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data3.editable !== undefined){if(typeof data3.editable !== "boolean"){const err48 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/editable",schemaPath:"#/definitions/properties/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data3.choices !== undefined){let data22 = data3.choices;if(Array.isArray(data22)){const len1 = data22.length;for(let i1=0; i1<len1; i1++){let data23 = data22[i1];if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err49 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1,schemaPath:"#/definitions/properties/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(data23.name === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1,schemaPath:"#/definitions/properties/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data23.name !== undefined){if(typeof data23.name !== "string"){const err51 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1+"/name",schemaPath:"#/definitions/properties/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data23.value !== undefined){if(typeof data23.value !== "string"){const err52 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1+"/value",schemaPath:"#/definitions/properties/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}else {const err53 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1,schemaPath:"#/definitions/properties/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(errors > 0){const emErrs12 = [];for(const err54 of vErrors){if(((((err54.keyword !== "errorMessage") && (!err54.emUsed)) && ((err54.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1) || ((err54.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1) === 0) && (err54.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1.length] === "/")))) && (err54.schemaPath.indexOf("#/definitions/properties/items/properties/choices/items") === 0)) && (err54.schemaPath["#/definitions/properties/items/properties/choices/items".length] === "/")){emErrs12.push(err54);err54.emUsed = true;}}if(emErrs12.length){const err55 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices/" + i1,schemaPath:"#/definitions/properties/items/properties/choices/items/errorMessage",params:{errors: emErrs12},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}const emErrs13 = [];for(const err56 of vErrors){if(!err56.emUsed){emErrs13.push(err56);}}vErrors = emErrs13;errors = emErrs13.length;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/choices",schemaPath:"#/definitions/properties/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data3.binding !== undefined){let data26 = data3.binding;const _errs65 = errors;let valid30 = true;const _errs66 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {if(data26.type !== undefined){let data27 = data26.type;if(!((((data27 === "property") || (data27 === "camunda:property")) || (data27 === "camunda:inputParameter")) || (data27 === "camunda:field"))){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}}var _valid5 = _errs66 === errors;errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}if(_valid5){const _errs68 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.name === undefined){const err60 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(errors > 0){const emErrs14 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/binding") || ((err61.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/binding") === 0) && (err61.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/binding".length] === "/")))) && (err61.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/0/then") === 0)) && (err61.schemaPath["#/definitions/properties/items/properties/binding/allOf/0/then".length] === "/")){emErrs14.push(err61);err61.emUsed = true;}}if(emErrs14.length){const err62 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs14},message:"property.binding " + JSON.stringify(data26 && data26.type) + " requires name"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs15 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs15.push(err63);}}vErrors = emErrs15;errors = emErrs15.length;}var _valid5 = _errs68 === errors;valid30 = _valid5;}if(!valid30){const err64 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}const _errs70 = errors;let valid32 = true;const _errs71 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data26.type !== undefined){if(!equal(data26.type, "camunda:outputParameter")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}var _valid6 = _errs71 === errors;errors = _errs70;if(vErrors !== null){if(_errs70){vErrors.length = _errs70;}else {vErrors = null;}}if(_valid6){const _errs73 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.source === undefined){const err67 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(errors > 0){const emErrs16 = [];for(const err68 of vErrors){if(((((err68.keyword !== "errorMessage") && (!err68.emUsed)) && ((err68.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/binding") || ((err68.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/binding") === 0) && (err68.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/binding".length] === "/")))) && (err68.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/1/then") === 0)) && (err68.schemaPath["#/definitions/properties/items/properties/binding/allOf/1/then".length] === "/")){emErrs16.push(err68);err68.emUsed = true;}}if(emErrs16.length){const err69 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs16},message:"property.binding " + JSON.stringify(data26 && data26.type) + " requires source"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const emErrs17 = [];for(const err70 of vErrors){if(!err70.emUsed){emErrs17.push(err70);}}vErrors = emErrs17;errors = emErrs17.length;}var _valid6 = _errs73 === errors;valid32 = _valid6;}if(!valid32){const err71 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}const _errs75 = errors;let valid34 = true;const _errs76 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {if(data26.type !== undefined){if(!equal(data26.type, "camunda:in")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}}var _valid7 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}if(_valid7){const _errs78 = errors;const _errs79 = errors;let valid36 = false;let passing0 = null;const _errs80 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.variables === undefined){const err74 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid8 = _errs80 === errors;if(_valid8){valid36 = true;passing0 = 0;}const _errs81 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.target === undefined){const err75 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var _valid8 = _errs81 === errors;if(_valid8 && valid36){valid36 = false;passing0 = [passing0, 1];}else {if(_valid8){valid36 = true;passing0 = 1;}}if(!valid36){const err76 = {keyword:"oneOf",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs79;if(vErrors !== null){if(_errs79){vErrors.length = _errs79;}else {vErrors = null;}}}if(errors > 0){const emErrs18 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/binding") || ((err77.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/binding") === 0) && (err77.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/binding".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/2/then") === 0)) && (err77.schemaPath["#/definitions/properties/items/properties/binding/allOf/2/then".length] === "/")){emErrs18.push(err77);err77.emUsed = true;}}if(emErrs18.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data26 && data26.type) + " requires variables or target"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs19 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs19.push(err79);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid7 = _errs78 === errors;valid34 = _valid7;}if(!valid34){const err80 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs83 = errors;let valid37 = true;const _errs84 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data26.type !== undefined){if(!equal(data26.type, "camunda:out")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}}var _valid9 = _errs84 === errors;errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}if(_valid9){const _errs86 = errors;const _errs87 = errors;let valid39 = false;let passing1 = null;const _errs88 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.variables === undefined){const err83 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var _valid10 = _errs88 === errors;if(_valid10){valid39 = true;passing1 = 0;}const _errs89 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.source === undefined){const err84 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var _valid10 = _errs89 === errors;if(_valid10 && valid39){valid39 = false;passing1 = [passing1, 1];}else {if(_valid10){valid39 = true;passing1 = 1;}const _errs90 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.sourceExpression === undefined){const err85 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid10 = _errs90 === errors;if(_valid10 && valid39){valid39 = false;passing1 = [passing1, 2];}else {if(_valid10){valid39 = true;passing1 = 2;}}}if(!valid39){const err86 = {keyword:"oneOf",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}if(errors > 0){const emErrs20 = [];for(const err87 of vErrors){if(((((err87.keyword !== "errorMessage") && (!err87.emUsed)) && ((err87.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/binding") || ((err87.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/binding") === 0) && (err87.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/binding".length] === "/")))) && (err87.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/3/then") === 0)) && (err87.schemaPath["#/definitions/properties/items/properties/binding/allOf/3/then".length] === "/")){emErrs20.push(err87);err87.emUsed = true;}}if(emErrs20.length){const err88 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data26 && data26.type) + " requires variables, sourceExpression or source"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const emErrs21 = [];for(const err89 of vErrors){if(!err89.emUsed){emErrs21.push(err89);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid9 = _errs86 === errors;valid37 = _valid9;}if(!valid37){const err90 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const _errs92 = errors;let valid40 = true;const _errs93 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data26.type !== undefined){if(!equal(data26.type, "camunda:errorEventDefinition")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}}var _valid11 = _errs93 === errors;errors = _errs92;if(vErrors !== null){if(_errs92){vErrors.length = _errs92;}else {vErrors = null;}}if(_valid11){const _errs95 = errors;const _errs96 = errors;let valid42 = false;let passing2 = null;const _errs97 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.errorRef === undefined){const err93 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var _valid12 = _errs97 === errors;if(_valid12){valid42 = true;passing2 = 0;}if(!valid42){const err94 = {keyword:"oneOf",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err95 of vErrors){if(((((err95.keyword !== "errorMessage") && (!err95.emUsed)) && ((err95.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/binding") || ((err95.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/binding") === 0) && (err95.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/binding".length] === "/")))) && (err95.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/4/then") === 0)) && (err95.schemaPath["#/definitions/properties/items/properties/binding/allOf/4/then".length] === "/")){emErrs22.push(err95);err95.emUsed = true;}}if(emErrs22.length){const err96 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data26 && data26.type) + " requires errorRef"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const emErrs23 = [];for(const err97 of vErrors){if(!err97.emUsed){emErrs23.push(err97);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid11 = _errs95 === errors;valid40 = _valid11;}if(!valid40){const err98 = {keyword:"if",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.type === undefined){const err99 = {keyword:"required",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data26.type !== undefined){let data32 = data26.type;if(typeof data32 !== "string"){const err100 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(!((((((((((data32 === "property") || (data32 === "camunda:property")) || (data32 === "camunda:inputParameter")) || (data32 === "camunda:outputParameter")) || (data32 === "camunda:in")) || (data32 === "camunda:out")) || (data32 === "camunda:in:businessKey")) || (data32 === "camunda:executionListener")) || (data32 === "camunda:field")) || (data32 === "camunda:errorEventDefinition"))){const err101 = {keyword:"enum",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(errors > 0){const emErrs24 = [];for(const err102 of vErrors){if(((((err102.keyword !== "errorMessage") && (!err102.emUsed)) && ((err102.dataPath === dataPath+"/camunda:Connector/properties/" + i0+"/binding/type") || ((err102.dataPath.indexOf(dataPath+"/camunda:Connector/properties/" + i0+"/binding/type") === 0) && (err102.dataPath[dataPath+"/camunda:Connector/properties/" + i0+"/binding/type".length] === "/")))) && (err102.schemaPath.indexOf("#/definitions/properties/items/properties/binding/properties/type") === 0)) && (err102.schemaPath["#/definitions/properties/items/properties/binding/properties/type".length] === "/")){emErrs24.push(err102);err102.emUsed = true;}}if(emErrs24.length){const err103 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs24},message:"invalid property.binding type " + JSON.stringify(data32) + "; 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 = [err103];}else {vErrors.push(err103);}errors++;}const emErrs25 = [];for(const err104 of vErrors){if(!err104.emUsed){emErrs25.push(err104);}}vErrors = emErrs25;errors = emErrs25.length;}}if(data26.name !== undefined){if(typeof data26.name !== "string"){const err105 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/name",schemaPath:"#/definitions/properties/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data26.event !== undefined){if(typeof data26.event !== "string"){const err106 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/event",schemaPath:"#/definitions/properties/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(data26.scriptFormat !== undefined){if(typeof data26.scriptFormat !== "string"){const err107 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/scriptFormat",schemaPath:"#/definitions/properties/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data26.source !== undefined){if(typeof data26.source !== "string"){const err108 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/source",schemaPath:"#/definitions/properties/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data26.target !== undefined){if(typeof data26.target !== "string"){const err109 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/target",schemaPath:"#/definitions/properties/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data26.expression !== undefined){if(typeof data26.expression !== "boolean"){const err110 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/expression",schemaPath:"#/definitions/properties/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data26.variables !== undefined){let data39 = data26.variables;if(typeof data39 !== "string"){const err111 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/variables",schemaPath:"#/definitions/properties/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(!((data39 === "all") || (data39 === "local"))){const err112 = {keyword:"enum",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/variables",schemaPath:"#/definitions/properties/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data26.sourceExpression !== undefined){if(typeof data26.sourceExpression !== "string"){const err113 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding/sourceExpression",schemaPath:"#/definitions/properties/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}else {const err114 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data3.constraints !== undefined){let data41 = data3.constraints;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.notEmpty !== undefined){if(typeof data41.notEmpty !== "boolean"){const err115 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/notEmpty",schemaPath:"#/definitions/properties/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data41.minLength !== undefined){if(!(typeof data41.minLength == "number")){const err116 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/minLength",schemaPath:"#/definitions/properties/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data41.maxLength !== undefined){if(!(typeof data41.maxLength == "number")){const err117 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/maxLength",schemaPath:"#/definitions/properties/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data41.pattern !== undefined){let data45 = data41.pattern;const _errs125 = errors;let valid45 = false;let passing3 = null;const _errs126 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.value !== undefined){if(typeof data45.value !== "string"){const err118 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/pattern/value",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data45.message !== undefined){if(typeof data45.message !== "string"){const err119 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/pattern/message",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}else {const err120 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid13 = _errs126 === errors;if(_valid13){valid45 = true;passing3 = 0;}const _errs132 = errors;if(typeof data45 !== "string"){const err121 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid13 = _errs132 === errors;if(_valid13 && valid45){valid45 = false;passing3 = [passing3, 1];}else {if(_valid13){valid45 = true;passing3 = 1;}}if(!valid45){const err122 = {keyword:"oneOf",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err123 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0+"/constraints",schemaPath:"#/definitions/properties/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}else {const err124 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(errors > 0){const emErrors0 = {"required":{"binding":[]}};const templates0 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i0) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err125 of vErrors){if((((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && (err125.dataPath === dataPath+"/camunda:Connector/properties/" + i0)) && (err125.keyword in emErrors0)) && (err125.schemaPath.indexOf("#/definitions/properties/items") === 0)) && (/^\/[^\/]*$/.test(err125.schemaPath.slice(30)))){emPropParams0 = obj0[err125.keyword];emParamsErrors0 = emErrors0[err125.keyword][err125.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err125);err125.emUsed = true;}}}for(const key1 in emErrors0){for(const keyProp0 in emErrors0[key1]){emParamsErrors0 = emErrors0[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key1] && templates0[key1][keyProp0];const err126 = {keyword:"errorMessage",dataPath:dataPath+"/camunda:Connector/properties/" + i0,schemaPath:"#/definitions/properties/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema18.items.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}const emErrs26 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs26.push(err127);}}vErrors = emErrs26;errors = emErrs26.length;}}}else {const err128 = {keyword:"type",dataPath:dataPath+"/camunda:Connector/properties",schemaPath:"#/definitions/properties/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {keyword:"type",dataPath:dataPath+"/camunda:Connector",schemaPath:"#/properties/camunda%3AConnector/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}else {const err130 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}validate16.errors = vErrors;return errors === 0;}const schema21 = {"$id":"#/definitions/scopes","type":"array","title":"element template scope","description":"Special scoped bindings that allow you to configure nested elements","items":{"$id":"#/scopes/item","type":"object","title":"element template scope item","description":"Scoped binding to configure nested elements","properties":{"type":{"$id":"#scopes/item/type","type":"string","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$ref":"#/definitions/properties"}},"required":["type","properties"],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}},"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}]}};function validate18(data, {dataPath="", 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 valid3 = 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(!(data0.type === "bpmn:Error")){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.id === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};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.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + 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 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"invalid scope " + JSON.stringify(data0 && data0.type) + ", missing id"};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;valid3 = _valid0;}if(!valid3){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type === undefined){const err7 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data0.properties === undefined){const err8 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data0.type !== undefined){let data2 = data0.type;if(typeof data2 !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!((data2 === "camunda:Connector") || (data2 === "bpmn:Error"))){const err10 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/items/properties/type/enum",params:{allowedValues: schema21.items.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrs2 = [];for(const err11 of vErrors){if(((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && ((err11.dataPath === dataPath+"/" + i0+"/type") || ((err11.dataPath.indexOf(dataPath+"/" + i0+"/type") === 0) && (err11.dataPath[dataPath+"/" + i0+"/type".length] === "/")))) && (err11.schemaPath.indexOf("#/items/properties/type") === 0)) && (err11.schemaPath["#/items/properties/type".length] === "/")){emErrs2.push(err11);err11.emUsed = true;}}if(emErrs2.length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/items/properties/type/errorMessage",params:{errors: emErrs2},message:"invalid scope type " + JSON.stringify(data2) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}const emErrs3 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs3.push(err13);}}vErrors = emErrs3;errors = emErrs3.length;}}if(data0.properties !== undefined){let data3 = data0.properties;if(Array.isArray(data3)){const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];const _errs16 = errors;let valid10 = true;const _errs17 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if((data4.type === undefined) && ("type")){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data4.type !== undefined){if(!equal(data4.type, "Dropdown")){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}var _valid1 = _errs17 === errors;errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}if(_valid1){const _errs19 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.choices === undefined){const err16 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(errors > 0){const emErrs4 = [];for(const err17 of vErrors){if(((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && ((err17.dataPath === dataPath+"/" + i0+"/properties/" + i1) || ((err17.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1) === 0) && (err17.dataPath[dataPath+"/" + i0+"/properties/" + i1.length] === "/")))) && (err17.schemaPath.indexOf("#/definitions/properties/items/allOf/0/then") === 0)) && (err17.schemaPath["#/definitions/properties/items/allOf/0/then".length] === "/")){emErrs4.push(err17);err17.emUsed = true;}}if(emErrs4.length){const err18 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/0/then/errorMessage",params:{errors: emErrs4},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}const emErrs5 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs5.push(err19);}}vErrors = emErrs5;errors = emErrs5.length;}var _valid1 = _errs19 === errors;valid10 = _valid1;}if(!valid10){const err20 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}const _errs21 = errors;let valid12 = true;const _errs22 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if((data4.binding === undefined) && ("binding")){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {if(data4.binding !== undefined){let data6 = data4.binding;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if((data6.type === undefined) && ("type")){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data6.type !== undefined){if(!equal(data6.type, "property")){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}}}}var _valid2 = _errs22 === errors;errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}if(_valid2){const _errs25 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type !== undefined){let data8 = data4.type;if(!(((((data8 === "String") || (data8 === "Text")) || (data8 === "Hidden")) || (data8 === "Dropdown")) || (data8 === "Boolean"))){const err24 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(errors > 0){const emErrs6 = [];for(const err25 of vErrors){if(((((err25.keyword !== "errorMessage") && (!err25.emUsed)) && ((err25.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/type") || ((err25.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/type") === 0) && (err25.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/type".length] === "/")))) && (err25.schemaPath.indexOf("#/definitions/properties/items/allOf/1/then/properties/type") === 0)) && (err25.schemaPath["#/definitions/properties/items/allOf/1/then/properties/type".length] === "/")){emErrs6.push(err25);err25.emUsed = true;}}if(emErrs6.length){const err26 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs6},message:"invalid property type " + JSON.stringify(data8) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}const emErrs7 = [];for(const err27 of vErrors){if(!err27.emUsed){emErrs7.push(err27);}}vErrors = emErrs7;errors = emErrs7.length;}}}var _valid2 = _errs25 === errors;valid12 = _valid2;}if(!valid12){const err28 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}const _errs28 = errors;let valid16 = true;const _errs29 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if((data4.binding === undefined) && ("binding")){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data4.binding !== undefined){let data9 = data4.binding;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if((data9.type === undefined) && ("type")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data9.type !== undefined){if(!equal(data9.type, "camunda:executionListener")){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}}}}}var _valid3 = _errs29 === errors;errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}if(_valid3){const _errs32 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type !== undefined){if(!(data4.type === "Hidden")){const err32 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(errors > 0){const emErrs8 = [];for(const err33 of vErrors){if(((((err33.keyword !== "errorMessage") && (!err33.emUsed)) && ((err33.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/type") || ((err33.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/type") === 0) && (err33.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/type".length] === "/")))) && (err33.schemaPath.indexOf("#/definitions/properties/items/allOf/2/then/properties/type") === 0)) && (err33.schemaPath["#/definitions/properties/items/allOf/2/then/properties/type".length] === "/")){emErrs8.push(err33);err33.emUsed = true;}}if(emErrs8.length){const err34 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs8},message:"invalid property type " + JSON.stringify(data4 && data4.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const emErrs9 = [];for(const err35 of vErrors){if(!err35.emUsed){emErrs9.push(err35);}}vErrors = emErrs9;errors = emErrs9.length;}}}var _valid3 = _errs32 === errors;valid16 = _valid3;}if(!valid16){const err36 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}const _errs35 = errors;let valid20 = true;const _errs36 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if((data4.binding === undefined) && ("binding")){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {if(data4.binding !== undefined){let data12 = data4.binding;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if((data12.type === undefined) && ("type")){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {if(data12.type !== undefined){let data13 = data12.type;if(!((((((data13 === "camunda:property") || (data13 === "camunda:outputParameter")) || (data13 === "camunda:in")) || (data13 === "camunda:in:businessKey")) || (data13 === "camunda:out")) || (data13 === "camunda:errorEventDefinition"))){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}}}}var _valid4 = _errs36 === errors;errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}if(_valid4){const _errs39 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type !== undefined){let data14 = data4.type;if(!(((data14 === "String") || (data14 === "Hidden")) || (data14 === "Dropdown"))){const err40 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(errors > 0){const emErrs10 = [];for(const err41 of vErrors){if(((((err41.keyword !== "errorMessage") && (!err41.emUsed)) && ((err41.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/type") || ((err41.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/type") === 0) && (err41.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/type".length] === "/")))) && (err41.schemaPath.indexOf("#/definitions/properties/items/allOf/3/then/properties/type") === 0)) && (err41.schemaPath["#/definitions/properties/items/allOf/3/then/properties/type".length] === "/")){emErrs10.push(err41);err41.emUsed = true;}}if(emErrs10.length){const err42 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data14) + " for binding type " + JSON.stringify(data4 && data4.binding && data4.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}const emErrs11 = [];for(const err43 of vErrors){if(!err43.emUsed){emErrs11.push(err43);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid4 = _errs39 === errors;valid20 = _valid4;}if(!valid20){const err44 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const _errs42 = errors;let valid24 = true;const _errs43 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if((data4.binding === undefined) && ("binding")){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {if(data4.binding !== undefined){let data15 = data4.binding;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if((data15.type === undefined) && ("type")){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data15.type !== undefined){let data16 = data15.type;if(!((data16 === "camunda:inputParameter") || (data16 === "camunda:field"))){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}}}}}var _valid5 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid5){const _errs46 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type !== undefined){let data17 = data4.type;if(!((((data17 === "String") || (data17 === "Text")) || (data17 === "Hidden")) || (data17 === "Dropdown"))){const err48 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(errors > 0){const emErrs12 = [];for(const err49 of vErrors){if(((((err49.keyword !== "errorMessage") && (!err49.emUsed)) && ((err49.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/type") || ((err49.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/type") === 0) && (err49.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/type".length] === "/")))) && (err49.schemaPath.indexOf("#/definitions/properties/items/allOf/4/then/properties/type") === 0)) && (err49.schemaPath["#/definitions/properties/items/allOf/4/then/properties/type".length] === "/")){emErrs12.push(err49);err49.emUsed = true;}}if(emErrs12.length){const err50 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data17) + " for binding type " + JSON.stringify(data4 && data4.binding && data4.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}const emErrs13 = [];for(const err51 of vErrors){if(!err51.emUsed){emErrs13.push(err51);}}vErrors = emErrs13;errors = emErrs13.length;}}}var _valid5 = _errs46 === errors;valid24 = _valid5;}if(!valid24){const err52 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.binding === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data4.value !== undefined){let data18 = data4.value;if((typeof data18 !== "string") && (typeof data18 !== "boolean")){const err54 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/value",schemaPath:"#/definitions/properties/items/properties/value/type",params:{type: schema18.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data4.description !== undefined){if(typeof data4.description !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/description",schemaPath:"#/definitions/properties/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data4.label !== undefined){if(typeof data4.label !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/label",schemaPath:"#/definitions/properties/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data4.type !== undefined){if(typeof data4.type !== "string"){const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data4.editable !== undefined){if(typeof data4.editable !== "boolean"){const err58 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/editable",schemaPath:"#/definitions/properties/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data4.choices !== undefined){let data23 = data4.choices;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.value === undefined){const err59 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data24.name === undefined){const err60 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data24.name !== undefined){if(typeof data24.name !== "string"){const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2+"/name",schemaPath:"#/definitions/properties/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data24.value !== undefined){if(typeof data24.value !== "string"){const err62 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2+"/value",schemaPath:"#/definitions/properties/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(errors > 0){const emErrs14 = [];for(const err64 of vErrors){if(((((err64.keyword !== "errorMessage") && (!err64.emUsed)) && ((err64.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2) || ((err64.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2) === 0) && (err64.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2.length] === "/")))) && (err64.schemaPath.indexOf("#/definitions/properties/items/properties/choices/items") === 0)) && (err64.schemaPath["#/definitions/properties/items/properties/choices/items".length] === "/")){emErrs14.push(err64);err64.emUsed = true;}}if(emErrs14.length){const err65 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/errorMessage",params:{errors: emErrs14},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}const emErrs15 = [];for(const err66 of vErrors){if(!err66.emUsed){emErrs15.push(err66);}}vErrors = emErrs15;errors = emErrs15.length;}}}else {const err67 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/choices",schemaPath:"#/definitions/properties/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data4.binding !== undefined){let data27 = data4.binding;const _errs69 = errors;let valid33 = true;const _errs70 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {if(data27.type !== undefined){let data28 = data27.type;if(!((((data28 === "property") || (data28 === "camunda:property")) || (data28 === "camunda:inputParameter")) || (data28 === "camunda:field"))){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}}var _valid6 = _errs70 === errors;errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}if(_valid6){const _errs72 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.name === undefined){const err70 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(errors > 0){const emErrs16 = [];for(const err71 of vErrors){if(((((err71.keyword !== "errorMessage") && (!err71.emUsed)) && ((err71.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/binding") || ((err71.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/binding") === 0) && (err71.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/binding".length] === "/")))) && (err71.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/0/then") === 0)) && (err71.schemaPath["#/definitions/properties/items/properties/binding/allOf/0/then".length] === "/")){emErrs16.push(err71);err71.emUsed = true;}}if(emErrs16.length){const err72 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs16},message:"property.binding " + JSON.stringify(data27 && data27.type) + " requires name"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const emErrs17 = [];for(const err73 of vErrors){if(!err73.emUsed){emErrs17.push(err73);}}vErrors = emErrs17;errors = emErrs17.length;}var _valid6 = _errs72 === errors;valid33 = _valid6;}if(!valid33){const err74 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const _errs74 = errors;let valid35 = true;const _errs75 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data27.type !== undefined){if(!equal(data27.type, "camunda:outputParameter")){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}}var _valid7 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}if(_valid7){const _errs77 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.source === undefined){const err77 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err78 of vErrors){if(((((err78.keyword !== "errorMessage") && (!err78.emUsed)) && ((err78.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/binding") || ((err78.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/binding") === 0) && (err78.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/binding".length] === "/")))) && (err78.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/1/then") === 0)) && (err78.schemaPath["#/definitions/properties/items/properties/binding/allOf/1/then".length] === "/")){emErrs18.push(err78);err78.emUsed = true;}}if(emErrs18.length){const err79 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data27 && data27.type) + " requires source"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}const emErrs19 = [];for(const err80 of vErrors){if(!err80.emUsed){emErrs19.push(err80);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid7 = _errs77 === errors;valid35 = _valid7;}if(!valid35){const err81 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const _errs79 = errors;let valid37 = true;const _errs80 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data27.type !== undefined){if(!equal(data27.type, "camunda:in")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}var _valid8 = _errs80 === errors;errors = _errs79;if(vErrors !== null){if(_errs79){vErrors.length = _errs79;}else {vErrors = null;}}if(_valid8){const _errs82 = errors;const _errs83 = errors;let valid39 = false;let passing0 = null;const _errs84 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.variables === undefined){const err84 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var _valid9 = _errs84 === errors;if(_valid9){valid39 = true;passing0 = 0;}const _errs85 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.target === undefined){const err85 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid9 = _errs85 === errors;if(_valid9 && valid39){valid39 = false;passing0 = [passing0, 1];}else {if(_valid9){valid39 = true;passing0 = 1;}}if(!valid39){const err86 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}}if(errors > 0){const emErrs20 = [];for(const err87 of vErrors){if(((((err87.keyword !== "errorMessage") && (!err87.emUsed)) && ((err87.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/binding") || ((err87.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/binding") === 0) && (err87.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/binding".length] === "/")))) && (err87.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/2/then") === 0)) && (err87.schemaPath["#/definitions/properties/items/properties/binding/allOf/2/then".length] === "/")){emErrs20.push(err87);err87.emUsed = true;}}if(emErrs20.length){const err88 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data27 && data27.type) + " requires variables or target"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const emErrs21 = [];for(const err89 of vErrors){if(!err89.emUsed){emErrs21.push(err89);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid8 = _errs82 === errors;valid37 = _valid8;}if(!valid37){const err90 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const _errs87 = errors;let valid40 = true;const _errs88 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data27.type !== undefined){if(!equal(data27.type, "camunda:out")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}}var _valid10 = _errs88 === errors;errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}if(_valid10){const _errs90 = errors;const _errs91 = errors;let valid42 = false;let passing1 = null;const _errs92 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.variables === undefined){const err93 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var _valid11 = _errs92 === errors;if(_valid11){valid42 = true;passing1 = 0;}const _errs93 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.source === undefined){const err94 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}var _valid11 = _errs93 === errors;if(_valid11 && valid42){valid42 = false;passing1 = [passing1, 1];}else {if(_valid11){valid42 = true;passing1 = 1;}const _errs94 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.sourceExpression === undefined){const err95 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var _valid11 = _errs94 === errors;if(_valid11 && valid42){valid42 = false;passing1 = [passing1, 2];}else {if(_valid11){valid42 = true;passing1 = 2;}}}if(!valid42){const err96 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/binding") || ((err97.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/binding") === 0) && (err97.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/binding".length] === "/")))) && (err97.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/3/then") === 0)) && (err97.schemaPath["#/definitions/properties/items/properties/binding/allOf/3/then".length] === "/")){emErrs22.push(err97);err97.emUsed = true;}}if(emErrs22.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data27 && data27.type) + " requires variables, sourceExpression or source"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs23 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs23.push(err99);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid10 = _errs90 === errors;valid40 = _valid10;}if(!valid40){const err100 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs96 = errors;let valid43 = true;const _errs97 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data27.type !== undefined){if(!equal(data27.type, "camunda:errorEventDefinition")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}var _valid12 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid12){const _errs99 = errors;const _errs100 = errors;let valid45 = false;let passing2 = null;const _errs101 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.errorRef === undefined){const err103 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var _valid13 = _errs101 === errors;if(_valid13){valid45 = true;passing2 = 0;}if(!valid45){const err104 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {errors = _errs100;if(vErrors !== null){if(_errs100){vErrors.length = _errs100;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/binding") || ((err105.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/binding") === 0) && (err105.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/binding".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/4/then") === 0)) && (err105.schemaPath["#/definitions/properties/items/properties/binding/allOf/4/then".length] === "/")){emErrs24.push(err105);err105.emUsed = true;}}if(emErrs24.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data27 && data27.type) + " requires errorRef"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs25 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs25.push(err107);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid12 = _errs99 === errors;valid43 = _valid12;}if(!valid43){const err108 = {keyword:"if",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type === undefined){const err109 = {keyword:"required",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data27.type !== undefined){let data33 = data27.type;if(typeof data33 !== "string"){const err110 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(!((((((((((data33 === "property") || (data33 === "camunda:property")) || (data33 === "camunda:inputParameter")) || (data33 === "camunda:outputParameter")) || (data33 === "camunda:in")) || (data33 === "camunda:out")) || (data33 === "camunda:in:businessKey")) || (data33 === "camunda:executionListener")) || (data33 === "camunda:field")) || (data33 === "camunda:errorEventDefinition"))){const err111 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs26 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.dataPath === dataPath+"/" + i0+"/properties/" + i1+"/binding/type") || ((err112.dataPath.indexOf(dataPath+"/" + i0+"/properties/" + i1+"/binding/type") === 0) && (err112.dataPath[dataPath+"/" + i0+"/properties/" + i1+"/binding/type".length] === "/")))) && (err112.schemaPath.indexOf("#/definitions/properties/items/properties/binding/properties/type") === 0)) && (err112.schemaPath["#/definitions/properties/items/properties/binding/properties/type".length] === "/")){emErrs26.push(err112);err112.emUsed = true;}}if(emErrs26.length){const err113 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs26},message:"invalid property.binding type " + JSON.stringify(data33) + "; 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 = [err113];}else {vErrors.push(err113);}errors++;}const emErrs27 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs27.push(err114);}}vErrors = emErrs27;errors = emErrs27.length;}}if(data27.name !== undefined){if(typeof data27.name !== "string"){const err115 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/name",schemaPath:"#/definitions/properties/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data27.event !== undefined){if(typeof data27.event !== "string"){const err116 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/event",schemaPath:"#/definitions/properties/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data27.scriptFormat !== undefined){if(typeof data27.scriptFormat !== "string"){const err117 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/scriptFormat",schemaPath:"#/definitions/properties/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data27.source !== undefined){if(typeof data27.source !== "string"){const err118 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/source",schemaPath:"#/definitions/properties/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data27.target !== undefined){if(typeof data27.target !== "string"){const err119 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/target",schemaPath:"#/definitions/properties/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data27.expression !== undefined){if(typeof data27.expression !== "boolean"){const err120 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/expression",schemaPath:"#/definitions/properties/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data27.variables !== undefined){let data40 = data27.variables;if(typeof data40 !== "string"){const err121 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/variables",schemaPath:"#/definitions/properties/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(!((data40 === "all") || (data40 === "local"))){const err122 = {keyword:"enum",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/variables",schemaPath:"#/definitions/properties/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data27.sourceExpression !== undefined){if(typeof data27.sourceExpression !== "string"){const err123 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding/sourceExpression",schemaPath:"#/definitions/properties/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}else {const err124 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data4.constraints !== undefined){let data42 = data4.constraints;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.notEmpty !== undefined){if(typeof data42.notEmpty !== "boolean"){const err125 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/notEmpty",schemaPath:"#/definitions/properties/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data42.minLength !== undefined){if(!(typeof data42.minLength == "number")){const err126 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/minLength",schemaPath:"#/definitions/properties/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data42.maxLength !== undefined){if(!(typeof data42.maxLength == "number")){const err127 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/maxLength",schemaPath:"#/definitions/properties/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data42.pattern !== undefined){let data46 = data42.pattern;const _errs129 = errors;let valid48 = false;let passing3 = null;const _errs130 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.value !== undefined){if(typeof data46.value !== "string"){const err128 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/pattern/value",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data46.message !== undefined){if(typeof data46.message !== "string"){const err129 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/pattern/message",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}else {const err130 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var _valid14 = _errs130 === errors;if(_valid14){valid48 = true;passing3 = 0;}const _errs136 = errors;if(typeof data46 !== "string"){const err131 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid14 = _errs136 === errors;if(_valid14 && valid48){valid48 = false;passing3 = [passing3, 1];}else {if(_valid14){valid48 = true;passing3 = 1;}}if(!valid48){const err132 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}}}else {const err133 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1+"/constraints",schemaPath:"#/definitions/properties/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if(errors > 0){const emErrors0 = {"required":{"binding":[]}};const templates0 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err135 of vErrors){if((((((err135.keyword !== "errorMessage") && (!err135.emUsed)) && (err135.dataPath === dataPath+"/" + i0+"/properties/" + i1)) && (err135.keyword in emErrors0)) && (err135.schemaPath.indexOf("#/definitions/properties/items") === 0)) && (/^\/[^\/]*$/.test(err135.schemaPath.slice(30)))){emPropParams0 = obj0[err135.keyword];emParamsErrors0 = emErrors0[err135.keyword][err135.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err135);err135.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 err136 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/properties/" + i1,schemaPath:"#/definitions/properties/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema18.items.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}const emErrs28 = [];for(const err137 of vErrors){if(!err137.emUsed){emErrs28.push(err137);}}vErrors = emErrs28;errors = emErrs28.length;}}}else {const err138 = {keyword:"type",dataPath:dataPath+"/" + i0+"/properties",schemaPath:"#/definitions/properties/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}}else {const err139 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(errors > 0){const emErrors1 = {"required":{"type":[],"properties":[]}};const templates1 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data0 && data0.type) + ", missing properties=[]"}}};let emPropParams1;let emParamsErrors1;for(const err140 of vErrors){if((((((err140.keyword !== "errorMessage") && (!err140.emUsed)) && (err140.dataPath === dataPath+"/" + i0)) && (err140.keyword in emErrors1)) && (err140.schemaPath.indexOf("#/items") === 0)) && (/^\/[^\/]*$/.test(err140.schemaPath.slice(7)))){emPropParams1 = obj0[err140.keyword];emParamsErrors1 = emErrors1[err140.keyword][err140.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err140);err140.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 err141 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema21.items.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}const emErrs29 = [];for(const err142 of vErrors){if(!err142.emUsed){emErrs29.push(err142);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err143 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}validate18.errors = vErrors;return errors === 0;}function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/required",params:{missingProperty: "properties"},message:"should 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 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/properties/appliesTo/items/pattern",params:{pattern: "^(.*?:)"},message:"should match pattern \""+"^(.*?:)"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(28)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.properties !== undefined){let data7 = data.properties;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs21 = errors;let valid7 = true;const _errs22 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if((data8.type === undefined) && ("type")){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data8.type !== undefined){if(!equal(data8.type, "Dropdown")){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}}var _valid0 = _errs22 === errors;errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}if(_valid0){const _errs24 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.choices === undefined){const err17 = {keyword:"required",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(errors > 0){const emErrs1 = [];for(const err18 of vErrors){if(((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && ((err18.dataPath === dataPath+"/properties/" + i1) || ((err18.dataPath.indexOf(dataPath+"/properties/" + i1) === 0) && (err18.dataPath[dataPath+"/properties/" + i1.length] === "/")))) && (err18.schemaPath.indexOf("#/definitions/properties/items/allOf/0/then") === 0)) && (err18.schemaPath["#/definitions/properties/items/allOf/0/then".length] === "/")){emErrs1.push(err18);err18.emUsed = true;}}if(emErrs1.length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/0/then/errorMessage",params:{errors: emErrs1},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}var _valid0 = _errs24 === errors;valid7 = _valid0;}if(!valid7){const err21 = {keyword:"if",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}const _errs26 = errors;let valid9 = true;const _errs27 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if((data8.binding === undefined) && ("binding")){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data8.binding !== undefined){let data10 = data8.binding;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if((data10.type === undefined) && ("type")){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(data10.type !== undefined){if(!equal(data10.type, "property")){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}}}}var _valid1 = _errs27 === errors;errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}if(_valid1){const _errs30 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.type !== undefined){let data12 = data8.type;if(!(((((data12 === "String") || (data12 === "Text")) || (data12 === "Hidden")) || (data12 === "Dropdown")) || (data12 === "Boolean"))){const err25 = {keyword:"enum",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrs3 = [];for(const err26 of vErrors){if(((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && ((err26.dataPath === dataPath+"/properties/" + i1+"/type") || ((err26.dataPath.indexOf(dataPath+"/properties/" + i1+"/type") === 0) && (err26.dataPath[dataPath+"/properties/" + i1+"/type".length] === "/")))) && (err26.schemaPath.indexOf("#/definitions/properties/items/allOf/1/then/properties/type") === 0)) && (err26.schemaPath["#/definitions/properties/items/allOf/1/then/properties/type".length] === "/")){emErrs3.push(err26);err26.emUsed = true;}}if(emErrs3.length){const err27 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs3},message:"invalid property type " + JSON.stringify(data12) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}const emErrs4 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs4.push(err28);}}vErrors = emErrs4;errors = emErrs4.length;}}}var _valid1 = _errs30 === errors;valid9 = _valid1;}if(!valid9){const err29 = {keyword:"if",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}const _errs33 = errors;let valid13 = true;const _errs34 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if((data8.binding === undefined) && ("binding")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data8.binding !== undefined){let data13 = data8.binding;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if((data13.type === undefined) && ("type")){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data13.type !== undefined){if(!equal(data13.type, "camunda:executionListener")){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}}}}}var _valid2 = _errs34 === errors;errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}if(_valid2){const _errs37 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.type !== undefined){if(!(data8.type === "Hidden")){const err33 = {keyword:"enum",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrs5 = [];for(const err34 of vErrors){if(((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && ((err34.dataPath === dataPath+"/properties/" + i1+"/type") || ((err34.dataPath.indexOf(dataPath+"/properties/" + i1+"/type") === 0) && (err34.dataPath[dataPath+"/properties/" + i1+"/type".length] === "/")))) && (err34.schemaPath.indexOf("#/definitions/properties/items/allOf/2/then/properties/type") === 0)) && (err34.schemaPath["#/definitions/properties/items/allOf/2/then/properties/type".length] === "/")){emErrs5.push(err34);err34.emUsed = true;}}if(emErrs5.length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data8 && data8.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}const emErrs6 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs6.push(err36);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid2 = _errs37 === errors;valid13 = _valid2;}if(!valid13){const err37 = {keyword:"if",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}const _errs40 = errors;let valid17 = true;const _errs41 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if((data8.binding === undefined) && ("binding")){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {if(data8.binding !== undefined){let data16 = data8.binding;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){if((data16.type === undefined) && ("type")){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {if(data16.type !== undefined){let data17 = data16.type;if(!((((((data17 === "camunda:property") || (data17 === "camunda:outputParameter")) || (data17 === "camunda:in")) || (data17 === "camunda:in:businessKey")) || (data17 === "camunda:out")) || (data17 === "camunda:errorEventDefinition"))){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}}}}}var _valid3 = _errs41 === errors;errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}if(_valid3){const _errs44 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.type !== undefined){let data18 = data8.type;if(!(((data18 === "String") || (data18 === "Hidden")) || (data18 === "Dropdown"))){const err41 = {keyword:"enum",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrs7 = [];for(const err42 of vErrors){if(((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && ((err42.dataPath === dataPath+"/properties/" + i1+"/type") || ((err42.dataPath.indexOf(dataPath+"/properties/" + i1+"/type") === 0) && (err42.dataPath[dataPath+"/properties/" + i1+"/type".length] === "/")))) && (err42.schemaPath.indexOf("#/definitions/properties/items/allOf/3/then/properties/type") === 0)) && (err42.schemaPath["#/definitions/properties/items/allOf/3/then/properties/type".length] === "/")){emErrs7.push(err42);err42.emUsed = true;}}if(emErrs7.length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data18) + " for binding type " + JSON.stringify(data8 && data8.binding && data8.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}const emErrs8 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs8.push(err44);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid3 = _errs44 === errors;valid17 = _valid3;}if(!valid17){const err45 = {keyword:"if",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs47 = errors;let valid21 = true;const _errs48 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if((data8.binding === undefined) && ("binding")){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data8.binding !== undefined){let data19 = data8.binding;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if((data19.type === undefined) && ("type")){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {if(data19.type !== undefined){let data20 = data19.type;if(!((data20 === "camunda:inputParameter") || (data20 === "camunda:field"))){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}}}}}var _valid4 = _errs48 === errors;errors = _errs47;if(vErrors !== null){if(_errs47){vErrors.length = _errs47;}else {vErrors = null;}}if(_valid4){const _errs51 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.type !== undefined){let data21 = data8.type;if(!((((data21 === "String") || (data21 === "Text")) || (data21 === "Hidden")) || (data21 === "Dropdown"))){const err49 = {keyword:"enum",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(errors > 0){const emErrs9 = [];for(const err50 of vErrors){if(((((err50.keyword !== "errorMessage") && (!err50.emUsed)) && ((err50.dataPath === dataPath+"/properties/" + i1+"/type") || ((err50.dataPath.indexOf(dataPath+"/properties/" + i1+"/type") === 0) && (err50.dataPath[dataPath+"/properties/" + i1+"/type".length] === "/")))) && (err50.schemaPath.indexOf("#/definitions/properties/items/allOf/4/then/properties/type") === 0)) && (err50.schemaPath["#/definitions/properties/items/allOf/4/then/properties/type".length] === "/")){emErrs9.push(err50);err50.emUsed = true;}}if(emErrs9.length){const err51 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data21) + " for binding type " + JSON.stringify(data8 && data8.binding && data8.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}const emErrs10 = [];for(const err52 of vErrors){if(!err52.emUsed){emErrs10.push(err52);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid4 = _errs51 === errors;valid21 = _valid4;}if(!valid21){const err53 = {keyword:"if",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.binding === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data8.value !== undefined){let data22 = data8.value;if((typeof data22 !== "string") && (typeof data22 !== "boolean")){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/value",schemaPath:"#/definitions/properties/items/properties/value/type",params:{type: schema18.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data8.description !== undefined){if(typeof data8.description !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/description",schemaPath:"#/definitions/properties/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data8.label !== undefined){if(typeof data8.label !== "string"){const err57 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/label",schemaPath:"#/definitions/properties/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data8.type !== undefined){if(typeof data8.type !== "string"){const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/type",schemaPath:"#/definitions/properties/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data8.editable !== undefined){if(typeof data8.editable !== "boolean"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/editable",schemaPath:"#/definitions/properties/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data8.choices !== undefined){let data27 = data8.choices;if(Array.isArray(data27)){const len2 = data27.length;for(let i2=0; i2<len2; i2++){let data28 = data27[i2];if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.value === undefined){const err60 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data28.name === undefined){const err61 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data28.name !== undefined){if(typeof data28.name !== "string"){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/choices/" + i2+"/name",schemaPath:"#/definitions/properties/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.value !== undefined){if(typeof data28.value !== "string"){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/choices/" + i2+"/value",schemaPath:"#/definitions/properties/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(errors > 0){const emErrs11 = [];for(const err65 of vErrors){if(((((err65.keyword !== "errorMessage") && (!err65.emUsed)) && ((err65.dataPath === dataPath+"/properties/" + i1+"/choices/" + i2) || ((err65.dataPath.indexOf(dataPath+"/properties/" + i1+"/choices/" + i2) === 0) && (err65.dataPath[dataPath+"/properties/" + i1+"/choices/" + i2.length] === "/")))) && (err65.schemaPath.indexOf("#/definitions/properties/items/properties/choices/items") === 0)) && (err65.schemaPath["#/definitions/properties/items/properties/choices/items".length] === "/")){emErrs11.push(err65);err65.emUsed = true;}}if(emErrs11.length){const err66 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/choices/" + i2,schemaPath:"#/definitions/properties/items/properties/choices/items/errorMessage",params:{errors: emErrs11},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}const emErrs12 = [];for(const err67 of vErrors){if(!err67.emUsed){emErrs12.push(err67);}}vErrors = emErrs12;errors = emErrs12.length;}}}else {const err68 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/choices",schemaPath:"#/definitions/properties/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data8.binding !== undefined){let data31 = data8.binding;const _errs74 = errors;let valid30 = true;const _errs75 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data31.type !== undefined){let data32 = data31.type;if(!((((data32 === "property") || (data32 === "camunda:property")) || (data32 === "camunda:inputParameter")) || (data32 === "camunda:field"))){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}var _valid5 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}if(_valid5){const _errs77 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.name === undefined){const err71 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(errors > 0){const emErrs13 = [];for(const err72 of vErrors){if(((((err72.keyword !== "errorMessage") && (!err72.emUsed)) && ((err72.dataPath === dataPath+"/properties/" + i1+"/binding") || ((err72.dataPath.indexOf(dataPath+"/properties/" + i1+"/binding") === 0) && (err72.dataPath[dataPath+"/properties/" + i1+"/binding".length] === "/")))) && (err72.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/0/then") === 0)) && (err72.schemaPath["#/definitions/properties/items/properties/binding/allOf/0/then".length] === "/")){emErrs13.push(err72);err72.emUsed = true;}}if(emErrs13.length){const err73 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs13},message:"property.binding " + JSON.stringify(data31 && data31.type) + " requires name"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}const emErrs14 = [];for(const err74 of vErrors){if(!err74.emUsed){emErrs14.push(err74);}}vErrors = emErrs14;errors = emErrs14.length;}var _valid5 = _errs77 === errors;valid30 = _valid5;}if(!valid30){const err75 = {keyword:"if",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const _errs79 = errors;let valid32 = true;const _errs80 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {if(data31.type !== undefined){if(!equal(data31.type, "camunda:outputParameter")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}}var _valid6 = _errs80 === errors;errors = _errs79;if(vErrors !== null){if(_errs79){vErrors.length = _errs79;}else {vErrors = null;}}if(_valid6){const _errs82 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.source === undefined){const err78 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err79 of vErrors){if(((((err79.keyword !== "errorMessage") && (!err79.emUsed)) && ((err79.dataPath === dataPath+"/properties/" + i1+"/binding") || ((err79.dataPath.indexOf(dataPath+"/properties/" + i1+"/binding") === 0) && (err79.dataPath[dataPath+"/properties/" + i1+"/binding".length] === "/")))) && (err79.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/1/then") === 0)) && (err79.schemaPath["#/definitions/properties/items/properties/binding/allOf/1/then".length] === "/")){emErrs15.push(err79);err79.emUsed = true;}}if(emErrs15.length){const err80 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data31 && data31.type) + " requires source"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const emErrs16 = [];for(const err81 of vErrors){if(!err81.emUsed){emErrs16.push(err81);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid6 = _errs82 === errors;valid32 = _valid6;}if(!valid32){const err82 = {keyword:"if",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const _errs84 = errors;let valid34 = true;const _errs85 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data31.type !== undefined){if(!equal(data31.type, "camunda:in")){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}var _valid7 = _errs85 === errors;errors = _errs84;if(vErrors !== null){if(_errs84){vErrors.length = _errs84;}else {vErrors = null;}}if(_valid7){const _errs87 = errors;const _errs88 = errors;let valid36 = false;let passing0 = null;const _errs89 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.variables === undefined){const err85 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid8 = _errs89 === errors;if(_valid8){valid36 = true;passing0 = 0;}const _errs90 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.target === undefined){const err86 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid8 = _errs90 === errors;if(_valid8 && valid36){valid36 = false;passing0 = [passing0, 1];}else {if(_valid8){valid36 = true;passing0 = 1;}}if(!valid36){const err87 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}if(errors > 0){const emErrs17 = [];for(const err88 of vErrors){if(((((err88.keyword !== "errorMessage") && (!err88.emUsed)) && ((err88.dataPath === dataPath+"/properties/" + i1+"/binding") || ((err88.dataPath.indexOf(dataPath+"/properties/" + i1+"/binding") === 0) && (err88.dataPath[dataPath+"/properties/" + i1+"/binding".length] === "/")))) && (err88.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/2/then") === 0)) && (err88.schemaPath["#/definitions/properties/items/properties/binding/allOf/2/then".length] === "/")){emErrs17.push(err88);err88.emUsed = true;}}if(emErrs17.length){const err89 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data31 && data31.type) + " requires variables or target"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const emErrs18 = [];for(const err90 of vErrors){if(!err90.emUsed){emErrs18.push(err90);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid7 = _errs87 === errors;valid34 = _valid7;}if(!valid34){const err91 = {keyword:"if",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}const _errs92 = errors;let valid37 = true;const _errs93 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data31.type !== undefined){if(!equal(data31.type, "camunda:out")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}}var _valid9 = _errs93 === errors;errors = _errs92;if(vErrors !== null){if(_errs92){vErrors.length = _errs92;}else {vErrors = null;}}if(_valid9){const _errs95 = errors;const _errs96 = errors;let valid39 = false;let passing1 = null;const _errs97 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.variables === undefined){const err94 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}var _valid10 = _errs97 === errors;if(_valid10){valid39 = true;passing1 = 0;}const _errs98 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.source === undefined){const err95 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var _valid10 = _errs98 === errors;if(_valid10 && valid39){valid39 = false;passing1 = [passing1, 1];}else {if(_valid10){valid39 = true;passing1 = 1;}const _errs99 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.sourceExpression === undefined){const err96 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}var _valid10 = _errs99 === errors;if(_valid10 && valid39){valid39 = false;passing1 = [passing1, 2];}else {if(_valid10){valid39 = true;passing1 = 2;}}}if(!valid39){const err97 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err98 of vErrors){if(((((err98.keyword !== "errorMessage") && (!err98.emUsed)) && ((err98.dataPath === dataPath+"/properties/" + i1+"/binding") || ((err98.dataPath.indexOf(dataPath+"/properties/" + i1+"/binding") === 0) && (err98.dataPath[dataPath+"/properties/" + i1+"/binding".length] === "/")))) && (err98.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/3/then") === 0)) && (err98.schemaPath["#/definitions/properties/items/properties/binding/allOf/3/then".length] === "/")){emErrs19.push(err98);err98.emUsed = true;}}if(emErrs19.length){const err99 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data31 && data31.type) + " requires variables, sourceExpression or source"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const emErrs20 = [];for(const err100 of vErrors){if(!err100.emUsed){emErrs20.push(err100);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid9 = _errs95 === errors;valid37 = _valid9;}if(!valid37){const err101 = {keyword:"if",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs101 = errors;let valid40 = true;const _errs102 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data31.type !== undefined){if(!equal(data31.type, "camunda:errorEventDefinition")){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid11 = _errs102 === errors;errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}if(_valid11){const _errs104 = errors;const _errs105 = errors;let valid42 = false;let passing2 = null;const _errs106 = errors;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.errorRef === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var _valid12 = _errs106 === errors;if(_valid12){valid42 = true;passing2 = 0;}if(!valid42){const err105 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err106 of vErrors){if(((((err106.keyword !== "errorMessage") && (!err106.emUsed)) && ((err106.dataPath === dataPath+"/properties/" + i1+"/binding") || ((err106.dataPath.indexOf(dataPath+"/properties/" + i1+"/binding") === 0) && (err106.dataPath[dataPath+"/properties/" + i1+"/binding".length] === "/")))) && (err106.schemaPath.indexOf("#/definitions/properties/items/properties/binding/allOf/4/then") === 0)) && (err106.schemaPath["#/definitions/properties/items/properties/binding/allOf/4/then".length] === "/")){emErrs21.push(err106);err106.emUsed = true;}}if(emErrs21.length){const err107 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data31 && data31.type) + " requires errorRef"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const emErrs22 = [];for(const err108 of vErrors){if(!err108.emUsed){emErrs22.push(err108);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid11 = _errs104 === errors;valid40 = _valid11;}if(!valid40){const err109 = {keyword:"if",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.type === undefined){const err110 = {keyword:"required",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data31.type !== undefined){let data37 = data31.type;if(typeof data37 !== "string"){const err111 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(!((((((((((data37 === "property") || (data37 === "camunda:property")) || (data37 === "camunda:inputParameter")) || (data37 === "camunda:outputParameter")) || (data37 === "camunda:in")) || (data37 === "camunda:out")) || (data37 === "camunda:in:businessKey")) || (data37 === "camunda:executionListener")) || (data37 === "camunda:field")) || (data37 === "camunda:errorEventDefinition"))){const err112 = {keyword:"enum",dataPath:dataPath+"/properties/" + i1+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(errors > 0){const emErrs23 = [];for(const err113 of vErrors){if(((((err113.keyword !== "errorMessage") && (!err113.emUsed)) && ((err113.dataPath === dataPath+"/properties/" + i1+"/binding/type") || ((err113.dataPath.indexOf(dataPath+"/properties/" + i1+"/binding/type") === 0) && (err113.dataPath[dataPath+"/properties/" + i1+"/binding/type".length] === "/")))) && (err113.schemaPath.indexOf("#/definitions/properties/items/properties/binding/properties/type") === 0)) && (err113.schemaPath["#/definitions/properties/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err113);err113.emUsed = true;}}if(emErrs23.length){const err114 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1+"/binding/type",schemaPath:"#/definitions/properties/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data37) + "; 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 = [err114];}else {vErrors.push(err114);}errors++;}const emErrs24 = [];for(const err115 of vErrors){if(!err115.emUsed){emErrs24.push(err115);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data31.name !== undefined){if(typeof data31.name !== "string"){const err116 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/name",schemaPath:"#/definitions/properties/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data31.event !== undefined){if(typeof data31.event !== "string"){const err117 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/event",schemaPath:"#/definitions/properties/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data31.scriptFormat !== undefined){if(typeof data31.scriptFormat !== "string"){const err118 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/scriptFormat",schemaPath:"#/definitions/properties/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data31.source !== undefined){if(typeof data31.source !== "string"){const err119 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/source",schemaPath:"#/definitions/properties/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data31.target !== undefined){if(typeof data31.target !== "string"){const err120 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/target",schemaPath:"#/definitions/properties/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data31.expression !== undefined){if(typeof data31.expression !== "boolean"){const err121 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/expression",schemaPath:"#/definitions/properties/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data31.variables !== undefined){let data44 = data31.variables;if(typeof data44 !== "string"){const err122 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/variables",schemaPath:"#/definitions/properties/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if(!((data44 === "all") || (data44 === "local"))){const err123 = {keyword:"enum",dataPath:dataPath+"/properties/" + i1+"/binding/variables",schemaPath:"#/definitions/properties/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(data31.sourceExpression !== undefined){if(typeof data31.sourceExpression !== "string"){const err124 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding/sourceExpression",schemaPath:"#/definitions/properties/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/binding",schemaPath:"#/definitions/properties/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data8.constraints !== undefined){let data46 = data8.constraints;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.notEmpty !== undefined){if(typeof data46.notEmpty !== "boolean"){const err126 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/notEmpty",schemaPath:"#/definitions/properties/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data46.minLength !== undefined){if(!(typeof data46.minLength == "number")){const err127 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/minLength",schemaPath:"#/definitions/properties/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data46.maxLength !== undefined){if(!(typeof data46.maxLength == "number")){const err128 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/maxLength",schemaPath:"#/definitions/properties/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data46.pattern !== undefined){let data50 = data46.pattern;const _errs134 = errors;let valid45 = false;let passing3 = null;const _errs135 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.value !== undefined){if(typeof data50.value !== "string"){const err129 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/pattern/value",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data50.message !== undefined){if(typeof data50.message !== "string"){const err130 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/pattern/message",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}else {const err131 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid13 = _errs135 === errors;if(_valid13){valid45 = true;passing3 = 0;}const _errs141 = errors;if(typeof data50 !== "string"){const err132 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid13 = _errs141 === errors;if(_valid13 && valid45){valid45 = false;passing3 = [passing3, 1];}else {if(_valid13){valid45 = true;passing3 = 1;}}if(!valid45){const err133 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i1+"/constraints/pattern",schemaPath:"#/definitions/properties/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}}}else {const err134 = {keyword:"type",dataPath:dataPath+"/properties/" + i1+"/constraints",schemaPath:"#/definitions/properties/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {keyword:"type",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(errors > 0){const emErrors1 = {"required":{"binding":[]}};const templates1 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err136 of vErrors){if((((((err136.keyword !== "errorMessage") && (!err136.emUsed)) && (err136.dataPath === dataPath+"/properties/" + i1)) && (err136.keyword in emErrors1)) && (err136.schemaPath.indexOf("#/definitions/properties/items") === 0)) && (/^\/[^\/]*$/.test(err136.schemaPath.slice(30)))){emPropParams0 = obj0[err136.keyword];emParamsErrors0 = emErrors1[err136.keyword][err136.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err136);err136.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err137 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i1,schemaPath:"#/definitions/properties/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema18.items.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}const emErrs25 = [];for(const err138 of vErrors){if(!err138.emUsed){emErrs25.push(err138);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err139 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data.metadata !== undefined){let data53 = data.metadata;if(!(data53 && typeof data53 == "object" && !Array.isArray(data53))){const err140 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data.scopes !== undefined){let data54 = data.scopes;const _errs146 = errors;let valid47 = false;let passing4 = null;const _errs147 = errors;if(!(validate16(data54, {dataPath:dataPath+"/scopes",parentData:data,parentDataProperty:"scopes",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}var _valid14 = _errs147 === errors;if(_valid14){valid47 = true;passing4 = 0;}const _errs148 = errors;if(!(validate18(data54, {dataPath:dataPath+"/scopes",parentData:data,parentDataProperty:"scopes",rootData}))){vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);errors = vErrors.length;}var _valid14 = _errs148 === errors;if(_valid14 && valid47){valid47 = false;passing4 = [passing4, 1];}else {if(_valid14){valid47 = true;passing4 = 1;}}if(!valid47){const err141 = {keyword:"oneOf",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}}if(data.entriesVisible !== undefined){let data55 = data.entriesVisible;if((!(data55 && typeof data55 == "object" && !Array.isArray(data55))) && (typeof data55 !== "boolean")){const err142 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/type",params:{type: schema17.properties.entriesVisible.type},message:"should be object,boolean"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}else {const err143 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(errors > 0){const emErrors2 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err144 of vErrors){if((((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && (err144.dataPath === dataPath)) && (err144.keyword in emErrors2)) && (err144.schemaPath.indexOf("#") === 0)) && (/^\/[^\/]*$/.test(err144.schemaPath.slice(1)))){emPropParams1 = obj0[err144.keyword];emParamsErrors1 = emErrors2[err144.keyword][err144.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err144);err144.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err145 = {keyword:"errorMessage",dataPath,schemaPath:"#/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}}const emErrs26 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs26.push(err146);}}vErrors = emErrs26;errors = emErrs26.length;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", 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, {dataPath,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], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should 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 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should 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;}
528
- standaloneValidator.default = _default;
529
-
530
- function getSchemaVersion() {
531
- return version;
532
- }
533
-
534
- /**
535
- * Validate a single object.
536
- *
537
- * @param {Object} object
538
- * @return {Object} single object validation result
539
- */
540
- function validate(object) {
531
+ function _validate(object, validateFn) {
541
532
  const dataPointerMap = generateDataPointerMap(object);
542
533
 
543
- const valid = standaloneValidator(object);
534
+ const valid = validateFn(object);
544
535
 
545
- let errors = standaloneValidator.errors;
536
+ let errors = validateFn.errors;
546
537
 
547
538
  if (errors && errors.length) {
548
539
 
@@ -570,20 +561,14 @@ function validate(object) {
570
561
  };
571
562
  }
572
563
 
573
- /**
574
- * Validate a list of objects
575
- *
576
- * @param {Object[]} objects
577
- * @return {Object} list validation result
578
- */
579
- function validateAll(objects) {
564
+ function _validateAll(objects, validateFn) {
580
565
 
581
566
  const results = [];
582
567
 
583
568
  let allValid = true;
584
569
 
585
570
  minDash.forEach(objects, function(object) {
586
- const result = validate(object);
571
+ const result = validateFn(object);
587
572
 
588
573
  if (!result.valid) {
589
574
  allValid = false;
@@ -654,6 +639,73 @@ function generateDataPointerMap(object) {
654
639
  return jsonSourceMap.stringify(object, null, 2).pointers;
655
640
  }
656
641
 
642
+ function getSchemaVersion() {
643
+ return version$1;
644
+ }
645
+
646
+ function getSchemaPackage() {
647
+ return name$1;
648
+ }
649
+
650
+ /**
651
+ * Validate a single object.
652
+ *
653
+ * @param {Object} object
654
+ * @return {Object} single object validation result
655
+ */
656
+ function validate(object) {
657
+ return _validate(object, standaloneValidator);
658
+ }
659
+
660
+ /**
661
+ * Validate a list of objects
662
+ *
663
+ * @param {Object[]} objects
664
+ * @return {Object} list validation result
665
+ */
666
+ function validateAll(objects) {
667
+ return _validateAll(objects, validate);
668
+ }
669
+
670
+ var name = "@camunda/zeebe-element-templates-json-schema";
671
+ var version = "0.1.0";
672
+
673
+ var standaloneZeebeValidator = validate14;var _default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","title":"element template name","description":"The name of the element template"},"id":{"$id":"#/id","type":"string","title":"element template id","description":"The identifier of the element template"},"description":{"$id":"#/description","type":"string","title":"element template description","description":"The description of the element template"},"version":{"$id":"#/version","type":"number","title":"element template version","description":"The version of the element template"},"isDefault":{"$id":"#/isDefault","type":"boolean","title":"element template is default","description":"Indicates whether the element template is a default template"},"appliesTo":{"$id":"#/appliesTo","type":"array","title":"element template applies to","description":"The definition for which element types the element template can be applied","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^(.*?:)","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"metadata":{"$id":"#/metadata","type":"object","title":"element template metadata","description":"Some metadata for further configuration"},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","title":"element template entries visible","description":"Select whether non-template entries are visible in the properties panel"},"groups":{"$id":"#/groups","type":"array","title":"element template properties groups","description":"The custom defined groups of the element template","default":[],"items":{"$id":"#/groups/group","type":"object","title":"element template group","description":"A custom defined group for the element template","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","title":"group id","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","title":"group label","description":"The label of the custom group"}}}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"}}};const schema18 = {"allOf":[{"type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"type":"object","title":"element template property","description":"A property defined for the element template","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"title":"property value","description":"The value of the control field for the property"},"description":{"$id":"#/properties/property/description","type":"string","title":"property description","description":"The description of the control field"},"label":{"$id":"#/properties/property/label","type":"string","title":"property label","description":"The label of the control field for the property"},"type":{"$id":"#/properties/property/type","type":"string","title":"property type","description":"The type of the control field"},"editable":{"$id":"#/properties/property/editable","type":"boolean","title":"property editable","description":"Indicates whether the property is editable or not"},"choices":{"$id":"#/properties/property/choices","type":"array","title":"property choices","description":"The choices for dropdown properties","items":{"$id":"#/properties/property/choices/item","type":"object","properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","title":"choice name","description":"The name of the choice"},"value":{"$id":"#/properties/property/choices/item/value","type":"string","title":"choice value","description":"The value of the choice"}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","title":"property constraints","description":"The validation constraints","properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","title":"property constraints not empty","description":"The control field must not be empty"},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","title":"property constraints min length","description":"The minimal length for the control field value"},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","title":"property constraints max length","description":"The maximal length for the control field value"},"pattern":{"$id":"#/properties/property/constraints/pattern","title":"property constraints pattern","description":"A regular expression pattern for the constraints","oneOf":[{"type":"object","properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","title":"property constraints pattern value","description":"The regular expression of the pattern constraint"},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","title":"property constraints pattern message","description":"The validation message of the pattern constraint"}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","title":"property group","description":"The custom group of the control field for the property"}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","title":"element template properties","description":"The properties of the element template","default":[],"items":{"type":"object","title":"element template property","description":"A property defined for the element template","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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":{"enum":["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},"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 }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"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"]}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","title":"property binding","description":"A binding to a BPMN 2.0 property","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:input"]}},"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"}}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","title":"property binding type","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }","description":"The type of the property binding"},"name":{"$id":"#/properties/property/binding/name","type":"string","title":"property binding name","description":"The name of binding xml property"},"source":{"$id":"#/properties/property/binding/source","type":"string","title":"property binding source","description":"The source value of a property binding (zeebe:output)"},"key":{"$id":"#/properties/property/binding/key","type":"string","title":"property binding key","description":"The key value of a property binding (zeebe:taskHeader)"}}},"optional":{"$id":"#/optional","type":"boolean","title":"element template optional","description":"Indicates whether a property is optional"}}}}]};const pattern0 = new RegExp("^(.*?:)", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should 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 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^(.*?:)"},message:"should match pattern \""+"^(.*?:)"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.metadata !== undefined){let data7 = data.metadata;if(!(data7 && typeof data7 == "object" && !Array.isArray(data7))){const err15 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err16 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.groups !== undefined){let data9 = data.groups;if(Array.isArray(data9)){const len1 = data9.length;for(let i1=0; i1<len1; i1++){let data10 = data9[i1];if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.id === undefined){const err17 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data10.label === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data10.id !== undefined){if(typeof data10.id !== "string"){const err19 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.label !== undefined){if(typeof data10.label !== "string"){const err20 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"required":{"id":[],"label":[]}};const templates1 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/groups/" + i1)) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(33)))){emPropParams0 = obj0[err22.keyword];emParamsErrors0 = emErrors1[err22.keyword][err22.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err22);err22.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err23 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.groups.items.errorMessage[key1][keyProp0]};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 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}if(errors > 0){const emErrors2 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath)) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(9)))){emPropParams1 = obj0[err26.keyword];emParamsErrors1 = emErrors2[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err27 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].errorMessage[key2][keyProp1]};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 && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data13 = data.properties;if(Array.isArray(data13)){const len2 = data13.length;for(let i2=0; i2<len2; i2++){let data14 = data13[i2];const _errs35 = errors;let valid13 = true;const _errs36 = errors;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if((data14.type === undefined) && ("type")){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data14.type !== undefined){if(!equal(data14.type, "Dropdown")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}}var _valid0 = _errs36 === errors;errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}if(_valid0){const _errs38 = errors;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.choices === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(errors > 0){const emErrs3 = [];for(const err32 of vErrors){if(((((err32.keyword !== "errorMessage") && (!err32.emUsed)) && ((err32.dataPath === dataPath+"/properties/" + i2) || ((err32.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err32.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err32.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err32.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs3.push(err32);err32.emUsed = true;}}if(emErrs3.length){const err33 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs3},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}const emErrs4 = [];for(const err34 of vErrors){if(!err34.emUsed){emErrs4.push(err34);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid0 = _errs38 === errors;valid13 = _valid0;}if(!valid13){const err35 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.value !== undefined){let data16 = data14.value;if((typeof data16 !== "string") && (typeof data16 !== "boolean")){const err36 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data14.description !== undefined){if(typeof data14.description !== "string"){const err37 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data14.label !== undefined){if(typeof data14.label !== "string"){const err38 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data14.type !== undefined){if(typeof data14.type !== "string"){const err39 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data14.editable !== undefined){if(typeof data14.editable !== "boolean"){const err40 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data14.choices !== undefined){let data21 = data14.choices;if(Array.isArray(data21)){const len3 = data21.length;for(let i3=0; i3<len3; i3++){let data22 = data21[i3];if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.value === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data22.name === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data22.name !== undefined){if(typeof data22.name !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.value !== undefined){if(typeof data22.value !== "string"){const err44 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(errors > 0){const emErrs5 = [];for(const err46 of vErrors){if(((((err46.keyword !== "errorMessage") && (!err46.emUsed)) && ((err46.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err46.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err46.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err46.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err46.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs5.push(err46);err46.emUsed = true;}}if(emErrs5.length){const err47 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs5},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const emErrs6 = [];for(const err48 of vErrors){if(!err48.emUsed){emErrs6.push(err48);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data14.constraints !== undefined){let data25 = data14.constraints;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.notEmpty !== undefined){if(typeof data25.notEmpty !== "boolean"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.minLength !== undefined){if(!(typeof data25.minLength == "number")){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data25.maxLength !== undefined){if(!(typeof data25.maxLength == "number")){const err52 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data25.pattern !== undefined){let data29 = data25.pattern;const _errs66 = errors;let valid20 = false;let passing0 = null;const _errs67 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err53 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data29.message !== undefined){if(typeof data29.message !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid1 = _errs67 === errors;if(_valid1){valid20 = true;passing0 = 0;}const _errs73 = errors;if(typeof data29 !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid1 = _errs73 === errors;if(_valid1 && valid20){valid20 = false;passing0 = [passing0, 1];}else {if(_valid1){valid20 = true;passing0 = 1;}}if(!valid20){const err57 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}}}}else {const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data14.group !== undefined){if(typeof data14.group !== "string"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(Array.isArray(data13)){const len4 = data13.length;for(let i4=0; i4<len4; i4++){let data33 = data13[i4];const _errs82 = errors;let valid25 = true;const _errs83 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data33.binding !== undefined){let data34 = data33.binding;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data34.type !== undefined){if(!equal(data34.type, "property")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid2 = _errs83 === errors;errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}if(_valid2){const _errs86 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data36 = data33.type;if(!(((((data36 === "String") || (data36 === "Text")) || (data36 === "Hidden")) || (data36 === "Dropdown")) || (data36 === "Boolean"))){const err65 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs7 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.dataPath === dataPath+"/properties/" + i4+"/type") || ((err66.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err66.dataPath[dataPath+"/properties/" + i4+"/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] === "/")){emErrs7.push(err66);err66.emUsed = true;}}if(emErrs7.length){const err67 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data36) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs8 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs8.push(err68);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid2 = _errs86 === errors;valid25 = _valid2;}if(!valid25){const err69 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs89 = errors;let valid29 = true;const _errs90 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data33.binding !== undefined){let data37 = data33.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data37.type !== undefined){let data38 = data37.type;if(!((((data38 === "zeebe:input") || (data38 === "zeebe:output")) || (data38 === "zeebe:taskHeader")) || (data38 === "zeebe:taskDefinition:type"))){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid3 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid3){const _errs93 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data39 = data33.type;if(!((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown"))){const err73 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs9 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.dataPath === dataPath+"/properties/" + i4+"/type") || ((err74.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err74.dataPath[dataPath+"/properties/" + i4+"/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] === "/")){emErrs9.push(err74);err74.emUsed = true;}}if(emErrs9.length){const err75 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type " + JSON.stringify(data33 && data33.binding && data33.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs10 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs10.push(err76);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid3 = _errs93 === errors;valid29 = _valid3;}if(!valid29){const err77 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const _errs96 = errors;let valid33 = true;const _errs97 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.optional === undefined) && ("optional")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data33.optional !== undefined){if(!equal(data33.optional, true)){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}var _valid4 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid4){const _errs99 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.binding !== undefined){let data41 = data33.binding;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.type === undefined){const err80 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data41.type !== undefined){let data42 = data41.type;if(!((data42 === "zeebe:input") || (data42 === "zeebe:output"))){const err81 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if(errors > 0){const emErrs11 = [];for(const err82 of vErrors){if(((((err82.keyword !== "errorMessage") && (!err82.emUsed)) && ((err82.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err82.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err82.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err82.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err82.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err82);err82.emUsed = true;}}if(emErrs11.length){const err83 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data42) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}const emErrs12 = [];for(const err84 of vErrors){if(!err84.emUsed){emErrs12.push(err84);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid4 = _errs99 === errors;valid33 = _valid4;}if(!valid33){const err85 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs103 = errors;let valid37 = true;const _errs104 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.optional === undefined) && ("optional")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data33.optional !== undefined){if(!equal(data33.optional, true)){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}}var _valid5 = _errs104 === errors;errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}if(_valid5){const _errs106 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.constraints !== undefined){let data44 = data33.constraints;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.notEmpty === undefined){const err88 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data44.notEmpty !== undefined){if(!equal(data44.notEmpty, false)){const err89 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(errors > 0){const emErrs13 = [];for(const err90 of vErrors){if(((((err90.keyword !== "errorMessage") && (!err90.emUsed)) && ((err90.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err90.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err90.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err90.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err90.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err90);err90.emUsed = true;}}if(emErrs13.length){const err91 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}const emErrs14 = [];for(const err92 of vErrors){if(!err92.emUsed){emErrs14.push(err92);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid5 = _errs106 === errors;valid37 = _valid5;}if(!valid37){const err93 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.binding === undefined){const err94 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(data33.binding !== undefined){let data46 = data33.binding;const _errs112 = errors;let valid43 = true;const _errs113 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((data47 === "property") || (data47 === "zeebe:input"))){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}var _valid6 = _errs113 === errors;errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}if(_valid6){const _errs115 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.name === undefined){const err97 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err98 of vErrors){if(((((err98.keyword !== "errorMessage") && (!err98.emUsed)) && ((err98.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err98.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err98.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err98.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err98.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err98);err98.emUsed = true;}}if(emErrs15.length){const err99 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires name"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const emErrs16 = [];for(const err100 of vErrors){if(!err100.emUsed){emErrs16.push(err100);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid6 = _errs115 === errors;valid43 = _valid6;}if(!valid43){const err101 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs117 = errors;let valid45 = true;const _errs118 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "zeebe:output")){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid7 = _errs118 === errors;errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}if(_valid7){const _errs120 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.source === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err105.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err105.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err105.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err105);err105.emUsed = true;}}if(emErrs17.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires source"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs18 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs18.push(err107);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid7 = _errs120 === errors;valid45 = _valid7;}if(!valid45){const err108 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const _errs122 = errors;let valid47 = true;const _errs123 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "zeebe:taskHeader")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}}var _valid8 = _errs123 === errors;errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}if(_valid8){const _errs125 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.key === undefined){const err111 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err112.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err112.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err112.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err112.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err112);err112.emUsed = true;}}if(emErrs19.length){const err113 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires key"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs20 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs20.push(err114);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid8 = _errs125 === errors;valid47 = _valid8;}if(!valid47){const err115 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.type === undefined){const err116 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if(data46.type !== undefined){let data50 = data46.type;if(typeof data50 !== "string"){const err117 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(!(((((data50 === "property") || (data50 === "zeebe:taskDefinition:type")) || (data50 === "zeebe:input")) || (data50 === "zeebe:output")) || (data50 === "zeebe:taskHeader"))){const err118 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(errors > 0){const emErrs21 = [];for(const err119 of vErrors){if(((((err119.keyword !== "errorMessage") && (!err119.emUsed)) && ((err119.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err119.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err119.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err119.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err119.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs21.push(err119);err119.emUsed = true;}}if(emErrs21.length){const err120 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs21},message:"invalid property.binding type " + JSON.stringify(data50) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}const emErrs22 = [];for(const err121 of vErrors){if(!err121.emUsed){emErrs22.push(err121);}}vErrors = emErrs22;errors = emErrs22.length;}}if(data46.name !== undefined){if(typeof data46.name !== "string"){const err122 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data46.source !== undefined){if(typeof data46.source !== "string"){const err123 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(data46.key !== undefined){if(typeof data46.key !== "string"){const err124 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data33.optional !== undefined){if(typeof data33.optional !== "boolean"){const err126 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err128 of vErrors){if((((((err128.keyword !== "errorMessage") && (!err128.emUsed)) && (err128.dataPath === dataPath+"/properties/" + i4)) && (err128.keyword in emErrors3)) && (err128.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err128.schemaPath.slice(38)))){emPropParams2 = obj0[err128.keyword];emParamsErrors2 = emErrors3[err128.keyword][err128.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err128);err128.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 err129 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}const emErrs23 = [];for(const err130 of vErrors){if(!err130.emUsed){emErrs23.push(err130);}}vErrors = emErrs23;errors = emErrs23.length;}}}else {const err131 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", 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, {dataPath,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], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should 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 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should 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;}
674
+ standaloneZeebeValidator.default = _default;
675
+
676
+ function getZeebeSchemaPackage() {
677
+ return name;
678
+ }
679
+
680
+ function getZeebeSchemaVersion() {
681
+ return version;
682
+ }
683
+
684
+ /**
685
+ * Validate a single object.
686
+ *
687
+ * @param {Object} object
688
+ * @return {Object} single object validation result
689
+ */
690
+ function validateZeebe(object) {
691
+ return _validate(object, standaloneZeebeValidator);
692
+ }
693
+
694
+ /**
695
+ * Validate a list of objects
696
+ *
697
+ * @param {Object[]} objects
698
+ * @return {Object} list validation result
699
+ */
700
+ function validateAllZeebe(objects) {
701
+ return _validateAll(objects, validateZeebe);
702
+ }
703
+
704
+ exports.getSchemaPackage = getSchemaPackage;
657
705
  exports.getSchemaVersion = getSchemaVersion;
706
+ exports.getZeebeSchemaPackage = getZeebeSchemaPackage;
707
+ exports.getZeebeSchemaVersion = getZeebeSchemaVersion;
658
708
  exports.validate = validate;
659
709
  exports.validateAll = validateAll;
710
+ exports.validateAllZeebe = validateAllZeebe;
711
+ exports.validateZeebe = validateZeebe;