camunda-bpmn-js 0.13.0-alpha.4 → 0.13.0-alpha.5
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/CHANGELOG.md +5 -0
- package/dist/assets/properties-panel.css +20 -0
- package/dist/base-modeler.development.js +238 -2886
- package/dist/base-modeler.production.min.js +4 -4
- package/dist/camunda-cloud-modeler.development.js +1212 -3287
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +409 -2974
- package/dist/camunda-platform-modeler.production.min.js +4 -4
- package/package.json +5 -5
- package/dist/assets/bpmn-js-properties-panel.css +0 -778
|
@@ -61760,6 +61760,49 @@
|
|
|
61760
61760
|
height: "16"
|
|
61761
61761
|
};
|
|
61762
61762
|
|
|
61763
|
+
var FeelRequiredIcon = function FeelRequiredIcon(props) {
|
|
61764
|
+
return o$2("svg", { ...props,
|
|
61765
|
+
children: [o$2("path", {
|
|
61766
|
+
d: "M5.8 7.06V5.95h4.307v1.11H5.8zm0 3.071v-1.11h4.307v1.11H5.8z",
|
|
61767
|
+
fill: "#505562"
|
|
61768
|
+
}), o$2("path", {
|
|
61769
|
+
fillRule: "evenodd",
|
|
61770
|
+
clipRule: "evenodd",
|
|
61771
|
+
d: "M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268z",
|
|
61772
|
+
fill: "#505562"
|
|
61773
|
+
}), o$2("path", {
|
|
61774
|
+
d: "m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",
|
|
61775
|
+
fill: "#505562"
|
|
61776
|
+
})]
|
|
61777
|
+
});
|
|
61778
|
+
};
|
|
61779
|
+
|
|
61780
|
+
FeelRequiredIcon.defaultProps = {
|
|
61781
|
+
viewBox: "0 0 16 16",
|
|
61782
|
+
fill: "none",
|
|
61783
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61784
|
+
};
|
|
61785
|
+
|
|
61786
|
+
var FeelOptionalIcon = function FeelOptionalIcon(props) {
|
|
61787
|
+
return o$2("svg", { ...props,
|
|
61788
|
+
children: [o$2("path", {
|
|
61789
|
+
d: "M5.845 7.04V5.93h4.307v1.11H5.845zm0 3.07V9h4.307v1.11H5.845z",
|
|
61790
|
+
fill: "#505562"
|
|
61791
|
+
}), o$2("path", {
|
|
61792
|
+
fillRule: "evenodd",
|
|
61793
|
+
clipRule: "evenodd",
|
|
61794
|
+
d: "M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",
|
|
61795
|
+
fill: "#505562"
|
|
61796
|
+
})]
|
|
61797
|
+
});
|
|
61798
|
+
};
|
|
61799
|
+
|
|
61800
|
+
FeelOptionalIcon.defaultProps = {
|
|
61801
|
+
viewBox: "0 0 16 16",
|
|
61802
|
+
fill: "none",
|
|
61803
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61804
|
+
};
|
|
61805
|
+
|
|
61763
61806
|
function Group(props) {
|
|
61764
61807
|
const {
|
|
61765
61808
|
element,
|
|
@@ -62760,12 +62803,27 @@
|
|
|
62760
62803
|
return `bio-properties-panel-${id}`;
|
|
62761
62804
|
}
|
|
62762
62805
|
|
|
62806
|
+
function FeelIcon(props) {
|
|
62807
|
+
const {
|
|
62808
|
+
label,
|
|
62809
|
+
feel = false
|
|
62810
|
+
} = props;
|
|
62811
|
+
const feelRequiredLabel = ' must be a FEEL expression';
|
|
62812
|
+
const feelOptionalLabel = ' can optionally be a FEEL expression';
|
|
62813
|
+
return o$2("i", {
|
|
62814
|
+
class: "bio-properties-panel-feel-icon",
|
|
62815
|
+
title: label + (feel === 'required' ? feelRequiredLabel : feelOptionalLabel),
|
|
62816
|
+
children: feel === 'required' ? o$2(FeelRequiredIcon, {}) : o$2(FeelOptionalIcon, {})
|
|
62817
|
+
});
|
|
62818
|
+
}
|
|
62819
|
+
|
|
62763
62820
|
function TextArea(props) {
|
|
62764
62821
|
const {
|
|
62765
62822
|
id,
|
|
62766
62823
|
label,
|
|
62767
62824
|
rows = 2,
|
|
62768
62825
|
debounce,
|
|
62826
|
+
feel,
|
|
62769
62827
|
onInput,
|
|
62770
62828
|
value = '',
|
|
62771
62829
|
disabled,
|
|
@@ -62781,7 +62839,10 @@
|
|
|
62781
62839
|
children: [o$2("label", {
|
|
62782
62840
|
for: prefixId$2(id),
|
|
62783
62841
|
class: "bio-properties-panel-label",
|
|
62784
|
-
children: label
|
|
62842
|
+
children: [label, feel && o$2(FeelIcon, {
|
|
62843
|
+
feel: feel,
|
|
62844
|
+
label: label
|
|
62845
|
+
})]
|
|
62785
62846
|
}), o$2("textarea", {
|
|
62786
62847
|
id: prefixId$2(id),
|
|
62787
62848
|
name: id,
|
|
@@ -62817,6 +62878,7 @@
|
|
|
62817
62878
|
id,
|
|
62818
62879
|
description,
|
|
62819
62880
|
debounce,
|
|
62881
|
+
feel,
|
|
62820
62882
|
label,
|
|
62821
62883
|
getValue,
|
|
62822
62884
|
setValue,
|
|
@@ -62836,6 +62898,7 @@
|
|
|
62836
62898
|
rows: rows,
|
|
62837
62899
|
debounce: debounce,
|
|
62838
62900
|
monospace: monospace,
|
|
62901
|
+
feel: feel,
|
|
62839
62902
|
disabled: disabled
|
|
62840
62903
|
}), o$2(Description, {
|
|
62841
62904
|
forId: id,
|
|
@@ -62859,6 +62922,7 @@
|
|
|
62859
62922
|
id,
|
|
62860
62923
|
label,
|
|
62861
62924
|
onInput,
|
|
62925
|
+
feel = false,
|
|
62862
62926
|
value = ''
|
|
62863
62927
|
} = props;
|
|
62864
62928
|
const handleInput = d$1(() => {
|
|
@@ -62871,7 +62935,10 @@
|
|
|
62871
62935
|
children: [o$2("label", {
|
|
62872
62936
|
for: prefixId$1(id),
|
|
62873
62937
|
class: "bio-properties-panel-label",
|
|
62874
|
-
children: label
|
|
62938
|
+
children: [label, feel && o$2(FeelIcon, {
|
|
62939
|
+
feel: feel,
|
|
62940
|
+
label: label
|
|
62941
|
+
})]
|
|
62875
62942
|
}), o$2("input", {
|
|
62876
62943
|
id: prefixId$1(id),
|
|
62877
62944
|
type: "text",
|
|
@@ -62908,6 +62975,7 @@
|
|
|
62908
62975
|
description,
|
|
62909
62976
|
debounce,
|
|
62910
62977
|
disabled,
|
|
62978
|
+
feel,
|
|
62911
62979
|
label,
|
|
62912
62980
|
getValue,
|
|
62913
62981
|
setValue,
|
|
@@ -62949,7 +63017,8 @@
|
|
|
62949
63017
|
value: value,
|
|
62950
63018
|
onInput: handleChange,
|
|
62951
63019
|
debounce: debounce,
|
|
62952
|
-
disabled: disabled
|
|
63020
|
+
disabled: disabled,
|
|
63021
|
+
feel: feel
|
|
62953
63022
|
}), o$2(Description, {
|
|
62954
63023
|
forId: id,
|
|
62955
63024
|
element: element,
|
|
@@ -63747,2877 +63816,174 @@
|
|
|
63747
63816
|
addVariableToList(processVariables, newVariable);
|
|
63748
63817
|
};
|
|
63749
63818
|
|
|
63750
|
-
if (!isArray(elements)) {
|
|
63751
|
-
elements = [ elements ];
|
|
63752
|
-
}
|
|
63753
|
-
|
|
63754
|
-
forEach(elements, function(element) {
|
|
63755
|
-
|
|
63756
|
-
// (1) error event code + message variable
|
|
63757
|
-
var errorEventDefinitions = getErrorEventDefinitions(element);
|
|
63758
|
-
|
|
63759
|
-
forEach(errorEventDefinitions, function(definition) {
|
|
63760
|
-
|
|
63761
|
-
var errorCodeVariable = definition.get('errorCodeVariable'),
|
|
63762
|
-
errorMessageVariable = definition.get('errorMessageVariable');
|
|
63763
|
-
|
|
63764
|
-
if (errorCodeVariable) {
|
|
63765
|
-
addVariable(element, errorCodeVariable);
|
|
63766
|
-
}
|
|
63767
|
-
|
|
63768
|
-
if (errorMessageVariable) {
|
|
63769
|
-
addVariable(element, errorMessageVariable);
|
|
63770
|
-
}
|
|
63771
|
-
});
|
|
63772
|
-
|
|
63773
|
-
// (2) escalation code variable
|
|
63774
|
-
var escalationEventDefinitions = getEscalationEventDefinitions(element);
|
|
63775
|
-
|
|
63776
|
-
forEach(escalationEventDefinitions, function(definition) {
|
|
63777
|
-
|
|
63778
|
-
var escalationCodeVariable = definition.get('escalationCodeVariable');
|
|
63779
|
-
|
|
63780
|
-
if (escalationCodeVariable) {
|
|
63781
|
-
addVariable(element, escalationCodeVariable);
|
|
63782
|
-
}
|
|
63783
|
-
});
|
|
63784
|
-
|
|
63785
|
-
});
|
|
63786
|
-
|
|
63787
|
-
return processVariables;
|
|
63788
|
-
}
|
|
63789
|
-
|
|
63790
|
-
var extractors = [
|
|
63791
|
-
extractOutputParameters,
|
|
63792
|
-
extractResultVariables,
|
|
63793
|
-
extractFormFields,
|
|
63794
|
-
extractOutMappings,
|
|
63795
|
-
extractEventDefinitionVariables
|
|
63796
|
-
];
|
|
63797
|
-
|
|
63798
|
-
/**
|
|
63799
|
-
* @typedef {Object} ProcessVariable
|
|
63800
|
-
* @property {string} name
|
|
63801
|
-
* @property {Array<ModdleElement>} origin
|
|
63802
|
-
* @property {ModdleElement} scope
|
|
63803
|
-
*/
|
|
63804
|
-
|
|
63805
|
-
// api /////////////////////////
|
|
63806
|
-
|
|
63807
|
-
/**
|
|
63808
|
-
* Retrieves all process variables for a given container element.
|
|
63809
|
-
* @param {ModdleElement} containerElement
|
|
63810
|
-
*
|
|
63811
|
-
* @returns {Array<ProcessVariable>}
|
|
63812
|
-
*/
|
|
63813
|
-
function getProcessVariables(containerElement) {
|
|
63814
|
-
var processVariables = [];
|
|
63815
|
-
|
|
63816
|
-
// (1) extract all flow elements inside the container
|
|
63817
|
-
var elements = selfAndAllFlowElements$1([containerElement], false);
|
|
63818
|
-
|
|
63819
|
-
// (2) extract all variables from the extractors
|
|
63820
|
-
forEach(extractors, function(extractor) {
|
|
63821
|
-
extractor({
|
|
63822
|
-
elements: elements,
|
|
63823
|
-
containerElement: containerElement,
|
|
63824
|
-
processVariables: processVariables
|
|
63825
|
-
});
|
|
63826
|
-
});
|
|
63827
|
-
|
|
63828
|
-
return processVariables;
|
|
63829
|
-
}
|
|
63830
|
-
|
|
63831
|
-
/**
|
|
63832
|
-
* Retrieves all variables which are available in the given scope
|
|
63833
|
-
*
|
|
63834
|
-
* * Exclude variables which are only available in other scopes
|
|
63835
|
-
* * Exclude variables which are produced by the given element
|
|
63836
|
-
* * Include variables which are available in parent scopes
|
|
63837
|
-
*
|
|
63838
|
-
* @param {string} scope
|
|
63839
|
-
* @param {ModdleElement} rootElement element from where to extract all variables
|
|
63840
|
-
*
|
|
63841
|
-
* @returns {Array<ProcessVariable>}
|
|
63842
|
-
*/
|
|
63843
|
-
function getVariablesForScope(scope, rootElement) {
|
|
63844
|
-
|
|
63845
|
-
var allVariables = getProcessVariables(rootElement);
|
|
63846
|
-
|
|
63847
|
-
var scopeElement = getElement(scope, rootElement);
|
|
63848
|
-
|
|
63849
|
-
// (1) get variables for given scope
|
|
63850
|
-
var scopeVariables = filter(allVariables, function(variable) {
|
|
63851
|
-
return variable.scope.id === scopeElement.id;
|
|
63852
|
-
});
|
|
63853
|
-
|
|
63854
|
-
// (2) get variables for parent scopes
|
|
63855
|
-
var parents = getParents$2(scopeElement);
|
|
63856
|
-
|
|
63857
|
-
var parentsScopeVariables = filter(allVariables, function(variable) {
|
|
63858
|
-
return find(parents, function(parent) {
|
|
63859
|
-
return parent.id === variable.scope.id;
|
|
63860
|
-
});
|
|
63861
|
-
});
|
|
63862
|
-
|
|
63863
|
-
return combineArrays$1(scopeVariables, parentsScopeVariables);
|
|
63864
|
-
}
|
|
63865
|
-
|
|
63866
|
-
// helpers ////////////////////
|
|
63867
|
-
|
|
63868
|
-
function combineArrays$1(a, b) {
|
|
63869
|
-
return a.concat(b);
|
|
63870
|
-
}
|
|
63871
|
-
|
|
63872
|
-
/**
|
|
63873
|
-
* A simple translation stub to be used for multi-language support
|
|
63874
|
-
* in diagrams. Can be easily replaced with a more sophisticated
|
|
63875
|
-
* solution.
|
|
63876
|
-
*
|
|
63877
|
-
* @example
|
|
63878
|
-
*
|
|
63879
|
-
* // use it inside any diagram component by injecting `translate`.
|
|
63880
|
-
*
|
|
63881
|
-
* function MyService(translate) {
|
|
63882
|
-
* alert(translate('HELLO {you}', { you: 'You!' }));
|
|
63883
|
-
* }
|
|
63884
|
-
*
|
|
63885
|
-
* @param {string} template to interpolate
|
|
63886
|
-
* @param {Object} [replacements] a map with substitutes
|
|
63887
|
-
*
|
|
63888
|
-
* @return {string} the translated string
|
|
63889
|
-
*/
|
|
63890
|
-
function translate$3(template, replacements) {
|
|
63891
|
-
|
|
63892
|
-
replacements = replacements || {};
|
|
63893
|
-
|
|
63894
|
-
return template.replace(/{([^}]+)}/g, function(_, key) {
|
|
63895
|
-
return replacements[key] || '{' + key + '}';
|
|
63896
|
-
});
|
|
63897
|
-
}
|
|
63898
|
-
|
|
63899
|
-
var translateModule = {
|
|
63900
|
-
translate: [ 'value', translate$3 ]
|
|
63901
|
-
};
|
|
63902
|
-
|
|
63903
|
-
// Note: this is the semver.org version of the spec that it implements
|
|
63904
|
-
// Not necessarily the package version of this code.
|
|
63905
|
-
const SEMVER_SPEC_VERSION = '2.0.0';
|
|
63906
|
-
|
|
63907
|
-
const MAX_LENGTH = 256;
|
|
63908
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
|
63909
|
-
/* istanbul ignore next */ 9007199254740991;
|
|
63910
|
-
|
|
63911
|
-
// Max safe segment length for coercion.
|
|
63912
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
63913
|
-
|
|
63914
|
-
var constants = {
|
|
63915
|
-
SEMVER_SPEC_VERSION,
|
|
63916
|
-
MAX_LENGTH,
|
|
63917
|
-
MAX_SAFE_INTEGER,
|
|
63918
|
-
MAX_SAFE_COMPONENT_LENGTH
|
|
63919
|
-
};
|
|
63920
|
-
|
|
63921
|
-
const debug = (
|
|
63922
|
-
typeof process === 'object' &&
|
|
63923
|
-
process.env &&
|
|
63924
|
-
process.env.NODE_DEBUG &&
|
|
63925
|
-
/\bsemver\b/i.test(process.env.NODE_DEBUG)
|
|
63926
|
-
) ? (...args) => console.error('SEMVER', ...args)
|
|
63927
|
-
: () => {};
|
|
63928
|
-
|
|
63929
|
-
var debug_1 = debug;
|
|
63930
|
-
|
|
63931
|
-
var re_1 = createCommonjsModule(function (module, exports) {
|
|
63932
|
-
const { MAX_SAFE_COMPONENT_LENGTH } = constants;
|
|
63933
|
-
|
|
63934
|
-
exports = module.exports = {};
|
|
63935
|
-
|
|
63936
|
-
// The actual regexps go on exports.re
|
|
63937
|
-
const re = exports.re = [];
|
|
63938
|
-
const src = exports.src = [];
|
|
63939
|
-
const t = exports.t = {};
|
|
63940
|
-
let R = 0;
|
|
63941
|
-
|
|
63942
|
-
const createToken = (name, value, isGlobal) => {
|
|
63943
|
-
const index = R++;
|
|
63944
|
-
debug_1(index, value);
|
|
63945
|
-
t[name] = index;
|
|
63946
|
-
src[index] = value;
|
|
63947
|
-
re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
|
|
63948
|
-
};
|
|
63949
|
-
|
|
63950
|
-
// The following Regular Expressions can be used for tokenizing,
|
|
63951
|
-
// validating, and parsing SemVer version strings.
|
|
63952
|
-
|
|
63953
|
-
// ## Numeric Identifier
|
|
63954
|
-
// A single `0`, or a non-zero digit followed by zero or more digits.
|
|
63955
|
-
|
|
63956
|
-
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
|
|
63957
|
-
createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+');
|
|
63958
|
-
|
|
63959
|
-
// ## Non-numeric Identifier
|
|
63960
|
-
// Zero or more digits, followed by a letter or hyphen, and then zero or
|
|
63961
|
-
// more letters, digits, or hyphens.
|
|
63962
|
-
|
|
63963
|
-
createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*');
|
|
63964
|
-
|
|
63965
|
-
// ## Main Version
|
|
63966
|
-
// Three dot-separated numeric identifiers.
|
|
63967
|
-
|
|
63968
|
-
createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
|
|
63969
|
-
`(${src[t.NUMERICIDENTIFIER]})\\.` +
|
|
63970
|
-
`(${src[t.NUMERICIDENTIFIER]})`);
|
|
63971
|
-
|
|
63972
|
-
createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
|
|
63973
|
-
`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
|
|
63974
|
-
`(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
63975
|
-
|
|
63976
|
-
// ## Pre-release Version Identifier
|
|
63977
|
-
// A numeric identifier, or a non-numeric identifier.
|
|
63978
|
-
|
|
63979
|
-
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
|
|
63980
|
-
}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
63981
|
-
|
|
63982
|
-
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
|
|
63983
|
-
}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
63984
|
-
|
|
63985
|
-
// ## Pre-release Version
|
|
63986
|
-
// Hyphen, followed by one or more dot-separated pre-release version
|
|
63987
|
-
// identifiers.
|
|
63988
|
-
|
|
63989
|
-
createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
|
|
63990
|
-
}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
63991
|
-
|
|
63992
|
-
createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
|
|
63993
|
-
}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
63994
|
-
|
|
63995
|
-
// ## Build Metadata Identifier
|
|
63996
|
-
// Any combination of digits, letters, or hyphens.
|
|
63997
|
-
|
|
63998
|
-
createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+');
|
|
63999
|
-
|
|
64000
|
-
// ## Build Metadata
|
|
64001
|
-
// Plus sign, followed by one or more period-separated build metadata
|
|
64002
|
-
// identifiers.
|
|
64003
|
-
|
|
64004
|
-
createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
|
|
64005
|
-
}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
64006
|
-
|
|
64007
|
-
// ## Full Version String
|
|
64008
|
-
// A main version, followed optionally by a pre-release version and
|
|
64009
|
-
// build metadata.
|
|
64010
|
-
|
|
64011
|
-
// Note that the only major, minor, patch, and pre-release sections of
|
|
64012
|
-
// the version string are capturing groups. The build metadata is not a
|
|
64013
|
-
// capturing group, because it should not ever be used in version
|
|
64014
|
-
// comparison.
|
|
64015
|
-
|
|
64016
|
-
createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
|
|
64017
|
-
}${src[t.PRERELEASE]}?${
|
|
64018
|
-
src[t.BUILD]}?`);
|
|
64019
|
-
|
|
64020
|
-
createToken('FULL', `^${src[t.FULLPLAIN]}$`);
|
|
64021
|
-
|
|
64022
|
-
// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
|
|
64023
|
-
// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
|
|
64024
|
-
// common in the npm registry.
|
|
64025
|
-
createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
|
|
64026
|
-
}${src[t.PRERELEASELOOSE]}?${
|
|
64027
|
-
src[t.BUILD]}?`);
|
|
64028
|
-
|
|
64029
|
-
createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`);
|
|
64030
|
-
|
|
64031
|
-
createToken('GTLT', '((?:<|>)?=?)');
|
|
64032
|
-
|
|
64033
|
-
// Something like "2.*" or "1.2.x".
|
|
64034
|
-
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
|
64035
|
-
// Only the first item is strictly required.
|
|
64036
|
-
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
64037
|
-
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
64038
|
-
|
|
64039
|
-
createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
|
|
64040
|
-
`(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
|
|
64041
|
-
`(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
|
|
64042
|
-
`(?:${src[t.PRERELEASE]})?${
|
|
64043
|
-
src[t.BUILD]}?` +
|
|
64044
|
-
`)?)?`);
|
|
64045
|
-
|
|
64046
|
-
createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
|
|
64047
|
-
`(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
|
|
64048
|
-
`(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
|
|
64049
|
-
`(?:${src[t.PRERELEASELOOSE]})?${
|
|
64050
|
-
src[t.BUILD]}?` +
|
|
64051
|
-
`)?)?`);
|
|
64052
|
-
|
|
64053
|
-
createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
64054
|
-
createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
64055
|
-
|
|
64056
|
-
// Coercion.
|
|
64057
|
-
// Extract anything that could conceivably be a part of a valid semver
|
|
64058
|
-
createToken('COERCE', `${'(^|[^\\d])' +
|
|
64059
|
-
'(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
|
|
64060
|
-
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
|
64061
|
-
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
|
64062
|
-
`(?:$|[^\\d])`);
|
|
64063
|
-
createToken('COERCERTL', src[t.COERCE], true);
|
|
64064
|
-
|
|
64065
|
-
// Tilde ranges.
|
|
64066
|
-
// Meaning is "reasonably at or greater than"
|
|
64067
|
-
createToken('LONETILDE', '(?:~>?)');
|
|
64068
|
-
|
|
64069
|
-
createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
64070
|
-
exports.tildeTrimReplace = '$1~';
|
|
64071
|
-
|
|
64072
|
-
createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
64073
|
-
createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
64074
|
-
|
|
64075
|
-
// Caret ranges.
|
|
64076
|
-
// Meaning is "at least and backwards compatible with"
|
|
64077
|
-
createToken('LONECARET', '(?:\\^)');
|
|
64078
|
-
|
|
64079
|
-
createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
64080
|
-
exports.caretTrimReplace = '$1^';
|
|
64081
|
-
|
|
64082
|
-
createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
64083
|
-
createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
64084
|
-
|
|
64085
|
-
// A simple gt/lt/eq thing, or just "" to indicate "any version"
|
|
64086
|
-
createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
64087
|
-
createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
64088
|
-
|
|
64089
|
-
// An expression to strip any whitespace between the gtlt and the thing
|
|
64090
|
-
// it modifies, so that `> 1.2.3` ==> `>1.2.3`
|
|
64091
|
-
createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
|
|
64092
|
-
}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
64093
|
-
exports.comparatorTrimReplace = '$1$2$3';
|
|
64094
|
-
|
|
64095
|
-
// Something like `1.2.3 - 1.2.4`
|
|
64096
|
-
// Note that these all use the loose form, because they'll be
|
|
64097
|
-
// checked against either the strict or loose comparator form
|
|
64098
|
-
// later.
|
|
64099
|
-
createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
|
|
64100
|
-
`\\s+-\\s+` +
|
|
64101
|
-
`(${src[t.XRANGEPLAIN]})` +
|
|
64102
|
-
`\\s*$`);
|
|
64103
|
-
|
|
64104
|
-
createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
|
|
64105
|
-
`\\s+-\\s+` +
|
|
64106
|
-
`(${src[t.XRANGEPLAINLOOSE]})` +
|
|
64107
|
-
`\\s*$`);
|
|
64108
|
-
|
|
64109
|
-
// Star ranges basically just allow anything at all.
|
|
64110
|
-
createToken('STAR', '(<|>)?=?\\s*\\*');
|
|
64111
|
-
// >=0.0.0 is like a star
|
|
64112
|
-
createToken('GTE0', '^\\s*>=\\s*0\.0\.0\\s*$');
|
|
64113
|
-
createToken('GTE0PRE', '^\\s*>=\\s*0\.0\.0-0\\s*$');
|
|
64114
|
-
});
|
|
64115
|
-
|
|
64116
|
-
// parse out just the options we care about so we always get a consistent
|
|
64117
|
-
// obj with keys in a consistent order.
|
|
64118
|
-
const opts = ['includePrerelease', 'loose', 'rtl'];
|
|
64119
|
-
const parseOptions = options =>
|
|
64120
|
-
!options ? {}
|
|
64121
|
-
: typeof options !== 'object' ? { loose: true }
|
|
64122
|
-
: opts.filter(k => options[k]).reduce((options, k) => {
|
|
64123
|
-
options[k] = true;
|
|
64124
|
-
return options
|
|
64125
|
-
}, {});
|
|
64126
|
-
var parseOptions_1 = parseOptions;
|
|
64127
|
-
|
|
64128
|
-
const numeric = /^[0-9]+$/;
|
|
64129
|
-
const compareIdentifiers = (a, b) => {
|
|
64130
|
-
const anum = numeric.test(a);
|
|
64131
|
-
const bnum = numeric.test(b);
|
|
64132
|
-
|
|
64133
|
-
if (anum && bnum) {
|
|
64134
|
-
a = +a;
|
|
64135
|
-
b = +b;
|
|
64136
|
-
}
|
|
64137
|
-
|
|
64138
|
-
return a === b ? 0
|
|
64139
|
-
: (anum && !bnum) ? -1
|
|
64140
|
-
: (bnum && !anum) ? 1
|
|
64141
|
-
: a < b ? -1
|
|
64142
|
-
: 1
|
|
64143
|
-
};
|
|
64144
|
-
|
|
64145
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
64146
|
-
|
|
64147
|
-
var identifiers = {
|
|
64148
|
-
compareIdentifiers,
|
|
64149
|
-
rcompareIdentifiers
|
|
64150
|
-
};
|
|
64151
|
-
|
|
64152
|
-
const { MAX_LENGTH: MAX_LENGTH$1, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1 } = constants;
|
|
64153
|
-
const { re: re$2, t: t$2 } = re_1;
|
|
64154
|
-
|
|
64155
|
-
|
|
64156
|
-
const { compareIdentifiers: compareIdentifiers$1 } = identifiers;
|
|
64157
|
-
class SemVer {
|
|
64158
|
-
constructor (version, options) {
|
|
64159
|
-
options = parseOptions_1(options);
|
|
64160
|
-
|
|
64161
|
-
if (version instanceof SemVer) {
|
|
64162
|
-
if (version.loose === !!options.loose &&
|
|
64163
|
-
version.includePrerelease === !!options.includePrerelease) {
|
|
64164
|
-
return version
|
|
64165
|
-
} else {
|
|
64166
|
-
version = version.version;
|
|
64167
|
-
}
|
|
64168
|
-
} else if (typeof version !== 'string') {
|
|
64169
|
-
throw new TypeError(`Invalid Version: ${version}`)
|
|
64170
|
-
}
|
|
64171
|
-
|
|
64172
|
-
if (version.length > MAX_LENGTH$1) {
|
|
64173
|
-
throw new TypeError(
|
|
64174
|
-
`version is longer than ${MAX_LENGTH$1} characters`
|
|
64175
|
-
)
|
|
64176
|
-
}
|
|
64177
|
-
|
|
64178
|
-
debug_1('SemVer', version, options);
|
|
64179
|
-
this.options = options;
|
|
64180
|
-
this.loose = !!options.loose;
|
|
64181
|
-
// this isn't actually relevant for versions, but keep it so that we
|
|
64182
|
-
// don't run into trouble passing this.options around.
|
|
64183
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
64184
|
-
|
|
64185
|
-
const m = version.trim().match(options.loose ? re$2[t$2.LOOSE] : re$2[t$2.FULL]);
|
|
64186
|
-
|
|
64187
|
-
if (!m) {
|
|
64188
|
-
throw new TypeError(`Invalid Version: ${version}`)
|
|
64189
|
-
}
|
|
64190
|
-
|
|
64191
|
-
this.raw = version;
|
|
64192
|
-
|
|
64193
|
-
// these are actually numbers
|
|
64194
|
-
this.major = +m[1];
|
|
64195
|
-
this.minor = +m[2];
|
|
64196
|
-
this.patch = +m[3];
|
|
64197
|
-
|
|
64198
|
-
if (this.major > MAX_SAFE_INTEGER$1 || this.major < 0) {
|
|
64199
|
-
throw new TypeError('Invalid major version')
|
|
64200
|
-
}
|
|
64201
|
-
|
|
64202
|
-
if (this.minor > MAX_SAFE_INTEGER$1 || this.minor < 0) {
|
|
64203
|
-
throw new TypeError('Invalid minor version')
|
|
64204
|
-
}
|
|
64205
|
-
|
|
64206
|
-
if (this.patch > MAX_SAFE_INTEGER$1 || this.patch < 0) {
|
|
64207
|
-
throw new TypeError('Invalid patch version')
|
|
64208
|
-
}
|
|
64209
|
-
|
|
64210
|
-
// numberify any prerelease numeric ids
|
|
64211
|
-
if (!m[4]) {
|
|
64212
|
-
this.prerelease = [];
|
|
64213
|
-
} else {
|
|
64214
|
-
this.prerelease = m[4].split('.').map((id) => {
|
|
64215
|
-
if (/^[0-9]+$/.test(id)) {
|
|
64216
|
-
const num = +id;
|
|
64217
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER$1) {
|
|
64218
|
-
return num
|
|
64219
|
-
}
|
|
64220
|
-
}
|
|
64221
|
-
return id
|
|
64222
|
-
});
|
|
64223
|
-
}
|
|
64224
|
-
|
|
64225
|
-
this.build = m[5] ? m[5].split('.') : [];
|
|
64226
|
-
this.format();
|
|
64227
|
-
}
|
|
64228
|
-
|
|
64229
|
-
format () {
|
|
64230
|
-
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
64231
|
-
if (this.prerelease.length) {
|
|
64232
|
-
this.version += `-${this.prerelease.join('.')}`;
|
|
64233
|
-
}
|
|
64234
|
-
return this.version
|
|
64235
|
-
}
|
|
64236
|
-
|
|
64237
|
-
toString () {
|
|
64238
|
-
return this.version
|
|
64239
|
-
}
|
|
64240
|
-
|
|
64241
|
-
compare (other) {
|
|
64242
|
-
debug_1('SemVer.compare', this.version, this.options, other);
|
|
64243
|
-
if (!(other instanceof SemVer)) {
|
|
64244
|
-
if (typeof other === 'string' && other === this.version) {
|
|
64245
|
-
return 0
|
|
64246
|
-
}
|
|
64247
|
-
other = new SemVer(other, this.options);
|
|
64248
|
-
}
|
|
64249
|
-
|
|
64250
|
-
if (other.version === this.version) {
|
|
64251
|
-
return 0
|
|
64252
|
-
}
|
|
64253
|
-
|
|
64254
|
-
return this.compareMain(other) || this.comparePre(other)
|
|
64255
|
-
}
|
|
64256
|
-
|
|
64257
|
-
compareMain (other) {
|
|
64258
|
-
if (!(other instanceof SemVer)) {
|
|
64259
|
-
other = new SemVer(other, this.options);
|
|
64260
|
-
}
|
|
64261
|
-
|
|
64262
|
-
return (
|
|
64263
|
-
compareIdentifiers$1(this.major, other.major) ||
|
|
64264
|
-
compareIdentifiers$1(this.minor, other.minor) ||
|
|
64265
|
-
compareIdentifiers$1(this.patch, other.patch)
|
|
64266
|
-
)
|
|
64267
|
-
}
|
|
64268
|
-
|
|
64269
|
-
comparePre (other) {
|
|
64270
|
-
if (!(other instanceof SemVer)) {
|
|
64271
|
-
other = new SemVer(other, this.options);
|
|
64272
|
-
}
|
|
64273
|
-
|
|
64274
|
-
// NOT having a prerelease is > having one
|
|
64275
|
-
if (this.prerelease.length && !other.prerelease.length) {
|
|
64276
|
-
return -1
|
|
64277
|
-
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
64278
|
-
return 1
|
|
64279
|
-
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
64280
|
-
return 0
|
|
64281
|
-
}
|
|
64282
|
-
|
|
64283
|
-
let i = 0;
|
|
64284
|
-
do {
|
|
64285
|
-
const a = this.prerelease[i];
|
|
64286
|
-
const b = other.prerelease[i];
|
|
64287
|
-
debug_1('prerelease compare', i, a, b);
|
|
64288
|
-
if (a === undefined && b === undefined) {
|
|
64289
|
-
return 0
|
|
64290
|
-
} else if (b === undefined) {
|
|
64291
|
-
return 1
|
|
64292
|
-
} else if (a === undefined) {
|
|
64293
|
-
return -1
|
|
64294
|
-
} else if (a === b) {
|
|
64295
|
-
continue
|
|
64296
|
-
} else {
|
|
64297
|
-
return compareIdentifiers$1(a, b)
|
|
64298
|
-
}
|
|
64299
|
-
} while (++i)
|
|
64300
|
-
}
|
|
64301
|
-
|
|
64302
|
-
compareBuild (other) {
|
|
64303
|
-
if (!(other instanceof SemVer)) {
|
|
64304
|
-
other = new SemVer(other, this.options);
|
|
64305
|
-
}
|
|
64306
|
-
|
|
64307
|
-
let i = 0;
|
|
64308
|
-
do {
|
|
64309
|
-
const a = this.build[i];
|
|
64310
|
-
const b = other.build[i];
|
|
64311
|
-
debug_1('prerelease compare', i, a, b);
|
|
64312
|
-
if (a === undefined && b === undefined) {
|
|
64313
|
-
return 0
|
|
64314
|
-
} else if (b === undefined) {
|
|
64315
|
-
return 1
|
|
64316
|
-
} else if (a === undefined) {
|
|
64317
|
-
return -1
|
|
64318
|
-
} else if (a === b) {
|
|
64319
|
-
continue
|
|
64320
|
-
} else {
|
|
64321
|
-
return compareIdentifiers$1(a, b)
|
|
64322
|
-
}
|
|
64323
|
-
} while (++i)
|
|
64324
|
-
}
|
|
64325
|
-
|
|
64326
|
-
// preminor will bump the version up to the next minor release, and immediately
|
|
64327
|
-
// down to pre-release. premajor and prepatch work the same way.
|
|
64328
|
-
inc (release, identifier) {
|
|
64329
|
-
switch (release) {
|
|
64330
|
-
case 'premajor':
|
|
64331
|
-
this.prerelease.length = 0;
|
|
64332
|
-
this.patch = 0;
|
|
64333
|
-
this.minor = 0;
|
|
64334
|
-
this.major++;
|
|
64335
|
-
this.inc('pre', identifier);
|
|
64336
|
-
break
|
|
64337
|
-
case 'preminor':
|
|
64338
|
-
this.prerelease.length = 0;
|
|
64339
|
-
this.patch = 0;
|
|
64340
|
-
this.minor++;
|
|
64341
|
-
this.inc('pre', identifier);
|
|
64342
|
-
break
|
|
64343
|
-
case 'prepatch':
|
|
64344
|
-
// If this is already a prerelease, it will bump to the next version
|
|
64345
|
-
// drop any prereleases that might already exist, since they are not
|
|
64346
|
-
// relevant at this point.
|
|
64347
|
-
this.prerelease.length = 0;
|
|
64348
|
-
this.inc('patch', identifier);
|
|
64349
|
-
this.inc('pre', identifier);
|
|
64350
|
-
break
|
|
64351
|
-
// If the input is a non-prerelease version, this acts the same as
|
|
64352
|
-
// prepatch.
|
|
64353
|
-
case 'prerelease':
|
|
64354
|
-
if (this.prerelease.length === 0) {
|
|
64355
|
-
this.inc('patch', identifier);
|
|
64356
|
-
}
|
|
64357
|
-
this.inc('pre', identifier);
|
|
64358
|
-
break
|
|
64359
|
-
|
|
64360
|
-
case 'major':
|
|
64361
|
-
// If this is a pre-major version, bump up to the same major version.
|
|
64362
|
-
// Otherwise increment major.
|
|
64363
|
-
// 1.0.0-5 bumps to 1.0.0
|
|
64364
|
-
// 1.1.0 bumps to 2.0.0
|
|
64365
|
-
if (
|
|
64366
|
-
this.minor !== 0 ||
|
|
64367
|
-
this.patch !== 0 ||
|
|
64368
|
-
this.prerelease.length === 0
|
|
64369
|
-
) {
|
|
64370
|
-
this.major++;
|
|
64371
|
-
}
|
|
64372
|
-
this.minor = 0;
|
|
64373
|
-
this.patch = 0;
|
|
64374
|
-
this.prerelease = [];
|
|
64375
|
-
break
|
|
64376
|
-
case 'minor':
|
|
64377
|
-
// If this is a pre-minor version, bump up to the same minor version.
|
|
64378
|
-
// Otherwise increment minor.
|
|
64379
|
-
// 1.2.0-5 bumps to 1.2.0
|
|
64380
|
-
// 1.2.1 bumps to 1.3.0
|
|
64381
|
-
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
64382
|
-
this.minor++;
|
|
64383
|
-
}
|
|
64384
|
-
this.patch = 0;
|
|
64385
|
-
this.prerelease = [];
|
|
64386
|
-
break
|
|
64387
|
-
case 'patch':
|
|
64388
|
-
// If this is not a pre-release version, it will increment the patch.
|
|
64389
|
-
// If it is a pre-release it will bump up to the same patch version.
|
|
64390
|
-
// 1.2.0-5 patches to 1.2.0
|
|
64391
|
-
// 1.2.0 patches to 1.2.1
|
|
64392
|
-
if (this.prerelease.length === 0) {
|
|
64393
|
-
this.patch++;
|
|
64394
|
-
}
|
|
64395
|
-
this.prerelease = [];
|
|
64396
|
-
break
|
|
64397
|
-
// This probably shouldn't be used publicly.
|
|
64398
|
-
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
64399
|
-
case 'pre':
|
|
64400
|
-
if (this.prerelease.length === 0) {
|
|
64401
|
-
this.prerelease = [0];
|
|
64402
|
-
} else {
|
|
64403
|
-
let i = this.prerelease.length;
|
|
64404
|
-
while (--i >= 0) {
|
|
64405
|
-
if (typeof this.prerelease[i] === 'number') {
|
|
64406
|
-
this.prerelease[i]++;
|
|
64407
|
-
i = -2;
|
|
64408
|
-
}
|
|
64409
|
-
}
|
|
64410
|
-
if (i === -1) {
|
|
64411
|
-
// didn't increment anything
|
|
64412
|
-
this.prerelease.push(0);
|
|
64413
|
-
}
|
|
64414
|
-
}
|
|
64415
|
-
if (identifier) {
|
|
64416
|
-
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
|
|
64417
|
-
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
|
|
64418
|
-
if (this.prerelease[0] === identifier) {
|
|
64419
|
-
if (isNaN(this.prerelease[1])) {
|
|
64420
|
-
this.prerelease = [identifier, 0];
|
|
64421
|
-
}
|
|
64422
|
-
} else {
|
|
64423
|
-
this.prerelease = [identifier, 0];
|
|
64424
|
-
}
|
|
64425
|
-
}
|
|
64426
|
-
break
|
|
64427
|
-
|
|
64428
|
-
default:
|
|
64429
|
-
throw new Error(`invalid increment argument: ${release}`)
|
|
64430
|
-
}
|
|
64431
|
-
this.format();
|
|
64432
|
-
this.raw = this.version;
|
|
64433
|
-
return this
|
|
64434
|
-
}
|
|
64435
|
-
}
|
|
64436
|
-
|
|
64437
|
-
var semver = SemVer;
|
|
64438
|
-
|
|
64439
|
-
const {MAX_LENGTH: MAX_LENGTH$2} = constants;
|
|
64440
|
-
const { re: re$3, t: t$3 } = re_1;
|
|
64441
|
-
|
|
64442
|
-
|
|
64443
|
-
|
|
64444
|
-
const parse$2 = (version, options) => {
|
|
64445
|
-
options = parseOptions_1(options);
|
|
64446
|
-
|
|
64447
|
-
if (version instanceof semver) {
|
|
64448
|
-
return version
|
|
64449
|
-
}
|
|
64450
|
-
|
|
64451
|
-
if (typeof version !== 'string') {
|
|
64452
|
-
return null
|
|
64453
|
-
}
|
|
64454
|
-
|
|
64455
|
-
if (version.length > MAX_LENGTH$2) {
|
|
64456
|
-
return null
|
|
64457
|
-
}
|
|
64458
|
-
|
|
64459
|
-
const r = options.loose ? re$3[t$3.LOOSE] : re$3[t$3.FULL];
|
|
64460
|
-
if (!r.test(version)) {
|
|
64461
|
-
return null
|
|
64462
|
-
}
|
|
64463
|
-
|
|
64464
|
-
try {
|
|
64465
|
-
return new semver(version, options)
|
|
64466
|
-
} catch (er) {
|
|
64467
|
-
return null
|
|
64468
|
-
}
|
|
64469
|
-
};
|
|
64470
|
-
|
|
64471
|
-
var parse_1 = parse$2;
|
|
64472
|
-
|
|
64473
|
-
const valid = (version, options) => {
|
|
64474
|
-
const v = parse_1(version, options);
|
|
64475
|
-
return v ? v.version : null
|
|
64476
|
-
};
|
|
64477
|
-
var valid_1 = valid;
|
|
64478
|
-
|
|
64479
|
-
const clean = (version, options) => {
|
|
64480
|
-
const s = parse_1(version.trim().replace(/^[=v]+/, ''), options);
|
|
64481
|
-
return s ? s.version : null
|
|
64482
|
-
};
|
|
64483
|
-
var clean_1 = clean;
|
|
64484
|
-
|
|
64485
|
-
const inc = (version, release, options, identifier) => {
|
|
64486
|
-
if (typeof (options) === 'string') {
|
|
64487
|
-
identifier = options;
|
|
64488
|
-
options = undefined;
|
|
64489
|
-
}
|
|
64490
|
-
|
|
64491
|
-
try {
|
|
64492
|
-
return new semver(version, options).inc(release, identifier).version
|
|
64493
|
-
} catch (er) {
|
|
64494
|
-
return null
|
|
64495
|
-
}
|
|
64496
|
-
};
|
|
64497
|
-
var inc_1 = inc;
|
|
64498
|
-
|
|
64499
|
-
const compare = (a, b, loose) =>
|
|
64500
|
-
new semver(a, loose).compare(new semver(b, loose));
|
|
64501
|
-
|
|
64502
|
-
var compare_1 = compare;
|
|
64503
|
-
|
|
64504
|
-
const eq = (a, b, loose) => compare_1(a, b, loose) === 0;
|
|
64505
|
-
var eq_1 = eq;
|
|
64506
|
-
|
|
64507
|
-
const diff = (version1, version2) => {
|
|
64508
|
-
if (eq_1(version1, version2)) {
|
|
64509
|
-
return null
|
|
64510
|
-
} else {
|
|
64511
|
-
const v1 = parse_1(version1);
|
|
64512
|
-
const v2 = parse_1(version2);
|
|
64513
|
-
const hasPre = v1.prerelease.length || v2.prerelease.length;
|
|
64514
|
-
const prefix = hasPre ? 'pre' : '';
|
|
64515
|
-
const defaultResult = hasPre ? 'prerelease' : '';
|
|
64516
|
-
for (const key in v1) {
|
|
64517
|
-
if (key === 'major' || key === 'minor' || key === 'patch') {
|
|
64518
|
-
if (v1[key] !== v2[key]) {
|
|
64519
|
-
return prefix + key
|
|
64520
|
-
}
|
|
64521
|
-
}
|
|
64522
|
-
}
|
|
64523
|
-
return defaultResult // may be undefined
|
|
64524
|
-
}
|
|
64525
|
-
};
|
|
64526
|
-
var diff_1 = diff;
|
|
64527
|
-
|
|
64528
|
-
const major = (a, loose) => new semver(a, loose).major;
|
|
64529
|
-
var major_1 = major;
|
|
64530
|
-
|
|
64531
|
-
const minor = (a, loose) => new semver(a, loose).minor;
|
|
64532
|
-
var minor_1 = minor;
|
|
64533
|
-
|
|
64534
|
-
const patch = (a, loose) => new semver(a, loose).patch;
|
|
64535
|
-
var patch_1 = patch;
|
|
64536
|
-
|
|
64537
|
-
const prerelease = (version, options) => {
|
|
64538
|
-
const parsed = parse_1(version, options);
|
|
64539
|
-
return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
|
|
64540
|
-
};
|
|
64541
|
-
var prerelease_1 = prerelease;
|
|
64542
|
-
|
|
64543
|
-
const rcompare = (a, b, loose) => compare_1(b, a, loose);
|
|
64544
|
-
var rcompare_1 = rcompare;
|
|
64545
|
-
|
|
64546
|
-
const compareLoose = (a, b) => compare_1(a, b, true);
|
|
64547
|
-
var compareLoose_1 = compareLoose;
|
|
64548
|
-
|
|
64549
|
-
const compareBuild = (a, b, loose) => {
|
|
64550
|
-
const versionA = new semver(a, loose);
|
|
64551
|
-
const versionB = new semver(b, loose);
|
|
64552
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB)
|
|
64553
|
-
};
|
|
64554
|
-
var compareBuild_1 = compareBuild;
|
|
64555
|
-
|
|
64556
|
-
const sort = (list, loose) => list.sort((a, b) => compareBuild_1(a, b, loose));
|
|
64557
|
-
var sort_1 = sort;
|
|
64558
|
-
|
|
64559
|
-
const rsort = (list, loose) => list.sort((a, b) => compareBuild_1(b, a, loose));
|
|
64560
|
-
var rsort_1 = rsort;
|
|
64561
|
-
|
|
64562
|
-
const gt = (a, b, loose) => compare_1(a, b, loose) > 0;
|
|
64563
|
-
var gt_1 = gt;
|
|
64564
|
-
|
|
64565
|
-
const lt = (a, b, loose) => compare_1(a, b, loose) < 0;
|
|
64566
|
-
var lt_1 = lt;
|
|
64567
|
-
|
|
64568
|
-
const neq = (a, b, loose) => compare_1(a, b, loose) !== 0;
|
|
64569
|
-
var neq_1 = neq;
|
|
64570
|
-
|
|
64571
|
-
const gte = (a, b, loose) => compare_1(a, b, loose) >= 0;
|
|
64572
|
-
var gte_1 = gte;
|
|
64573
|
-
|
|
64574
|
-
const lte = (a, b, loose) => compare_1(a, b, loose) <= 0;
|
|
64575
|
-
var lte_1 = lte;
|
|
64576
|
-
|
|
64577
|
-
const cmp = (a, op, b, loose) => {
|
|
64578
|
-
switch (op) {
|
|
64579
|
-
case '===':
|
|
64580
|
-
if (typeof a === 'object')
|
|
64581
|
-
a = a.version;
|
|
64582
|
-
if (typeof b === 'object')
|
|
64583
|
-
b = b.version;
|
|
64584
|
-
return a === b
|
|
64585
|
-
|
|
64586
|
-
case '!==':
|
|
64587
|
-
if (typeof a === 'object')
|
|
64588
|
-
a = a.version;
|
|
64589
|
-
if (typeof b === 'object')
|
|
64590
|
-
b = b.version;
|
|
64591
|
-
return a !== b
|
|
64592
|
-
|
|
64593
|
-
case '':
|
|
64594
|
-
case '=':
|
|
64595
|
-
case '==':
|
|
64596
|
-
return eq_1(a, b, loose)
|
|
64597
|
-
|
|
64598
|
-
case '!=':
|
|
64599
|
-
return neq_1(a, b, loose)
|
|
64600
|
-
|
|
64601
|
-
case '>':
|
|
64602
|
-
return gt_1(a, b, loose)
|
|
64603
|
-
|
|
64604
|
-
case '>=':
|
|
64605
|
-
return gte_1(a, b, loose)
|
|
64606
|
-
|
|
64607
|
-
case '<':
|
|
64608
|
-
return lt_1(a, b, loose)
|
|
64609
|
-
|
|
64610
|
-
case '<=':
|
|
64611
|
-
return lte_1(a, b, loose)
|
|
64612
|
-
|
|
64613
|
-
default:
|
|
64614
|
-
throw new TypeError(`Invalid operator: ${op}`)
|
|
64615
|
-
}
|
|
64616
|
-
};
|
|
64617
|
-
var cmp_1 = cmp;
|
|
64618
|
-
|
|
64619
|
-
const {re: re$4, t: t$4} = re_1;
|
|
64620
|
-
|
|
64621
|
-
const coerce = (version, options) => {
|
|
64622
|
-
if (version instanceof semver) {
|
|
64623
|
-
return version
|
|
64624
|
-
}
|
|
64625
|
-
|
|
64626
|
-
if (typeof version === 'number') {
|
|
64627
|
-
version = String(version);
|
|
64628
|
-
}
|
|
64629
|
-
|
|
64630
|
-
if (typeof version !== 'string') {
|
|
64631
|
-
return null
|
|
64632
|
-
}
|
|
64633
|
-
|
|
64634
|
-
options = options || {};
|
|
64635
|
-
|
|
64636
|
-
let match = null;
|
|
64637
|
-
if (!options.rtl) {
|
|
64638
|
-
match = version.match(re$4[t$4.COERCE]);
|
|
64639
|
-
} else {
|
|
64640
|
-
// Find the right-most coercible string that does not share
|
|
64641
|
-
// a terminus with a more left-ward coercible string.
|
|
64642
|
-
// Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
|
|
64643
|
-
//
|
|
64644
|
-
// Walk through the string checking with a /g regexp
|
|
64645
|
-
// Manually set the index so as to pick up overlapping matches.
|
|
64646
|
-
// Stop when we get a match that ends at the string end, since no
|
|
64647
|
-
// coercible string can be more right-ward without the same terminus.
|
|
64648
|
-
let next;
|
|
64649
|
-
while ((next = re$4[t$4.COERCERTL].exec(version)) &&
|
|
64650
|
-
(!match || match.index + match[0].length !== version.length)
|
|
64651
|
-
) {
|
|
64652
|
-
if (!match ||
|
|
64653
|
-
next.index + next[0].length !== match.index + match[0].length) {
|
|
64654
|
-
match = next;
|
|
64655
|
-
}
|
|
64656
|
-
re$4[t$4.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
64657
|
-
}
|
|
64658
|
-
// leave it in a clean state
|
|
64659
|
-
re$4[t$4.COERCERTL].lastIndex = -1;
|
|
64660
|
-
}
|
|
64661
|
-
|
|
64662
|
-
if (match === null)
|
|
64663
|
-
return null
|
|
64664
|
-
|
|
64665
|
-
return parse_1(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)
|
|
64666
|
-
};
|
|
64667
|
-
var coerce_1 = coerce;
|
|
64668
|
-
|
|
64669
|
-
var iterator = function (Yallist) {
|
|
64670
|
-
Yallist.prototype[Symbol.iterator] = function* () {
|
|
64671
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
64672
|
-
yield walker.value;
|
|
64673
|
-
}
|
|
64674
|
-
};
|
|
64675
|
-
};
|
|
64676
|
-
|
|
64677
|
-
var yallist = Yallist;
|
|
64678
|
-
|
|
64679
|
-
Yallist.Node = Node$1;
|
|
64680
|
-
Yallist.create = Yallist;
|
|
64681
|
-
|
|
64682
|
-
function Yallist (list) {
|
|
64683
|
-
var self = this;
|
|
64684
|
-
if (!(self instanceof Yallist)) {
|
|
64685
|
-
self = new Yallist();
|
|
64686
|
-
}
|
|
64687
|
-
|
|
64688
|
-
self.tail = null;
|
|
64689
|
-
self.head = null;
|
|
64690
|
-
self.length = 0;
|
|
64691
|
-
|
|
64692
|
-
if (list && typeof list.forEach === 'function') {
|
|
64693
|
-
list.forEach(function (item) {
|
|
64694
|
-
self.push(item);
|
|
64695
|
-
});
|
|
64696
|
-
} else if (arguments.length > 0) {
|
|
64697
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
64698
|
-
self.push(arguments[i]);
|
|
64699
|
-
}
|
|
64700
|
-
}
|
|
64701
|
-
|
|
64702
|
-
return self
|
|
64703
|
-
}
|
|
64704
|
-
|
|
64705
|
-
Yallist.prototype.removeNode = function (node) {
|
|
64706
|
-
if (node.list !== this) {
|
|
64707
|
-
throw new Error('removing node which does not belong to this list')
|
|
64708
|
-
}
|
|
64709
|
-
|
|
64710
|
-
var next = node.next;
|
|
64711
|
-
var prev = node.prev;
|
|
64712
|
-
|
|
64713
|
-
if (next) {
|
|
64714
|
-
next.prev = prev;
|
|
64715
|
-
}
|
|
64716
|
-
|
|
64717
|
-
if (prev) {
|
|
64718
|
-
prev.next = next;
|
|
64719
|
-
}
|
|
64720
|
-
|
|
64721
|
-
if (node === this.head) {
|
|
64722
|
-
this.head = next;
|
|
64723
|
-
}
|
|
64724
|
-
if (node === this.tail) {
|
|
64725
|
-
this.tail = prev;
|
|
64726
|
-
}
|
|
64727
|
-
|
|
64728
|
-
node.list.length--;
|
|
64729
|
-
node.next = null;
|
|
64730
|
-
node.prev = null;
|
|
64731
|
-
node.list = null;
|
|
64732
|
-
|
|
64733
|
-
return next
|
|
64734
|
-
};
|
|
64735
|
-
|
|
64736
|
-
Yallist.prototype.unshiftNode = function (node) {
|
|
64737
|
-
if (node === this.head) {
|
|
64738
|
-
return
|
|
64739
|
-
}
|
|
64740
|
-
|
|
64741
|
-
if (node.list) {
|
|
64742
|
-
node.list.removeNode(node);
|
|
64743
|
-
}
|
|
64744
|
-
|
|
64745
|
-
var head = this.head;
|
|
64746
|
-
node.list = this;
|
|
64747
|
-
node.next = head;
|
|
64748
|
-
if (head) {
|
|
64749
|
-
head.prev = node;
|
|
64750
|
-
}
|
|
64751
|
-
|
|
64752
|
-
this.head = node;
|
|
64753
|
-
if (!this.tail) {
|
|
64754
|
-
this.tail = node;
|
|
64755
|
-
}
|
|
64756
|
-
this.length++;
|
|
64757
|
-
};
|
|
64758
|
-
|
|
64759
|
-
Yallist.prototype.pushNode = function (node) {
|
|
64760
|
-
if (node === this.tail) {
|
|
64761
|
-
return
|
|
64762
|
-
}
|
|
64763
|
-
|
|
64764
|
-
if (node.list) {
|
|
64765
|
-
node.list.removeNode(node);
|
|
64766
|
-
}
|
|
64767
|
-
|
|
64768
|
-
var tail = this.tail;
|
|
64769
|
-
node.list = this;
|
|
64770
|
-
node.prev = tail;
|
|
64771
|
-
if (tail) {
|
|
64772
|
-
tail.next = node;
|
|
64773
|
-
}
|
|
64774
|
-
|
|
64775
|
-
this.tail = node;
|
|
64776
|
-
if (!this.head) {
|
|
64777
|
-
this.head = node;
|
|
64778
|
-
}
|
|
64779
|
-
this.length++;
|
|
64780
|
-
};
|
|
64781
|
-
|
|
64782
|
-
Yallist.prototype.push = function () {
|
|
64783
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
64784
|
-
push(this, arguments[i]);
|
|
64785
|
-
}
|
|
64786
|
-
return this.length
|
|
64787
|
-
};
|
|
64788
|
-
|
|
64789
|
-
Yallist.prototype.unshift = function () {
|
|
64790
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
64791
|
-
unshift(this, arguments[i]);
|
|
64792
|
-
}
|
|
64793
|
-
return this.length
|
|
64794
|
-
};
|
|
64795
|
-
|
|
64796
|
-
Yallist.prototype.pop = function () {
|
|
64797
|
-
if (!this.tail) {
|
|
64798
|
-
return undefined
|
|
64799
|
-
}
|
|
64800
|
-
|
|
64801
|
-
var res = this.tail.value;
|
|
64802
|
-
this.tail = this.tail.prev;
|
|
64803
|
-
if (this.tail) {
|
|
64804
|
-
this.tail.next = null;
|
|
64805
|
-
} else {
|
|
64806
|
-
this.head = null;
|
|
64807
|
-
}
|
|
64808
|
-
this.length--;
|
|
64809
|
-
return res
|
|
64810
|
-
};
|
|
64811
|
-
|
|
64812
|
-
Yallist.prototype.shift = function () {
|
|
64813
|
-
if (!this.head) {
|
|
64814
|
-
return undefined
|
|
64815
|
-
}
|
|
64816
|
-
|
|
64817
|
-
var res = this.head.value;
|
|
64818
|
-
this.head = this.head.next;
|
|
64819
|
-
if (this.head) {
|
|
64820
|
-
this.head.prev = null;
|
|
64821
|
-
} else {
|
|
64822
|
-
this.tail = null;
|
|
64823
|
-
}
|
|
64824
|
-
this.length--;
|
|
64825
|
-
return res
|
|
64826
|
-
};
|
|
64827
|
-
|
|
64828
|
-
Yallist.prototype.forEach = function (fn, thisp) {
|
|
64829
|
-
thisp = thisp || this;
|
|
64830
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
64831
|
-
fn.call(thisp, walker.value, i, this);
|
|
64832
|
-
walker = walker.next;
|
|
64833
|
-
}
|
|
64834
|
-
};
|
|
64835
|
-
|
|
64836
|
-
Yallist.prototype.forEachReverse = function (fn, thisp) {
|
|
64837
|
-
thisp = thisp || this;
|
|
64838
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
64839
|
-
fn.call(thisp, walker.value, i, this);
|
|
64840
|
-
walker = walker.prev;
|
|
64841
|
-
}
|
|
64842
|
-
};
|
|
64843
|
-
|
|
64844
|
-
Yallist.prototype.get = function (n) {
|
|
64845
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
64846
|
-
// abort out of the list early if we hit a cycle
|
|
64847
|
-
walker = walker.next;
|
|
64848
|
-
}
|
|
64849
|
-
if (i === n && walker !== null) {
|
|
64850
|
-
return walker.value
|
|
64851
|
-
}
|
|
64852
|
-
};
|
|
64853
|
-
|
|
64854
|
-
Yallist.prototype.getReverse = function (n) {
|
|
64855
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
64856
|
-
// abort out of the list early if we hit a cycle
|
|
64857
|
-
walker = walker.prev;
|
|
64858
|
-
}
|
|
64859
|
-
if (i === n && walker !== null) {
|
|
64860
|
-
return walker.value
|
|
64861
|
-
}
|
|
64862
|
-
};
|
|
64863
|
-
|
|
64864
|
-
Yallist.prototype.map = function (fn, thisp) {
|
|
64865
|
-
thisp = thisp || this;
|
|
64866
|
-
var res = new Yallist();
|
|
64867
|
-
for (var walker = this.head; walker !== null;) {
|
|
64868
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
64869
|
-
walker = walker.next;
|
|
64870
|
-
}
|
|
64871
|
-
return res
|
|
64872
|
-
};
|
|
64873
|
-
|
|
64874
|
-
Yallist.prototype.mapReverse = function (fn, thisp) {
|
|
64875
|
-
thisp = thisp || this;
|
|
64876
|
-
var res = new Yallist();
|
|
64877
|
-
for (var walker = this.tail; walker !== null;) {
|
|
64878
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
64879
|
-
walker = walker.prev;
|
|
64880
|
-
}
|
|
64881
|
-
return res
|
|
64882
|
-
};
|
|
64883
|
-
|
|
64884
|
-
Yallist.prototype.reduce = function (fn, initial) {
|
|
64885
|
-
var acc;
|
|
64886
|
-
var walker = this.head;
|
|
64887
|
-
if (arguments.length > 1) {
|
|
64888
|
-
acc = initial;
|
|
64889
|
-
} else if (this.head) {
|
|
64890
|
-
walker = this.head.next;
|
|
64891
|
-
acc = this.head.value;
|
|
64892
|
-
} else {
|
|
64893
|
-
throw new TypeError('Reduce of empty list with no initial value')
|
|
64894
|
-
}
|
|
64895
|
-
|
|
64896
|
-
for (var i = 0; walker !== null; i++) {
|
|
64897
|
-
acc = fn(acc, walker.value, i);
|
|
64898
|
-
walker = walker.next;
|
|
64899
|
-
}
|
|
64900
|
-
|
|
64901
|
-
return acc
|
|
64902
|
-
};
|
|
64903
|
-
|
|
64904
|
-
Yallist.prototype.reduceReverse = function (fn, initial) {
|
|
64905
|
-
var acc;
|
|
64906
|
-
var walker = this.tail;
|
|
64907
|
-
if (arguments.length > 1) {
|
|
64908
|
-
acc = initial;
|
|
64909
|
-
} else if (this.tail) {
|
|
64910
|
-
walker = this.tail.prev;
|
|
64911
|
-
acc = this.tail.value;
|
|
64912
|
-
} else {
|
|
64913
|
-
throw new TypeError('Reduce of empty list with no initial value')
|
|
64914
|
-
}
|
|
64915
|
-
|
|
64916
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
|
64917
|
-
acc = fn(acc, walker.value, i);
|
|
64918
|
-
walker = walker.prev;
|
|
64919
|
-
}
|
|
64920
|
-
|
|
64921
|
-
return acc
|
|
64922
|
-
};
|
|
64923
|
-
|
|
64924
|
-
Yallist.prototype.toArray = function () {
|
|
64925
|
-
var arr = new Array(this.length);
|
|
64926
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
64927
|
-
arr[i] = walker.value;
|
|
64928
|
-
walker = walker.next;
|
|
64929
|
-
}
|
|
64930
|
-
return arr
|
|
64931
|
-
};
|
|
64932
|
-
|
|
64933
|
-
Yallist.prototype.toArrayReverse = function () {
|
|
64934
|
-
var arr = new Array(this.length);
|
|
64935
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
64936
|
-
arr[i] = walker.value;
|
|
64937
|
-
walker = walker.prev;
|
|
64938
|
-
}
|
|
64939
|
-
return arr
|
|
64940
|
-
};
|
|
64941
|
-
|
|
64942
|
-
Yallist.prototype.slice = function (from, to) {
|
|
64943
|
-
to = to || this.length;
|
|
64944
|
-
if (to < 0) {
|
|
64945
|
-
to += this.length;
|
|
64946
|
-
}
|
|
64947
|
-
from = from || 0;
|
|
64948
|
-
if (from < 0) {
|
|
64949
|
-
from += this.length;
|
|
64950
|
-
}
|
|
64951
|
-
var ret = new Yallist();
|
|
64952
|
-
if (to < from || to < 0) {
|
|
64953
|
-
return ret
|
|
64954
|
-
}
|
|
64955
|
-
if (from < 0) {
|
|
64956
|
-
from = 0;
|
|
64957
|
-
}
|
|
64958
|
-
if (to > this.length) {
|
|
64959
|
-
to = this.length;
|
|
64960
|
-
}
|
|
64961
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
|
64962
|
-
walker = walker.next;
|
|
64963
|
-
}
|
|
64964
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
64965
|
-
ret.push(walker.value);
|
|
64966
|
-
}
|
|
64967
|
-
return ret
|
|
64968
|
-
};
|
|
64969
|
-
|
|
64970
|
-
Yallist.prototype.sliceReverse = function (from, to) {
|
|
64971
|
-
to = to || this.length;
|
|
64972
|
-
if (to < 0) {
|
|
64973
|
-
to += this.length;
|
|
64974
|
-
}
|
|
64975
|
-
from = from || 0;
|
|
64976
|
-
if (from < 0) {
|
|
64977
|
-
from += this.length;
|
|
64978
|
-
}
|
|
64979
|
-
var ret = new Yallist();
|
|
64980
|
-
if (to < from || to < 0) {
|
|
64981
|
-
return ret
|
|
64982
|
-
}
|
|
64983
|
-
if (from < 0) {
|
|
64984
|
-
from = 0;
|
|
64985
|
-
}
|
|
64986
|
-
if (to > this.length) {
|
|
64987
|
-
to = this.length;
|
|
64988
|
-
}
|
|
64989
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
64990
|
-
walker = walker.prev;
|
|
64991
|
-
}
|
|
64992
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
|
64993
|
-
ret.push(walker.value);
|
|
64994
|
-
}
|
|
64995
|
-
return ret
|
|
64996
|
-
};
|
|
64997
|
-
|
|
64998
|
-
Yallist.prototype.splice = function (start, deleteCount, ...nodes) {
|
|
64999
|
-
if (start > this.length) {
|
|
65000
|
-
start = this.length - 1;
|
|
65001
|
-
}
|
|
65002
|
-
if (start < 0) {
|
|
65003
|
-
start = this.length + start;
|
|
65004
|
-
}
|
|
65005
|
-
|
|
65006
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
65007
|
-
walker = walker.next;
|
|
65008
|
-
}
|
|
65009
|
-
|
|
65010
|
-
var ret = [];
|
|
65011
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
|
65012
|
-
ret.push(walker.value);
|
|
65013
|
-
walker = this.removeNode(walker);
|
|
65014
|
-
}
|
|
65015
|
-
if (walker === null) {
|
|
65016
|
-
walker = this.tail;
|
|
65017
|
-
}
|
|
65018
|
-
|
|
65019
|
-
if (walker !== this.head && walker !== this.tail) {
|
|
65020
|
-
walker = walker.prev;
|
|
65021
|
-
}
|
|
65022
|
-
|
|
65023
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
65024
|
-
walker = insert(this, walker, nodes[i]);
|
|
65025
|
-
}
|
|
65026
|
-
return ret;
|
|
65027
|
-
};
|
|
65028
|
-
|
|
65029
|
-
Yallist.prototype.reverse = function () {
|
|
65030
|
-
var head = this.head;
|
|
65031
|
-
var tail = this.tail;
|
|
65032
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
65033
|
-
var p = walker.prev;
|
|
65034
|
-
walker.prev = walker.next;
|
|
65035
|
-
walker.next = p;
|
|
65036
|
-
}
|
|
65037
|
-
this.head = tail;
|
|
65038
|
-
this.tail = head;
|
|
65039
|
-
return this
|
|
65040
|
-
};
|
|
65041
|
-
|
|
65042
|
-
function insert (self, node, value) {
|
|
65043
|
-
var inserted = node === self.head ?
|
|
65044
|
-
new Node$1(value, null, node, self) :
|
|
65045
|
-
new Node$1(value, node, node.next, self);
|
|
65046
|
-
|
|
65047
|
-
if (inserted.next === null) {
|
|
65048
|
-
self.tail = inserted;
|
|
65049
|
-
}
|
|
65050
|
-
if (inserted.prev === null) {
|
|
65051
|
-
self.head = inserted;
|
|
65052
|
-
}
|
|
65053
|
-
|
|
65054
|
-
self.length++;
|
|
65055
|
-
|
|
65056
|
-
return inserted
|
|
65057
|
-
}
|
|
65058
|
-
|
|
65059
|
-
function push (self, item) {
|
|
65060
|
-
self.tail = new Node$1(item, self.tail, null, self);
|
|
65061
|
-
if (!self.head) {
|
|
65062
|
-
self.head = self.tail;
|
|
65063
|
-
}
|
|
65064
|
-
self.length++;
|
|
65065
|
-
}
|
|
65066
|
-
|
|
65067
|
-
function unshift (self, item) {
|
|
65068
|
-
self.head = new Node$1(item, null, self.head, self);
|
|
65069
|
-
if (!self.tail) {
|
|
65070
|
-
self.tail = self.head;
|
|
65071
|
-
}
|
|
65072
|
-
self.length++;
|
|
65073
|
-
}
|
|
65074
|
-
|
|
65075
|
-
function Node$1 (value, prev, next, list) {
|
|
65076
|
-
if (!(this instanceof Node$1)) {
|
|
65077
|
-
return new Node$1(value, prev, next, list)
|
|
65078
|
-
}
|
|
65079
|
-
|
|
65080
|
-
this.list = list;
|
|
65081
|
-
this.value = value;
|
|
65082
|
-
|
|
65083
|
-
if (prev) {
|
|
65084
|
-
prev.next = this;
|
|
65085
|
-
this.prev = prev;
|
|
65086
|
-
} else {
|
|
65087
|
-
this.prev = null;
|
|
65088
|
-
}
|
|
65089
|
-
|
|
65090
|
-
if (next) {
|
|
65091
|
-
next.prev = this;
|
|
65092
|
-
this.next = next;
|
|
65093
|
-
} else {
|
|
65094
|
-
this.next = null;
|
|
65095
|
-
}
|
|
65096
|
-
}
|
|
65097
|
-
|
|
65098
|
-
try {
|
|
65099
|
-
// add if support for Symbol.iterator is present
|
|
65100
|
-
iterator(Yallist);
|
|
65101
|
-
} catch (er) {}
|
|
65102
|
-
|
|
65103
|
-
// A linked list to keep track of recently-used-ness
|
|
65104
|
-
|
|
65105
|
-
|
|
65106
|
-
const MAX = Symbol('max');
|
|
65107
|
-
const LENGTH = Symbol('length');
|
|
65108
|
-
const LENGTH_CALCULATOR = Symbol('lengthCalculator');
|
|
65109
|
-
const ALLOW_STALE = Symbol('allowStale');
|
|
65110
|
-
const MAX_AGE = Symbol('maxAge');
|
|
65111
|
-
const DISPOSE = Symbol('dispose');
|
|
65112
|
-
const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet');
|
|
65113
|
-
const LRU_LIST = Symbol('lruList');
|
|
65114
|
-
const CACHE = Symbol('cache');
|
|
65115
|
-
const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet');
|
|
65116
|
-
|
|
65117
|
-
const naiveLength = () => 1;
|
|
65118
|
-
|
|
65119
|
-
// lruList is a yallist where the head is the youngest
|
|
65120
|
-
// item, and the tail is the oldest. the list contains the Hit
|
|
65121
|
-
// objects as the entries.
|
|
65122
|
-
// Each Hit object has a reference to its Yallist.Node. This
|
|
65123
|
-
// never changes.
|
|
65124
|
-
//
|
|
65125
|
-
// cache is a Map (or PseudoMap) that matches the keys to
|
|
65126
|
-
// the Yallist.Node object.
|
|
65127
|
-
class LRUCache {
|
|
65128
|
-
constructor (options) {
|
|
65129
|
-
if (typeof options === 'number')
|
|
65130
|
-
options = { max: options };
|
|
65131
|
-
|
|
65132
|
-
if (!options)
|
|
65133
|
-
options = {};
|
|
65134
|
-
|
|
65135
|
-
if (options.max && (typeof options.max !== 'number' || options.max < 0))
|
|
65136
|
-
throw new TypeError('max must be a non-negative number')
|
|
65137
|
-
// Kind of weird to have a default max of Infinity, but oh well.
|
|
65138
|
-
this[MAX] = options.max || Infinity;
|
|
65139
|
-
|
|
65140
|
-
const lc = options.length || naiveLength;
|
|
65141
|
-
this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc;
|
|
65142
|
-
this[ALLOW_STALE] = options.stale || false;
|
|
65143
|
-
if (options.maxAge && typeof options.maxAge !== 'number')
|
|
65144
|
-
throw new TypeError('maxAge must be a number')
|
|
65145
|
-
this[MAX_AGE] = options.maxAge || 0;
|
|
65146
|
-
this[DISPOSE] = options.dispose;
|
|
65147
|
-
this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
|
|
65148
|
-
this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
|
|
65149
|
-
this.reset();
|
|
65150
|
-
}
|
|
65151
|
-
|
|
65152
|
-
// resize the cache when the max changes.
|
|
65153
|
-
set max (mL) {
|
|
65154
|
-
if (typeof mL !== 'number' || mL < 0)
|
|
65155
|
-
throw new TypeError('max must be a non-negative number')
|
|
65156
|
-
|
|
65157
|
-
this[MAX] = mL || Infinity;
|
|
65158
|
-
trim(this);
|
|
65159
|
-
}
|
|
65160
|
-
get max () {
|
|
65161
|
-
return this[MAX]
|
|
65162
|
-
}
|
|
65163
|
-
|
|
65164
|
-
set allowStale (allowStale) {
|
|
65165
|
-
this[ALLOW_STALE] = !!allowStale;
|
|
65166
|
-
}
|
|
65167
|
-
get allowStale () {
|
|
65168
|
-
return this[ALLOW_STALE]
|
|
65169
|
-
}
|
|
65170
|
-
|
|
65171
|
-
set maxAge (mA) {
|
|
65172
|
-
if (typeof mA !== 'number')
|
|
65173
|
-
throw new TypeError('maxAge must be a non-negative number')
|
|
65174
|
-
|
|
65175
|
-
this[MAX_AGE] = mA;
|
|
65176
|
-
trim(this);
|
|
65177
|
-
}
|
|
65178
|
-
get maxAge () {
|
|
65179
|
-
return this[MAX_AGE]
|
|
65180
|
-
}
|
|
65181
|
-
|
|
65182
|
-
// resize the cache when the lengthCalculator changes.
|
|
65183
|
-
set lengthCalculator (lC) {
|
|
65184
|
-
if (typeof lC !== 'function')
|
|
65185
|
-
lC = naiveLength;
|
|
65186
|
-
|
|
65187
|
-
if (lC !== this[LENGTH_CALCULATOR]) {
|
|
65188
|
-
this[LENGTH_CALCULATOR] = lC;
|
|
65189
|
-
this[LENGTH] = 0;
|
|
65190
|
-
this[LRU_LIST].forEach(hit => {
|
|
65191
|
-
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
|
|
65192
|
-
this[LENGTH] += hit.length;
|
|
65193
|
-
});
|
|
65194
|
-
}
|
|
65195
|
-
trim(this);
|
|
65196
|
-
}
|
|
65197
|
-
get lengthCalculator () { return this[LENGTH_CALCULATOR] }
|
|
65198
|
-
|
|
65199
|
-
get length () { return this[LENGTH] }
|
|
65200
|
-
get itemCount () { return this[LRU_LIST].length }
|
|
65201
|
-
|
|
65202
|
-
rforEach (fn, thisp) {
|
|
65203
|
-
thisp = thisp || this;
|
|
65204
|
-
for (let walker = this[LRU_LIST].tail; walker !== null;) {
|
|
65205
|
-
const prev = walker.prev;
|
|
65206
|
-
forEachStep(this, fn, walker, thisp);
|
|
65207
|
-
walker = prev;
|
|
65208
|
-
}
|
|
65209
|
-
}
|
|
65210
|
-
|
|
65211
|
-
forEach (fn, thisp) {
|
|
65212
|
-
thisp = thisp || this;
|
|
65213
|
-
for (let walker = this[LRU_LIST].head; walker !== null;) {
|
|
65214
|
-
const next = walker.next;
|
|
65215
|
-
forEachStep(this, fn, walker, thisp);
|
|
65216
|
-
walker = next;
|
|
65217
|
-
}
|
|
65218
|
-
}
|
|
65219
|
-
|
|
65220
|
-
keys () {
|
|
65221
|
-
return this[LRU_LIST].toArray().map(k => k.key)
|
|
65222
|
-
}
|
|
65223
|
-
|
|
65224
|
-
values () {
|
|
65225
|
-
return this[LRU_LIST].toArray().map(k => k.value)
|
|
65226
|
-
}
|
|
65227
|
-
|
|
65228
|
-
reset () {
|
|
65229
|
-
if (this[DISPOSE] &&
|
|
65230
|
-
this[LRU_LIST] &&
|
|
65231
|
-
this[LRU_LIST].length) {
|
|
65232
|
-
this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value));
|
|
65233
|
-
}
|
|
65234
|
-
|
|
65235
|
-
this[CACHE] = new Map(); // hash of items by key
|
|
65236
|
-
this[LRU_LIST] = new yallist(); // list of items in order of use recency
|
|
65237
|
-
this[LENGTH] = 0; // length of items in the list
|
|
65238
|
-
}
|
|
65239
|
-
|
|
65240
|
-
dump () {
|
|
65241
|
-
return this[LRU_LIST].map(hit =>
|
|
65242
|
-
isStale(this, hit) ? false : {
|
|
65243
|
-
k: hit.key,
|
|
65244
|
-
v: hit.value,
|
|
65245
|
-
e: hit.now + (hit.maxAge || 0)
|
|
65246
|
-
}).toArray().filter(h => h)
|
|
65247
|
-
}
|
|
65248
|
-
|
|
65249
|
-
dumpLru () {
|
|
65250
|
-
return this[LRU_LIST]
|
|
65251
|
-
}
|
|
65252
|
-
|
|
65253
|
-
set (key, value, maxAge) {
|
|
65254
|
-
maxAge = maxAge || this[MAX_AGE];
|
|
65255
|
-
|
|
65256
|
-
if (maxAge && typeof maxAge !== 'number')
|
|
65257
|
-
throw new TypeError('maxAge must be a number')
|
|
65258
|
-
|
|
65259
|
-
const now = maxAge ? Date.now() : 0;
|
|
65260
|
-
const len = this[LENGTH_CALCULATOR](value, key);
|
|
65261
|
-
|
|
65262
|
-
if (this[CACHE].has(key)) {
|
|
65263
|
-
if (len > this[MAX]) {
|
|
65264
|
-
del(this, this[CACHE].get(key));
|
|
65265
|
-
return false
|
|
65266
|
-
}
|
|
65267
|
-
|
|
65268
|
-
const node = this[CACHE].get(key);
|
|
65269
|
-
const item = node.value;
|
|
65270
|
-
|
|
65271
|
-
// dispose of the old one before overwriting
|
|
65272
|
-
// split out into 2 ifs for better coverage tracking
|
|
65273
|
-
if (this[DISPOSE]) {
|
|
65274
|
-
if (!this[NO_DISPOSE_ON_SET])
|
|
65275
|
-
this[DISPOSE](key, item.value);
|
|
65276
|
-
}
|
|
65277
|
-
|
|
65278
|
-
item.now = now;
|
|
65279
|
-
item.maxAge = maxAge;
|
|
65280
|
-
item.value = value;
|
|
65281
|
-
this[LENGTH] += len - item.length;
|
|
65282
|
-
item.length = len;
|
|
65283
|
-
this.get(key);
|
|
65284
|
-
trim(this);
|
|
65285
|
-
return true
|
|
65286
|
-
}
|
|
65287
|
-
|
|
65288
|
-
const hit = new Entry(key, value, len, now, maxAge);
|
|
65289
|
-
|
|
65290
|
-
// oversized objects fall out of cache automatically.
|
|
65291
|
-
if (hit.length > this[MAX]) {
|
|
65292
|
-
if (this[DISPOSE])
|
|
65293
|
-
this[DISPOSE](key, value);
|
|
65294
|
-
|
|
65295
|
-
return false
|
|
65296
|
-
}
|
|
65297
|
-
|
|
65298
|
-
this[LENGTH] += hit.length;
|
|
65299
|
-
this[LRU_LIST].unshift(hit);
|
|
65300
|
-
this[CACHE].set(key, this[LRU_LIST].head);
|
|
65301
|
-
trim(this);
|
|
65302
|
-
return true
|
|
65303
|
-
}
|
|
65304
|
-
|
|
65305
|
-
has (key) {
|
|
65306
|
-
if (!this[CACHE].has(key)) return false
|
|
65307
|
-
const hit = this[CACHE].get(key).value;
|
|
65308
|
-
return !isStale(this, hit)
|
|
65309
|
-
}
|
|
65310
|
-
|
|
65311
|
-
get (key) {
|
|
65312
|
-
return get$3(this, key, true)
|
|
65313
|
-
}
|
|
65314
|
-
|
|
65315
|
-
peek (key) {
|
|
65316
|
-
return get$3(this, key, false)
|
|
65317
|
-
}
|
|
65318
|
-
|
|
65319
|
-
pop () {
|
|
65320
|
-
const node = this[LRU_LIST].tail;
|
|
65321
|
-
if (!node)
|
|
65322
|
-
return null
|
|
65323
|
-
|
|
65324
|
-
del(this, node);
|
|
65325
|
-
return node.value
|
|
65326
|
-
}
|
|
65327
|
-
|
|
65328
|
-
del (key) {
|
|
65329
|
-
del(this, this[CACHE].get(key));
|
|
65330
|
-
}
|
|
65331
|
-
|
|
65332
|
-
load (arr) {
|
|
65333
|
-
// reset the cache
|
|
65334
|
-
this.reset();
|
|
65335
|
-
|
|
65336
|
-
const now = Date.now();
|
|
65337
|
-
// A previous serialized cache has the most recent items first
|
|
65338
|
-
for (let l = arr.length - 1; l >= 0; l--) {
|
|
65339
|
-
const hit = arr[l];
|
|
65340
|
-
const expiresAt = hit.e || 0;
|
|
65341
|
-
if (expiresAt === 0)
|
|
65342
|
-
// the item was created without expiration in a non aged cache
|
|
65343
|
-
this.set(hit.k, hit.v);
|
|
65344
|
-
else {
|
|
65345
|
-
const maxAge = expiresAt - now;
|
|
65346
|
-
// dont add already expired items
|
|
65347
|
-
if (maxAge > 0) {
|
|
65348
|
-
this.set(hit.k, hit.v, maxAge);
|
|
65349
|
-
}
|
|
65350
|
-
}
|
|
65351
|
-
}
|
|
65352
|
-
}
|
|
65353
|
-
|
|
65354
|
-
prune () {
|
|
65355
|
-
this[CACHE].forEach((value, key) => get$3(this, key, false));
|
|
65356
|
-
}
|
|
65357
|
-
}
|
|
65358
|
-
|
|
65359
|
-
const get$3 = (self, key, doUse) => {
|
|
65360
|
-
const node = self[CACHE].get(key);
|
|
65361
|
-
if (node) {
|
|
65362
|
-
const hit = node.value;
|
|
65363
|
-
if (isStale(self, hit)) {
|
|
65364
|
-
del(self, node);
|
|
65365
|
-
if (!self[ALLOW_STALE])
|
|
65366
|
-
return undefined
|
|
65367
|
-
} else {
|
|
65368
|
-
if (doUse) {
|
|
65369
|
-
if (self[UPDATE_AGE_ON_GET])
|
|
65370
|
-
node.value.now = Date.now();
|
|
65371
|
-
self[LRU_LIST].unshiftNode(node);
|
|
65372
|
-
}
|
|
65373
|
-
}
|
|
65374
|
-
return hit.value
|
|
65375
|
-
}
|
|
65376
|
-
};
|
|
65377
|
-
|
|
65378
|
-
const isStale = (self, hit) => {
|
|
65379
|
-
if (!hit || (!hit.maxAge && !self[MAX_AGE]))
|
|
65380
|
-
return false
|
|
65381
|
-
|
|
65382
|
-
const diff = Date.now() - hit.now;
|
|
65383
|
-
return hit.maxAge ? diff > hit.maxAge
|
|
65384
|
-
: self[MAX_AGE] && (diff > self[MAX_AGE])
|
|
65385
|
-
};
|
|
65386
|
-
|
|
65387
|
-
const trim = self => {
|
|
65388
|
-
if (self[LENGTH] > self[MAX]) {
|
|
65389
|
-
for (let walker = self[LRU_LIST].tail;
|
|
65390
|
-
self[LENGTH] > self[MAX] && walker !== null;) {
|
|
65391
|
-
// We know that we're about to delete this one, and also
|
|
65392
|
-
// what the next least recently used key will be, so just
|
|
65393
|
-
// go ahead and set it now.
|
|
65394
|
-
const prev = walker.prev;
|
|
65395
|
-
del(self, walker);
|
|
65396
|
-
walker = prev;
|
|
65397
|
-
}
|
|
65398
|
-
}
|
|
65399
|
-
};
|
|
65400
|
-
|
|
65401
|
-
const del = (self, node) => {
|
|
65402
|
-
if (node) {
|
|
65403
|
-
const hit = node.value;
|
|
65404
|
-
if (self[DISPOSE])
|
|
65405
|
-
self[DISPOSE](hit.key, hit.value);
|
|
65406
|
-
|
|
65407
|
-
self[LENGTH] -= hit.length;
|
|
65408
|
-
self[CACHE].delete(hit.key);
|
|
65409
|
-
self[LRU_LIST].removeNode(node);
|
|
65410
|
-
}
|
|
65411
|
-
};
|
|
65412
|
-
|
|
65413
|
-
class Entry {
|
|
65414
|
-
constructor (key, value, length, now, maxAge) {
|
|
65415
|
-
this.key = key;
|
|
65416
|
-
this.value = value;
|
|
65417
|
-
this.length = length;
|
|
65418
|
-
this.now = now;
|
|
65419
|
-
this.maxAge = maxAge || 0;
|
|
65420
|
-
}
|
|
65421
|
-
}
|
|
65422
|
-
|
|
65423
|
-
const forEachStep = (self, fn, node, thisp) => {
|
|
65424
|
-
let hit = node.value;
|
|
65425
|
-
if (isStale(self, hit)) {
|
|
65426
|
-
del(self, node);
|
|
65427
|
-
if (!self[ALLOW_STALE])
|
|
65428
|
-
hit = undefined;
|
|
65429
|
-
}
|
|
65430
|
-
if (hit)
|
|
65431
|
-
fn.call(thisp, hit.value, hit.key, self);
|
|
65432
|
-
};
|
|
65433
|
-
|
|
65434
|
-
var lruCache = LRUCache;
|
|
65435
|
-
|
|
65436
|
-
// hoisted class for cyclic dependency
|
|
65437
|
-
class Range {
|
|
65438
|
-
constructor (range, options) {
|
|
65439
|
-
options = parseOptions_1(options);
|
|
65440
|
-
|
|
65441
|
-
if (range instanceof Range) {
|
|
65442
|
-
if (
|
|
65443
|
-
range.loose === !!options.loose &&
|
|
65444
|
-
range.includePrerelease === !!options.includePrerelease
|
|
65445
|
-
) {
|
|
65446
|
-
return range
|
|
65447
|
-
} else {
|
|
65448
|
-
return new Range(range.raw, options)
|
|
65449
|
-
}
|
|
65450
|
-
}
|
|
65451
|
-
|
|
65452
|
-
if (range instanceof comparator) {
|
|
65453
|
-
// just put it in the set and return
|
|
65454
|
-
this.raw = range.value;
|
|
65455
|
-
this.set = [[range]];
|
|
65456
|
-
this.format();
|
|
65457
|
-
return this
|
|
65458
|
-
}
|
|
65459
|
-
|
|
65460
|
-
this.options = options;
|
|
65461
|
-
this.loose = !!options.loose;
|
|
65462
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
65463
|
-
|
|
65464
|
-
// First, split based on boolean or ||
|
|
65465
|
-
this.raw = range;
|
|
65466
|
-
this.set = range
|
|
65467
|
-
.split(/\s*\|\|\s*/)
|
|
65468
|
-
// map the range to a 2d array of comparators
|
|
65469
|
-
.map(range => this.parseRange(range.trim()))
|
|
65470
|
-
// throw out any comparator lists that are empty
|
|
65471
|
-
// this generally means that it was not a valid range, which is allowed
|
|
65472
|
-
// in loose mode, but will still throw if the WHOLE range is invalid.
|
|
65473
|
-
.filter(c => c.length);
|
|
65474
|
-
|
|
65475
|
-
if (!this.set.length) {
|
|
65476
|
-
throw new TypeError(`Invalid SemVer Range: ${range}`)
|
|
65477
|
-
}
|
|
65478
|
-
|
|
65479
|
-
// if we have any that are not the null set, throw out null sets.
|
|
65480
|
-
if (this.set.length > 1) {
|
|
65481
|
-
// keep the first one, in case they're all null sets
|
|
65482
|
-
const first = this.set[0];
|
|
65483
|
-
this.set = this.set.filter(c => !isNullSet(c[0]));
|
|
65484
|
-
if (this.set.length === 0)
|
|
65485
|
-
this.set = [first];
|
|
65486
|
-
else if (this.set.length > 1) {
|
|
65487
|
-
// if we have any that are *, then the range is just *
|
|
65488
|
-
for (const c of this.set) {
|
|
65489
|
-
if (c.length === 1 && isAny$1(c[0])) {
|
|
65490
|
-
this.set = [c];
|
|
65491
|
-
break
|
|
65492
|
-
}
|
|
65493
|
-
}
|
|
65494
|
-
}
|
|
65495
|
-
}
|
|
65496
|
-
|
|
65497
|
-
this.format();
|
|
65498
|
-
}
|
|
65499
|
-
|
|
65500
|
-
format () {
|
|
65501
|
-
this.range = this.set
|
|
65502
|
-
.map((comps) => {
|
|
65503
|
-
return comps.join(' ').trim()
|
|
65504
|
-
})
|
|
65505
|
-
.join('||')
|
|
65506
|
-
.trim();
|
|
65507
|
-
return this.range
|
|
65508
|
-
}
|
|
65509
|
-
|
|
65510
|
-
toString () {
|
|
65511
|
-
return this.range
|
|
65512
|
-
}
|
|
65513
|
-
|
|
65514
|
-
parseRange (range) {
|
|
65515
|
-
range = range.trim();
|
|
65516
|
-
|
|
65517
|
-
// memoize range parsing for performance.
|
|
65518
|
-
// this is a very hot path, and fully deterministic.
|
|
65519
|
-
const memoOpts = Object.keys(this.options).join(',');
|
|
65520
|
-
const memoKey = `parseRange:${memoOpts}:${range}`;
|
|
65521
|
-
const cached = cache.get(memoKey);
|
|
65522
|
-
if (cached)
|
|
65523
|
-
return cached
|
|
65524
|
-
|
|
65525
|
-
const loose = this.options.loose;
|
|
65526
|
-
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
|
|
65527
|
-
const hr = loose ? re$5[t$5.HYPHENRANGELOOSE] : re$5[t$5.HYPHENRANGE];
|
|
65528
|
-
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
65529
|
-
debug_1('hyphen replace', range);
|
|
65530
|
-
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
|
|
65531
|
-
range = range.replace(re$5[t$5.COMPARATORTRIM], comparatorTrimReplace);
|
|
65532
|
-
debug_1('comparator trim', range, re$5[t$5.COMPARATORTRIM]);
|
|
65533
|
-
|
|
65534
|
-
// `~ 1.2.3` => `~1.2.3`
|
|
65535
|
-
range = range.replace(re$5[t$5.TILDETRIM], tildeTrimReplace);
|
|
65536
|
-
|
|
65537
|
-
// `^ 1.2.3` => `^1.2.3`
|
|
65538
|
-
range = range.replace(re$5[t$5.CARETTRIM], caretTrimReplace);
|
|
65539
|
-
|
|
65540
|
-
// normalize spaces
|
|
65541
|
-
range = range.split(/\s+/).join(' ');
|
|
65542
|
-
|
|
65543
|
-
// At this point, the range is completely trimmed and
|
|
65544
|
-
// ready to be split into comparators.
|
|
65545
|
-
|
|
65546
|
-
const compRe = loose ? re$5[t$5.COMPARATORLOOSE] : re$5[t$5.COMPARATOR];
|
|
65547
|
-
const rangeList = range
|
|
65548
|
-
.split(' ')
|
|
65549
|
-
.map(comp => parseComparator(comp, this.options))
|
|
65550
|
-
.join(' ')
|
|
65551
|
-
.split(/\s+/)
|
|
65552
|
-
// >=0.0.0 is equivalent to *
|
|
65553
|
-
.map(comp => replaceGTE0(comp, this.options))
|
|
65554
|
-
// in loose mode, throw out any that are not valid comparators
|
|
65555
|
-
.filter(this.options.loose ? comp => !!comp.match(compRe) : () => true)
|
|
65556
|
-
.map(comp => new comparator(comp, this.options));
|
|
65557
|
-
|
|
65558
|
-
// if any comparators are the null set, then replace with JUST null set
|
|
65559
|
-
// if more than one comparator, remove any * comparators
|
|
65560
|
-
// also, don't include the same comparator more than once
|
|
65561
|
-
rangeList.length;
|
|
65562
|
-
const rangeMap = new Map();
|
|
65563
|
-
for (const comp of rangeList) {
|
|
65564
|
-
if (isNullSet(comp))
|
|
65565
|
-
return [comp]
|
|
65566
|
-
rangeMap.set(comp.value, comp);
|
|
65567
|
-
}
|
|
65568
|
-
if (rangeMap.size > 1 && rangeMap.has(''))
|
|
65569
|
-
rangeMap.delete('');
|
|
65570
|
-
|
|
65571
|
-
const result = [...rangeMap.values()];
|
|
65572
|
-
cache.set(memoKey, result);
|
|
65573
|
-
return result
|
|
65574
|
-
}
|
|
65575
|
-
|
|
65576
|
-
intersects (range, options) {
|
|
65577
|
-
if (!(range instanceof Range)) {
|
|
65578
|
-
throw new TypeError('a Range is required')
|
|
65579
|
-
}
|
|
65580
|
-
|
|
65581
|
-
return this.set.some((thisComparators) => {
|
|
65582
|
-
return (
|
|
65583
|
-
isSatisfiable(thisComparators, options) &&
|
|
65584
|
-
range.set.some((rangeComparators) => {
|
|
65585
|
-
return (
|
|
65586
|
-
isSatisfiable(rangeComparators, options) &&
|
|
65587
|
-
thisComparators.every((thisComparator) => {
|
|
65588
|
-
return rangeComparators.every((rangeComparator) => {
|
|
65589
|
-
return thisComparator.intersects(rangeComparator, options)
|
|
65590
|
-
})
|
|
65591
|
-
})
|
|
65592
|
-
)
|
|
65593
|
-
})
|
|
65594
|
-
)
|
|
65595
|
-
})
|
|
65596
|
-
}
|
|
65597
|
-
|
|
65598
|
-
// if ANY of the sets match ALL of its comparators, then pass
|
|
65599
|
-
test (version) {
|
|
65600
|
-
if (!version) {
|
|
65601
|
-
return false
|
|
65602
|
-
}
|
|
65603
|
-
|
|
65604
|
-
if (typeof version === 'string') {
|
|
65605
|
-
try {
|
|
65606
|
-
version = new semver(version, this.options);
|
|
65607
|
-
} catch (er) {
|
|
65608
|
-
return false
|
|
65609
|
-
}
|
|
65610
|
-
}
|
|
65611
|
-
|
|
65612
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
65613
|
-
if (testSet(this.set[i], version, this.options)) {
|
|
65614
|
-
return true
|
|
65615
|
-
}
|
|
65616
|
-
}
|
|
65617
|
-
return false
|
|
65618
|
-
}
|
|
65619
|
-
}
|
|
65620
|
-
var range = Range;
|
|
65621
|
-
|
|
65622
|
-
|
|
65623
|
-
const cache = new lruCache({ max: 1000 });
|
|
65624
|
-
|
|
65625
|
-
|
|
65626
|
-
|
|
65627
|
-
|
|
65628
|
-
|
|
65629
|
-
const {
|
|
65630
|
-
re: re$5,
|
|
65631
|
-
t: t$5,
|
|
65632
|
-
comparatorTrimReplace,
|
|
65633
|
-
tildeTrimReplace,
|
|
65634
|
-
caretTrimReplace
|
|
65635
|
-
} = re_1;
|
|
65636
|
-
|
|
65637
|
-
const isNullSet = c => c.value === '<0.0.0-0';
|
|
65638
|
-
const isAny$1 = c => c.value === '';
|
|
65639
|
-
|
|
65640
|
-
// take a set of comparators and determine whether there
|
|
65641
|
-
// exists a version which can satisfy it
|
|
65642
|
-
const isSatisfiable = (comparators, options) => {
|
|
65643
|
-
let result = true;
|
|
65644
|
-
const remainingComparators = comparators.slice();
|
|
65645
|
-
let testComparator = remainingComparators.pop();
|
|
65646
|
-
|
|
65647
|
-
while (result && remainingComparators.length) {
|
|
65648
|
-
result = remainingComparators.every((otherComparator) => {
|
|
65649
|
-
return testComparator.intersects(otherComparator, options)
|
|
65650
|
-
});
|
|
65651
|
-
|
|
65652
|
-
testComparator = remainingComparators.pop();
|
|
65653
|
-
}
|
|
65654
|
-
|
|
65655
|
-
return result
|
|
65656
|
-
};
|
|
65657
|
-
|
|
65658
|
-
// comprised of xranges, tildes, stars, and gtlt's at this point.
|
|
65659
|
-
// already replaced the hyphen ranges
|
|
65660
|
-
// turn into a set of JUST comparators.
|
|
65661
|
-
const parseComparator = (comp, options) => {
|
|
65662
|
-
debug_1('comp', comp, options);
|
|
65663
|
-
comp = replaceCarets(comp, options);
|
|
65664
|
-
debug_1('caret', comp);
|
|
65665
|
-
comp = replaceTildes(comp, options);
|
|
65666
|
-
debug_1('tildes', comp);
|
|
65667
|
-
comp = replaceXRanges(comp, options);
|
|
65668
|
-
debug_1('xrange', comp);
|
|
65669
|
-
comp = replaceStars(comp, options);
|
|
65670
|
-
debug_1('stars', comp);
|
|
65671
|
-
return comp
|
|
65672
|
-
};
|
|
65673
|
-
|
|
65674
|
-
const isX = id => !id || id.toLowerCase() === 'x' || id === '*';
|
|
65675
|
-
|
|
65676
|
-
// ~, ~> --> * (any, kinda silly)
|
|
65677
|
-
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
|
|
65678
|
-
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
|
|
65679
|
-
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
|
|
65680
|
-
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
|
|
65681
|
-
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
|
|
65682
|
-
const replaceTildes = (comp, options) =>
|
|
65683
|
-
comp.trim().split(/\s+/).map((comp) => {
|
|
65684
|
-
return replaceTilde(comp, options)
|
|
65685
|
-
}).join(' ');
|
|
65686
|
-
|
|
65687
|
-
const replaceTilde = (comp, options) => {
|
|
65688
|
-
const r = options.loose ? re$5[t$5.TILDELOOSE] : re$5[t$5.TILDE];
|
|
65689
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
65690
|
-
debug_1('tilde', comp, _, M, m, p, pr);
|
|
65691
|
-
let ret;
|
|
65692
|
-
|
|
65693
|
-
if (isX(M)) {
|
|
65694
|
-
ret = '';
|
|
65695
|
-
} else if (isX(m)) {
|
|
65696
|
-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
65697
|
-
} else if (isX(p)) {
|
|
65698
|
-
// ~1.2 == >=1.2.0 <1.3.0-0
|
|
65699
|
-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
65700
|
-
} else if (pr) {
|
|
65701
|
-
debug_1('replaceTilde pr', pr);
|
|
65702
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
65703
|
-
} <${M}.${+m + 1}.0-0`;
|
|
65704
|
-
} else {
|
|
65705
|
-
// ~1.2.3 == >=1.2.3 <1.3.0-0
|
|
65706
|
-
ret = `>=${M}.${m}.${p
|
|
65707
|
-
} <${M}.${+m + 1}.0-0`;
|
|
65708
|
-
}
|
|
65709
|
-
|
|
65710
|
-
debug_1('tilde return', ret);
|
|
65711
|
-
return ret
|
|
65712
|
-
})
|
|
65713
|
-
};
|
|
65714
|
-
|
|
65715
|
-
// ^ --> * (any, kinda silly)
|
|
65716
|
-
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
|
|
65717
|
-
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
|
|
65718
|
-
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
|
|
65719
|
-
// ^1.2.3 --> >=1.2.3 <2.0.0-0
|
|
65720
|
-
// ^1.2.0 --> >=1.2.0 <2.0.0-0
|
|
65721
|
-
const replaceCarets = (comp, options) =>
|
|
65722
|
-
comp.trim().split(/\s+/).map((comp) => {
|
|
65723
|
-
return replaceCaret(comp, options)
|
|
65724
|
-
}).join(' ');
|
|
65725
|
-
|
|
65726
|
-
const replaceCaret = (comp, options) => {
|
|
65727
|
-
debug_1('caret', comp, options);
|
|
65728
|
-
const r = options.loose ? re$5[t$5.CARETLOOSE] : re$5[t$5.CARET];
|
|
65729
|
-
const z = options.includePrerelease ? '-0' : '';
|
|
65730
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
65731
|
-
debug_1('caret', comp, _, M, m, p, pr);
|
|
65732
|
-
let ret;
|
|
65733
|
-
|
|
65734
|
-
if (isX(M)) {
|
|
65735
|
-
ret = '';
|
|
65736
|
-
} else if (isX(m)) {
|
|
65737
|
-
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
65738
|
-
} else if (isX(p)) {
|
|
65739
|
-
if (M === '0') {
|
|
65740
|
-
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
65741
|
-
} else {
|
|
65742
|
-
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
65743
|
-
}
|
|
65744
|
-
} else if (pr) {
|
|
65745
|
-
debug_1('replaceCaret pr', pr);
|
|
65746
|
-
if (M === '0') {
|
|
65747
|
-
if (m === '0') {
|
|
65748
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
65749
|
-
} <${M}.${m}.${+p + 1}-0`;
|
|
65750
|
-
} else {
|
|
65751
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
65752
|
-
} <${M}.${+m + 1}.0-0`;
|
|
65753
|
-
}
|
|
65754
|
-
} else {
|
|
65755
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
65756
|
-
} <${+M + 1}.0.0-0`;
|
|
65757
|
-
}
|
|
65758
|
-
} else {
|
|
65759
|
-
debug_1('no pr');
|
|
65760
|
-
if (M === '0') {
|
|
65761
|
-
if (m === '0') {
|
|
65762
|
-
ret = `>=${M}.${m}.${p
|
|
65763
|
-
}${z} <${M}.${m}.${+p + 1}-0`;
|
|
65764
|
-
} else {
|
|
65765
|
-
ret = `>=${M}.${m}.${p
|
|
65766
|
-
}${z} <${M}.${+m + 1}.0-0`;
|
|
65767
|
-
}
|
|
65768
|
-
} else {
|
|
65769
|
-
ret = `>=${M}.${m}.${p
|
|
65770
|
-
} <${+M + 1}.0.0-0`;
|
|
65771
|
-
}
|
|
65772
|
-
}
|
|
65773
|
-
|
|
65774
|
-
debug_1('caret return', ret);
|
|
65775
|
-
return ret
|
|
65776
|
-
})
|
|
65777
|
-
};
|
|
65778
|
-
|
|
65779
|
-
const replaceXRanges = (comp, options) => {
|
|
65780
|
-
debug_1('replaceXRanges', comp, options);
|
|
65781
|
-
return comp.split(/\s+/).map((comp) => {
|
|
65782
|
-
return replaceXRange(comp, options)
|
|
65783
|
-
}).join(' ')
|
|
65784
|
-
};
|
|
65785
|
-
|
|
65786
|
-
const replaceXRange = (comp, options) => {
|
|
65787
|
-
comp = comp.trim();
|
|
65788
|
-
const r = options.loose ? re$5[t$5.XRANGELOOSE] : re$5[t$5.XRANGE];
|
|
65789
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
65790
|
-
debug_1('xRange', comp, ret, gtlt, M, m, p, pr);
|
|
65791
|
-
const xM = isX(M);
|
|
65792
|
-
const xm = xM || isX(m);
|
|
65793
|
-
const xp = xm || isX(p);
|
|
65794
|
-
const anyX = xp;
|
|
65795
|
-
|
|
65796
|
-
if (gtlt === '=' && anyX) {
|
|
65797
|
-
gtlt = '';
|
|
65798
|
-
}
|
|
65799
|
-
|
|
65800
|
-
// if we're including prereleases in the match, then we need
|
|
65801
|
-
// to fix this to -0, the lowest possible prerelease value
|
|
65802
|
-
pr = options.includePrerelease ? '-0' : '';
|
|
65803
|
-
|
|
65804
|
-
if (xM) {
|
|
65805
|
-
if (gtlt === '>' || gtlt === '<') {
|
|
65806
|
-
// nothing is allowed
|
|
65807
|
-
ret = '<0.0.0-0';
|
|
65808
|
-
} else {
|
|
65809
|
-
// nothing is forbidden
|
|
65810
|
-
ret = '*';
|
|
65811
|
-
}
|
|
65812
|
-
} else if (gtlt && anyX) {
|
|
65813
|
-
// we know patch is an x, because we have any x at all.
|
|
65814
|
-
// replace X with 0
|
|
65815
|
-
if (xm) {
|
|
65816
|
-
m = 0;
|
|
65817
|
-
}
|
|
65818
|
-
p = 0;
|
|
65819
|
-
|
|
65820
|
-
if (gtlt === '>') {
|
|
65821
|
-
// >1 => >=2.0.0
|
|
65822
|
-
// >1.2 => >=1.3.0
|
|
65823
|
-
gtlt = '>=';
|
|
65824
|
-
if (xm) {
|
|
65825
|
-
M = +M + 1;
|
|
65826
|
-
m = 0;
|
|
65827
|
-
p = 0;
|
|
65828
|
-
} else {
|
|
65829
|
-
m = +m + 1;
|
|
65830
|
-
p = 0;
|
|
65831
|
-
}
|
|
65832
|
-
} else if (gtlt === '<=') {
|
|
65833
|
-
// <=0.7.x is actually <0.8.0, since any 0.7.x should
|
|
65834
|
-
// pass. Similarly, <=7.x is actually <8.0.0, etc.
|
|
65835
|
-
gtlt = '<';
|
|
65836
|
-
if (xm) {
|
|
65837
|
-
M = +M + 1;
|
|
65838
|
-
} else {
|
|
65839
|
-
m = +m + 1;
|
|
65840
|
-
}
|
|
65841
|
-
}
|
|
65842
|
-
|
|
65843
|
-
if (gtlt === '<')
|
|
65844
|
-
pr = '-0';
|
|
65845
|
-
|
|
65846
|
-
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
65847
|
-
} else if (xm) {
|
|
65848
|
-
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
65849
|
-
} else if (xp) {
|
|
65850
|
-
ret = `>=${M}.${m}.0${pr
|
|
65851
|
-
} <${M}.${+m + 1}.0-0`;
|
|
65852
|
-
}
|
|
65853
|
-
|
|
65854
|
-
debug_1('xRange return', ret);
|
|
65855
|
-
|
|
65856
|
-
return ret
|
|
65857
|
-
})
|
|
65858
|
-
};
|
|
65859
|
-
|
|
65860
|
-
// Because * is AND-ed with everything else in the comparator,
|
|
65861
|
-
// and '' means "any version", just remove the *s entirely.
|
|
65862
|
-
const replaceStars = (comp, options) => {
|
|
65863
|
-
debug_1('replaceStars', comp, options);
|
|
65864
|
-
// Looseness is ignored here. star is always as loose as it gets!
|
|
65865
|
-
return comp.trim().replace(re$5[t$5.STAR], '')
|
|
65866
|
-
};
|
|
65867
|
-
|
|
65868
|
-
const replaceGTE0 = (comp, options) => {
|
|
65869
|
-
debug_1('replaceGTE0', comp, options);
|
|
65870
|
-
return comp.trim()
|
|
65871
|
-
.replace(re$5[options.includePrerelease ? t$5.GTE0PRE : t$5.GTE0], '')
|
|
65872
|
-
};
|
|
65873
|
-
|
|
65874
|
-
// This function is passed to string.replace(re[t.HYPHENRANGE])
|
|
65875
|
-
// M, m, patch, prerelease, build
|
|
65876
|
-
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
|
|
65877
|
-
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
|
|
65878
|
-
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
|
|
65879
|
-
const hyphenReplace = incPr => ($0,
|
|
65880
|
-
from, fM, fm, fp, fpr, fb,
|
|
65881
|
-
to, tM, tm, tp, tpr, tb) => {
|
|
65882
|
-
if (isX(fM)) {
|
|
65883
|
-
from = '';
|
|
65884
|
-
} else if (isX(fm)) {
|
|
65885
|
-
from = `>=${fM}.0.0${incPr ? '-0' : ''}`;
|
|
65886
|
-
} else if (isX(fp)) {
|
|
65887
|
-
from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`;
|
|
65888
|
-
} else if (fpr) {
|
|
65889
|
-
from = `>=${from}`;
|
|
65890
|
-
} else {
|
|
65891
|
-
from = `>=${from}${incPr ? '-0' : ''}`;
|
|
65892
|
-
}
|
|
65893
|
-
|
|
65894
|
-
if (isX(tM)) {
|
|
65895
|
-
to = '';
|
|
65896
|
-
} else if (isX(tm)) {
|
|
65897
|
-
to = `<${+tM + 1}.0.0-0`;
|
|
65898
|
-
} else if (isX(tp)) {
|
|
65899
|
-
to = `<${tM}.${+tm + 1}.0-0`;
|
|
65900
|
-
} else if (tpr) {
|
|
65901
|
-
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
65902
|
-
} else if (incPr) {
|
|
65903
|
-
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
65904
|
-
} else {
|
|
65905
|
-
to = `<=${to}`;
|
|
65906
|
-
}
|
|
65907
|
-
|
|
65908
|
-
return (`${from} ${to}`).trim()
|
|
65909
|
-
};
|
|
65910
|
-
|
|
65911
|
-
const testSet = (set, version, options) => {
|
|
65912
|
-
for (let i = 0; i < set.length; i++) {
|
|
65913
|
-
if (!set[i].test(version)) {
|
|
65914
|
-
return false
|
|
65915
|
-
}
|
|
65916
|
-
}
|
|
65917
|
-
|
|
65918
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
65919
|
-
// Find the set of versions that are allowed to have prereleases
|
|
65920
|
-
// For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
|
|
65921
|
-
// That should allow `1.2.3-pr.2` to pass.
|
|
65922
|
-
// However, `1.2.4-alpha.notready` should NOT be allowed,
|
|
65923
|
-
// even though it's within the range set by the comparators.
|
|
65924
|
-
for (let i = 0; i < set.length; i++) {
|
|
65925
|
-
debug_1(set[i].semver);
|
|
65926
|
-
if (set[i].semver === comparator.ANY) {
|
|
65927
|
-
continue
|
|
65928
|
-
}
|
|
65929
|
-
|
|
65930
|
-
if (set[i].semver.prerelease.length > 0) {
|
|
65931
|
-
const allowed = set[i].semver;
|
|
65932
|
-
if (allowed.major === version.major &&
|
|
65933
|
-
allowed.minor === version.minor &&
|
|
65934
|
-
allowed.patch === version.patch) {
|
|
65935
|
-
return true
|
|
65936
|
-
}
|
|
65937
|
-
}
|
|
65938
|
-
}
|
|
65939
|
-
|
|
65940
|
-
// Version has a -pre, but it's not one of the ones we like.
|
|
65941
|
-
return false
|
|
65942
|
-
}
|
|
65943
|
-
|
|
65944
|
-
return true
|
|
65945
|
-
};
|
|
65946
|
-
|
|
65947
|
-
const ANY = Symbol('SemVer ANY');
|
|
65948
|
-
// hoisted class for cyclic dependency
|
|
65949
|
-
class Comparator {
|
|
65950
|
-
static get ANY () {
|
|
65951
|
-
return ANY
|
|
65952
|
-
}
|
|
65953
|
-
constructor (comp, options) {
|
|
65954
|
-
options = parseOptions_1(options);
|
|
65955
|
-
|
|
65956
|
-
if (comp instanceof Comparator) {
|
|
65957
|
-
if (comp.loose === !!options.loose) {
|
|
65958
|
-
return comp
|
|
65959
|
-
} else {
|
|
65960
|
-
comp = comp.value;
|
|
65961
|
-
}
|
|
65962
|
-
}
|
|
65963
|
-
|
|
65964
|
-
debug_1('comparator', comp, options);
|
|
65965
|
-
this.options = options;
|
|
65966
|
-
this.loose = !!options.loose;
|
|
65967
|
-
this.parse(comp);
|
|
65968
|
-
|
|
65969
|
-
if (this.semver === ANY) {
|
|
65970
|
-
this.value = '';
|
|
65971
|
-
} else {
|
|
65972
|
-
this.value = this.operator + this.semver.version;
|
|
65973
|
-
}
|
|
65974
|
-
|
|
65975
|
-
debug_1('comp', this);
|
|
65976
|
-
}
|
|
65977
|
-
|
|
65978
|
-
parse (comp) {
|
|
65979
|
-
const r = this.options.loose ? re$6[t$6.COMPARATORLOOSE] : re$6[t$6.COMPARATOR];
|
|
65980
|
-
const m = comp.match(r);
|
|
65981
|
-
|
|
65982
|
-
if (!m) {
|
|
65983
|
-
throw new TypeError(`Invalid comparator: ${comp}`)
|
|
65984
|
-
}
|
|
65985
|
-
|
|
65986
|
-
this.operator = m[1] !== undefined ? m[1] : '';
|
|
65987
|
-
if (this.operator === '=') {
|
|
65988
|
-
this.operator = '';
|
|
65989
|
-
}
|
|
65990
|
-
|
|
65991
|
-
// if it literally is just '>' or '' then allow anything.
|
|
65992
|
-
if (!m[2]) {
|
|
65993
|
-
this.semver = ANY;
|
|
65994
|
-
} else {
|
|
65995
|
-
this.semver = new semver(m[2], this.options.loose);
|
|
65996
|
-
}
|
|
65997
|
-
}
|
|
65998
|
-
|
|
65999
|
-
toString () {
|
|
66000
|
-
return this.value
|
|
66001
|
-
}
|
|
66002
|
-
|
|
66003
|
-
test (version) {
|
|
66004
|
-
debug_1('Comparator.test', version, this.options.loose);
|
|
66005
|
-
|
|
66006
|
-
if (this.semver === ANY || version === ANY) {
|
|
66007
|
-
return true
|
|
66008
|
-
}
|
|
66009
|
-
|
|
66010
|
-
if (typeof version === 'string') {
|
|
66011
|
-
try {
|
|
66012
|
-
version = new semver(version, this.options);
|
|
66013
|
-
} catch (er) {
|
|
66014
|
-
return false
|
|
66015
|
-
}
|
|
66016
|
-
}
|
|
66017
|
-
|
|
66018
|
-
return cmp_1(version, this.operator, this.semver, this.options)
|
|
66019
|
-
}
|
|
66020
|
-
|
|
66021
|
-
intersects (comp, options) {
|
|
66022
|
-
if (!(comp instanceof Comparator)) {
|
|
66023
|
-
throw new TypeError('a Comparator is required')
|
|
66024
|
-
}
|
|
66025
|
-
|
|
66026
|
-
if (!options || typeof options !== 'object') {
|
|
66027
|
-
options = {
|
|
66028
|
-
loose: !!options,
|
|
66029
|
-
includePrerelease: false
|
|
66030
|
-
};
|
|
66031
|
-
}
|
|
66032
|
-
|
|
66033
|
-
if (this.operator === '') {
|
|
66034
|
-
if (this.value === '') {
|
|
66035
|
-
return true
|
|
66036
|
-
}
|
|
66037
|
-
return new range(comp.value, options).test(this.value)
|
|
66038
|
-
} else if (comp.operator === '') {
|
|
66039
|
-
if (comp.value === '') {
|
|
66040
|
-
return true
|
|
66041
|
-
}
|
|
66042
|
-
return new range(this.value, options).test(comp.semver)
|
|
66043
|
-
}
|
|
66044
|
-
|
|
66045
|
-
const sameDirectionIncreasing =
|
|
66046
|
-
(this.operator === '>=' || this.operator === '>') &&
|
|
66047
|
-
(comp.operator === '>=' || comp.operator === '>');
|
|
66048
|
-
const sameDirectionDecreasing =
|
|
66049
|
-
(this.operator === '<=' || this.operator === '<') &&
|
|
66050
|
-
(comp.operator === '<=' || comp.operator === '<');
|
|
66051
|
-
const sameSemVer = this.semver.version === comp.semver.version;
|
|
66052
|
-
const differentDirectionsInclusive =
|
|
66053
|
-
(this.operator === '>=' || this.operator === '<=') &&
|
|
66054
|
-
(comp.operator === '>=' || comp.operator === '<=');
|
|
66055
|
-
const oppositeDirectionsLessThan =
|
|
66056
|
-
cmp_1(this.semver, '<', comp.semver, options) &&
|
|
66057
|
-
(this.operator === '>=' || this.operator === '>') &&
|
|
66058
|
-
(comp.operator === '<=' || comp.operator === '<');
|
|
66059
|
-
const oppositeDirectionsGreaterThan =
|
|
66060
|
-
cmp_1(this.semver, '>', comp.semver, options) &&
|
|
66061
|
-
(this.operator === '<=' || this.operator === '<') &&
|
|
66062
|
-
(comp.operator === '>=' || comp.operator === '>');
|
|
66063
|
-
|
|
66064
|
-
return (
|
|
66065
|
-
sameDirectionIncreasing ||
|
|
66066
|
-
sameDirectionDecreasing ||
|
|
66067
|
-
(sameSemVer && differentDirectionsInclusive) ||
|
|
66068
|
-
oppositeDirectionsLessThan ||
|
|
66069
|
-
oppositeDirectionsGreaterThan
|
|
66070
|
-
)
|
|
66071
|
-
}
|
|
66072
|
-
}
|
|
66073
|
-
|
|
66074
|
-
var comparator = Comparator;
|
|
66075
|
-
|
|
63819
|
+
if (!isArray(elements)) {
|
|
63820
|
+
elements = [ elements ];
|
|
63821
|
+
}
|
|
66076
63822
|
|
|
66077
|
-
|
|
63823
|
+
forEach(elements, function(element) {
|
|
66078
63824
|
|
|
66079
|
-
|
|
66080
|
-
|
|
66081
|
-
range$1 = new range(range$1, options);
|
|
66082
|
-
} catch (er) {
|
|
66083
|
-
return false
|
|
66084
|
-
}
|
|
66085
|
-
return range$1.test(version)
|
|
66086
|
-
};
|
|
66087
|
-
var satisfies_1 = satisfies;
|
|
63825
|
+
// (1) error event code + message variable
|
|
63826
|
+
var errorEventDefinitions = getErrorEventDefinitions(element);
|
|
66088
63827
|
|
|
66089
|
-
|
|
66090
|
-
const toComparators = (range$1, options) =>
|
|
66091
|
-
new range(range$1, options).set
|
|
66092
|
-
.map(comp => comp.map(c => c.value).join(' ').trim().split(' '));
|
|
63828
|
+
forEach(errorEventDefinitions, function(definition) {
|
|
66093
63829
|
|
|
66094
|
-
|
|
63830
|
+
var errorCodeVariable = definition.get('errorCodeVariable'),
|
|
63831
|
+
errorMessageVariable = definition.get('errorMessageVariable');
|
|
66095
63832
|
|
|
66096
|
-
|
|
66097
|
-
|
|
66098
|
-
let maxSV = null;
|
|
66099
|
-
let rangeObj = null;
|
|
66100
|
-
try {
|
|
66101
|
-
rangeObj = new range(range$1, options);
|
|
66102
|
-
} catch (er) {
|
|
66103
|
-
return null
|
|
66104
|
-
}
|
|
66105
|
-
versions.forEach((v) => {
|
|
66106
|
-
if (rangeObj.test(v)) {
|
|
66107
|
-
// satisfies(v, range, options)
|
|
66108
|
-
if (!max || maxSV.compare(v) === -1) {
|
|
66109
|
-
// compare(max, v, true)
|
|
66110
|
-
max = v;
|
|
66111
|
-
maxSV = new semver(max, options);
|
|
63833
|
+
if (errorCodeVariable) {
|
|
63834
|
+
addVariable(element, errorCodeVariable);
|
|
66112
63835
|
}
|
|
66113
|
-
}
|
|
66114
|
-
});
|
|
66115
|
-
return max
|
|
66116
|
-
};
|
|
66117
|
-
var maxSatisfying_1 = maxSatisfying;
|
|
66118
63836
|
|
|
66119
|
-
|
|
66120
|
-
|
|
66121
|
-
let minSV = null;
|
|
66122
|
-
let rangeObj = null;
|
|
66123
|
-
try {
|
|
66124
|
-
rangeObj = new range(range$1, options);
|
|
66125
|
-
} catch (er) {
|
|
66126
|
-
return null
|
|
66127
|
-
}
|
|
66128
|
-
versions.forEach((v) => {
|
|
66129
|
-
if (rangeObj.test(v)) {
|
|
66130
|
-
// satisfies(v, range, options)
|
|
66131
|
-
if (!min || minSV.compare(v) === 1) {
|
|
66132
|
-
// compare(min, v, true)
|
|
66133
|
-
min = v;
|
|
66134
|
-
minSV = new semver(min, options);
|
|
63837
|
+
if (errorMessageVariable) {
|
|
63838
|
+
addVariable(element, errorMessageVariable);
|
|
66135
63839
|
}
|
|
66136
|
-
}
|
|
66137
|
-
});
|
|
66138
|
-
return min
|
|
66139
|
-
};
|
|
66140
|
-
var minSatisfying_1 = minSatisfying;
|
|
66141
|
-
|
|
66142
|
-
const minVersion = (range$1, loose) => {
|
|
66143
|
-
range$1 = new range(range$1, loose);
|
|
63840
|
+
});
|
|
66144
63841
|
|
|
66145
|
-
|
|
66146
|
-
|
|
66147
|
-
return minver
|
|
66148
|
-
}
|
|
63842
|
+
// (2) escalation code variable
|
|
63843
|
+
var escalationEventDefinitions = getEscalationEventDefinitions(element);
|
|
66149
63844
|
|
|
66150
|
-
|
|
66151
|
-
if (range$1.test(minver)) {
|
|
66152
|
-
return minver
|
|
66153
|
-
}
|
|
63845
|
+
forEach(escalationEventDefinitions, function(definition) {
|
|
66154
63846
|
|
|
66155
|
-
|
|
66156
|
-
for (let i = 0; i < range$1.set.length; ++i) {
|
|
66157
|
-
const comparators = range$1.set[i];
|
|
63847
|
+
var escalationCodeVariable = definition.get('escalationCodeVariable');
|
|
66158
63848
|
|
|
66159
|
-
|
|
66160
|
-
|
|
66161
|
-
// Clone to avoid manipulating the comparator's semver object.
|
|
66162
|
-
const compver = new semver(comparator.semver.version);
|
|
66163
|
-
switch (comparator.operator) {
|
|
66164
|
-
case '>':
|
|
66165
|
-
if (compver.prerelease.length === 0) {
|
|
66166
|
-
compver.patch++;
|
|
66167
|
-
} else {
|
|
66168
|
-
compver.prerelease.push(0);
|
|
66169
|
-
}
|
|
66170
|
-
compver.raw = compver.format();
|
|
66171
|
-
/* fallthrough */
|
|
66172
|
-
case '':
|
|
66173
|
-
case '>=':
|
|
66174
|
-
if (!setMin || gt_1(compver, setMin)) {
|
|
66175
|
-
setMin = compver;
|
|
66176
|
-
}
|
|
66177
|
-
break
|
|
66178
|
-
case '<':
|
|
66179
|
-
case '<=':
|
|
66180
|
-
/* Ignore maximum versions */
|
|
66181
|
-
break
|
|
66182
|
-
/* istanbul ignore next */
|
|
66183
|
-
default:
|
|
66184
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`)
|
|
63849
|
+
if (escalationCodeVariable) {
|
|
63850
|
+
addVariable(element, escalationCodeVariable);
|
|
66185
63851
|
}
|
|
66186
63852
|
});
|
|
66187
|
-
if (setMin && (!minver || gt_1(minver, setMin)))
|
|
66188
|
-
minver = setMin;
|
|
66189
|
-
}
|
|
66190
63853
|
|
|
66191
|
-
|
|
66192
|
-
return minver
|
|
66193
|
-
}
|
|
66194
|
-
|
|
66195
|
-
return null
|
|
66196
|
-
};
|
|
66197
|
-
var minVersion_1 = minVersion;
|
|
66198
|
-
|
|
66199
|
-
const validRange = (range$1, options) => {
|
|
66200
|
-
try {
|
|
66201
|
-
// Return '*' instead of '' so that truthiness works.
|
|
66202
|
-
// This will throw if it's invalid anyway
|
|
66203
|
-
return new range(range$1, options).range || '*'
|
|
66204
|
-
} catch (er) {
|
|
66205
|
-
return null
|
|
66206
|
-
}
|
|
66207
|
-
};
|
|
66208
|
-
var valid$1 = validRange;
|
|
63854
|
+
});
|
|
66209
63855
|
|
|
66210
|
-
|
|
63856
|
+
return processVariables;
|
|
63857
|
+
}
|
|
66211
63858
|
|
|
63859
|
+
var extractors = [
|
|
63860
|
+
extractOutputParameters,
|
|
63861
|
+
extractResultVariables,
|
|
63862
|
+
extractFormFields,
|
|
63863
|
+
extractOutMappings,
|
|
63864
|
+
extractEventDefinitionVariables
|
|
63865
|
+
];
|
|
66212
63866
|
|
|
63867
|
+
/**
|
|
63868
|
+
* @typedef {Object} ProcessVariable
|
|
63869
|
+
* @property {string} name
|
|
63870
|
+
* @property {Array<ModdleElement>} origin
|
|
63871
|
+
* @property {ModdleElement} scope
|
|
63872
|
+
*/
|
|
66213
63873
|
|
|
63874
|
+
// api /////////////////////////
|
|
66214
63875
|
|
|
63876
|
+
/**
|
|
63877
|
+
* Retrieves all process variables for a given container element.
|
|
63878
|
+
* @param {ModdleElement} containerElement
|
|
63879
|
+
*
|
|
63880
|
+
* @returns {Array<ProcessVariable>}
|
|
63881
|
+
*/
|
|
63882
|
+
function getProcessVariables(containerElement) {
|
|
63883
|
+
var processVariables = [];
|
|
66215
63884
|
|
|
63885
|
+
// (1) extract all flow elements inside the container
|
|
63886
|
+
var elements = selfAndAllFlowElements$1([containerElement], false);
|
|
66216
63887
|
|
|
63888
|
+
// (2) extract all variables from the extractors
|
|
63889
|
+
forEach(extractors, function(extractor) {
|
|
63890
|
+
extractor({
|
|
63891
|
+
elements: elements,
|
|
63892
|
+
containerElement: containerElement,
|
|
63893
|
+
processVariables: processVariables
|
|
63894
|
+
});
|
|
63895
|
+
});
|
|
66217
63896
|
|
|
66218
|
-
|
|
66219
|
-
|
|
66220
|
-
range$1 = new range(range$1, options);
|
|
63897
|
+
return processVariables;
|
|
63898
|
+
}
|
|
66221
63899
|
|
|
66222
|
-
|
|
66223
|
-
|
|
66224
|
-
|
|
66225
|
-
|
|
66226
|
-
|
|
66227
|
-
|
|
66228
|
-
|
|
66229
|
-
|
|
66230
|
-
|
|
66231
|
-
|
|
66232
|
-
|
|
66233
|
-
|
|
66234
|
-
|
|
66235
|
-
comp = '<';
|
|
66236
|
-
ecomp = '<=';
|
|
66237
|
-
break
|
|
66238
|
-
default:
|
|
66239
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"')
|
|
66240
|
-
}
|
|
63900
|
+
/**
|
|
63901
|
+
* Retrieves all variables which are available in the given scope
|
|
63902
|
+
*
|
|
63903
|
+
* * Exclude variables which are only available in other scopes
|
|
63904
|
+
* * Exclude variables which are produced by the given element
|
|
63905
|
+
* * Include variables which are available in parent scopes
|
|
63906
|
+
*
|
|
63907
|
+
* @param {string} scope
|
|
63908
|
+
* @param {ModdleElement} rootElement element from where to extract all variables
|
|
63909
|
+
*
|
|
63910
|
+
* @returns {Array<ProcessVariable>}
|
|
63911
|
+
*/
|
|
63912
|
+
function getVariablesForScope(scope, rootElement) {
|
|
66241
63913
|
|
|
66242
|
-
|
|
66243
|
-
if (satisfies_1(version, range$1, options)) {
|
|
66244
|
-
return false
|
|
66245
|
-
}
|
|
63914
|
+
var allVariables = getProcessVariables(rootElement);
|
|
66246
63915
|
|
|
66247
|
-
|
|
66248
|
-
// but note that everything is flipped for the "ltr" function.
|
|
63916
|
+
var scopeElement = getElement(scope, rootElement);
|
|
66249
63917
|
|
|
66250
|
-
|
|
66251
|
-
|
|
63918
|
+
// (1) get variables for given scope
|
|
63919
|
+
var scopeVariables = filter(allVariables, function(variable) {
|
|
63920
|
+
return variable.scope.id === scopeElement.id;
|
|
63921
|
+
});
|
|
66252
63922
|
|
|
66253
|
-
|
|
66254
|
-
|
|
63923
|
+
// (2) get variables for parent scopes
|
|
63924
|
+
var parents = getParents$2(scopeElement);
|
|
66255
63925
|
|
|
66256
|
-
|
|
66257
|
-
|
|
66258
|
-
|
|
66259
|
-
}
|
|
66260
|
-
high = high || comparator$1;
|
|
66261
|
-
low = low || comparator$1;
|
|
66262
|
-
if (gtfn(comparator$1.semver, high.semver, options)) {
|
|
66263
|
-
high = comparator$1;
|
|
66264
|
-
} else if (ltfn(comparator$1.semver, low.semver, options)) {
|
|
66265
|
-
low = comparator$1;
|
|
66266
|
-
}
|
|
63926
|
+
var parentsScopeVariables = filter(allVariables, function(variable) {
|
|
63927
|
+
return find(parents, function(parent) {
|
|
63928
|
+
return parent.id === variable.scope.id;
|
|
66267
63929
|
});
|
|
63930
|
+
});
|
|
66268
63931
|
|
|
66269
|
-
|
|
66270
|
-
|
|
66271
|
-
if (high.operator === comp || high.operator === ecomp) {
|
|
66272
|
-
return false
|
|
66273
|
-
}
|
|
63932
|
+
return combineArrays$1(scopeVariables, parentsScopeVariables);
|
|
63933
|
+
}
|
|
66274
63934
|
|
|
66275
|
-
|
|
66276
|
-
// is less than it then it isn't higher than the range
|
|
66277
|
-
if ((!low.operator || low.operator === comp) &&
|
|
66278
|
-
ltefn(version, low.semver)) {
|
|
66279
|
-
return false
|
|
66280
|
-
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
66281
|
-
return false
|
|
66282
|
-
}
|
|
66283
|
-
}
|
|
66284
|
-
return true
|
|
66285
|
-
};
|
|
63935
|
+
// helpers ////////////////////
|
|
66286
63936
|
|
|
66287
|
-
|
|
63937
|
+
function combineArrays$1(a, b) {
|
|
63938
|
+
return a.concat(b);
|
|
63939
|
+
}
|
|
66288
63940
|
|
|
66289
|
-
|
|
63941
|
+
/**
|
|
63942
|
+
* A simple translation stub to be used for multi-language support
|
|
63943
|
+
* in diagrams. Can be easily replaced with a more sophisticated
|
|
63944
|
+
* solution.
|
|
63945
|
+
*
|
|
63946
|
+
* @example
|
|
63947
|
+
*
|
|
63948
|
+
* // use it inside any diagram component by injecting `translate`.
|
|
63949
|
+
*
|
|
63950
|
+
* function MyService(translate) {
|
|
63951
|
+
* alert(translate('HELLO {you}', { you: 'You!' }));
|
|
63952
|
+
* }
|
|
63953
|
+
*
|
|
63954
|
+
* @param {string} template to interpolate
|
|
63955
|
+
* @param {Object} [replacements] a map with substitutes
|
|
63956
|
+
*
|
|
63957
|
+
* @return {string} the translated string
|
|
63958
|
+
*/
|
|
63959
|
+
function translate$3(template, replacements) {
|
|
66290
63960
|
|
|
66291
|
-
|
|
66292
|
-
var gtr_1 = gtr;
|
|
63961
|
+
replacements = replacements || {};
|
|
66293
63962
|
|
|
66294
|
-
|
|
66295
|
-
|
|
66296
|
-
|
|
63963
|
+
return template.replace(/{([^}]+)}/g, function(_, key) {
|
|
63964
|
+
return replacements[key] || '{' + key + '}';
|
|
63965
|
+
});
|
|
63966
|
+
}
|
|
66297
63967
|
|
|
66298
|
-
|
|
66299
|
-
|
|
66300
|
-
r2 = new range(r2, options);
|
|
66301
|
-
return r1.intersects(r2)
|
|
63968
|
+
var translateModule = {
|
|
63969
|
+
translate: [ 'value', translate$3 ]
|
|
66302
63970
|
};
|
|
66303
|
-
var intersects_1 = intersects;
|
|
66304
|
-
|
|
66305
|
-
// given a set of versions and a range, create a "simplified" range
|
|
66306
|
-
// that includes the same versions that the original range does
|
|
66307
|
-
// If the original range is shorter than the simplified one, return that.
|
|
66308
|
-
|
|
66309
63971
|
|
|
66310
|
-
var
|
|
66311
|
-
|
|
66312
|
-
|
|
66313
|
-
|
|
66314
|
-
|
|
66315
|
-
|
|
66316
|
-
|
|
66317
|
-
|
|
66318
|
-
|
|
66319
|
-
|
|
66320
|
-
min = version;
|
|
66321
|
-
} else {
|
|
66322
|
-
if (prev) {
|
|
66323
|
-
set.push([min, prev]);
|
|
66324
|
-
}
|
|
66325
|
-
prev = null;
|
|
66326
|
-
min = null;
|
|
63972
|
+
var semverCompare = function cmp (a, b) {
|
|
63973
|
+
var pa = a.split('.');
|
|
63974
|
+
var pb = b.split('.');
|
|
63975
|
+
for (var i = 0; i < 3; i++) {
|
|
63976
|
+
var na = Number(pa[i]);
|
|
63977
|
+
var nb = Number(pb[i]);
|
|
63978
|
+
if (na > nb) return 1;
|
|
63979
|
+
if (nb > na) return -1;
|
|
63980
|
+
if (!isNaN(na) && isNaN(nb)) return 1;
|
|
63981
|
+
if (isNaN(na) && !isNaN(nb)) return -1;
|
|
66327
63982
|
}
|
|
66328
|
-
|
|
66329
|
-
if (min)
|
|
66330
|
-
set.push([min, null]);
|
|
66331
|
-
|
|
66332
|
-
const ranges = [];
|
|
66333
|
-
for (const [min, max] of set) {
|
|
66334
|
-
if (min === max)
|
|
66335
|
-
ranges.push(min);
|
|
66336
|
-
else if (!max && min === v[0])
|
|
66337
|
-
ranges.push('*');
|
|
66338
|
-
else if (!max)
|
|
66339
|
-
ranges.push(`>=${min}`);
|
|
66340
|
-
else if (min === v[0])
|
|
66341
|
-
ranges.push(`<=${max}`);
|
|
66342
|
-
else
|
|
66343
|
-
ranges.push(`${min} - ${max}`);
|
|
66344
|
-
}
|
|
66345
|
-
const simplified = ranges.join(' || ');
|
|
66346
|
-
const original = typeof range.raw === 'string' ? range.raw : String(range);
|
|
66347
|
-
return simplified.length < original.length ? simplified : range
|
|
63983
|
+
return 0;
|
|
66348
63984
|
};
|
|
66349
63985
|
|
|
66350
|
-
|
|
66351
|
-
|
|
66352
|
-
|
|
66353
|
-
|
|
66354
|
-
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
|
|
66355
|
-
// - Every simple range `r1, r2, ...` is a null set, OR
|
|
66356
|
-
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
|
|
66357
|
-
// some `R1, R2, ...`
|
|
66358
|
-
//
|
|
66359
|
-
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
|
|
66360
|
-
// - If c is only the ANY comparator
|
|
66361
|
-
// - If C is only the ANY comparator, return true
|
|
66362
|
-
// - Else if in prerelease mode, return false
|
|
66363
|
-
// - else replace c with `[>=0.0.0]`
|
|
66364
|
-
// - If C is only the ANY comparator
|
|
66365
|
-
// - if in prerelease mode, return true
|
|
66366
|
-
// - else replace C with `[>=0.0.0]`
|
|
66367
|
-
// - Let EQ be the set of = comparators in c
|
|
66368
|
-
// - If EQ is more than one, return true (null set)
|
|
66369
|
-
// - Let GT be the highest > or >= comparator in c
|
|
66370
|
-
// - Let LT be the lowest < or <= comparator in c
|
|
66371
|
-
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
|
|
66372
|
-
// - If any C is a = range, and GT or LT are set, return false
|
|
66373
|
-
// - If EQ
|
|
66374
|
-
// - If GT, and EQ does not satisfy GT, return true (null set)
|
|
66375
|
-
// - If LT, and EQ does not satisfy LT, return true (null set)
|
|
66376
|
-
// - If EQ satisfies every C, return true
|
|
66377
|
-
// - Else return false
|
|
66378
|
-
// - If GT
|
|
66379
|
-
// - If GT.semver is lower than any > or >= comp in C, return false
|
|
66380
|
-
// - If GT is >=, and GT.semver does not satisfy every C, return false
|
|
66381
|
-
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
66382
|
-
// - If no C has a prerelease and the GT.semver tuple, return false
|
|
66383
|
-
// - If LT
|
|
66384
|
-
// - If LT.semver is greater than any < or <= comp in C, return false
|
|
66385
|
-
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
|
66386
|
-
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
66387
|
-
// - If no C has a prerelease and the LT.semver tuple, return false
|
|
66388
|
-
// - Else return true
|
|
66389
|
-
|
|
66390
|
-
const subset = (sub, dom, options = {}) => {
|
|
66391
|
-
if (sub === dom)
|
|
66392
|
-
return true
|
|
66393
|
-
|
|
66394
|
-
sub = new range(sub, options);
|
|
66395
|
-
dom = new range(dom, options);
|
|
66396
|
-
let sawNonNull = false;
|
|
66397
|
-
|
|
66398
|
-
OUTER: for (const simpleSub of sub.set) {
|
|
66399
|
-
for (const simpleDom of dom.set) {
|
|
66400
|
-
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
66401
|
-
sawNonNull = sawNonNull || isSub !== null;
|
|
66402
|
-
if (isSub)
|
|
66403
|
-
continue OUTER
|
|
66404
|
-
}
|
|
66405
|
-
// the null set is a subset of everything, but null simple ranges in
|
|
66406
|
-
// a complex range should be ignored. so if we saw a non-null range,
|
|
66407
|
-
// then we know this isn't a subset, but if EVERY simple range was null,
|
|
66408
|
-
// then it is a subset.
|
|
66409
|
-
if (sawNonNull)
|
|
66410
|
-
return false
|
|
66411
|
-
}
|
|
66412
|
-
return true
|
|
66413
|
-
};
|
|
66414
|
-
|
|
66415
|
-
const simpleSubset = (sub, dom, options) => {
|
|
66416
|
-
if (sub === dom)
|
|
66417
|
-
return true
|
|
66418
|
-
|
|
66419
|
-
if (sub.length === 1 && sub[0].semver === ANY$2) {
|
|
66420
|
-
if (dom.length === 1 && dom[0].semver === ANY$2)
|
|
66421
|
-
return true
|
|
66422
|
-
else if (options.includePrerelease)
|
|
66423
|
-
sub = [ new comparator('>=0.0.0-0') ];
|
|
66424
|
-
else
|
|
66425
|
-
sub = [ new comparator('>=0.0.0') ];
|
|
66426
|
-
}
|
|
66427
|
-
|
|
66428
|
-
if (dom.length === 1 && dom[0].semver === ANY$2) {
|
|
66429
|
-
if (options.includePrerelease)
|
|
66430
|
-
return true
|
|
66431
|
-
else
|
|
66432
|
-
dom = [ new comparator('>=0.0.0') ];
|
|
66433
|
-
}
|
|
66434
|
-
|
|
66435
|
-
const eqSet = new Set();
|
|
66436
|
-
let gt, lt;
|
|
66437
|
-
for (const c of sub) {
|
|
66438
|
-
if (c.operator === '>' || c.operator === '>=')
|
|
66439
|
-
gt = higherGT(gt, c, options);
|
|
66440
|
-
else if (c.operator === '<' || c.operator === '<=')
|
|
66441
|
-
lt = lowerLT(lt, c, options);
|
|
66442
|
-
else
|
|
66443
|
-
eqSet.add(c.semver);
|
|
66444
|
-
}
|
|
66445
|
-
|
|
66446
|
-
if (eqSet.size > 1)
|
|
66447
|
-
return null
|
|
66448
|
-
|
|
66449
|
-
let gtltComp;
|
|
66450
|
-
if (gt && lt) {
|
|
66451
|
-
gtltComp = compare_1(gt.semver, lt.semver, options);
|
|
66452
|
-
if (gtltComp > 0)
|
|
66453
|
-
return null
|
|
66454
|
-
else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<='))
|
|
66455
|
-
return null
|
|
66456
|
-
}
|
|
66457
|
-
|
|
66458
|
-
// will iterate one or zero times
|
|
66459
|
-
for (const eq of eqSet) {
|
|
66460
|
-
if (gt && !satisfies_1(eq, String(gt), options))
|
|
66461
|
-
return null
|
|
66462
|
-
|
|
66463
|
-
if (lt && !satisfies_1(eq, String(lt), options))
|
|
66464
|
-
return null
|
|
66465
|
-
|
|
66466
|
-
for (const c of dom) {
|
|
66467
|
-
if (!satisfies_1(eq, String(c), options))
|
|
66468
|
-
return false
|
|
66469
|
-
}
|
|
66470
|
-
|
|
66471
|
-
return true
|
|
66472
|
-
}
|
|
66473
|
-
|
|
66474
|
-
let higher, lower;
|
|
66475
|
-
let hasDomLT, hasDomGT;
|
|
66476
|
-
// if the subset has a prerelease, we need a comparator in the superset
|
|
66477
|
-
// with the same tuple and a prerelease, or it's not a subset
|
|
66478
|
-
let needDomLTPre = lt &&
|
|
66479
|
-
!options.includePrerelease &&
|
|
66480
|
-
lt.semver.prerelease.length ? lt.semver : false;
|
|
66481
|
-
let needDomGTPre = gt &&
|
|
66482
|
-
!options.includePrerelease &&
|
|
66483
|
-
gt.semver.prerelease.length ? gt.semver : false;
|
|
66484
|
-
// exception: <1.2.3-0 is the same as <1.2.3
|
|
66485
|
-
if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
|
|
66486
|
-
lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
|
|
66487
|
-
needDomLTPre = false;
|
|
66488
|
-
}
|
|
66489
|
-
|
|
66490
|
-
for (const c of dom) {
|
|
66491
|
-
hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=';
|
|
66492
|
-
hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=';
|
|
66493
|
-
if (gt) {
|
|
66494
|
-
if (needDomGTPre) {
|
|
66495
|
-
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
66496
|
-
c.semver.major === needDomGTPre.major &&
|
|
66497
|
-
c.semver.minor === needDomGTPre.minor &&
|
|
66498
|
-
c.semver.patch === needDomGTPre.patch) {
|
|
66499
|
-
needDomGTPre = false;
|
|
66500
|
-
}
|
|
66501
|
-
}
|
|
66502
|
-
if (c.operator === '>' || c.operator === '>=') {
|
|
66503
|
-
higher = higherGT(gt, c, options);
|
|
66504
|
-
if (higher === c && higher !== gt)
|
|
66505
|
-
return false
|
|
66506
|
-
} else if (gt.operator === '>=' && !satisfies_1(gt.semver, String(c), options))
|
|
66507
|
-
return false
|
|
66508
|
-
}
|
|
66509
|
-
if (lt) {
|
|
66510
|
-
if (needDomLTPre) {
|
|
66511
|
-
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
66512
|
-
c.semver.major === needDomLTPre.major &&
|
|
66513
|
-
c.semver.minor === needDomLTPre.minor &&
|
|
66514
|
-
c.semver.patch === needDomLTPre.patch) {
|
|
66515
|
-
needDomLTPre = false;
|
|
66516
|
-
}
|
|
66517
|
-
}
|
|
66518
|
-
if (c.operator === '<' || c.operator === '<=') {
|
|
66519
|
-
lower = lowerLT(lt, c, options);
|
|
66520
|
-
if (lower === c && lower !== lt)
|
|
66521
|
-
return false
|
|
66522
|
-
} else if (lt.operator === '<=' && !satisfies_1(lt.semver, String(c), options))
|
|
66523
|
-
return false
|
|
66524
|
-
}
|
|
66525
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
66526
|
-
return false
|
|
66527
|
-
}
|
|
66528
|
-
|
|
66529
|
-
// if there was a < or >, and nothing in the dom, then must be false
|
|
66530
|
-
// UNLESS it was limited by another range in the other direction.
|
|
66531
|
-
// Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
|
|
66532
|
-
if (gt && hasDomLT && !lt && gtltComp !== 0)
|
|
66533
|
-
return false
|
|
66534
|
-
|
|
66535
|
-
if (lt && hasDomGT && !gt && gtltComp !== 0)
|
|
66536
|
-
return false
|
|
66537
|
-
|
|
66538
|
-
// we needed a prerelease range in a specific tuple, but didn't get one
|
|
66539
|
-
// then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
|
|
66540
|
-
// because it includes prereleases in the 1.2.3 tuple
|
|
66541
|
-
if (needDomGTPre || needDomLTPre)
|
|
66542
|
-
return false
|
|
66543
|
-
|
|
66544
|
-
return true
|
|
66545
|
-
};
|
|
66546
|
-
|
|
66547
|
-
// >=1.2.3 is lower than >1.2.3
|
|
66548
|
-
const higherGT = (a, b, options) => {
|
|
66549
|
-
if (!a)
|
|
66550
|
-
return b
|
|
66551
|
-
const comp = compare_1(a.semver, b.semver, options);
|
|
66552
|
-
return comp > 0 ? a
|
|
66553
|
-
: comp < 0 ? b
|
|
66554
|
-
: b.operator === '>' && a.operator === '>=' ? b
|
|
66555
|
-
: a
|
|
66556
|
-
};
|
|
66557
|
-
|
|
66558
|
-
// <=1.2.3 is higher than <1.2.3
|
|
66559
|
-
const lowerLT = (a, b, options) => {
|
|
66560
|
-
if (!a)
|
|
66561
|
-
return b
|
|
66562
|
-
const comp = compare_1(a.semver, b.semver, options);
|
|
66563
|
-
return comp < 0 ? a
|
|
66564
|
-
: comp > 0 ? b
|
|
66565
|
-
: b.operator === '<' && a.operator === '<=' ? b
|
|
66566
|
-
: a
|
|
66567
|
-
};
|
|
66568
|
-
|
|
66569
|
-
var subset_1 = subset;
|
|
66570
|
-
|
|
66571
|
-
// just pre-load all the stuff that index.js lazily exports
|
|
66572
|
-
|
|
66573
|
-
var semver$1 = {
|
|
66574
|
-
re: re_1.re,
|
|
66575
|
-
src: re_1.src,
|
|
66576
|
-
tokens: re_1.t,
|
|
66577
|
-
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
66578
|
-
SemVer: semver,
|
|
66579
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
66580
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers,
|
|
66581
|
-
parse: parse_1,
|
|
66582
|
-
valid: valid_1,
|
|
66583
|
-
clean: clean_1,
|
|
66584
|
-
inc: inc_1,
|
|
66585
|
-
diff: diff_1,
|
|
66586
|
-
major: major_1,
|
|
66587
|
-
minor: minor_1,
|
|
66588
|
-
patch: patch_1,
|
|
66589
|
-
prerelease: prerelease_1,
|
|
66590
|
-
compare: compare_1,
|
|
66591
|
-
rcompare: rcompare_1,
|
|
66592
|
-
compareLoose: compareLoose_1,
|
|
66593
|
-
compareBuild: compareBuild_1,
|
|
66594
|
-
sort: sort_1,
|
|
66595
|
-
rsort: rsort_1,
|
|
66596
|
-
gt: gt_1,
|
|
66597
|
-
lt: lt_1,
|
|
66598
|
-
eq: eq_1,
|
|
66599
|
-
neq: neq_1,
|
|
66600
|
-
gte: gte_1,
|
|
66601
|
-
lte: lte_1,
|
|
66602
|
-
cmp: cmp_1,
|
|
66603
|
-
coerce: coerce_1,
|
|
66604
|
-
Comparator: comparator,
|
|
66605
|
-
Range: range,
|
|
66606
|
-
satisfies: satisfies_1,
|
|
66607
|
-
toComparators: toComparators_1,
|
|
66608
|
-
maxSatisfying: maxSatisfying_1,
|
|
66609
|
-
minSatisfying: minSatisfying_1,
|
|
66610
|
-
minVersion: minVersion_1,
|
|
66611
|
-
validRange: valid$1,
|
|
66612
|
-
outside: outside_1,
|
|
66613
|
-
gtr: gtr_1,
|
|
66614
|
-
ltr: ltr_1,
|
|
66615
|
-
intersects: intersects_1,
|
|
66616
|
-
simplifyRange: simplify,
|
|
66617
|
-
subset: subset_1,
|
|
66618
|
-
};
|
|
66619
|
-
|
|
66620
|
-
var version$1 = "0.7.0";
|
|
63986
|
+
var version$1 = "0.8.0";
|
|
66621
63987
|
|
|
66622
63988
|
// do not edit .js files directly - edit src/index.jst
|
|
66623
63989
|
|
|
@@ -66668,7 +64034,7 @@
|
|
|
66668
64034
|
// https://github.com/ajv-validator/ajv/issues/889
|
|
66669
64035
|
var equal = fastDeepEqual;
|
|
66670
64036
|
|
|
66671
|
-
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;}
|
|
64037
|
+
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","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"number","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^(.*?:)","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}}}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"scopes":{"$id":"#/scopes","type":"array","description":"Special scoped bindings that allow you to configure nested elements.","allOf":[{"examples":[[{"type":"bpmn:Error","id":"Error_1","properties":[{"value":"error-code","binding":{"type":"property","name":"errorCode"}},{"value":"error-message","binding":{"type":"property","name":"camunda:errorMessage"}},{"value":"error-name","binding":{"type":"property","name":"name"}}]}]]}],"items":{"$id":"#/scopes/item","type":"object","default":{},"properties":{"type":{"$id":"#scopes/item/type","type":"string","description":"The type of a scope.","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","description":"List of properties of a scope.","default":[],"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"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","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"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","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"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 a property binding."},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}}}}]};const schema19 = {"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}};const schema20 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","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","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"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 a property binding."},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}}}};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 valid16 = 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;valid16 = _valid0;}if(!valid16){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 valid24 = 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){valid24 = 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 && valid24){valid24 = false;passing0 = [passing0, 1];}else {if(_valid1){valid24 = true;passing0 = 1;}}if(!valid24){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 valid29 = 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;valid29 = _valid2;}if(!valid29){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 valid33 = 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;valid33 = _valid3;}if(!valid33){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 valid37 = 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;valid37 = _valid4;}if(!valid37){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 valid41 = 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;valid41 = _valid5;}if(!valid41){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 valid47 = 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;valid47 = _valid6;}if(!valid47){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 valid49 = 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;valid49 = _valid7;}if(!valid49){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 valid51 = 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 valid53 = 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;valid53 = valid53 || _valid9;if(!valid53){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;valid53 = valid53 || _valid9;}if(!valid53){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;valid51 = _valid8;}if(!valid51){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 valid54 = 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 valid56 = false;let passing1 = null;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;const _errs138 = errors;let valid58 = 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;valid58 = valid58 || _valid12;if(!valid58){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;valid58 = valid58 || _valid12;}if(!valid58){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 valid57 = _errs137 === errors;if(!valid57){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){valid56 = true;passing1 = 0;}const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;const _errs144 = errors;let valid60 = 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;valid60 = valid60 || _valid13;if(!valid60){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;valid60 = valid60 || _valid13;}if(!valid60){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 valid59 = _errs143 === errors;if(!valid59){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 && valid56){valid56 = false;passing1 = [passing1, 1];}else {if(_valid11){valid56 = true;passing1 = 1;}const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;let valid62 = 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;valid62 = valid62 || _valid14;if(!valid62){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;valid62 = valid62 || _valid14;}if(!valid62){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 valid61 = _errs149 === errors;if(!valid61){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 && valid56){valid56 = false;passing1 = [passing1, 2];}else {if(_valid11){valid56 = 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 valid63 = _errs155 === errors;if(!valid63){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 && valid56){valid56 = false;passing1 = [passing1, 3];}else {if(_valid11){valid56 = 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 valid64 = _errs158 === errors;if(!valid64){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 && valid56){valid56 = false;passing1 = [passing1, 4];}else {if(_valid11){valid56 = true;passing1 = 4;}}}}}if(!valid56){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;valid54 = _valid10;}if(!valid54){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 valid65 = 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 valid67 = 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){valid67 = true;passing2 = 0;}if(!valid67){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;valid65 = _valid15;}if(!valid65){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 valid73 = 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;valid73 = _valid17;}if(!valid73){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 valid82 = 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;valid82 = _valid18;}if(!valid82){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 valid90 = 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){valid90 = 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 && valid90){valid90 = false;passing3 = [passing3, 1];}else {if(_valid19){valid90 = true;passing3 = 1;}}if(!valid90){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 valid96 = 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;valid96 = _valid20;}if(!valid96){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 valid100 = 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;valid100 = _valid21;}if(!valid100){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 valid104 = 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;valid104 = _valid22;}if(!valid104){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 valid108 = 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;valid108 = _valid23;}if(!valid108){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 valid114 = 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;valid114 = _valid24;}if(!valid114){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 valid116 = 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;valid116 = _valid25;}if(!valid116){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 valid118 = 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 valid120 = 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;valid120 = valid120 || _valid27;if(!valid120){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;valid120 = valid120 || _valid27;}if(!valid120){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;valid118 = _valid26;}if(!valid118){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 valid121 = 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 valid123 = false;let passing4 = null;const _errs303 = errors;const _errs304 = errors;const _errs305 = errors;const _errs306 = errors;let valid125 = 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;valid125 = valid125 || _valid30;if(!valid125){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;valid125 = valid125 || _valid30;}if(!valid125){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 valid124 = _errs305 === errors;if(!valid124){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){valid123 = true;passing4 = 0;}const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;const _errs312 = errors;let valid127 = 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;valid127 = valid127 || _valid31;if(!valid127){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;valid127 = valid127 || _valid31;}if(!valid127){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 valid126 = _errs311 === errors;if(!valid126){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 && valid123){valid123 = false;passing4 = [passing4, 1];}else {if(_valid29){valid123 = true;passing4 = 1;}const _errs315 = errors;const _errs316 = errors;const _errs317 = errors;const _errs318 = errors;let valid129 = 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;valid129 = valid129 || _valid32;if(!valid129){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;valid129 = valid129 || _valid32;}if(!valid129){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 valid128 = _errs317 === errors;if(!valid128){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 && valid123){valid123 = false;passing4 = [passing4, 2];}else {if(_valid29){valid123 = 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 valid130 = _errs323 === errors;if(!valid130){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 && valid123){valid123 = false;passing4 = [passing4, 3];}else {if(_valid29){valid123 = 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 valid131 = _errs326 === errors;if(!valid131){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 && valid123){valid123 = false;passing4 = [passing4, 4];}else {if(_valid29){valid123 = true;passing4 = 4;}}}}}if(!valid123){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;valid121 = _valid28;}if(!valid121){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 valid132 = 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 valid134 = 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){valid134 = true;passing5 = 0;}if(!valid134){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;valid132 = _valid33;}if(!valid132){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;}
|
|
66672
64038
|
standaloneValidator.default = _default$1;
|
|
66673
64039
|
|
|
66674
64040
|
var escapedChars = {
|
|
@@ -66685,7 +64051,7 @@
|
|
|
66685
64051
|
var A_CODE = 'a'.charCodeAt();
|
|
66686
64052
|
|
|
66687
64053
|
|
|
66688
|
-
var parse$
|
|
64054
|
+
var parse$2 = function (source, _, options) {
|
|
66689
64055
|
var pointers = {};
|
|
66690
64056
|
var line = 0;
|
|
66691
64057
|
var column = 0;
|
|
@@ -67136,7 +64502,7 @@
|
|
|
67136
64502
|
}
|
|
67137
64503
|
|
|
67138
64504
|
var jsonSourceMap = {
|
|
67139
|
-
parse: parse$
|
|
64505
|
+
parse: parse$2,
|
|
67140
64506
|
stringify: stringify
|
|
67141
64507
|
};
|
|
67142
64508
|
|
|
@@ -69124,7 +66490,7 @@
|
|
|
69124
66490
|
label: translate('<none>')
|
|
69125
66491
|
}];
|
|
69126
66492
|
const activities = findActivityRefs(element);
|
|
69127
|
-
sortByName$
|
|
66493
|
+
sortByName$6(activities).forEach(function (activity) {
|
|
69128
66494
|
options.push({
|
|
69129
66495
|
value: activity.id,
|
|
69130
66496
|
label: createOptionLabel(activity)
|
|
@@ -69247,7 +66613,7 @@
|
|
|
69247
66613
|
return `${name ? name + ' ' : ''}(id=${id})`;
|
|
69248
66614
|
}
|
|
69249
66615
|
|
|
69250
|
-
function sortByName$
|
|
66616
|
+
function sortByName$6(elements) {
|
|
69251
66617
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
69252
66618
|
}
|
|
69253
66619
|
|
|
@@ -69551,7 +66917,7 @@
|
|
|
69551
66917
|
label: translate('Create new ...')
|
|
69552
66918
|
}];
|
|
69553
66919
|
const errors = findRootElementsByType(getBusinessObject(element), 'bpmn:Error');
|
|
69554
|
-
sortByName$
|
|
66920
|
+
sortByName$5(errors).forEach(error => {
|
|
69555
66921
|
options.push({
|
|
69556
66922
|
value: error.get('id'),
|
|
69557
66923
|
label: error.get('name')
|
|
@@ -69638,7 +67004,7 @@
|
|
|
69638
67004
|
} // helper /////////////////////////
|
|
69639
67005
|
|
|
69640
67006
|
|
|
69641
|
-
function sortByName$
|
|
67007
|
+
function sortByName$5(elements) {
|
|
69642
67008
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
69643
67009
|
}
|
|
69644
67010
|
|
|
@@ -69745,7 +67111,7 @@
|
|
|
69745
67111
|
label: translate('Create new ...')
|
|
69746
67112
|
}];
|
|
69747
67113
|
const escalations = findRootElementsByType(getBusinessObject(element), 'bpmn:Escalation');
|
|
69748
|
-
sortByName$
|
|
67114
|
+
sortByName$4(escalations).forEach(escalation => {
|
|
69749
67115
|
options.push({
|
|
69750
67116
|
value: escalation.get('id'),
|
|
69751
67117
|
label: escalation.get('name')
|
|
@@ -69832,7 +67198,7 @@
|
|
|
69832
67198
|
} // helper /////////////////////////
|
|
69833
67199
|
|
|
69834
67200
|
|
|
69835
|
-
function sortByName$
|
|
67201
|
+
function sortByName$4(elements) {
|
|
69836
67202
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
69837
67203
|
}
|
|
69838
67204
|
|
|
@@ -70094,7 +67460,7 @@
|
|
|
70094
67460
|
if (message) {
|
|
70095
67461
|
entries = [...entries, {
|
|
70096
67462
|
id: 'messageName',
|
|
70097
|
-
component: MessageName,
|
|
67463
|
+
component: MessageName$1,
|
|
70098
67464
|
isEdited: isEdited$1
|
|
70099
67465
|
}];
|
|
70100
67466
|
}
|
|
@@ -70170,7 +67536,7 @@
|
|
|
70170
67536
|
label: translate('Create new ...')
|
|
70171
67537
|
}];
|
|
70172
67538
|
const messages = findRootElementsByType(getBusinessObject(element), 'bpmn:Message');
|
|
70173
|
-
sortByName$
|
|
67539
|
+
sortByName$3(messages).forEach(message => {
|
|
70174
67540
|
options.push({
|
|
70175
67541
|
value: message.get('id'),
|
|
70176
67542
|
label: message.get('name')
|
|
@@ -70190,7 +67556,7 @@
|
|
|
70190
67556
|
});
|
|
70191
67557
|
}
|
|
70192
67558
|
|
|
70193
|
-
function MessageName(props) {
|
|
67559
|
+
function MessageName$1(props) {
|
|
70194
67560
|
const {
|
|
70195
67561
|
element
|
|
70196
67562
|
} = props;
|
|
@@ -70224,7 +67590,7 @@
|
|
|
70224
67590
|
} // helper /////////////////////////
|
|
70225
67591
|
|
|
70226
67592
|
|
|
70227
|
-
function sortByName$
|
|
67593
|
+
function sortByName$3(elements) {
|
|
70228
67594
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
70229
67595
|
}
|
|
70230
67596
|
|
|
@@ -70790,7 +68156,7 @@
|
|
|
70790
68156
|
label: translate('Create new ...')
|
|
70791
68157
|
}];
|
|
70792
68158
|
const signals = findRootElementsByType(getBusinessObject(element), 'bpmn:Signal');
|
|
70793
|
-
sortByName$
|
|
68159
|
+
sortByName$2(signals).forEach(signal => {
|
|
70794
68160
|
options.push({
|
|
70795
68161
|
value: signal.get('id'),
|
|
70796
68162
|
label: signal.get('name')
|
|
@@ -70844,7 +68210,7 @@
|
|
|
70844
68210
|
} // helper /////////////////////////
|
|
70845
68211
|
|
|
70846
68212
|
|
|
70847
|
-
function sortByName$
|
|
68213
|
+
function sortByName$2(elements) {
|
|
70848
68214
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
70849
68215
|
}
|
|
70850
68216
|
|
|
@@ -74365,7 +71731,7 @@
|
|
|
74365
71731
|
label: translate('Create new ...')
|
|
74366
71732
|
}];
|
|
74367
71733
|
const errors = findRootElementsByType(getBusinessObject(element), 'bpmn:Error');
|
|
74368
|
-
sortByName$
|
|
71734
|
+
sortByName$1(errors).forEach(error => {
|
|
74369
71735
|
options.push({
|
|
74370
71736
|
value: error.get('id'),
|
|
74371
71737
|
label: error.get('name') || error.get('id')
|
|
@@ -74522,7 +71888,7 @@
|
|
|
74522
71888
|
} // helpers //////////
|
|
74523
71889
|
|
|
74524
71890
|
|
|
74525
|
-
function sortByName$
|
|
71891
|
+
function sortByName$1(elements) {
|
|
74526
71892
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
74527
71893
|
}
|
|
74528
71894
|
|
|
@@ -76932,6 +74298,13 @@
|
|
|
76932
74298
|
'camunda:type': undefined,
|
|
76933
74299
|
'camunda:topic': undefined
|
|
76934
74300
|
};
|
|
74301
|
+
const IMPLEMENTATION_TYPE_NONE_LABEL = '<none>',
|
|
74302
|
+
IMPLEMENTATION_TYPE_JAVA_LABEL = 'Java class',
|
|
74303
|
+
IMPLEMENTATION_TYPE_EXPRESSION_LABEL = 'Expression',
|
|
74304
|
+
IMPLEMENTATION_TYPE_DELEGATE_LABEL = 'Delegate expression',
|
|
74305
|
+
IMPLEMENTATION_TYPE_DMN_LABEL = 'DMN',
|
|
74306
|
+
IMPLEMENTATION_TYPE_EXTERNAL_LABEL = 'External',
|
|
74307
|
+
IMPLEMENTATION_TYPE_CONNECTOR_LABEL = 'Connector';
|
|
76935
74308
|
function ImplementationTypeProps(props) {
|
|
76936
74309
|
return [{
|
|
76937
74310
|
id: 'implementationType',
|
|
@@ -77048,40 +74421,40 @@
|
|
|
77048
74421
|
const businessObject = getServiceTaskLikeBusinessObject(element);
|
|
77049
74422
|
const options = [{
|
|
77050
74423
|
value: '',
|
|
77051
|
-
label: translate(
|
|
74424
|
+
label: translate(IMPLEMENTATION_TYPE_NONE_LABEL)
|
|
77052
74425
|
}, {
|
|
77053
74426
|
value: 'class',
|
|
77054
|
-
label: translate(
|
|
74427
|
+
label: translate(IMPLEMENTATION_TYPE_JAVA_LABEL)
|
|
77055
74428
|
}, {
|
|
77056
74429
|
value: 'expression',
|
|
77057
|
-
label: translate(
|
|
74430
|
+
label: translate(IMPLEMENTATION_TYPE_EXPRESSION_LABEL)
|
|
77058
74431
|
}, {
|
|
77059
74432
|
value: 'delegateExpression',
|
|
77060
|
-
label: translate(
|
|
74433
|
+
label: translate(IMPLEMENTATION_TYPE_DELEGATE_LABEL)
|
|
77061
74434
|
}];
|
|
77062
74435
|
|
|
77063
74436
|
if (isDmnCapable(businessObject)) {
|
|
77064
74437
|
options.push({
|
|
77065
74438
|
value: 'dmn',
|
|
77066
|
-
label: translate(
|
|
74439
|
+
label: translate(IMPLEMENTATION_TYPE_DMN_LABEL)
|
|
77067
74440
|
});
|
|
77068
74441
|
}
|
|
77069
74442
|
|
|
77070
74443
|
if (isExternalCapable(businessObject)) {
|
|
77071
74444
|
options.push({
|
|
77072
74445
|
value: 'external',
|
|
77073
|
-
label: translate(
|
|
74446
|
+
label: translate(IMPLEMENTATION_TYPE_EXTERNAL_LABEL)
|
|
77074
74447
|
});
|
|
77075
74448
|
}
|
|
77076
74449
|
|
|
77077
74450
|
if (isServiceTaskLike(businessObject)) {
|
|
77078
74451
|
options.push({
|
|
77079
74452
|
value: 'connector',
|
|
77080
|
-
label: translate(
|
|
74453
|
+
label: translate(IMPLEMENTATION_TYPE_CONNECTOR_LABEL)
|
|
77081
74454
|
});
|
|
77082
74455
|
}
|
|
77083
74456
|
|
|
77084
|
-
return
|
|
74457
|
+
return sortByPriority(options);
|
|
77085
74458
|
};
|
|
77086
74459
|
|
|
77087
74460
|
return SelectEntry({
|
|
@@ -77114,8 +74487,17 @@
|
|
|
77114
74487
|
};
|
|
77115
74488
|
}
|
|
77116
74489
|
|
|
77117
|
-
function
|
|
77118
|
-
|
|
74490
|
+
function sortByPriority(options) {
|
|
74491
|
+
const priorities = {
|
|
74492
|
+
[IMPLEMENTATION_TYPE_NONE_LABEL]: 0,
|
|
74493
|
+
[IMPLEMENTATION_TYPE_JAVA_LABEL]: 3,
|
|
74494
|
+
[IMPLEMENTATION_TYPE_EXPRESSION_LABEL]: 4,
|
|
74495
|
+
[IMPLEMENTATION_TYPE_DELEGATE_LABEL]: 5,
|
|
74496
|
+
[IMPLEMENTATION_TYPE_DMN_LABEL]: 1,
|
|
74497
|
+
[IMPLEMENTATION_TYPE_EXTERNAL_LABEL]: 2,
|
|
74498
|
+
[IMPLEMENTATION_TYPE_CONNECTOR_LABEL]: 6
|
|
74499
|
+
};
|
|
74500
|
+
return sortBy(options, o => priorities[o.label]);
|
|
77119
74501
|
}
|
|
77120
74502
|
|
|
77121
74503
|
function ImplementationProps(props) {
|
|
@@ -80886,7 +78268,8 @@
|
|
|
80886
78268
|
*/
|
|
80887
78269
|
|
|
80888
78270
|
class ElementTemplates$1 {
|
|
80889
|
-
constructor() {
|
|
78271
|
+
constructor(commandStack) {
|
|
78272
|
+
this._commandStack = commandStack;
|
|
80890
78273
|
this._templates = {};
|
|
80891
78274
|
}
|
|
80892
78275
|
/**
|
|
@@ -80917,7 +78300,7 @@
|
|
|
80917
78300
|
}
|
|
80918
78301
|
} else {
|
|
80919
78302
|
element = id;
|
|
80920
|
-
return this.get(
|
|
78303
|
+
return this.get(this._getTemplateId(element), this._getTemplateVersion(element));
|
|
80921
78304
|
}
|
|
80922
78305
|
}
|
|
80923
78306
|
/**
|
|
@@ -80971,7 +78354,37 @@
|
|
|
80971
78354
|
});
|
|
80972
78355
|
}
|
|
80973
78356
|
|
|
78357
|
+
_getTemplateId(element) {
|
|
78358
|
+
return getTemplateId(element);
|
|
78359
|
+
}
|
|
78360
|
+
|
|
78361
|
+
_getTemplateVersion(element) {
|
|
78362
|
+
return getTemplateVersion(element);
|
|
78363
|
+
}
|
|
78364
|
+
/**
|
|
78365
|
+
* Apply element template to a given element.
|
|
78366
|
+
*
|
|
78367
|
+
* @param {djs.model.Base} element
|
|
78368
|
+
* @param {ElementTemplate} newTemplate
|
|
78369
|
+
*
|
|
78370
|
+
* @return {djs.model.Base} the updated element
|
|
78371
|
+
*/
|
|
78372
|
+
|
|
78373
|
+
|
|
78374
|
+
applyTemplate(element, newTemplate) {
|
|
78375
|
+
const oldTemplate = this.get(element);
|
|
78376
|
+
|
|
78377
|
+
this._commandStack.execute('propertiesPanel.camunda.changeTemplate', {
|
|
78378
|
+
element: element,
|
|
78379
|
+
newTemplate,
|
|
78380
|
+
oldTemplate
|
|
78381
|
+
});
|
|
78382
|
+
|
|
78383
|
+
return element;
|
|
78384
|
+
}
|
|
78385
|
+
|
|
80974
78386
|
}
|
|
78387
|
+
ElementTemplates$1.$inject = ['commandStack'];
|
|
80975
78388
|
|
|
80976
78389
|
const SUPPORTED_SCHEMA_VERSION$1 = getSchemaVersion();
|
|
80977
78390
|
/**
|
|
@@ -81046,7 +78459,7 @@
|
|
|
81046
78459
|
version = template.version || '_',
|
|
81047
78460
|
schemaVersion = template.$schema && getSchemaVersion$1(template.$schema); // (1) compatibility
|
|
81048
78461
|
|
|
81049
|
-
if (schemaVersion &&
|
|
78462
|
+
if (schemaVersion && semverCompare(SUPPORTED_SCHEMA_VERSION$1, schemaVersion) < 0) {
|
|
81050
78463
|
return this._logError(`unsupported element template schema version <${schemaVersion}>. Your installation only supports up to version <${SUPPORTED_SCHEMA_VERSION$1}>. Please update your installation`, template);
|
|
81051
78464
|
} // (2) versioning
|
|
81052
78465
|
|
|
@@ -81283,12 +78696,12 @@
|
|
|
81283
78696
|
'camunda:modelerTemplateVersion': null
|
|
81284
78697
|
});
|
|
81285
78698
|
}
|
|
81286
|
-
function removeTemplate
|
|
78699
|
+
function removeTemplate(element, injector) {
|
|
81287
78700
|
const replace = injector.get('replace'),
|
|
81288
78701
|
selection = injector.get('selection');
|
|
81289
78702
|
const businessObject = getBusinessObject(element);
|
|
81290
78703
|
const type = businessObject.$type,
|
|
81291
|
-
eventDefinitionType = getEventDefinitionType
|
|
78704
|
+
eventDefinitionType = getEventDefinitionType(businessObject);
|
|
81292
78705
|
const newElement = replace.replaceElement(element, {
|
|
81293
78706
|
type: type,
|
|
81294
78707
|
eventDefinitionType: eventDefinitionType
|
|
@@ -81296,24 +78709,18 @@
|
|
|
81296
78709
|
selection.select(newElement);
|
|
81297
78710
|
}
|
|
81298
78711
|
function updateTemplate$1(element, newTemplate, injector) {
|
|
81299
|
-
const
|
|
81300
|
-
|
|
81301
|
-
const oldTemplate = elementTemplates.get(element);
|
|
81302
|
-
commandStack.execute('propertiesPanel.camunda.changeTemplate', {
|
|
81303
|
-
element: element,
|
|
81304
|
-
newTemplate,
|
|
81305
|
-
oldTemplate
|
|
81306
|
-
});
|
|
78712
|
+
const elementTemplates = injector.get('elementTemplates');
|
|
78713
|
+
return elementTemplates.applyTemplate(element, newTemplate);
|
|
81307
78714
|
}
|
|
81308
|
-
function getVersionOrDateFromTemplate
|
|
78715
|
+
function getVersionOrDateFromTemplate(template) {
|
|
81309
78716
|
var metadata = template.metadata,
|
|
81310
78717
|
version = template.version;
|
|
81311
78718
|
|
|
81312
78719
|
if (metadata) {
|
|
81313
78720
|
if (!isUndefined(metadata.created)) {
|
|
81314
|
-
return toDateString
|
|
78721
|
+
return toDateString(metadata.created);
|
|
81315
78722
|
} else if (!isUndefined(metadata.updated)) {
|
|
81316
|
-
return toDateString
|
|
78723
|
+
return toDateString(metadata.updated);
|
|
81317
78724
|
}
|
|
81318
78725
|
}
|
|
81319
78726
|
|
|
@@ -81324,7 +78731,7 @@
|
|
|
81324
78731
|
return version;
|
|
81325
78732
|
} // helper //////
|
|
81326
78733
|
|
|
81327
|
-
function getEventDefinitionType
|
|
78734
|
+
function getEventDefinitionType(businessObject) {
|
|
81328
78735
|
if (!businessObject.eventDefinitions) {
|
|
81329
78736
|
return null;
|
|
81330
78737
|
}
|
|
@@ -81338,15 +78745,15 @@
|
|
|
81338
78745
|
return eventDefinition.$type;
|
|
81339
78746
|
}
|
|
81340
78747
|
|
|
81341
|
-
function toDateString
|
|
78748
|
+
function toDateString(timestamp) {
|
|
81342
78749
|
var date = new Date(timestamp);
|
|
81343
78750
|
var year = date.getFullYear();
|
|
81344
|
-
var month = leftPad
|
|
81345
|
-
var day = leftPad
|
|
78751
|
+
var month = leftPad(String(date.getMonth() + 1), 2, '0');
|
|
78752
|
+
var day = leftPad(String(date.getDate()), 2, '0');
|
|
81346
78753
|
return day + '.' + month + '.' + year;
|
|
81347
78754
|
}
|
|
81348
78755
|
|
|
81349
|
-
function leftPad
|
|
78756
|
+
function leftPad(string, length, character) {
|
|
81350
78757
|
while (string.length < length) {
|
|
81351
78758
|
string = character + string;
|
|
81352
78759
|
}
|
|
@@ -81354,58 +78761,68 @@
|
|
|
81354
78761
|
return string;
|
|
81355
78762
|
}
|
|
81356
78763
|
|
|
81357
|
-
function
|
|
78764
|
+
function createElementTemplatesGroup(props = {}) {
|
|
81358
78765
|
const {
|
|
81359
|
-
|
|
81360
|
-
|
|
81361
|
-
|
|
81362
|
-
entries = []
|
|
78766
|
+
getTemplateId: getTemplateId$1 = getTemplateId,
|
|
78767
|
+
unlinkTemplate = unlinkTemplate$1,
|
|
78768
|
+
updateTemplate = updateTemplate$1
|
|
81363
78769
|
} = props;
|
|
81364
|
-
|
|
81365
|
-
|
|
78770
|
+
return function ElementTemplatesGroup(props) {
|
|
78771
|
+
const {
|
|
78772
|
+
id,
|
|
78773
|
+
label,
|
|
78774
|
+
element,
|
|
78775
|
+
entries = []
|
|
78776
|
+
} = props;
|
|
78777
|
+
const [open, setOpen] = useLayoutState(['groups', id, 'open'], false);
|
|
78778
|
+
const empty = !entries.length;
|
|
81366
78779
|
|
|
81367
|
-
|
|
78780
|
+
const toggleOpen = () => !empty && setOpen(!open);
|
|
81368
78781
|
|
|
81369
|
-
|
|
81370
|
-
|
|
81371
|
-
|
|
81372
|
-
children: [o$2("div", {
|
|
81373
|
-
class: classnames('bio-properties-panel-group-header', {
|
|
81374
|
-
empty,
|
|
81375
|
-
open: open && !empty
|
|
81376
|
-
}),
|
|
81377
|
-
onClick: toggleOpen,
|
|
78782
|
+
return o$2("div", {
|
|
78783
|
+
class: "bio-properties-panel-group bio-properties-panel-templates-group",
|
|
78784
|
+
"data-group-id": 'group-' + id,
|
|
81378
78785
|
children: [o$2("div", {
|
|
81379
|
-
|
|
81380
|
-
|
|
81381
|
-
|
|
81382
|
-
|
|
81383
|
-
|
|
81384
|
-
children: [o$2(
|
|
81385
|
-
|
|
81386
|
-
|
|
81387
|
-
|
|
78786
|
+
class: classnames('bio-properties-panel-group-header', {
|
|
78787
|
+
empty,
|
|
78788
|
+
open: open && !empty
|
|
78789
|
+
}),
|
|
78790
|
+
onClick: toggleOpen,
|
|
78791
|
+
children: [o$2("div", {
|
|
78792
|
+
title: label,
|
|
78793
|
+
class: "bio-properties-panel-group-header-title",
|
|
78794
|
+
children: label
|
|
78795
|
+
}), o$2("div", {
|
|
78796
|
+
class: "bio-properties-panel-group-header-buttons",
|
|
78797
|
+
children: [o$2(TemplateGroupButtons, {
|
|
78798
|
+
element: element,
|
|
78799
|
+
getTemplateId: getTemplateId$1,
|
|
78800
|
+
unlinkTemplate: unlinkTemplate,
|
|
78801
|
+
updateTemplate: updateTemplate
|
|
78802
|
+
}), !empty && o$2(SectionToggle, {
|
|
78803
|
+
open: open
|
|
78804
|
+
})]
|
|
81388
78805
|
})]
|
|
78806
|
+
}), o$2("div", {
|
|
78807
|
+
class: classnames('bio-properties-panel-group-entries', {
|
|
78808
|
+
open: open && !empty
|
|
78809
|
+
}),
|
|
78810
|
+
children: entries.map(entry => {
|
|
78811
|
+
const {
|
|
78812
|
+
component: Component,
|
|
78813
|
+
id
|
|
78814
|
+
} = entry;
|
|
78815
|
+
return a(Component, { ...entry,
|
|
78816
|
+
key: id,
|
|
78817
|
+
element: element
|
|
78818
|
+
});
|
|
78819
|
+
})
|
|
81389
78820
|
})]
|
|
81390
|
-
})
|
|
81391
|
-
|
|
81392
|
-
open: open && !empty
|
|
81393
|
-
}),
|
|
81394
|
-
children: entries.map(entry => {
|
|
81395
|
-
const {
|
|
81396
|
-
component: Component,
|
|
81397
|
-
id
|
|
81398
|
-
} = entry;
|
|
81399
|
-
return a(Component, { ...entry,
|
|
81400
|
-
key: id,
|
|
81401
|
-
element: element
|
|
81402
|
-
});
|
|
81403
|
-
})
|
|
81404
|
-
})]
|
|
81405
|
-
});
|
|
78821
|
+
});
|
|
78822
|
+
};
|
|
81406
78823
|
}
|
|
81407
78824
|
|
|
81408
|
-
function SectionToggle
|
|
78825
|
+
function SectionToggle({
|
|
81409
78826
|
open
|
|
81410
78827
|
}) {
|
|
81411
78828
|
return o$2(HeaderButton, {
|
|
@@ -81420,36 +78837,46 @@
|
|
|
81420
78837
|
*
|
|
81421
78838
|
* @param {object} props
|
|
81422
78839
|
* @param {object} props.element
|
|
78840
|
+
* @param {function} props.getTemplateId
|
|
78841
|
+
* @param {function} props.unlinkTemplate
|
|
78842
|
+
* @param {function} props.updateTemplate
|
|
81423
78843
|
*/
|
|
81424
78844
|
|
|
81425
78845
|
|
|
81426
|
-
function TemplateGroupButtons
|
|
81427
|
-
element
|
|
78846
|
+
function TemplateGroupButtons({
|
|
78847
|
+
element,
|
|
78848
|
+
getTemplateId,
|
|
78849
|
+
unlinkTemplate,
|
|
78850
|
+
updateTemplate
|
|
81428
78851
|
}) {
|
|
81429
78852
|
const elementTemplates = useService('elementTemplates');
|
|
81430
|
-
const templateState = getTemplateState
|
|
78853
|
+
const templateState = getTemplateState(elementTemplates, element, getTemplateId);
|
|
81431
78854
|
|
|
81432
78855
|
if (templateState.type === 'NO_TEMPLATE') {
|
|
81433
|
-
return o$2(SelectEntryTemplate
|
|
78856
|
+
return o$2(SelectEntryTemplate, {
|
|
81434
78857
|
element: element
|
|
81435
78858
|
});
|
|
81436
78859
|
} else if (templateState.type === 'KNOWN_TEMPLATE') {
|
|
81437
|
-
return o$2(AppliedTemplate
|
|
81438
|
-
element: element
|
|
78860
|
+
return o$2(AppliedTemplate, {
|
|
78861
|
+
element: element,
|
|
78862
|
+
unlinkTemplate: unlinkTemplate
|
|
81439
78863
|
});
|
|
81440
78864
|
} else if (templateState.type === 'UNKNOWN_TEMPLATE') {
|
|
81441
|
-
return o$2(UnknownTemplate
|
|
81442
|
-
element: element
|
|
78865
|
+
return o$2(UnknownTemplate, {
|
|
78866
|
+
element: element,
|
|
78867
|
+
unlinkTemplate: unlinkTemplate
|
|
81443
78868
|
});
|
|
81444
78869
|
} else if (templateState.type === 'OUTDATED_TEMPLATE') {
|
|
81445
|
-
return o$2(OutdatedTemplate
|
|
78870
|
+
return o$2(OutdatedTemplate, {
|
|
81446
78871
|
element: element,
|
|
81447
|
-
templateState: templateState
|
|
78872
|
+
templateState: templateState,
|
|
78873
|
+
unlinkTemplate: unlinkTemplate,
|
|
78874
|
+
updateTemplate: updateTemplate
|
|
81448
78875
|
});
|
|
81449
78876
|
}
|
|
81450
78877
|
}
|
|
81451
78878
|
|
|
81452
|
-
function SelectEntryTemplate
|
|
78879
|
+
function SelectEntryTemplate({
|
|
81453
78880
|
element
|
|
81454
78881
|
}) {
|
|
81455
78882
|
const translate = useService('translate');
|
|
@@ -81469,17 +78896,18 @@
|
|
|
81469
78896
|
});
|
|
81470
78897
|
}
|
|
81471
78898
|
|
|
81472
|
-
function AppliedTemplate
|
|
81473
|
-
element
|
|
78899
|
+
function AppliedTemplate({
|
|
78900
|
+
element,
|
|
78901
|
+
unlinkTemplate
|
|
81474
78902
|
}) {
|
|
81475
78903
|
const translate = useService('translate'),
|
|
81476
78904
|
injector = useService('injector');
|
|
81477
78905
|
const menuItems = [{
|
|
81478
78906
|
entry: translate('Unlink'),
|
|
81479
|
-
action: () => unlinkTemplate
|
|
78907
|
+
action: () => unlinkTemplate(element, injector)
|
|
81480
78908
|
}, {
|
|
81481
|
-
entry: o$2(RemoveTemplate
|
|
81482
|
-
action: () => removeTemplate
|
|
78909
|
+
entry: o$2(RemoveTemplate, {}),
|
|
78910
|
+
action: () => removeTemplate(element, injector)
|
|
81483
78911
|
}];
|
|
81484
78912
|
return o$2(DropdownButton, {
|
|
81485
78913
|
menuItems: menuItems,
|
|
@@ -81494,7 +78922,7 @@
|
|
|
81494
78922
|
});
|
|
81495
78923
|
}
|
|
81496
78924
|
|
|
81497
|
-
function RemoveTemplate
|
|
78925
|
+
function RemoveTemplate() {
|
|
81498
78926
|
const translate = useService('translate');
|
|
81499
78927
|
return o$2("span", {
|
|
81500
78928
|
class: "bio-properties-panel-remove-template",
|
|
@@ -81502,21 +78930,22 @@
|
|
|
81502
78930
|
});
|
|
81503
78931
|
}
|
|
81504
78932
|
|
|
81505
|
-
function UnknownTemplate
|
|
81506
|
-
element
|
|
78933
|
+
function UnknownTemplate({
|
|
78934
|
+
element,
|
|
78935
|
+
unlinkTemplate
|
|
81507
78936
|
}) {
|
|
81508
78937
|
const translate = useService('translate'),
|
|
81509
78938
|
injector = useService('injector');
|
|
81510
78939
|
const menuItems = [{
|
|
81511
|
-
entry: o$2(NotFoundText
|
|
78940
|
+
entry: o$2(NotFoundText, {})
|
|
81512
78941
|
}, {
|
|
81513
78942
|
separator: true
|
|
81514
78943
|
}, {
|
|
81515
78944
|
entry: translate('Unlink'),
|
|
81516
|
-
action: () => unlinkTemplate
|
|
78945
|
+
action: () => unlinkTemplate(element, injector)
|
|
81517
78946
|
}, {
|
|
81518
|
-
entry: o$2(RemoveTemplate
|
|
81519
|
-
action: () => removeTemplate
|
|
78947
|
+
entry: o$2(RemoveTemplate, {}),
|
|
78948
|
+
action: () => removeTemplate(element, injector)
|
|
81520
78949
|
}];
|
|
81521
78950
|
return o$2(DropdownButton, {
|
|
81522
78951
|
menuItems: menuItems,
|
|
@@ -81531,7 +78960,7 @@
|
|
|
81531
78960
|
});
|
|
81532
78961
|
}
|
|
81533
78962
|
|
|
81534
|
-
function NotFoundText
|
|
78963
|
+
function NotFoundText() {
|
|
81535
78964
|
const translate = useService('translate');
|
|
81536
78965
|
return o$2("div", {
|
|
81537
78966
|
class: "bio-properties-panel-template-not-found-text",
|
|
@@ -81543,12 +78972,16 @@
|
|
|
81543
78972
|
* @param {object} props
|
|
81544
78973
|
* @param {object} element
|
|
81545
78974
|
* @param {UnknownTemplate} templateState
|
|
78975
|
+
* @param {function} unlinkTemplate
|
|
78976
|
+
* @param {function} updateTemplate
|
|
81546
78977
|
*/
|
|
81547
78978
|
|
|
81548
78979
|
|
|
81549
|
-
function OutdatedTemplate
|
|
78980
|
+
function OutdatedTemplate({
|
|
81550
78981
|
element,
|
|
81551
|
-
templateState
|
|
78982
|
+
templateState,
|
|
78983
|
+
unlinkTemplate,
|
|
78984
|
+
updateTemplate
|
|
81552
78985
|
}) {
|
|
81553
78986
|
const {
|
|
81554
78987
|
newerTemplate
|
|
@@ -81556,20 +78989,20 @@
|
|
|
81556
78989
|
const translate = useService('translate'),
|
|
81557
78990
|
injector = useService('injector');
|
|
81558
78991
|
const menuItems = [{
|
|
81559
|
-
entry: o$2(UpdateAvailableText
|
|
78992
|
+
entry: o$2(UpdateAvailableText, {
|
|
81560
78993
|
newerTemplate: newerTemplate
|
|
81561
78994
|
})
|
|
81562
78995
|
}, {
|
|
81563
78996
|
separator: true
|
|
81564
78997
|
}, {
|
|
81565
78998
|
entry: translate('Update'),
|
|
81566
|
-
action: () => updateTemplate
|
|
78999
|
+
action: () => updateTemplate(element, newerTemplate, injector)
|
|
81567
79000
|
}, {
|
|
81568
79001
|
entry: translate('Unlink'),
|
|
81569
|
-
action: () => unlinkTemplate
|
|
79002
|
+
action: () => unlinkTemplate(element, injector)
|
|
81570
79003
|
}, {
|
|
81571
|
-
entry: o$2(RemoveTemplate
|
|
81572
|
-
action: () => removeTemplate
|
|
79004
|
+
entry: o$2(RemoveTemplate, {}),
|
|
79005
|
+
action: () => removeTemplate(element, injector)
|
|
81573
79006
|
}];
|
|
81574
79007
|
return o$2(DropdownButton, {
|
|
81575
79008
|
menuItems: menuItems,
|
|
@@ -81584,12 +79017,12 @@
|
|
|
81584
79017
|
});
|
|
81585
79018
|
}
|
|
81586
79019
|
|
|
81587
|
-
function UpdateAvailableText
|
|
79020
|
+
function UpdateAvailableText({
|
|
81588
79021
|
newerTemplate
|
|
81589
79022
|
}) {
|
|
81590
79023
|
const translate = useService('translate');
|
|
81591
79024
|
const text = translate('A new version of the template is available: {templateVersion}', {
|
|
81592
|
-
templateVersion: getVersionOrDateFromTemplate
|
|
79025
|
+
templateVersion: getVersionOrDateFromTemplate(newerTemplate)
|
|
81593
79026
|
});
|
|
81594
79027
|
return o$2("div", {
|
|
81595
79028
|
class: "bio-properties-panel-template-update-available-text",
|
|
@@ -81602,11 +79035,12 @@
|
|
|
81602
79035
|
*
|
|
81603
79036
|
* @param {object} elementTemplates
|
|
81604
79037
|
* @param {object} element
|
|
79038
|
+
* @param {function} getTemplateId
|
|
81605
79039
|
* @returns {TemplateState}
|
|
81606
79040
|
*/
|
|
81607
79041
|
|
|
81608
79042
|
|
|
81609
|
-
function getTemplateState
|
|
79043
|
+
function getTemplateState(elementTemplates, element, getTemplateId) {
|
|
81610
79044
|
const templateId = getTemplateId(element),
|
|
81611
79045
|
template = elementTemplates.get(element);
|
|
81612
79046
|
|
|
@@ -81623,7 +79057,7 @@
|
|
|
81623
79057
|
};
|
|
81624
79058
|
}
|
|
81625
79059
|
|
|
81626
|
-
const newerTemplate = findNewestElementTemplate
|
|
79060
|
+
const newerTemplate = findNewestElementTemplate(elementTemplates, template);
|
|
81627
79061
|
|
|
81628
79062
|
if (newerTemplate) {
|
|
81629
79063
|
return {
|
|
@@ -81639,7 +79073,7 @@
|
|
|
81639
79073
|
};
|
|
81640
79074
|
}
|
|
81641
79075
|
|
|
81642
|
-
function findNewestElementTemplate
|
|
79076
|
+
function findNewestElementTemplate(elementTemplates, currentElementTemplate) {
|
|
81643
79077
|
if (isUndefined(currentElementTemplate.version)) {
|
|
81644
79078
|
return null;
|
|
81645
79079
|
}
|
|
@@ -81701,7 +79135,7 @@
|
|
|
81701
79135
|
template
|
|
81702
79136
|
}) {
|
|
81703
79137
|
const translate = useService('translate');
|
|
81704
|
-
const version = getVersionOrDateFromTemplate
|
|
79138
|
+
const version = getVersionOrDateFromTemplate(template);
|
|
81705
79139
|
return version ? o$2(TextEntry, {
|
|
81706
79140
|
id: id,
|
|
81707
79141
|
label: translate('Version'),
|
|
@@ -83498,19 +80932,20 @@
|
|
|
83498
80932
|
}
|
|
83499
80933
|
}
|
|
83500
80934
|
|
|
83501
|
-
const CAMUNDA_ERROR_EVENT_DEFINITION_TYPE$1 = 'camunda:errorEventDefinition'
|
|
83502
|
-
|
|
83503
|
-
|
|
83504
|
-
|
|
83505
|
-
|
|
83506
|
-
|
|
83507
|
-
|
|
83508
|
-
|
|
83509
|
-
|
|
83510
|
-
|
|
80935
|
+
const CAMUNDA_ERROR_EVENT_DEFINITION_TYPE$1 = 'camunda:errorEventDefinition';
|
|
80936
|
+
const CAMUNDA_EXECUTION_LISTENER_TYPE = 'camunda:executionListener';
|
|
80937
|
+
const CAMUNDA_FIELD_TYPE = 'camunda:field';
|
|
80938
|
+
const CAMUNDA_IN_BUSINESS_KEY_TYPE = 'camunda:in:businessKey';
|
|
80939
|
+
const CAMUNDA_IN_TYPE = 'camunda:in';
|
|
80940
|
+
const CAMUNDA_INPUT_PARAMETER_TYPE$1 = 'camunda:inputParameter';
|
|
80941
|
+
const CAMUNDA_OUT_TYPE = 'camunda:out';
|
|
80942
|
+
const CAMUNDA_OUTPUT_PARAMETER_TYPE$1 = 'camunda:outputParameter';
|
|
80943
|
+
const CAMUNDA_PROPERTY_TYPE = 'camunda:property';
|
|
80944
|
+
const PROPERTY_TYPE = 'property';
|
|
83511
80945
|
const EXTENSION_BINDING_TYPES = [CAMUNDA_ERROR_EVENT_DEFINITION_TYPE$1, CAMUNDA_FIELD_TYPE, CAMUNDA_IN_TYPE, CAMUNDA_IN_BUSINESS_KEY_TYPE, CAMUNDA_INPUT_PARAMETER_TYPE$1, CAMUNDA_OUT_TYPE, CAMUNDA_OUTPUT_PARAMETER_TYPE$1, CAMUNDA_PROPERTY_TYPE];
|
|
83512
80946
|
const IO_BINDING_TYPES = [CAMUNDA_INPUT_PARAMETER_TYPE$1, CAMUNDA_OUTPUT_PARAMETER_TYPE$1];
|
|
83513
80947
|
const IN_OUT_BINDING_TYPES = [CAMUNDA_IN_BUSINESS_KEY_TYPE, CAMUNDA_IN_TYPE, CAMUNDA_OUT_TYPE];
|
|
80948
|
+
|
|
83514
80949
|
const PRIMITIVE_MODDLE_TYPES = ['Boolean', 'Integer', 'String'];
|
|
83515
80950
|
const DEFAULT_CUSTOM_GROUP = {
|
|
83516
80951
|
id: 'ElementTemplates__CustomProperties',
|
|
@@ -84915,7 +82350,7 @@
|
|
|
84915
82350
|
element,
|
|
84916
82351
|
id: 'ElementTemplates__Template',
|
|
84917
82352
|
label: 'Template',
|
|
84918
|
-
component:
|
|
82353
|
+
component: createElementTemplatesGroup(),
|
|
84919
82354
|
entries: TemplateProps({
|
|
84920
82355
|
element,
|
|
84921
82356
|
elementTemplates: this._elementTemplates
|
|
@@ -87008,7 +84443,7 @@
|
|
|
87008
84443
|
return false;
|
|
87009
84444
|
}
|
|
87010
84445
|
|
|
87011
|
-
if (isAny$
|
|
84446
|
+
if (isAny$1(property, [ 'camunda:Connector', 'camunda:Field' ]) && !this.canHostConnector(parent)) {
|
|
87012
84447
|
return false;
|
|
87013
84448
|
}
|
|
87014
84449
|
|
|
@@ -87033,7 +84468,7 @@
|
|
|
87033
84468
|
return false;
|
|
87034
84469
|
}
|
|
87035
84470
|
|
|
87036
|
-
if (isAny$
|
|
84471
|
+
if (isAny$1(flowNode, [ 'bpmn:StartEvent', 'bpmn:Gateway', 'bpmn:BoundaryEvent' ])) {
|
|
87037
84472
|
return false;
|
|
87038
84473
|
}
|
|
87039
84474
|
|
|
@@ -87090,7 +84525,7 @@
|
|
|
87090
84525
|
return element && isFunction$1(element.$instanceOf) && element.$instanceOf(type);
|
|
87091
84526
|
}
|
|
87092
84527
|
|
|
87093
|
-
function isAny$
|
|
84528
|
+
function isAny$1(element, types) {
|
|
87094
84529
|
return some$1(types, function(t) {
|
|
87095
84530
|
return is$4(element, t);
|
|
87096
84531
|
});
|