@lincs.project/webannotation-schema 1.17.1 → 1.17.2

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.
@@ -1 +1 @@
1
- "use strict";module.exports = validate10;module.exports.default = validate10;const schema11 = {"$id":"https://wa.lincsproject.ca/v1/schema.jsonld","type":"object","description":"Web Annotation","properties":{"@context":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},{"type":"string","const":"https://wa.lincsproject.ca/v1/ns/anno.jsonld"}],"description":"The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."},"id":{"type":"string","format":"uri","description":"The type of the Annotation."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Annotation"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The type of the Annotation."},"motivation":{"oneOf":[{"type":"string","enum":["oa:identifying","oa:describing","correcting","oa:linking","oa:tagging","citing"]}],"description":"The relationship between an Annotation and a Motivation."},"created":{"type":"string","format":"date-time","description":"The time at which the resource was created."},"modified":{"type":"string","format":"date-time","description":"The time at which the resource was modified, after creation."},"creator":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"}]},"contributor":{"type":"array","items":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"},{"$ref":"defs.jsonld#/definitions/software"}]},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"oneOf":[{"$ref":"defs.jsonld#/definitions/target"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/target"},"minItems":1}]},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"label":{"type":"string"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"oneOf":[{"type":"string","enum":["oa:identifying","oa:describing","correcting","oa:linking","oa:tagging","citing"]}],"description":"The relationship between an Annotation and a Motivation."}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}},"required":["@context","id","type","motivation","created","generator","target","body","P2_has_type"],"additionalProperties":false,"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"wikidata:Q15831596"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"event:Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:identifying"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:identifying"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"crm:E28_Conceptual_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:tagging"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:tagging"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:describing"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:describing"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"correcting"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"correcting"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:linking"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:linking"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"citing"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"citing"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:qualityLowCertainty","edit:qualityMediumCertainty","edit:qualityHighCertainty","edit:qualityUnknownCertainty"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:qualityLowPrecision","edit:qualityMediumPrecision","edit:qualityHighPrecision","edit:qualityUnknownPrecision"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}}}}}}}},{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"Choice"}}}}},"then":{"type":"object","properties":{"body":{"$ref":"defs.jsonld#/definitions/bodyChoice"}}},"else":{"type":"object","properties":{"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]}}}}]};const schema14 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"wikidata:Q15831596"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"string","const":"crm:E28_Conceptual_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"event:Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"}]},"value":{"type":"string"},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"P2_has_type":{"type":"array","items":{"type":"string"}},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","type"],"anyOf":[{"if":{"type":"object","properties":{"type":{"anyOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["id","type","value"],"if":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","required":["id","type","value"],"properties":{"value":{"type":"string","pattern":"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"}}}}}],"additionalProperties":false};const schema17 = {"type":"object","description":"User Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The person's name."}},"required":["id","type","name"]};const schema18 = {"type":"object","description":"Group Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E74_Group"},"name":{"type":"string","minLength":1,"description":"The group's name."}},"required":["id","type","name"]};const schema21 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:E73_Information_Object"}]},"P16_used_specific_object":{"type":"string","format":"uri"},"name":{"type":"string","minLength":1,"description":"The software's name."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","name"]};const schema13 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"Choice"},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","items"],"additionalProperties":false};const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const pattern0 = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$", "u");const func2 = require("ajv/dist/runtime/ucs2length").default;function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "id") || (key0 === "type")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err4 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("Choice" !== data1){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs11 = errors;let valid4 = false;const _errs12 = errors;const _errs13 = errors;let valid5 = true;const _errs14 = errors;if(errors === _errs14){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data4 = data3.type;const _errs17 = errors;let valid7 = false;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data4)){if(data4.length > 2){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.length < 2){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const len1 = data4.length;if(len1 > 0){let data5 = data4[0];const _errs20 = errors;if(typeof data5 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("TextualBody" !== data5){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid8 = _errs20 === errors;}if(valid8){if(len1 > 1){let data6 = data4[1];const _errs22 = errors;if(typeof data6 !== "string"){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("crm:E33_Linguistic_Object" !== data6){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid8 = _errs22 === errors;}}}}}else {const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var _valid2 = _errs18 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs24 = errors;if(errors === _errs24){if(Array.isArray(data4)){if(data4.length > 3){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data4.length < 3){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {const len2 = data4.length;if(len2 > 0){let data7 = data4[0];const _errs26 = errors;if(typeof data7 !== "string"){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("TextualBody" !== data7){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid9 = _errs26 === errors;}if(valid9){if(len2 > 1){let data8 = data4[1];const _errs28 = errors;if(typeof data8 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("xsd:date" !== data8){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs28 === errors;}if(valid9){if(len2 > 2){let data9 = data4[2];const _errs30 = errors;if(typeof data9 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E52_Time-Span" !== data9){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs30 === errors;}}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid2 = _errs24 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data4)){if(data4.length > 3){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(data4.length < 3){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {const len3 = data4.length;if(len3 > 0){let data10 = data4[0];const _errs34 = errors;if(typeof data10 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("TextualBody" !== data10){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs34 === errors;}if(valid10){if(len3 > 1){let data11 = data4[1];const _errs36 = errors;if(typeof data11 !== "string"){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("fabio:Correction" !== data11){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid10 = _errs36 === errors;}if(valid10){if(len3 > 2){let data12 = data4[2];const _errs38 = errors;if(typeof data12 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("crm:E33_Linguistic_Object" !== data12){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid10 = _errs38 === errors;}}}}}}else {const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid2 = _errs32 === errors;valid7 = valid7 || _valid2;}}if(!valid7){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}}}else {const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var _valid1 = _errs14 === errors;errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}if(_valid1){const _errs40 = errors;const _errs42 = errors;let valid11 = true;const _errs43 = errors;if(errors === _errs43){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data13 = data3.type;const _errs45 = errors;if(errors === _errs45){if(Array.isArray(data13)){if(data13.length > 3){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data13.length < 3){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {const len4 = data13.length;if(len4 > 0){let data14 = data13[0];const _errs47 = errors;if(typeof data14 !== "string"){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("TextualBody" !== data14){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid13 = _errs47 === errors;}if(valid13){if(len4 > 1){let data15 = data13[1];const _errs49 = errors;if(typeof data15 !== "string"){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("xsd:date" !== data15){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid13 = _errs49 === errors;}if(valid13){if(len4 > 2){let data16 = data13[2];const _errs51 = errors;if(typeof data16 !== "string"){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("crm:E52_Time-Span" !== data16){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid13 = _errs51 === errors;}}}}}}else {const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}else {const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var _valid3 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid3){const _errs53 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err45 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data3.type === undefined){const err46 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data3.value === undefined){const err47 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(data3.value !== undefined){let data17 = data3.value;if(typeof data17 === "string"){if(!pattern0.test(data17)){const err48 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}else {const err50 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid3 = _errs53 === errors;valid11 = _valid3;}if(!valid11){const err51 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err52 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data3.type === undefined){const err53 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data3.value === undefined){const err54 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}else {const err55 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid1 = _errs40 === errors;valid5 = _valid1;}if(!valid5){const err56 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid0 = _errs12 === errors;valid4 = valid4 || _valid0;if(!valid4){const err57 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err58 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data3.type === undefined){const err59 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key1 in data3){if(!((((((key1 === "id") || (key1 === "type")) || (key1 === "value")) || (key1 === "label")) || (key1 === "P2_has_type")) || (key1 === "description"))){const err60 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data3.id !== undefined){let data18 = data3.id;if(typeof data18 === "string"){if(!(formats0(data18))){const err61 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data3.type !== undefined){let data19 = data3.type;const _errs61 = errors;let valid16 = false;let passing0 = null;const _errs62 = errors;const _errs63 = errors;let valid17 = false;let passing1 = null;const _errs64 = errors;if(typeof data19 !== "string"){const err63 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("crm:E21_Person" !== data19){const err64 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid5 = _errs64 === errors;if(_valid5){valid17 = true;passing1 = 0;}const _errs66 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err65 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data19.length < 2){const err66 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}const len5 = data19.length;if(len5 > 0){let data20 = data19[0];if(typeof data20 !== "string"){const err67 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("foaf:Person" !== data20){const err68 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(len5 > 1){let data21 = data19[1];if(typeof data21 !== "string"){const err69 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if("crm:E89_Propositional_Object" !== data21){const err70 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var _valid5 = _errs66 === errors;if(_valid5 && valid17){valid17 = false;passing1 = [passing1, 1];}else {if(_valid5){valid17 = true;passing1 = 1;}}if(!valid17){const err72 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}}var _valid4 = _errs62 === errors;if(_valid4){valid16 = true;passing0 = 0;}const _errs72 = errors;const _errs73 = errors;let valid19 = false;let passing2 = null;const _errs74 = errors;if(typeof data19 !== "string"){const err73 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E53_Place" !== data19){const err74 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid6 = _errs74 === errors;if(_valid6){valid19 = true;passing2 = 0;}const _errs76 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err75 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data19.length < 2){const err76 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const len6 = data19.length;if(len6 > 0){let data22 = data19[0];if(typeof data22 !== "string"){const err77 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if("biography:fictionalPlace" !== data22){const err78 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(len6 > 1){let data23 = data19[1];if(typeof data23 !== "string"){const err79 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("crm:E89_Propositional_Object" !== data23){const err80 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid6 = _errs76 === errors;if(_valid6 && valid19){valid19 = false;passing2 = [passing2, 1];}else {if(_valid6){valid19 = true;passing2 = 1;}}if(!valid19){const err82 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}var _valid4 = _errs72 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 1];}else {if(_valid4){valid16 = true;passing0 = 1;}const _errs82 = errors;const _errs83 = errors;let valid21 = false;let passing3 = null;const _errs84 = errors;if(typeof data19 !== "string"){const err83 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E74_Group" !== data19){const err84 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid7 = _errs84 === errors;if(_valid7){valid21 = true;passing3 = 0;}const _errs86 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err85 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data19.length < 2){const err86 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const len7 = data19.length;if(len7 > 0){let data24 = data19[0];if(typeof data24 !== "string"){const err87 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("foaf:Organization" !== data24){const err88 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(len7 > 1){let data25 = data19[1];if(typeof data25 !== "string"){const err89 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E89_Propositional_Object" !== data25){const err90 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid7 = _errs86 === errors;if(_valid7 && valid21){valid21 = false;passing3 = [passing3, 1];}else {if(_valid7){valid21 = true;passing3 = 1;}}if(!valid21){const err92 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}}var _valid4 = _errs82 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 2];}else {if(_valid4){valid16 = true;passing0 = 2;}const _errs92 = errors;const _errs93 = errors;let valid23 = false;let passing4 = null;const _errs94 = errors;if(typeof data19 !== "string"){const err93 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("frbroo:F1" !== data19){const err94 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var _valid8 = _errs94 === errors;if(_valid8){valid23 = true;passing4 = 0;}const _errs96 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err95 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data19.length < 2){const err96 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const len8 = data19.length;if(len8 > 0){let data26 = data19[0];if(typeof data26 !== "string"){const err97 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if("frbroo:F1" !== data26){const err98 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(len8 > 1){let data27 = data19[1];if(typeof data27 !== "string"){const err99 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if("wikidata:Q15306849" !== data27){const err100 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}else {const err101 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var _valid8 = _errs96 === errors;if(_valid8 && valid23){valid23 = false;passing4 = [passing4, 1];}else {if(_valid8){valid23 = true;passing4 = 1;}}if(!valid23){const err102 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}}var _valid4 = _errs92 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 3];}else {if(_valid4){valid16 = true;passing0 = 3;}const _errs102 = errors;const _errs103 = errors;let valid25 = false;let passing5 = null;const _errs104 = errors;if(typeof data19 !== "string"){const err103 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("crm:E18_Physical_Thing" !== data19){const err104 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var _valid9 = _errs104 === errors;if(_valid9){valid25 = true;passing5 = 0;}const _errs106 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err105 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data19.length < 2){const err106 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const len9 = data19.length;if(len9 > 0){let data28 = data19[0];if(typeof data28 !== "string"){const err107 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if("wikidata:Q15831596" !== data28){const err108 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(len9 > 1){let data29 = data19[1];if(typeof data29 !== "string"){const err109 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if("crm:E89_Propositional_Object" !== data29){const err110 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}else {const err111 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var _valid9 = _errs106 === errors;if(_valid9 && valid25){valid25 = false;passing5 = [passing5, 1];}else {if(_valid9){valid25 = true;passing5 = 1;}}if(!valid25){const err112 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}}var _valid4 = _errs102 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 4];}else {if(_valid4){valid16 = true;passing0 = 4;}const _errs112 = errors;if(typeof data19 !== "string"){const err113 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if("crm:E28_Conceptual_Object" !== data19){const err114 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}var _valid4 = _errs112 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 5];}else {if(_valid4){valid16 = true;passing0 = 5;}const _errs114 = errors;const _errs115 = errors;let valid27 = false;let passing6 = null;const _errs116 = errors;if(typeof data19 !== "string"){const err115 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("crm:E5_Event" !== data19){const err116 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid10 = _errs116 === errors;if(_valid10){valid27 = true;passing6 = 0;}const _errs118 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err117 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data19.length < 2){const err118 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const len10 = data19.length;if(len10 > 0){let data30 = data19[0];if(typeof data30 !== "string"){const err119 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if("event:Event" !== data30){const err120 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(len10 > 1){let data31 = data19[1];if(typeof data31 !== "string"){const err121 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if("crm:E89_Propositional_Object" !== data31){const err122 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}else {const err123 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid10 = _errs118 === errors;if(_valid10 && valid27){valid27 = false;passing6 = [passing6, 1];}else {if(_valid10){valid27 = true;passing6 = 1;}}if(!valid27){const err124 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}}var _valid4 = _errs114 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 6];}else {if(_valid4){valid16 = true;passing0 = 6;}const _errs124 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err125 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data19.length < 2){const err126 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const len11 = data19.length;if(len11 > 0){let data32 = data19[0];if(typeof data32 !== "string"){const err127 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if("cito:Citation" !== data32){const err128 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(len11 > 1){let data33 = data19[1];if(typeof data33 !== "string"){const err129 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if("crm:E73_Information_Object" !== data33){const err130 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}else {const err131 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid4 = _errs124 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 7];}else {if(_valid4){valid16 = true;passing0 = 7;}const _errs130 = errors;if(Array.isArray(data19)){if(data19.length > 3){const err132 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data19.length < 3){const err133 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const len12 = data19.length;if(len12 > 0){let data34 = data19[0];if(typeof data34 !== "string"){const err134 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if("TextualBody" !== data34){const err135 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(len12 > 1){let data35 = data19[1];if(typeof data35 !== "string"){const err136 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("xsd:date" !== data35){const err137 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(len12 > 2){let data36 = data19[2];if(typeof data36 !== "string"){const err138 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if("crm:E52_Time-Span" !== data36){const err139 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}var _valid4 = _errs130 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 8];}else {if(_valid4){valid16 = true;passing0 = 8;}const _errs138 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err141 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data19.length < 2){const err142 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}const len13 = data19.length;if(len13 > 0){let data37 = data19[0];if(typeof data37 !== "string"){const err143 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if("TextualBody" !== data37){const err144 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(len13 > 1){let data38 = data19[1];if(typeof data38 !== "string"){const err145 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if("crm:E33_Linguistic_Object" !== data38){const err146 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid4 = _errs138 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 9];}else {if(_valid4){valid16 = true;passing0 = 9;}const _errs144 = errors;if(Array.isArray(data19)){if(data19.length > 3){const err148 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data19.length < 3){const err149 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const len14 = data19.length;if(len14 > 0){let data39 = data19[0];if(typeof data39 !== "string"){const err150 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("TextualBody" !== data39){const err151 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(len14 > 1){let data40 = data19[1];if(typeof data40 !== "string"){const err152 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("fabio:Correction" !== data40){const err153 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(len14 > 2){let data41 = data19[2];if(typeof data41 !== "string"){const err154 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if("crm:E33_Linguistic_Object" !== data41){const err155 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}else {const err156 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid4 = _errs144 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 10];}else {if(_valid4){valid16 = true;passing0 = 10;}const _errs152 = errors;if(typeof data19 !== "string"){const err157 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if("crmdig:D1_Digital_Object" !== data19){const err158 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}var _valid4 = _errs152 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 11];}else {if(_valid4){valid16 = true;passing0 = 11;}}}}}}}}}}}}if(!valid16){const err159 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}if(data3.value !== undefined){if(typeof data3.value !== "string"){const err160 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data3.label !== undefined){let data43 = data3.label;if(typeof data43 === "string"){if(func2(data43) < 1){const err161 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data3.P2_has_type !== undefined){let data44 = data3.P2_has_type;if(Array.isArray(data44)){const len15 = data44.length;for(let i1=0; i1<len15; i1++){if(typeof data44[i1] !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/P2_has_type/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}else {const err164 = {instancePath:instancePath+"/items/" + i0+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data3.description !== undefined){if(typeof data3.description !== "string"){const err165 = {instancePath:instancePath+"/items/" + i0+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}else {const err166 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema23 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target resource."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"SpecificResource"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Specific Resource."},"source":{"type":"object","description":"Web Annotation Target's source","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target source."},"type":{"type":"string","const":"crm:D1_Digital_Object"},"format":{"type":["string","array"],"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification."}]},"P1_is_identified_by":{"type":"object","description":"indentifyBy","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E33_E41_Linguistic_Appellation"},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."}},"required":["id","type","title"],"nullable":true},"language":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},{"type":"array","minItems":1,"items":{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},"description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification."}]}},"required":["id","type","format"]},"renderedVia":{"$ref":"defs.jsonld#/definitions/software","description":"The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."},"selector":{"anyOf":[{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},{"type":"array","items":{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},"minItems":1}]}},"required":["id","type","source"],"allOf":[{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["id","type","exact","prefix","suffix"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","startSelector","endSelector"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","start","end"]}}}}]};const schema25 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."}},"required":["id","type","start","end"]};const schema26 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."}},"required":["id","type","exact","prefix","suffix"]};const schema33 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"}},"required":["id","type","value"]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data0 = data.selector;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs9 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("TextQuoteSelector" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs9 === errors;}if(valid4){if(len0 > 1){let data3 = data1[1];const _errs11 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs11 === errors;}}}}}else {const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data4 = data.selector;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.id === undefined){const err9 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.type === undefined){const err10 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data4.exact === undefined){const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.prefix === undefined){const err12 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data4.suffix === undefined){const err13 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err16 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data5 = data.selector;const _errs21 = errors;if(errors === _errs21){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 2){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data6.length < 2){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("RangeSelector" !== data7){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E73_Information_Object" !== data8){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}else {const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err26 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data9.startSelector === undefined){const err27 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.endSelector === undefined){const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err31 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const _errs34 = errors;let valid11 = true;const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data10 = data.selector;const _errs37 = errors;if(errors === _errs37){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.type !== undefined){let data11 = data10.type;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data11)){if(data11.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data11.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("XPathSelector" !== data12){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("crm:E73_Information_Object" !== data13){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data14 = data.selector;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.type === undefined){const err41 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data14.value === undefined){const err42 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/allOf/2/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid2 = _errs45 === errors;valid11 = _valid2;}if(!valid11){const err45 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs50 = errors;let valid16 = true;const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data15 = data.selector;const _errs53 = errors;if(errors === _errs53){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.type !== undefined){let data16 = data15.type;const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data16)){if(data16.length > 2){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data16.length < 2){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const len3 = data16.length;if(len3 > 0){let data17 = data16[0];const _errs57 = errors;if(typeof data17 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("CssSelector" !== data17){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs57 === errors;}if(valid19){if(len3 > 1){let data18 = data16[1];const _errs59 = errors;if(typeof data18 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E73_Information_Object" !== data18){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid19 = _errs59 === errors;}}}}}else {const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}else {const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}else {const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err55 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data19.value === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err59 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs66 = errors;let valid21 = true;const _errs67 = errors;if(errors === _errs67){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data20 = data.selector;const _errs69 = errors;if(errors === _errs69){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.type !== undefined){let data21 = data20.type;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data21)){if(data21.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data21.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len4 = data21.length;if(len4 > 0){let data22 = data21[0];const _errs73 = errors;if(typeof data22 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("TextPositionSelector" !== data22){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid24 = _errs73 === errors;}if(valid24){if(len4 > 1){let data23 = data21[1];const _errs75 = errors;if(typeof data23 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E73_Information_Object" !== data23){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid24 = _errs75 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}else {const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}else {const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}var _valid4 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid4){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data24 = data.selector;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.type === undefined){const err69 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data24.start === undefined){const err70 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data24.end === undefined){const err71 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath,schemaPath:"#/allOf/4/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid4 = _errs77 === errors;valid21 = _valid4;}if(!valid21){const err74 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err75 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.type === undefined){const err76 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.source === undefined){const err77 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.id !== undefined){let data25 = data.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err78 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data.type !== undefined){let data26 = data.type;if(Array.isArray(data26)){if(data26.length > 2){const err80 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data26.length < 2){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len5 = data26.length;if(len5 > 0){let data27 = data26[0];if(typeof data27 !== "string"){const err82 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("SpecificResource" !== data27){const err83 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "SpecificResource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(len5 > 1){let data28 = data26[1];if(typeof data28 !== "string"){const err84 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("crm:E73_Information_Object" !== data28){const err85 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data.source !== undefined){let data29 = data.source;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err87 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29.type === undefined){const err88 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.format === undefined){const err89 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err90 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err92 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("crm:D1_Digital_Object" !== data31){const err93 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/const",keyword:"const",params:{allowedValue: "crm:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data29.format !== undefined){let data32 = data29.format;if((typeof data32 !== "string") && (!(Array.isArray(data32)))){const err94 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema23.properties.source.properties.format.type},message:"must be string,array"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs97 = errors;let valid29 = false;const _errs98 = errors;if(typeof data32 === "string"){if(func2(data32) < 1){const err95 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}var _valid5 = _errs98 === errors;valid29 = valid29 || _valid5;if(!valid29){const _errs100 = errors;if(Array.isArray(data32)){if(data32.length < 1){const err97 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const len6 = data32.length;for(let i0=0; i0<len6; i0++){let data33 = data32[i0];if(typeof data33 === "string"){if(func2(data33) < 1){const err98 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid5 = _errs100 === errors;valid29 = valid29 || _valid5;}if(!valid29){const err101 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}}}if(data29.P1_is_identified_by !== undefined){let data34 = data29.P1_is_identified_by;if((!(data34 && typeof data34 == "object" && !Array.isArray(data34))) && (data34 !== null)){const err102 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.id === undefined){const err103 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data34.type === undefined){const err104 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data34.title === undefined){const err105 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data34.id !== undefined){let data35 = data34.id;if(typeof data35 === "string"){if(!(formats0(data35))){const err106 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data34.type !== undefined){let data36 = data34.type;if(typeof data36 !== "string"){const err108 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data36){const err109 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/const",keyword:"const",params:{allowedValue: "crm:E33_E41_Linguistic_Appellation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data34.title !== undefined){let data37 = data34.title;if(typeof data37 === "string"){if(func2(data37) < 1){const err110 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}if(data29.language !== undefined){let data38 = data29.language;if(((typeof data38 !== "string") && (!(Array.isArray(data38)))) && (data38 !== null)){const err112 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema23.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const _errs116 = errors;let valid33 = false;const _errs117 = errors;if(typeof data38 === "string"){if(func2(data38) > 3){const err113 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(func2(data38) < 2){const err114 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid6 = _errs117 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs119 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err116 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const len7 = data38.length;for(let i1=0; i1<len7; i1++){let data39 = data38[i1];if(typeof data39 === "string"){if(func2(data39) > 3){const err117 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(func2(data39) < 2){const err118 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}else {const err120 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid6 = _errs119 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err121 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err122 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data.renderedVia !== undefined){let data40 = data.renderedVia;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.id === undefined){const err123 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data40.type === undefined){const err124 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data40.name === undefined){const err125 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data40.id !== undefined){let data41 = data40.id;if(typeof data41 === "string"){if(!(formats0(data41))){const err126 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data40.type !== undefined){let data42 = data40.type;if(Array.isArray(data42)){if(data42.length > 2){const err128 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data42.length < 2){const err129 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const len8 = data42.length;if(len8 > 0){let data43 = data42[0];if(typeof data43 !== "string"){const err130 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("Software" !== data43){const err131 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(len8 > 1){let data44 = data42[1];if(typeof data44 !== "string"){const err132 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("crm:E73_Information_Object" !== data44){const err133 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data40.P16_used_specific_object !== undefined){let data45 = data40.P16_used_specific_object;if(typeof data45 === "string"){if(!(formats0(data45))){const err135 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data40.name !== undefined){let data46 = data40.name;if(typeof data46 === "string"){if(func2(data46) < 1){const err137 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data40.softwareVersion !== undefined){if(typeof data40.softwareVersion !== "string"){const err139 = {instancePath:instancePath+"/renderedVia/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data.selector !== undefined){let data48 = data.selector;const _errs141 = errors;let valid39 = false;const _errs142 = errors;const _errs144 = errors;let valid40 = false;let passing0 = null;const _errs145 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err141 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data48.type === undefined){const err142 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data48.exact === undefined){const err143 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data48.prefix === undefined){const err144 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data48.suffix === undefined){const err145 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data48.id !== undefined){let data49 = data48.id;if(typeof data49 === "string"){if(!(formats0(data49))){const err146 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data48.type !== undefined){let data50 = data48.type;if(Array.isArray(data50)){if(data50.length > 2){const err148 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data50.length < 2){const err149 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const len9 = data50.length;if(len9 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err150 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("TextQuoteSelector" !== data51){const err151 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(len9 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err152 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err153 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data48.exact !== undefined){if(typeof data48.exact !== "string"){const err155 = {instancePath:instancePath+"/selector/exact",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data48.prefix !== undefined){if(typeof data48.prefix !== "string"){const err156 = {instancePath:instancePath+"/selector/prefix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data48.suffix !== undefined){if(typeof data48.suffix !== "string"){const err157 = {instancePath:instancePath+"/selector/suffix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data48.refinedBy !== undefined){let data56 = data48.refinedBy;const _errs163 = errors;let valid43 = false;let passing1 = null;const _errs164 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err158 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data56.type === undefined){const err159 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data56.start === undefined){const err160 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data56.end === undefined){const err161 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data56.id !== undefined){let data57 = data56.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err162 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}else {const err163 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data56.type !== undefined){let data58 = data56.type;if(Array.isArray(data58)){if(data58.length > 2){const err164 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data58.length < 2){const err165 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const len10 = data58.length;if(len10 > 0){let data59 = data58[0];if(typeof data59 !== "string"){const err166 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if("TextPositionSelector" !== data59){const err167 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(len10 > 1){let data60 = data58[1];if(typeof data60 !== "string"){const err168 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if("crm:E73_Information_Object" !== data60){const err169 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data56.start !== undefined){let data61 = data56.start;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 0 || isNaN(data61)){const err171 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data56.end !== undefined){let data62 = data56.end;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 0 || isNaN(data62)){const err173 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var _valid9 = _errs164 === errors;if(_valid9){valid43 = true;passing1 = 0;}const _errs179 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err176 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data56.type === undefined){const err177 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data56.exact === undefined){const err178 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if(data56.prefix === undefined){const err179 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(data56.suffix === undefined){const err180 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data56.id !== undefined){let data63 = data56.id;if(typeof data63 === "string"){if(!(formats0(data63))){const err181 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data56.type !== undefined){let data64 = data56.type;if(Array.isArray(data64)){if(data64.length > 2){const err183 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data64.length < 2){const err184 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const len11 = data64.length;if(len11 > 0){let data65 = data64[0];if(typeof data65 !== "string"){const err185 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if("TextQuoteSelector" !== data65){const err186 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(len11 > 1){let data66 = data64[1];if(typeof data66 !== "string"){const err187 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("crm:E33_Linguistic_Object" !== data66){const err188 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data56.exact !== undefined){if(typeof data56.exact !== "string"){const err190 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data56.prefix !== undefined){if(typeof data56.prefix !== "string"){const err191 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data56.suffix !== undefined){if(typeof data56.suffix !== "string"){const err192 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid9 = _errs179 === errors;if(_valid9 && valid43){valid43 = false;passing1 = [passing1, 1];}else {if(_valid9){valid43 = true;passing1 = 1;}}if(!valid43){const err194 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}}if(!(data56 && typeof data56 == "object" && !Array.isArray(data56))){const err195 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}else {const err196 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid8 = _errs145 === errors;if(_valid8){valid40 = true;passing0 = 0;}const _errs196 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err197 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data48.type === undefined){const err198 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data48.start === undefined){const err199 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data48.end === undefined){const err200 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if(data48.id !== undefined){let data70 = data48.id;if(typeof data70 === "string"){if(!(formats0(data70))){const err201 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data48.type !== undefined){let data71 = data48.type;if(Array.isArray(data71)){if(data71.length > 2){const err203 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if(data71.length < 2){const err204 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}const len12 = data71.length;if(len12 > 0){let data72 = data71[0];if(typeof data72 !== "string"){const err205 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("TextPositionSelector" !== data72){const err206 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(len12 > 1){let data73 = data71[1];if(typeof data73 !== "string"){const err207 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if("crm:E73_Information_Object" !== data73){const err208 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}}else {const err209 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data48.start !== undefined){let data74 = data48.start;if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err210 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}else {const err211 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data48.end !== undefined){let data75 = data48.end;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err212 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}else {const err213 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data48.refinedBy !== undefined){let data76 = data48.refinedBy;const _errs212 = errors;let valid52 = false;let passing2 = null;const _errs213 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err214 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data76.type === undefined){const err215 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(data76.start === undefined){const err216 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(data76.end === undefined){const err217 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err218 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data76.type !== undefined){let data78 = data76.type;if(Array.isArray(data78)){if(data78.length > 2){const err220 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}if(data78.length < 2){const err221 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}const len13 = data78.length;if(len13 > 0){let data79 = data78[0];if(typeof data79 !== "string"){const err222 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if("TextPositionSelector" !== data79){const err223 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(len13 > 1){let data80 = data78[1];if(typeof data80 !== "string"){const err224 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}if("crm:E73_Information_Object" !== data80){const err225 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data76.start !== undefined){let data81 = data76.start;if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err227 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data76.end !== undefined){let data82 = data76.end;if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err229 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}else {const err230 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid10 = _errs213 === errors;if(_valid10){valid52 = true;passing2 = 0;}const _errs228 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err232 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data76.type === undefined){const err233 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}if(data76.exact === undefined){const err234 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if(data76.prefix === undefined){const err235 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data76.suffix === undefined){const err236 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data76.id !== undefined){let data83 = data76.id;if(typeof data83 === "string"){if(!(formats0(data83))){const err237 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}else {const err238 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data76.type !== undefined){let data84 = data76.type;if(Array.isArray(data84)){if(data84.length > 2){const err239 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data84.length < 2){const err240 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}const len14 = data84.length;if(len14 > 0){let data85 = data84[0];if(typeof data85 !== "string"){const err241 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if("TextQuoteSelector" !== data85){const err242 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}if(len14 > 1){let data86 = data84[1];if(typeof data86 !== "string"){const err243 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("crm:E33_Linguistic_Object" !== data86){const err244 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}}else {const err245 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data76.exact !== undefined){if(typeof data76.exact !== "string"){const err246 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}if(data76.prefix !== undefined){if(typeof data76.prefix !== "string"){const err247 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data76.suffix !== undefined){if(typeof data76.suffix !== "string"){const err248 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}else {const err249 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var _valid10 = _errs228 === errors;if(_valid10 && valid52){valid52 = false;passing2 = [passing2, 1];}else {if(_valid10){valid52 = true;passing2 = 1;}}if(!valid52){const err250 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs212;if(vErrors !== null){if(_errs212){vErrors.length = _errs212;}else {vErrors = null;}}}if(!(data76 && typeof data76 == "object" && !Array.isArray(data76))){const err251 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid8 = _errs196 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 1];}else {if(_valid8){valid40 = true;passing0 = 1;}const _errs245 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err253 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if(data48.type === undefined){const err254 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(data48.value === undefined){const err255 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data48.id !== undefined){let data90 = data48.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err256 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}else {const err257 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data48.type !== undefined){let data91 = data48.type;if(Array.isArray(data91)){if(data91.length > 2){const err258 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(data91.length < 2){const err259 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}const len15 = data91.length;if(len15 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err260 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if("XPathSelector" !== data92){const err261 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}if(len15 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err262 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crm:E73_Information_Object" !== data93){const err263 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}else {const err264 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err265 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}if(data48.refinedBy !== undefined){let data95 = data48.refinedBy;const _errs259 = errors;let valid61 = false;const _errs260 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err266 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data95.type === undefined){const err267 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data95.start === undefined){const err268 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if(data95.end === undefined){const err269 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if(data95.id !== undefined){let data96 = data95.id;if(typeof data96 === "string"){if(!(formats0(data96))){const err270 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}else {const err271 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}if(data95.type !== undefined){let data97 = data95.type;if(Array.isArray(data97)){if(data97.length > 2){const err272 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}if(data97.length < 2){const err273 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}const len16 = data97.length;if(len16 > 0){let data98 = data97[0];if(typeof data98 !== "string"){const err274 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if("TextPositionSelector" !== data98){const err275 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}}if(len16 > 1){let data99 = data97[1];if(typeof data99 !== "string"){const err276 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if("crm:E73_Information_Object" !== data99){const err277 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}else {const err278 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data95.start !== undefined){let data100 = data95.start;if((typeof data100 == "number") && (isFinite(data100))){if(data100 < 0 || isNaN(data100)){const err279 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}else {const err280 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data95.end !== undefined){let data101 = data95.end;if((typeof data101 == "number") && (isFinite(data101))){if(data101 < 0 || isNaN(data101)){const err281 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}else {const err282 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid11 = _errs260 === errors;valid61 = valid61 || _valid11;if(!valid61){const _errs275 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err284 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data95.type === undefined){const err285 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data95.exact === undefined){const err286 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data95.prefix === undefined){const err287 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data95.suffix === undefined){const err288 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if(data95.id !== undefined){let data102 = data95.id;if(typeof data102 === "string"){if(!(formats0(data102))){const err289 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data95.type !== undefined){let data103 = data95.type;if(Array.isArray(data103)){if(data103.length > 2){const err291 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data103.length < 2){const err292 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const len17 = data103.length;if(len17 > 0){let data104 = data103[0];if(typeof data104 !== "string"){const err293 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if("TextQuoteSelector" !== data104){const err294 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}if(len17 > 1){let data105 = data103[1];if(typeof data105 !== "string"){const err295 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("crm:E33_Linguistic_Object" !== data105){const err296 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(data95.exact !== undefined){if(typeof data95.exact !== "string"){const err298 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}if(data95.prefix !== undefined){if(typeof data95.prefix !== "string"){const err299 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(data95.suffix !== undefined){if(typeof data95.suffix !== "string"){const err300 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}}else {const err301 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}var _valid11 = _errs275 === errors;valid61 = valid61 || _valid11;}if(!valid61){const err302 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}}if(!(data95 && typeof data95 == "object" && !Array.isArray(data95))){const err303 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var _valid8 = _errs245 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 2];}else {if(_valid8){valid40 = true;passing0 = 2;}const _errs292 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err305 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if(data48.type === undefined){const err306 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data48.value === undefined){const err307 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data48.id !== undefined){let data109 = data48.id;if(typeof data109 === "string"){if(!(formats0(data109))){const err308 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(data48.type !== undefined){let data110 = data48.type;if(Array.isArray(data110)){if(data110.length > 2){const err310 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if(data110.length < 2){const err311 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}const len18 = data110.length;if(len18 > 0){let data111 = data110[0];if(typeof data111 !== "string"){const err312 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("CssSelector" !== data111){const err313 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(len18 > 1){let data112 = data110[1];if(typeof data112 !== "string"){const err314 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E73_Information_Object" !== data112){const err315 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}}}else {const err316 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err317 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}if(data48.refinedBy !== undefined){let data114 = data48.refinedBy;const _errs306 = errors;let valid70 = false;const _errs307 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err318 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if(data114.type === undefined){const err319 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(data114.start === undefined){const err320 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if(data114.end === undefined){const err321 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}if(data114.id !== undefined){let data115 = data114.id;if(typeof data115 === "string"){if(!(formats0(data115))){const err322 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}else {const err323 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}}if(data114.type !== undefined){let data116 = data114.type;if(Array.isArray(data116)){if(data116.length > 2){const err324 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data116.length < 2){const err325 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}const len19 = data116.length;if(len19 > 0){let data117 = data116[0];if(typeof data117 !== "string"){const err326 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if("TextPositionSelector" !== data117){const err327 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}if(len19 > 1){let data118 = data116[1];if(typeof data118 !== "string"){const err328 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}if("crm:E73_Information_Object" !== data118){const err329 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}}else {const err330 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}if(data114.start !== undefined){let data119 = data114.start;if((typeof data119 == "number") && (isFinite(data119))){if(data119 < 0 || isNaN(data119)){const err331 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}}else {const err332 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}if(data114.end !== undefined){let data120 = data114.end;if((typeof data120 == "number") && (isFinite(data120))){if(data120 < 0 || isNaN(data120)){const err333 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}}else {const err334 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid12 = _errs307 === errors;valid70 = valid70 || _valid12;if(!valid70){const _errs322 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err336 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if(data114.type === undefined){const err337 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}if(data114.exact === undefined){const err338 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if(data114.prefix === undefined){const err339 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if(data114.suffix === undefined){const err340 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data114.id !== undefined){let data121 = data114.id;if(typeof data121 === "string"){if(!(formats0(data121))){const err341 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}else {const err342 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(data114.type !== undefined){let data122 = data114.type;if(Array.isArray(data122)){if(data122.length > 2){const err343 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if(data122.length < 2){const err344 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}const len20 = data122.length;if(len20 > 0){let data123 = data122[0];if(typeof data123 !== "string"){const err345 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if("TextQuoteSelector" !== data123){const err346 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(len20 > 1){let data124 = data122[1];if(typeof data124 !== "string"){const err347 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E33_Linguistic_Object" !== data124){const err348 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}if(data114.exact !== undefined){if(typeof data114.exact !== "string"){const err350 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}if(data114.prefix !== undefined){if(typeof data114.prefix !== "string"){const err351 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}if(data114.suffix !== undefined){if(typeof data114.suffix !== "string"){const err352 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}}else {const err353 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}var _valid12 = _errs322 === errors;valid70 = valid70 || _valid12;}if(!valid70){const err354 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}else {errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}}if(!(data114 && typeof data114 == "object" && !Array.isArray(data114))){const err355 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}}else {const err356 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid8 = _errs292 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 3];}else {if(_valid8){valid40 = true;passing0 = 3;}const _errs339 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err357 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if(data48.type === undefined){const err358 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data48.startSelector === undefined){const err359 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if(data48.endSelector === undefined){const err360 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data48.id !== undefined){let data128 = data48.id;if(typeof data128 === "string"){if(!(formats0(data128))){const err361 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}else {const err362 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}if(data48.type !== undefined){let data129 = data48.type;if(Array.isArray(data129)){if(data129.length > 2){const err363 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if(data129.length < 2){const err364 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}const len21 = data129.length;if(len21 > 0){let data130 = data129[0];if(typeof data130 !== "string"){const err365 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if("RangeSelector" !== data130){const err366 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(len21 > 1){let data131 = data129[1];if(typeof data131 !== "string"){const err367 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("crm:E73_Information_Object" !== data131){const err368 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}}else {const err369 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(data48.startSelector !== undefined){let data132 = data48.startSelector;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if(data132.id === undefined){const err370 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if(data132.type === undefined){const err371 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}if(data132.value === undefined){const err372 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}if(data132.id !== undefined){let data133 = data132.id;if(typeof data133 === "string"){if(!(formats0(data133))){const err373 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}if(data132.type !== undefined){let data134 = data132.type;if(Array.isArray(data134)){if(data134.length > 2){const err375 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data134.length < 2){const err376 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}const len22 = data134.length;if(len22 > 0){let data135 = data134[0];if(typeof data135 !== "string"){const err377 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}if("XPathSelector" !== data135){const err378 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}if(len22 > 1){let data136 = data134[1];if(typeof data136 !== "string"){const err379 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if("crm:E73_Information_Object" !== data136){const err380 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}}else {const err381 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}if(data132.value !== undefined){if(typeof data132.value !== "string"){const err382 = {instancePath:instancePath+"/selector/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}}else {const err383 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}if(data48.endSelector !== undefined){let data138 = data48.endSelector;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(data138.id === undefined){const err384 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}if(data138.type === undefined){const err385 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}if(data138.value === undefined){const err386 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}if(data138.id !== undefined){let data139 = data138.id;if(typeof data139 === "string"){if(!(formats0(data139))){const err387 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}else {const err388 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}if(data138.type !== undefined){let data140 = data138.type;if(Array.isArray(data140)){if(data140.length > 2){const err389 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data140.length < 2){const err390 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}const len23 = data140.length;if(len23 > 0){let data141 = data140[0];if(typeof data141 !== "string"){const err391 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}if("XPathSelector" !== data141){const err392 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}if(len23 > 1){let data142 = data140[1];if(typeof data142 !== "string"){const err393 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}if("crm:E73_Information_Object" !== data142){const err394 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}}else {const err395 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}}if(data138.value !== undefined){if(typeof data138.value !== "string"){const err396 = {instancePath:instancePath+"/selector/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}}else {const err397 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}else {const err398 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var _valid8 = _errs339 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 4];}else {if(_valid8){valid40 = true;passing0 = 4;}}}}}if(!valid40){const err399 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}if(!(data48 && typeof data48 == "object" && !Array.isArray(data48))){const err400 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid7 = _errs142 === errors;valid39 = valid39 || _valid7;if(!valid39){const _errs375 = errors;if(Array.isArray(data48)){if(data48.length < 1){const err401 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}const len24 = data48.length;for(let i2=0; i2<len24; i2++){let data144 = data48[i2];const _errs379 = errors;let valid87 = false;let passing3 = null;const _errs380 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err402 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}if(data144.type === undefined){const err403 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if(data144.exact === undefined){const err404 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}if(data144.prefix === undefined){const err405 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if(data144.suffix === undefined){const err406 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}if(data144.id !== undefined){let data145 = data144.id;if(typeof data145 === "string"){if(!(formats0(data145))){const err407 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}else {const err408 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}if(data144.type !== undefined){let data146 = data144.type;if(Array.isArray(data146)){if(data146.length > 2){const err409 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}if(data146.length < 2){const err410 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}const len25 = data146.length;if(len25 > 0){let data147 = data146[0];if(typeof data147 !== "string"){const err411 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}if("TextQuoteSelector" !== data147){const err412 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}}if(len25 > 1){let data148 = data146[1];if(typeof data148 !== "string"){const err413 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}if("crm:E33_Linguistic_Object" !== data148){const err414 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}}else {const err415 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}if(data144.exact !== undefined){if(typeof data144.exact !== "string"){const err416 = {instancePath:instancePath+"/selector/" + i2+"/exact",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}if(data144.prefix !== undefined){if(typeof data144.prefix !== "string"){const err417 = {instancePath:instancePath+"/selector/" + i2+"/prefix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}if(data144.suffix !== undefined){if(typeof data144.suffix !== "string"){const err418 = {instancePath:instancePath+"/selector/" + i2+"/suffix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}if(data144.refinedBy !== undefined){let data152 = data144.refinedBy;const _errs398 = errors;let valid90 = false;let passing4 = null;const _errs399 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err419 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}if(data152.type === undefined){const err420 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}if(data152.start === undefined){const err421 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if(data152.end === undefined){const err422 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if(data152.id !== undefined){let data153 = data152.id;if(typeof data153 === "string"){if(!(formats0(data153))){const err423 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}}else {const err424 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(data152.type !== undefined){let data154 = data152.type;if(Array.isArray(data154)){if(data154.length > 2){const err425 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if(data154.length < 2){const err426 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}const len26 = data154.length;if(len26 > 0){let data155 = data154[0];if(typeof data155 !== "string"){const err427 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if("TextPositionSelector" !== data155){const err428 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}if(len26 > 1){let data156 = data154[1];if(typeof data156 !== "string"){const err429 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}if("crm:E73_Information_Object" !== data156){const err430 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}else {const err431 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}}if(data152.start !== undefined){let data157 = data152.start;if((typeof data157 == "number") && (isFinite(data157))){if(data157 < 0 || isNaN(data157)){const err432 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}else {const err433 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}if(data152.end !== undefined){let data158 = data152.end;if((typeof data158 == "number") && (isFinite(data158))){if(data158 < 0 || isNaN(data158)){const err434 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}else {const err435 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}}else {const err436 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid14 = _errs399 === errors;if(_valid14){valid90 = true;passing4 = 0;}const _errs414 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err437 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data152.type === undefined){const err438 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}if(data152.exact === undefined){const err439 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if(data152.prefix === undefined){const err440 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}if(data152.suffix === undefined){const err441 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if(data152.id !== undefined){let data159 = data152.id;if(typeof data159 === "string"){if(!(formats0(data159))){const err442 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}else {const err443 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}}if(data152.type !== undefined){let data160 = data152.type;if(Array.isArray(data160)){if(data160.length > 2){const err444 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if(data160.length < 2){const err445 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}const len27 = data160.length;if(len27 > 0){let data161 = data160[0];if(typeof data161 !== "string"){const err446 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if("TextQuoteSelector" !== data161){const err447 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}if(len27 > 1){let data162 = data160[1];if(typeof data162 !== "string"){const err448 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}if("crm:E33_Linguistic_Object" !== data162){const err449 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}}}else {const err450 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}if(data152.exact !== undefined){if(typeof data152.exact !== "string"){const err451 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}}if(data152.prefix !== undefined){if(typeof data152.prefix !== "string"){const err452 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}if(data152.suffix !== undefined){if(typeof data152.suffix !== "string"){const err453 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}}else {const err454 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var _valid14 = _errs414 === errors;if(_valid14 && valid90){valid90 = false;passing4 = [passing4, 1];}else {if(_valid14){valid90 = true;passing4 = 1;}}if(!valid90){const err455 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}else {errors = _errs398;if(vErrors !== null){if(_errs398){vErrors.length = _errs398;}else {vErrors = null;}}}if(!(data152 && typeof data152 == "object" && !Array.isArray(data152))){const err456 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}}else {const err457 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}var _valid13 = _errs380 === errors;if(_valid13){valid87 = true;passing3 = 0;}const _errs431 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err458 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}if(data144.type === undefined){const err459 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if(data144.start === undefined){const err460 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}if(data144.end === undefined){const err461 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data144.id !== undefined){let data166 = data144.id;if(typeof data166 === "string"){if(!(formats0(data166))){const err462 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}else {const err463 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}if(data144.type !== undefined){let data167 = data144.type;if(Array.isArray(data167)){if(data167.length > 2){const err464 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}if(data167.length < 2){const err465 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}const len28 = data167.length;if(len28 > 0){let data168 = data167[0];if(typeof data168 !== "string"){const err466 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}if("TextPositionSelector" !== data168){const err467 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}}if(len28 > 1){let data169 = data167[1];if(typeof data169 !== "string"){const err468 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}if("crm:E73_Information_Object" !== data169){const err469 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}}else {const err470 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}if(data144.start !== undefined){let data170 = data144.start;if((typeof data170 == "number") && (isFinite(data170))){if(data170 < 0 || isNaN(data170)){const err471 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}else {const err472 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}if(data144.end !== undefined){let data171 = data144.end;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err473 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}else {const err474 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}}if(data144.refinedBy !== undefined){let data172 = data144.refinedBy;const _errs447 = errors;let valid99 = false;let passing5 = null;const _errs448 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err475 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if(data172.type === undefined){const err476 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if(data172.start === undefined){const err477 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data172.end === undefined){const err478 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if(data172.id !== undefined){let data173 = data172.id;if(typeof data173 === "string"){if(!(formats0(data173))){const err479 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}}else {const err480 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}if(data172.type !== undefined){let data174 = data172.type;if(Array.isArray(data174)){if(data174.length > 2){const err481 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if(data174.length < 2){const err482 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}const len29 = data174.length;if(len29 > 0){let data175 = data174[0];if(typeof data175 !== "string"){const err483 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}if("TextPositionSelector" !== data175){const err484 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}}if(len29 > 1){let data176 = data174[1];if(typeof data176 !== "string"){const err485 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}if("crm:E73_Information_Object" !== data176){const err486 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}}}else {const err487 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}}if(data172.start !== undefined){let data177 = data172.start;if((typeof data177 == "number") && (isFinite(data177))){if(data177 < 0 || isNaN(data177)){const err488 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}else {const err489 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(data172.end !== undefined){let data178 = data172.end;if((typeof data178 == "number") && (isFinite(data178))){if(data178 < 0 || isNaN(data178)){const err490 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}else {const err491 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid15 = _errs448 === errors;if(_valid15){valid99 = true;passing5 = 0;}const _errs463 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err493 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}if(data172.type === undefined){const err494 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data172.exact === undefined){const err495 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if(data172.prefix === undefined){const err496 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if(data172.suffix === undefined){const err497 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if(data172.id !== undefined){let data179 = data172.id;if(typeof data179 === "string"){if(!(formats0(data179))){const err498 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}else {const err499 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}if(data172.type !== undefined){let data180 = data172.type;if(Array.isArray(data180)){if(data180.length > 2){const err500 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if(data180.length < 2){const err501 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}const len30 = data180.length;if(len30 > 0){let data181 = data180[0];if(typeof data181 !== "string"){const err502 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if("TextQuoteSelector" !== data181){const err503 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}if(len30 > 1){let data182 = data180[1];if(typeof data182 !== "string"){const err504 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if("crm:E33_Linguistic_Object" !== data182){const err505 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}}else {const err506 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}if(data172.exact !== undefined){if(typeof data172.exact !== "string"){const err507 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}if(data172.prefix !== undefined){if(typeof data172.prefix !== "string"){const err508 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(data172.suffix !== undefined){if(typeof data172.suffix !== "string"){const err509 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}}}else {const err510 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}var _valid15 = _errs463 === errors;if(_valid15 && valid99){valid99 = false;passing5 = [passing5, 1];}else {if(_valid15){valid99 = true;passing5 = 1;}}if(!valid99){const err511 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}else {errors = _errs447;if(vErrors !== null){if(_errs447){vErrors.length = _errs447;}else {vErrors = null;}}}if(!(data172 && typeof data172 == "object" && !Array.isArray(data172))){const err512 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}}else {const err513 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}var _valid13 = _errs431 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 1];}else {if(_valid13){valid87 = true;passing3 = 1;}const _errs480 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err514 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data144.type === undefined){const err515 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if(data144.value === undefined){const err516 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data144.id !== undefined){let data186 = data144.id;if(typeof data186 === "string"){if(!(formats0(data186))){const err517 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}else {const err518 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}if(data144.type !== undefined){let data187 = data144.type;if(Array.isArray(data187)){if(data187.length > 2){const err519 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if(data187.length < 2){const err520 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}const len31 = data187.length;if(len31 > 0){let data188 = data187[0];if(typeof data188 !== "string"){const err521 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}if("XPathSelector" !== data188){const err522 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(len31 > 1){let data189 = data187[1];if(typeof data189 !== "string"){const err523 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if("crm:E73_Information_Object" !== data189){const err524 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err526 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(data144.refinedBy !== undefined){let data191 = data144.refinedBy;const _errs494 = errors;let valid108 = false;const _errs495 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err527 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}if(data191.type === undefined){const err528 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if(data191.start === undefined){const err529 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}if(data191.end === undefined){const err530 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if(data191.id !== undefined){let data192 = data191.id;if(typeof data192 === "string"){if(!(formats0(data192))){const err531 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}else {const err532 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}}if(data191.type !== undefined){let data193 = data191.type;if(Array.isArray(data193)){if(data193.length > 2){const err533 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if(data193.length < 2){const err534 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}const len32 = data193.length;if(len32 > 0){let data194 = data193[0];if(typeof data194 !== "string"){const err535 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}if("TextPositionSelector" !== data194){const err536 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}if(len32 > 1){let data195 = data193[1];if(typeof data195 !== "string"){const err537 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}if("crm:E73_Information_Object" !== data195){const err538 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}}}else {const err539 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}if(data191.start !== undefined){let data196 = data191.start;if((typeof data196 == "number") && (isFinite(data196))){if(data196 < 0 || isNaN(data196)){const err540 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}}else {const err541 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}}if(data191.end !== undefined){let data197 = data191.end;if((typeof data197 == "number") && (isFinite(data197))){if(data197 < 0 || isNaN(data197)){const err542 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}}else {const err543 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}}}else {const err544 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}var _valid16 = _errs495 === errors;valid108 = valid108 || _valid16;if(!valid108){const _errs510 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err545 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}if(data191.type === undefined){const err546 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}if(data191.exact === undefined){const err547 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}if(data191.prefix === undefined){const err548 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}if(data191.suffix === undefined){const err549 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}if(data191.id !== undefined){let data198 = data191.id;if(typeof data198 === "string"){if(!(formats0(data198))){const err550 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}else {const err551 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}}if(data191.type !== undefined){let data199 = data191.type;if(Array.isArray(data199)){if(data199.length > 2){const err552 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}if(data199.length < 2){const err553 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}const len33 = data199.length;if(len33 > 0){let data200 = data199[0];if(typeof data200 !== "string"){const err554 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if("TextQuoteSelector" !== data200){const err555 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}if(len33 > 1){let data201 = data199[1];if(typeof data201 !== "string"){const err556 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if("crm:E33_Linguistic_Object" !== data201){const err557 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}}else {const err558 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}}if(data191.exact !== undefined){if(typeof data191.exact !== "string"){const err559 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}if(data191.prefix !== undefined){if(typeof data191.prefix !== "string"){const err560 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data191.suffix !== undefined){if(typeof data191.suffix !== "string"){const err561 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}}}else {const err562 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}var _valid16 = _errs510 === errors;valid108 = valid108 || _valid16;}if(!valid108){const err563 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}if(!(data191 && typeof data191 == "object" && !Array.isArray(data191))){const err564 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}}else {const err565 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}var _valid13 = _errs480 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 2];}else {if(_valid13){valid87 = true;passing3 = 2;}const _errs527 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err566 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if(data144.type === undefined){const err567 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}if(data144.value === undefined){const err568 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data144.id !== undefined){let data205 = data144.id;if(typeof data205 === "string"){if(!(formats0(data205))){const err569 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}else {const err570 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}}if(data144.type !== undefined){let data206 = data144.type;if(Array.isArray(data206)){if(data206.length > 2){const err571 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}if(data206.length < 2){const err572 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}const len34 = data206.length;if(len34 > 0){let data207 = data206[0];if(typeof data207 !== "string"){const err573 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if("CssSelector" !== data207){const err574 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(len34 > 1){let data208 = data206[1];if(typeof data208 !== "string"){const err575 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if("crm:E73_Information_Object" !== data208){const err576 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}}else {const err577 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err578 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}}if(data144.refinedBy !== undefined){let data210 = data144.refinedBy;const _errs541 = errors;let valid117 = false;const _errs542 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err579 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if(data210.type === undefined){const err580 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}if(data210.start === undefined){const err581 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}if(data210.end === undefined){const err582 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}if(data210.id !== undefined){let data211 = data210.id;if(typeof data211 === "string"){if(!(formats0(data211))){const err583 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}}else {const err584 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}}if(data210.type !== undefined){let data212 = data210.type;if(Array.isArray(data212)){if(data212.length > 2){const err585 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}if(data212.length < 2){const err586 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}const len35 = data212.length;if(len35 > 0){let data213 = data212[0];if(typeof data213 !== "string"){const err587 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}if("TextPositionSelector" !== data213){const err588 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}}if(len35 > 1){let data214 = data212[1];if(typeof data214 !== "string"){const err589 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}if("crm:E73_Information_Object" !== data214){const err590 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}}}else {const err591 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}}if(data210.start !== undefined){let data215 = data210.start;if((typeof data215 == "number") && (isFinite(data215))){if(data215 < 0 || isNaN(data215)){const err592 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}else {const err593 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}if(data210.end !== undefined){let data216 = data210.end;if((typeof data216 == "number") && (isFinite(data216))){if(data216 < 0 || isNaN(data216)){const err594 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}else {const err595 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}}}else {const err596 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}var _valid17 = _errs542 === errors;valid117 = valid117 || _valid17;if(!valid117){const _errs557 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err597 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}if(data210.type === undefined){const err598 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}if(data210.exact === undefined){const err599 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(data210.prefix === undefined){const err600 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}if(data210.suffix === undefined){const err601 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}if(data210.id !== undefined){let data217 = data210.id;if(typeof data217 === "string"){if(!(formats0(data217))){const err602 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}}else {const err603 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}}if(data210.type !== undefined){let data218 = data210.type;if(Array.isArray(data218)){if(data218.length > 2){const err604 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}if(data218.length < 2){const err605 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}const len36 = data218.length;if(len36 > 0){let data219 = data218[0];if(typeof data219 !== "string"){const err606 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}if("TextQuoteSelector" !== data219){const err607 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}}if(len36 > 1){let data220 = data218[1];if(typeof data220 !== "string"){const err608 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}if("crm:E33_Linguistic_Object" !== data220){const err609 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}}}else {const err610 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}}if(data210.exact !== undefined){if(typeof data210.exact !== "string"){const err611 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}}if(data210.prefix !== undefined){if(typeof data210.prefix !== "string"){const err612 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}}if(data210.suffix !== undefined){if(typeof data210.suffix !== "string"){const err613 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}}}else {const err614 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}var _valid17 = _errs557 === errors;valid117 = valid117 || _valid17;}if(!valid117){const err615 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}else {errors = _errs541;if(vErrors !== null){if(_errs541){vErrors.length = _errs541;}else {vErrors = null;}}}if(!(data210 && typeof data210 == "object" && !Array.isArray(data210))){const err616 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}else {const err617 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}var _valid13 = _errs527 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 3];}else {if(_valid13){valid87 = true;passing3 = 3;}const _errs574 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err618 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}if(data144.type === undefined){const err619 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if(data144.startSelector === undefined){const err620 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}if(data144.endSelector === undefined){const err621 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}if(data144.id !== undefined){let data224 = data144.id;if(typeof data224 === "string"){if(!(formats0(data224))){const err622 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}else {const err623 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data144.type !== undefined){let data225 = data144.type;if(Array.isArray(data225)){if(data225.length > 2){const err624 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}if(data225.length < 2){const err625 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}const len37 = data225.length;if(len37 > 0){let data226 = data225[0];if(typeof data226 !== "string"){const err626 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}if("RangeSelector" !== data226){const err627 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}}if(len37 > 1){let data227 = data225[1];if(typeof data227 !== "string"){const err628 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}if("crm:E73_Information_Object" !== data227){const err629 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}}else {const err630 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}if(data144.startSelector !== undefined){let data228 = data144.startSelector;if(data228 && typeof data228 == "object" && !Array.isArray(data228)){if(data228.id === undefined){const err631 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(data228.type === undefined){const err632 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}if(data228.value === undefined){const err633 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}if(data228.id !== undefined){let data229 = data228.id;if(typeof data229 === "string"){if(!(formats0(data229))){const err634 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}else {const err635 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}}if(data228.type !== undefined){let data230 = data228.type;if(Array.isArray(data230)){if(data230.length > 2){const err636 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}if(data230.length < 2){const err637 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}const len38 = data230.length;if(len38 > 0){let data231 = data230[0];if(typeof data231 !== "string"){const err638 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}if("XPathSelector" !== data231){const err639 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}}if(len38 > 1){let data232 = data230[1];if(typeof data232 !== "string"){const err640 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}if("crm:E73_Information_Object" !== data232){const err641 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}}}else {const err642 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}}if(data228.value !== undefined){if(typeof data228.value !== "string"){const err643 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}}}else {const err644 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}if(data144.endSelector !== undefined){let data234 = data144.endSelector;if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if(data234.id === undefined){const err645 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}if(data234.type === undefined){const err646 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}if(data234.value === undefined){const err647 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}if(data234.id !== undefined){let data235 = data234.id;if(typeof data235 === "string"){if(!(formats0(data235))){const err648 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}}else {const err649 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}}if(data234.type !== undefined){let data236 = data234.type;if(Array.isArray(data236)){if(data236.length > 2){const err650 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}if(data236.length < 2){const err651 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}const len39 = data236.length;if(len39 > 0){let data237 = data236[0];if(typeof data237 !== "string"){const err652 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}if("XPathSelector" !== data237){const err653 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}}if(len39 > 1){let data238 = data236[1];if(typeof data238 !== "string"){const err654 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}if("crm:E73_Information_Object" !== data238){const err655 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}}}else {const err656 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}}if(data234.value !== undefined){if(typeof data234.value !== "string"){const err657 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}}}else {const err658 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}}}else {const err659 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}var _valid13 = _errs574 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 4];}else {if(_valid13){valid87 = true;passing3 = 4;}}}}}if(!valid87){const err660 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}if(!(data144 && typeof data144 == "object" && !Array.isArray(data144))){const err661 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}}}else {const err662 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}var _valid7 = _errs375 === errors;valid39 = valid39 || _valid7;}if(!valid39){const err663 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}}}else {const err664 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}validate14.errors = vErrors;return errors === 0;}const formats10 = require("ajv-formats/dist/formats").fullFormats["date-time"];const func5 = Object.prototype.hasOwnProperty;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://wa.lincsproject.ca/v1/schema.jsonld" */;let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data0 = data.body;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;const _errs10 = errors;let valid5 = false;let passing1 = null;const _errs11 = errors;if(typeof data1 !== "string"){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("crm:E21_Person" !== data1){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data1)){if(data1.length > 2){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data1.length < 2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs15 = errors;if(typeof data2 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("foaf:Person" !== data2){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid6 = _errs15 === errors;}if(valid6){if(len0 > 1){let data3 = data1[1];const _errs17 = errors;if(typeof data3 !== "string"){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("crm:E89_Propositional_Object" !== data3){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs17 === errors;}}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var _valid1 = _errs9 === errors;if(_valid1){valid4 = true;passing0 = 0;}const _errs19 = errors;const _errs20 = errors;let valid7 = false;let passing2 = null;const _errs21 = errors;if(typeof data1 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("crm:E53_Place" !== data1){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs21 === errors;if(_valid3){valid7 = true;passing2 = 0;}const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data1)){if(data1.length > 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data1.length < 2){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {const len1 = data1.length;if(len1 > 0){let data4 = data1[0];const _errs25 = errors;if(typeof data4 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("biography:fictionalPlace" !== data4){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid8 = _errs25 === errors;}if(valid8){if(len1 > 1){let data5 = data1[1];const _errs27 = errors;if(typeof data5 !== "string"){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("crm:E89_Propositional_Object" !== data5){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid8 = _errs27 === errors;}}}}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs23 === errors;if(_valid3 && valid7){valid7 = false;passing2 = [passing2, 1];}else {if(_valid3){valid7 = true;passing2 = 1;}}if(!valid7){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var _valid1 = _errs19 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid1){valid4 = true;passing0 = 1;}const _errs29 = errors;const _errs30 = errors;let valid9 = false;let passing3 = null;const _errs31 = errors;if(typeof data1 !== "string"){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("crm:E74_Group" !== data1){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid4 = _errs31 === errors;if(_valid4){valid9 = true;passing3 = 0;}const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data1)){if(data1.length > 2){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data1.length < 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs35 = errors;if(typeof data6 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("foaf:Organization" !== data6){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid10 = _errs35 === errors;}if(valid10){if(len2 > 1){let data7 = data1[1];const _errs37 = errors;if(typeof data7 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("crm:E89_Propositional_Object" !== data7){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs37 === errors;}}}}}else {const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid4 = _errs33 === errors;if(_valid4 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid4){valid9 = true;passing3 = 1;}}if(!valid9){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;const _errs40 = errors;let valid11 = false;let passing4 = null;const _errs41 = errors;if(typeof data1 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("frbroo:F1" !== data1){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid5 = _errs41 === errors;if(_valid5){valid11 = true;passing4 = 0;}const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data1)){if(data1.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data1.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs45 = errors;if(typeof data8 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data8){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid12 = _errs45 === errors;}if(valid12){if(len3 > 1){let data9 = data1[1];const _errs47 = errors;if(typeof data9 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("wikidata:Q15306849" !== data9){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid12 = _errs47 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var _valid5 = _errs43 === errors;if(_valid5 && valid11){valid11 = false;passing4 = [passing4, 1];}else {if(_valid5){valid11 = true;passing4 = 1;}}if(!valid11){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}var _valid1 = _errs39 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 3];}else {if(_valid1){valid4 = true;passing0 = 3;}const _errs49 = errors;const _errs50 = errors;let valid13 = false;let passing5 = null;const _errs51 = errors;if(typeof data1 !== "string"){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("crm:E18_Physical_Thing" !== data1){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid6 = _errs51 === errors;if(_valid6){valid13 = true;passing5 = 0;}const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data1)){if(data1.length > 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data1.length < 2){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {const len4 = data1.length;if(len4 > 0){let data10 = data1[0];const _errs55 = errors;if(typeof data10 !== "string"){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if("wikidata:Q15831596" !== data10){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len4 > 1){let data11 = data1[1];const _errs57 = errors;if(typeof data11 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("crm:E89_Propositional_Object" !== data11){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs57 === errors;}}}}}else {const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var _valid6 = _errs53 === errors;if(_valid6 && valid13){valid13 = false;passing5 = [passing5, 1];}else {if(_valid6){valid13 = true;passing5 = 1;}}if(!valid13){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var _valid1 = _errs49 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 4];}else {if(_valid1){valid4 = true;passing0 = 4;}const _errs59 = errors;if(errors === _errs59){if(Array.isArray(data1)){if(data1.length > 3){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data1.length < 3){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {const len5 = data1.length;if(len5 > 0){let data12 = data1[0];const _errs61 = errors;if(typeof data12 !== "string"){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if("TextualBody" !== data12){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid15 = _errs61 === errors;}if(valid15){if(len5 > 1){let data13 = data1[1];const _errs63 = errors;if(typeof data13 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("xsd:date" !== data13){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid15 = _errs63 === errors;}if(valid15){if(len5 > 2){let data14 = data1[2];const _errs65 = errors;if(typeof data14 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("crm:E52_Time-Span" !== data14){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid15 = _errs65 === errors;}}}}}}else {const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs67 = errors;const _errs68 = errors;let valid16 = false;let passing6 = null;const _errs69 = errors;if(typeof data1 !== "string"){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("crm:E5_Event" !== data1){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid7 = _errs69 === errors;if(_valid7){valid16 = true;passing6 = 0;}const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data1)){if(data1.length > 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data1.length < 2){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data15 = data1[0];const _errs73 = errors;if(typeof data15 !== "string"){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("event:Event" !== data15){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid17 = _errs73 === errors;}if(valid17){if(len6 > 1){let data16 = data1[1];const _errs75 = errors;if(typeof data16 !== "string"){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("crm:E89_Propositional_Object" !== data16){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid17 = _errs75 === errors;}}}}}else {const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid7 = _errs71 === errors;if(_valid7 && valid16){valid16 = false;passing6 = [passing6, 1];}else {if(_valid7){valid16 = true;passing6 = 1;}}if(!valid16){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}var _valid1 = _errs67 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}}}}}}}if(!valid4){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}else {const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data17 = data.motivation;if(typeof data17 !== "string"){const err72 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("oa:identifying" !== data17){const err73 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.P2_has_type !== undefined){let data18 = data.P2_has_type;if(Array.isArray(data18)){if(data18.length > 3){const err74 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data18.length < 1){const err75 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const len7 = data18.length;var valid19 = len7 <= 1;if(!valid19){for(let i0=1; i0<len7; i0++){let data19 = data18[i0];const _errs83 = errors;const _errs84 = errors;let valid20 = false;let passing7 = null;const _errs85 = errors;const _errs86 = errors;let valid21 = false;let passing8 = null;const _errs87 = errors;if(typeof data19 !== "string"){const err76 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(!((((data19 === "edit:qualityLowCertainty") || (data19 === "edit:qualityMediumCertainty")) || (data19 === "edit:qualityHighCertainty")) || (data19 === "edit:qualityUnknownCertainty"))){const err77 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid9 = _errs87 === errors;if(_valid9){valid21 = true;passing8 = 0;}if(!valid21){const err78 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}var _valid8 = _errs85 === errors;if(_valid8){valid20 = true;passing7 = 0;}const _errs89 = errors;const _errs90 = errors;let valid22 = false;let passing9 = null;const _errs91 = errors;if(typeof data19 !== "string"){const err79 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(!((((data19 === "edit:qualityLowPrecision") || (data19 === "edit:qualityMediumPrecision")) || (data19 === "edit:qualityHighPrecision")) || (data19 === "edit:qualityUnknownPrecision"))){const err80 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var _valid10 = _errs91 === errors;if(_valid10){valid22 = true;passing9 = 0;}if(!valid22){const err81 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}}var _valid8 = _errs89 === errors;if(_valid8 && valid20){valid20 = false;passing7 = [passing7, 1];}else {if(_valid8){valid20 = true;passing7 = 1;}}if(!valid20){const err82 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs84;if(vErrors !== null){if(_errs84){vErrors.length = _errs84;}else {vErrors = null;}}}var valid19 = _errs83 === errors;}}const len8 = data18.length;if(len8 > 0){let data20 = data18[0];if(typeof data20 !== "string"){const err83 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("oa:identifying" !== data20){const err84 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid0 = _errs77 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs95 = errors;const _errs96 = errors;let valid24 = true;const _errs97 = errors;if(errors === _errs97){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data21 = data.body;const _errs99 = errors;if(errors === _errs99){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type !== undefined){let data22 = data21.type;if(typeof data22 !== "string"){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("crm:E28_Conceptual_Object" !== data22){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}else {const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}var _valid11 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}let ifClause1;if(_valid11){const _errs103 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data23 = data.motivation;if(typeof data23 !== "string"){const err91 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if("oa:tagging" !== data23){const err92 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data.P2_has_type !== undefined){let data24 = data.P2_has_type;if(Array.isArray(data24)){if(data24.length > 3){const err93 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data24.length < 1){const err94 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const len9 = data24.length;var valid28 = len9 <= 1;if(!valid28){for(let i1=1; i1<len9; i1++){let data25 = data24[i1];const _errs109 = errors;const _errs110 = errors;let valid29 = false;let passing10 = null;const _errs111 = errors;const _errs112 = errors;let valid30 = false;let passing11 = null;const _errs113 = errors;if(typeof data25 !== "string"){const err95 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(!((((data25 === "edit:qualityLowCertainty") || (data25 === "edit:qualityMediumCertainty")) || (data25 === "edit:qualityHighCertainty")) || (data25 === "edit:qualityUnknownCertainty"))){const err96 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}var _valid13 = _errs113 === errors;if(_valid13){valid30 = true;passing11 = 0;}if(!valid30){const err97 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}}var _valid12 = _errs111 === errors;if(_valid12){valid29 = true;passing10 = 0;}const _errs115 = errors;const _errs116 = errors;let valid31 = false;let passing12 = null;const _errs117 = errors;if(typeof data25 !== "string"){const err98 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(!((((data25 === "edit:qualityLowPrecision") || (data25 === "edit:qualityMediumPrecision")) || (data25 === "edit:qualityHighPrecision")) || (data25 === "edit:qualityUnknownPrecision"))){const err99 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var _valid14 = _errs117 === errors;if(_valid14){valid31 = true;passing12 = 0;}if(!valid31){const err100 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}var _valid12 = _errs115 === errors;if(_valid12 && valid29){valid29 = false;passing10 = [passing10, 1];}else {if(_valid12){valid29 = true;passing10 = 1;}}if(!valid29){const err101 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}}var valid28 = _errs109 === errors;}}const len10 = data24.length;if(len10 > 0){let data26 = data24[0];if(typeof data26 !== "string"){const err102 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if("oa:tagging" !== data26){const err103 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid11 = _errs103 === errors;valid24 = _valid11;ifClause1 = "then";}else {const _errs121 = errors;const _errs122 = errors;let valid33 = true;const _errs123 = errors;if(errors === _errs123){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data27 = data.body;const _errs125 = errors;if(errors === _errs125){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type !== undefined){let data28 = data27.type;const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data28)){if(data28.length > 2){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data28.length < 2){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {const len11 = data28.length;if(len11 > 0){let data29 = data28[0];const _errs129 = errors;if(typeof data29 !== "string"){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("TextualBody" !== data29){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var valid36 = _errs129 === errors;}if(valid36){if(len11 > 1){let data30 = data28[1];const _errs131 = errors;if(typeof data30 !== "string"){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if("crm:E33_Linguistic_Object" !== data30){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid36 = _errs131 === errors;}}}}}else {const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}else {const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}}else {const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid15 = _errs123 === errors;errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}let ifClause2;if(_valid15){const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data31 = data.motivation;if(typeof data31 !== "string"){const err115 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("oa:describing" !== data31){const err116 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data.P2_has_type !== undefined){let data32 = data.P2_has_type;if(Array.isArray(data32)){if(data32.length > 3){const err117 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data32.length < 1){const err118 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const len12 = data32.length;var valid38 = len12 <= 1;if(!valid38){for(let i2=1; i2<len12; i2++){let data33 = data32[i2];const _errs139 = errors;const _errs140 = errors;let valid39 = false;let passing13 = null;const _errs141 = errors;const _errs142 = errors;let valid40 = false;let passing14 = null;const _errs143 = errors;if(typeof data33 !== "string"){const err119 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(!((((data33 === "edit:qualityLowCertainty") || (data33 === "edit:qualityMediumCertainty")) || (data33 === "edit:qualityHighCertainty")) || (data33 === "edit:qualityUnknownCertainty"))){const err120 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid17 = _errs143 === errors;if(_valid17){valid40 = true;passing14 = 0;}if(!valid40){const err121 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}var _valid16 = _errs141 === errors;if(_valid16){valid39 = true;passing13 = 0;}const _errs145 = errors;const _errs146 = errors;let valid41 = false;let passing15 = null;const _errs147 = errors;if(typeof data33 !== "string"){const err122 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if(!((((data33 === "edit:qualityLowPrecision") || (data33 === "edit:qualityMediumPrecision")) || (data33 === "edit:qualityHighPrecision")) || (data33 === "edit:qualityUnknownPrecision"))){const err123 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid18 = _errs147 === errors;if(_valid18){valid41 = true;passing15 = 0;}if(!valid41){const err124 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}var _valid16 = _errs145 === errors;if(_valid16 && valid39){valid39 = false;passing13 = [passing13, 1];}else {if(_valid16){valid39 = true;passing13 = 1;}}if(!valid39){const err125 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}var valid38 = _errs139 === errors;}}const len13 = data32.length;if(len13 > 0){let data34 = data32[0];if(typeof data34 !== "string"){const err126 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if("oa:describing" !== data34){const err127 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var _valid15 = _errs133 === errors;valid33 = _valid15;ifClause2 = "then";}else {const _errs151 = errors;const _errs152 = errors;let valid43 = true;const _errs153 = errors;if(errors === _errs153){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data35 = data.body;const _errs155 = errors;if(errors === _errs155){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.type !== undefined){let data36 = data35.type;const _errs157 = errors;if(errors === _errs157){if(Array.isArray(data36)){if(data36.length > 3){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {if(data36.length < 3){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {const len14 = data36.length;if(len14 > 0){let data37 = data36[0];const _errs159 = errors;if(typeof data37 !== "string"){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("TextualBody" !== data37){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var valid46 = _errs159 === errors;}if(valid46){if(len14 > 1){let data38 = data36[1];const _errs161 = errors;if(typeof data38 !== "string"){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if("fabio:Correction" !== data38){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var valid46 = _errs161 === errors;}if(valid46){if(len14 > 2){let data39 = data36[2];const _errs163 = errors;if(typeof data39 !== "string"){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("crm:E33_Linguistic_Object" !== data39){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var valid46 = _errs163 === errors;}}}}}}else {const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}}}else {const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}}else {const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid19 = _errs153 === errors;errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}let ifClause3;if(_valid19){const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data40 = data.motivation;if(typeof data40 !== "string"){const err141 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if("correcting" !== data40){const err142 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data.P2_has_type !== undefined){let data41 = data.P2_has_type;if(Array.isArray(data41)){if(data41.length > 3){const err143 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data41.length < 1){const err144 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const len15 = data41.length;var valid48 = len15 <= 1;if(!valid48){for(let i3=1; i3<len15; i3++){let data42 = data41[i3];const _errs171 = errors;const _errs172 = errors;let valid49 = false;let passing16 = null;const _errs173 = errors;const _errs174 = errors;let valid50 = false;let passing17 = null;const _errs175 = errors;if(typeof data42 !== "string"){const err145 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(!((((data42 === "edit:qualityLowCertainty") || (data42 === "edit:qualityMediumCertainty")) || (data42 === "edit:qualityHighCertainty")) || (data42 === "edit:qualityUnknownCertainty"))){const err146 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var _valid21 = _errs175 === errors;if(_valid21){valid50 = true;passing17 = 0;}if(!valid50){const err147 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}}var _valid20 = _errs173 === errors;if(_valid20){valid49 = true;passing16 = 0;}const _errs177 = errors;const _errs178 = errors;let valid51 = false;let passing18 = null;const _errs179 = errors;if(typeof data42 !== "string"){const err148 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(!((((data42 === "edit:qualityLowPrecision") || (data42 === "edit:qualityMediumPrecision")) || (data42 === "edit:qualityHighPrecision")) || (data42 === "edit:qualityUnknownPrecision"))){const err149 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid22 = _errs179 === errors;if(_valid22){valid51 = true;passing18 = 0;}if(!valid51){const err150 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}var _valid20 = _errs177 === errors;if(_valid20 && valid49){valid49 = false;passing16 = [passing16, 1];}else {if(_valid20){valid49 = true;passing16 = 1;}}if(!valid49){const err151 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}var valid48 = _errs171 === errors;}}const len16 = data41.length;if(len16 > 0){let data43 = data41[0];if(typeof data43 !== "string"){const err152 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("correcting" !== data43){const err153 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid19 = _errs165 === errors;valid43 = _valid19;ifClause3 = "then";}else {const _errs183 = errors;const _errs184 = errors;let valid53 = true;const _errs185 = errors;if(errors === _errs185){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data44 = data.body;const _errs187 = errors;if(errors === _errs187){if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type !== undefined){let data45 = data44.type;if(typeof data45 !== "string"){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if("crmdig:D1_Digital_Object" !== data45){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}else {const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}else {const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid23 = _errs185 === errors;errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}let ifClause4;if(_valid23){const _errs191 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data46 = data.motivation;if(typeof data46 !== "string"){const err160 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if("oa:linking" !== data46){const err161 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data.P2_has_type !== undefined){let data47 = data.P2_has_type;if(Array.isArray(data47)){if(data47.length > 3){const err162 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data47.length < 1){const err163 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const len17 = data47.length;var valid57 = len17 <= 1;if(!valid57){for(let i4=1; i4<len17; i4++){let data48 = data47[i4];const _errs197 = errors;const _errs198 = errors;let valid58 = false;let passing19 = null;const _errs199 = errors;const _errs200 = errors;let valid59 = false;let passing20 = null;const _errs201 = errors;if(typeof data48 !== "string"){const err164 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(!((((data48 === "edit:qualityLowCertainty") || (data48 === "edit:qualityMediumCertainty")) || (data48 === "edit:qualityHighCertainty")) || (data48 === "edit:qualityUnknownCertainty"))){const err165 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}var _valid25 = _errs201 === errors;if(_valid25){valid59 = true;passing20 = 0;}if(!valid59){const err166 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}var _valid24 = _errs199 === errors;if(_valid24){valid58 = true;passing19 = 0;}const _errs203 = errors;const _errs204 = errors;let valid60 = false;let passing21 = null;const _errs205 = errors;if(typeof data48 !== "string"){const err167 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(!((((data48 === "edit:qualityLowPrecision") || (data48 === "edit:qualityMediumPrecision")) || (data48 === "edit:qualityHighPrecision")) || (data48 === "edit:qualityUnknownPrecision"))){const err168 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid26 = _errs205 === errors;if(_valid26){valid60 = true;passing21 = 0;}if(!valid60){const err169 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs204;if(vErrors !== null){if(_errs204){vErrors.length = _errs204;}else {vErrors = null;}}}var _valid24 = _errs203 === errors;if(_valid24 && valid58){valid58 = false;passing19 = [passing19, 1];}else {if(_valid24){valid58 = true;passing19 = 1;}}if(!valid58){const err170 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {errors = _errs198;if(vErrors !== null){if(_errs198){vErrors.length = _errs198;}else {vErrors = null;}}}var valid57 = _errs197 === errors;}}const len18 = data47.length;if(len18 > 0){let data49 = data47[0];if(typeof data49 !== "string"){const err171 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("oa:linking" !== data49){const err172 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}}else {const err174 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}var _valid23 = _errs191 === errors;valid53 = _valid23;ifClause4 = "then";}else {const _errs209 = errors;const _errs210 = errors;let valid62 = true;const _errs211 = errors;if(errors === _errs211){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data50 = data.body;const _errs213 = errors;if(errors === _errs213){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type !== undefined){let data51 = data50.type;const _errs215 = errors;if(errors === _errs215){if(Array.isArray(data51)){if(data51.length > 2){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data51.length < 2){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {const len19 = data51.length;if(len19 > 0){let data52 = data51[0];const _errs217 = errors;if(typeof data52 !== "string"){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if("cito:Citation" !== data52){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var valid65 = _errs217 === errors;}if(valid65){if(len19 > 1){let data53 = data51[1];const _errs219 = errors;if(typeof data53 !== "string"){const err179 = {};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("crm:E73_Information_Object" !== data53){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}var valid65 = _errs219 === errors;}}}}}else {const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}}else {const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}}else {const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}var _valid27 = _errs211 === errors;errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}if(_valid27){const _errs221 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data54 = data.motivation;if(typeof data54 !== "string"){const err184 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if("citing" !== data54){const err185 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data.P2_has_type !== undefined){let data55 = data.P2_has_type;if(Array.isArray(data55)){if(data55.length > 3){const err186 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data55.length < 1){const err187 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}const len20 = data55.length;var valid67 = len20 <= 1;if(!valid67){for(let i5=1; i5<len20; i5++){let data56 = data55[i5];const _errs227 = errors;const _errs228 = errors;let valid68 = false;let passing22 = null;const _errs229 = errors;const _errs230 = errors;let valid69 = false;let passing23 = null;const _errs231 = errors;if(typeof data56 !== "string"){const err188 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(!((((data56 === "edit:qualityLowCertainty") || (data56 === "edit:qualityMediumCertainty")) || (data56 === "edit:qualityHighCertainty")) || (data56 === "edit:qualityUnknownCertainty"))){const err189 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}var _valid29 = _errs231 === errors;if(_valid29){valid69 = true;passing23 = 0;}if(!valid69){const err190 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs230;if(vErrors !== null){if(_errs230){vErrors.length = _errs230;}else {vErrors = null;}}}var _valid28 = _errs229 === errors;if(_valid28){valid68 = true;passing22 = 0;}const _errs233 = errors;const _errs234 = errors;let valid70 = false;let passing24 = null;const _errs235 = errors;if(typeof data56 !== "string"){const err191 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(!((((data56 === "edit:qualityLowPrecision") || (data56 === "edit:qualityMediumPrecision")) || (data56 === "edit:qualityHighPrecision")) || (data56 === "edit:qualityUnknownPrecision"))){const err192 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid30 = _errs235 === errors;if(_valid30){valid70 = true;passing24 = 0;}if(!valid70){const err193 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}var _valid28 = _errs233 === errors;if(_valid28 && valid68){valid68 = false;passing22 = [passing22, 1];}else {if(_valid28){valid68 = true;passing22 = 1;}}if(!valid68){const err194 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var valid67 = _errs227 === errors;}}const len21 = data55.length;if(len21 > 0){let data57 = data55[0];if(typeof data57 !== "string"){const err195 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if("citing" !== data57){const err196 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}}else {const err197 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}else {const err198 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var _valid27 = _errs221 === errors;valid62 = _valid27;}if(!valid62){const err199 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}var _valid23 = _errs209 === errors;valid53 = _valid23;ifClause4 = "else";}if(!valid53){const err200 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var _valid19 = _errs183 === errors;valid43 = _valid19;ifClause3 = "else";}if(!valid43){const err201 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}var _valid15 = _errs151 === errors;valid33 = _valid15;ifClause2 = "else";}if(!valid33){const err202 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}var _valid11 = _errs121 === errors;valid24 = _valid11;ifClause1 = "else";}if(!valid24){const err203 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var _valid0 = _errs95 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err204 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}const _errs240 = errors;let valid72 = true;const _errs241 = errors;if(errors === _errs241){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data58 = data.body;const _errs243 = errors;if(errors === _errs243){if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.type !== undefined){let data59 = data58.type;if(typeof data59 !== "string"){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("Choice" !== data59){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}else {const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}}else {const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var _valid31 = _errs241 === errors;errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}let ifClause5;if(_valid31){const _errs247 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){if(!(validate12(data.body, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}}else {const err209 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}var _valid31 = _errs247 === errors;valid72 = _valid31;ifClause5 = "then";}else {const _errs250 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data61 = data.body;const _errs253 = errors;let valid77 = false;let passing25 = null;const _errs254 = errors;const _errs257 = errors;let valid79 = false;const _errs258 = errors;const _errs259 = errors;let valid80 = true;const _errs260 = errors;if(errors === _errs260){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.type !== undefined){let data62 = data61.type;const _errs263 = errors;let valid82 = false;const _errs264 = errors;if(errors === _errs264){if(Array.isArray(data62)){if(data62.length > 2){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data62.length < 2){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}else {const len22 = data62.length;if(len22 > 0){let data63 = data62[0];const _errs266 = errors;if(typeof data63 !== "string"){const err212 = {};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if("TextualBody" !== data63){const err213 = {};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var valid83 = _errs266 === errors;}if(valid83){if(len22 > 1){let data64 = data62[1];const _errs268 = errors;if(typeof data64 !== "string"){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if("crm:E33_Linguistic_Object" !== data64){const err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}var valid83 = _errs268 === errors;}}}}}else {const err216 = {};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}var _valid35 = _errs264 === errors;valid82 = valid82 || _valid35;if(!valid82){const _errs270 = errors;if(errors === _errs270){if(Array.isArray(data62)){if(data62.length > 3){const err217 = {};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {if(data62.length < 3){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}else {const len23 = data62.length;if(len23 > 0){let data65 = data62[0];const _errs272 = errors;if(typeof data65 !== "string"){const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if("TextualBody" !== data65){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}var valid84 = _errs272 === errors;}if(valid84){if(len23 > 1){let data66 = data62[1];const _errs274 = errors;if(typeof data66 !== "string"){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if("xsd:date" !== data66){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var valid84 = _errs274 === errors;}if(valid84){if(len23 > 2){let data67 = data62[2];const _errs276 = errors;if(typeof data67 !== "string"){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if("crm:E52_Time-Span" !== data67){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid84 = _errs276 === errors;}}}}}}else {const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}var _valid35 = _errs270 === errors;valid82 = valid82 || _valid35;if(!valid82){const _errs278 = errors;if(errors === _errs278){if(Array.isArray(data62)){if(data62.length > 3){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}else {if(data62.length < 3){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {const len24 = data62.length;if(len24 > 0){let data68 = data62[0];const _errs280 = errors;if(typeof data68 !== "string"){const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if("TextualBody" !== data68){const err229 = {};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}var valid85 = _errs280 === errors;}if(valid85){if(len24 > 1){let data69 = data62[1];const _errs282 = errors;if(typeof data69 !== "string"){const err230 = {};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if("fabio:Correction" !== data69){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var valid85 = _errs282 === errors;}if(valid85){if(len24 > 2){let data70 = data62[2];const _errs284 = errors;if(typeof data70 !== "string"){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if("crm:E33_Linguistic_Object" !== data70){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var valid85 = _errs284 === errors;}}}}}}else {const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}var _valid35 = _errs278 === errors;valid82 = valid82 || _valid35;}}if(!valid82){const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {errors = _errs263;if(vErrors !== null){if(_errs263){vErrors.length = _errs263;}else {vErrors = null;}}}}}else {const err236 = {};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}var _valid34 = _errs260 === errors;errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}if(_valid34){const _errs286 = errors;const _errs288 = errors;let valid86 = true;const _errs289 = errors;if(errors === _errs289){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.type !== undefined){let data71 = data61.type;const _errs291 = errors;if(errors === _errs291){if(Array.isArray(data71)){if(data71.length > 3){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}else {if(data71.length < 3){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {const len25 = data71.length;if(len25 > 0){let data72 = data71[0];const _errs293 = errors;if(typeof data72 !== "string"){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("TextualBody" !== data72){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var valid88 = _errs293 === errors;}if(valid88){if(len25 > 1){let data73 = data71[1];const _errs295 = errors;if(typeof data73 !== "string"){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if("xsd:date" !== data73){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}var valid88 = _errs295 === errors;}if(valid88){if(len25 > 2){let data74 = data71[2];const _errs297 = errors;if(typeof data74 !== "string"){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("crm:E52_Time-Span" !== data74){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}var valid88 = _errs297 === errors;}}}}}}else {const err245 = {};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}}else {const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}var _valid36 = _errs289 === errors;errors = _errs288;if(vErrors !== null){if(_errs288){vErrors.length = _errs288;}else {vErrors = null;}}if(_valid36){const _errs299 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err247 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data61.type === undefined){const err248 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data61.value === undefined){const err249 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data61.value !== undefined){let data75 = data61.value;if(typeof data75 === "string"){if(!pattern0.test(data75)){const err250 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}else {const err251 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid36 = _errs299 === errors;valid86 = _valid36;}if(!valid86){const err253 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err254 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(data61.type === undefined){const err255 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data61.value === undefined){const err256 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}else {const err257 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid34 = _errs286 === errors;valid80 = _valid34;}if(!valid80){const err258 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}var _valid33 = _errs258 === errors;valid79 = valid79 || _valid33;if(!valid79){const err259 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err260 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if(data61.type === undefined){const err261 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}for(const key0 in data61){if(!((((((key0 === "id") || (key0 === "type")) || (key0 === "value")) || (key0 === "label")) || (key0 === "P2_has_type")) || (key0 === "description"))){const err262 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data61.id !== undefined){let data76 = data61.id;if(typeof data76 === "string"){if(!(formats0(data76))){const err263 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data61.type !== undefined){let data77 = data61.type;const _errs307 = errors;let valid91 = false;let passing26 = null;const _errs308 = errors;const _errs309 = errors;let valid92 = false;let passing27 = null;const _errs310 = errors;if(typeof data77 !== "string"){const err265 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}if("crm:E21_Person" !== data77){const err266 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}var _valid38 = _errs310 === errors;if(_valid38){valid92 = true;passing27 = 0;}const _errs312 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err267 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data77.length < 2){const err268 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const len26 = data77.length;if(len26 > 0){let data78 = data77[0];if(typeof data78 !== "string"){const err269 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if("foaf:Person" !== data78){const err270 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}if(len26 > 1){let data79 = data77[1];if(typeof data79 !== "string"){const err271 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}if("crm:E89_Propositional_Object" !== data79){const err272 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}else {const err273 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid38 = _errs312 === errors;if(_valid38 && valid92){valid92 = false;passing27 = [passing27, 1];}else {if(_valid38){valid92 = true;passing27 = 1;}}if(!valid92){const err274 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing27},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var _valid37 = _errs308 === errors;if(_valid37){valid91 = true;passing26 = 0;}const _errs318 = errors;const _errs319 = errors;let valid94 = false;let passing28 = null;const _errs320 = errors;if(typeof data77 !== "string"){const err275 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if("crm:E53_Place" !== data77){const err276 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var _valid39 = _errs320 === errors;if(_valid39){valid94 = true;passing28 = 0;}const _errs322 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err277 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data77.length < 2){const err278 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}const len27 = data77.length;if(len27 > 0){let data80 = data77[0];if(typeof data80 !== "string"){const err279 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}if("biography:fictionalPlace" !== data80){const err280 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(len27 > 1){let data81 = data77[1];if(typeof data81 !== "string"){const err281 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}if("crm:E89_Propositional_Object" !== data81){const err282 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid39 = _errs322 === errors;if(_valid39 && valid94){valid94 = false;passing28 = [passing28, 1];}else {if(_valid39){valid94 = true;passing28 = 1;}}if(!valid94){const err284 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing28},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {errors = _errs319;if(vErrors !== null){if(_errs319){vErrors.length = _errs319;}else {vErrors = null;}}}var _valid37 = _errs318 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 1];}else {if(_valid37){valid91 = true;passing26 = 1;}const _errs328 = errors;const _errs329 = errors;let valid96 = false;let passing29 = null;const _errs330 = errors;if(typeof data77 !== "string"){const err285 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if("crm:E74_Group" !== data77){const err286 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}var _valid40 = _errs330 === errors;if(_valid40){valid96 = true;passing29 = 0;}const _errs332 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err287 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data77.length < 2){const err288 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}const len28 = data77.length;if(len28 > 0){let data82 = data77[0];if(typeof data82 !== "string"){const err289 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}if("foaf:Organization" !== data82){const err290 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(len28 > 1){let data83 = data77[1];if(typeof data83 !== "string"){const err291 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if("crm:E89_Propositional_Object" !== data83){const err292 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}}else {const err293 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var _valid40 = _errs332 === errors;if(_valid40 && valid96){valid96 = false;passing29 = [passing29, 1];}else {if(_valid40){valid96 = true;passing29 = 1;}}if(!valid96){const err294 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing29},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}}var _valid37 = _errs328 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 2];}else {if(_valid37){valid91 = true;passing26 = 2;}const _errs338 = errors;const _errs339 = errors;let valid98 = false;let passing30 = null;const _errs340 = errors;if(typeof data77 !== "string"){const err295 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("frbroo:F1" !== data77){const err296 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var _valid41 = _errs340 === errors;if(_valid41){valid98 = true;passing30 = 0;}const _errs342 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err297 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}if(data77.length < 2){const err298 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}const len29 = data77.length;if(len29 > 0){let data84 = data77[0];if(typeof data84 !== "string"){const err299 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if("frbroo:F1" !== data84){const err300 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}if(len29 > 1){let data85 = data77[1];if(typeof data85 !== "string"){const err301 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}if("wikidata:Q15306849" !== data85){const err302 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}}else {const err303 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var _valid41 = _errs342 === errors;if(_valid41 && valid98){valid98 = false;passing30 = [passing30, 1];}else {if(_valid41){valid98 = true;passing30 = 1;}}if(!valid98){const err304 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing30},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs339;if(vErrors !== null){if(_errs339){vErrors.length = _errs339;}else {vErrors = null;}}}var _valid37 = _errs338 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 3];}else {if(_valid37){valid91 = true;passing26 = 3;}const _errs348 = errors;const _errs349 = errors;let valid100 = false;let passing31 = null;const _errs350 = errors;if(typeof data77 !== "string"){const err305 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if("crm:E18_Physical_Thing" !== data77){const err306 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}var _valid42 = _errs350 === errors;if(_valid42){valid100 = true;passing31 = 0;}const _errs352 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err307 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data77.length < 2){const err308 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}const len30 = data77.length;if(len30 > 0){let data86 = data77[0];if(typeof data86 !== "string"){const err309 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}if("wikidata:Q15831596" !== data86){const err310 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}if(len30 > 1){let data87 = data77[1];if(typeof data87 !== "string"){const err311 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}if("crm:E89_Propositional_Object" !== data87){const err312 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}}else {const err313 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid42 = _errs352 === errors;if(_valid42 && valid100){valid100 = false;passing31 = [passing31, 1];}else {if(_valid42){valid100 = true;passing31 = 1;}}if(!valid100){const err314 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing31},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}else {errors = _errs349;if(vErrors !== null){if(_errs349){vErrors.length = _errs349;}else {vErrors = null;}}}var _valid37 = _errs348 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 4];}else {if(_valid37){valid91 = true;passing26 = 4;}const _errs358 = errors;if(typeof data77 !== "string"){const err315 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if("crm:E28_Conceptual_Object" !== data77){const err316 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}var _valid37 = _errs358 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 5];}else {if(_valid37){valid91 = true;passing26 = 5;}const _errs360 = errors;const _errs361 = errors;let valid102 = false;let passing32 = null;const _errs362 = errors;if(typeof data77 !== "string"){const err317 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}if("crm:E5_Event" !== data77){const err318 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid43 = _errs362 === errors;if(_valid43){valid102 = true;passing32 = 0;}const _errs364 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err319 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(data77.length < 2){const err320 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}const len31 = data77.length;if(len31 > 0){let data88 = data77[0];if(typeof data88 !== "string"){const err321 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}if("event:Event" !== data88){const err322 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}if(len31 > 1){let data89 = data77[1];if(typeof data89 !== "string"){const err323 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if("crm:E89_Propositional_Object" !== data89){const err324 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}}else {const err325 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}var _valid43 = _errs364 === errors;if(_valid43 && valid102){valid102 = false;passing32 = [passing32, 1];}else {if(_valid43){valid102 = true;passing32 = 1;}}if(!valid102){const err326 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing32},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}else {errors = _errs361;if(vErrors !== null){if(_errs361){vErrors.length = _errs361;}else {vErrors = null;}}}var _valid37 = _errs360 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 6];}else {if(_valid37){valid91 = true;passing26 = 6;}const _errs370 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err327 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}if(data77.length < 2){const err328 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}const len32 = data77.length;if(len32 > 0){let data90 = data77[0];if(typeof data90 !== "string"){const err329 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}if("cito:Citation" !== data90){const err330 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}if(len32 > 1){let data91 = data77[1];if(typeof data91 !== "string"){const err331 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if("crm:E73_Information_Object" !== data91){const err332 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}}else {const err333 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}var _valid37 = _errs370 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 7];}else {if(_valid37){valid91 = true;passing26 = 7;}const _errs376 = errors;if(Array.isArray(data77)){if(data77.length > 3){const err334 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(data77.length < 3){const err335 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}const len33 = data77.length;if(len33 > 0){let data92 = data77[0];if(typeof data92 !== "string"){const err336 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if("TextualBody" !== data92){const err337 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}if(len33 > 1){let data93 = data77[1];if(typeof data93 !== "string"){const err338 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if("xsd:date" !== data93){const err339 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(len33 > 2){let data94 = data77[2];if(typeof data94 !== "string"){const err340 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if("crm:E52_Time-Span" !== data94){const err341 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}}else {const err342 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}var _valid37 = _errs376 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 8];}else {if(_valid37){valid91 = true;passing26 = 8;}const _errs384 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err343 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if(data77.length < 2){const err344 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}const len34 = data77.length;if(len34 > 0){let data95 = data77[0];if(typeof data95 !== "string"){const err345 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if("TextualBody" !== data95){const err346 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(len34 > 1){let data96 = data77[1];if(typeof data96 !== "string"){const err347 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E33_Linguistic_Object" !== data96){const err348 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}var _valid37 = _errs384 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 9];}else {if(_valid37){valid91 = true;passing26 = 9;}const _errs390 = errors;if(Array.isArray(data77)){if(data77.length > 3){const err350 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(data77.length < 3){const err351 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}const len35 = data77.length;if(len35 > 0){let data97 = data77[0];if(typeof data97 !== "string"){const err352 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if("TextualBody" !== data97){const err353 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}if(len35 > 1){let data98 = data77[1];if(typeof data98 !== "string"){const err354 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if("fabio:Correction" !== data98){const err355 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}if(len35 > 2){let data99 = data77[2];if(typeof data99 !== "string"){const err356 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E33_Linguistic_Object" !== data99){const err357 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}}else {const err358 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}var _valid37 = _errs390 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 10];}else {if(_valid37){valid91 = true;passing26 = 10;}const _errs398 = errors;if(typeof data77 !== "string"){const err359 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("crmdig:D1_Digital_Object" !== data77){const err360 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}var _valid37 = _errs398 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 11];}else {if(_valid37){valid91 = true;passing26 = 11;}}}}}}}}}}}}if(!valid91){const err361 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing26},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}else {errors = _errs307;if(vErrors !== null){if(_errs307){vErrors.length = _errs307;}else {vErrors = null;}}}}if(data61.value !== undefined){if(typeof data61.value !== "string"){const err362 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}if(data61.label !== undefined){let data101 = data61.label;if(typeof data101 === "string"){if(func2(data101) < 1){const err363 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}else {const err364 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}if(data61.P2_has_type !== undefined){let data102 = data61.P2_has_type;if(Array.isArray(data102)){const len36 = data102.length;for(let i6=0; i6<len36; i6++){if(typeof data102[i6] !== "string"){const err365 = {instancePath:instancePath+"/body/P2_has_type/" + i6,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}else {const err366 = {instancePath:instancePath+"/body/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(data61.description !== undefined){if(typeof data61.description !== "string"){const err367 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}}else {const err368 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}var _valid32 = _errs254 === errors;if(_valid32){valid77 = true;passing25 = 0;}const _errs410 = errors;if(Array.isArray(data61)){if(data61.length < 1){const err369 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}const len37 = data61.length;for(let i7=0; i7<len37; i7++){let data105 = data61[i7];const _errs415 = errors;let valid113 = false;const _errs416 = errors;const _errs417 = errors;let valid114 = true;const _errs418 = errors;if(errors === _errs418){if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.type !== undefined){let data106 = data105.type;const _errs421 = errors;let valid116 = false;const _errs422 = errors;if(errors === _errs422){if(Array.isArray(data106)){if(data106.length > 2){const err370 = {};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}else {if(data106.length < 2){const err371 = {};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}else {const len38 = data106.length;if(len38 > 0){let data107 = data106[0];const _errs424 = errors;if(typeof data107 !== "string"){const err372 = {};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}if("TextualBody" !== data107){const err373 = {};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}var valid117 = _errs424 === errors;}if(valid117){if(len38 > 1){let data108 = data106[1];const _errs426 = errors;if(typeof data108 !== "string"){const err374 = {};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if("crm:E33_Linguistic_Object" !== data108){const err375 = {};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}var valid117 = _errs426 === errors;}}}}}else {const err376 = {};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}var _valid46 = _errs422 === errors;valid116 = valid116 || _valid46;if(!valid116){const _errs428 = errors;if(errors === _errs428){if(Array.isArray(data106)){if(data106.length > 3){const err377 = {};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}else {if(data106.length < 3){const err378 = {};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}else {const len39 = data106.length;if(len39 > 0){let data109 = data106[0];const _errs430 = errors;if(typeof data109 !== "string"){const err379 = {};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if("TextualBody" !== data109){const err380 = {};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}var valid118 = _errs430 === errors;}if(valid118){if(len39 > 1){let data110 = data106[1];const _errs432 = errors;if(typeof data110 !== "string"){const err381 = {};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if("xsd:date" !== data110){const err382 = {};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}var valid118 = _errs432 === errors;}if(valid118){if(len39 > 2){let data111 = data106[2];const _errs434 = errors;if(typeof data111 !== "string"){const err383 = {};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}if("crm:E52_Time-Span" !== data111){const err384 = {};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}var valid118 = _errs434 === errors;}}}}}}else {const err385 = {};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}var _valid46 = _errs428 === errors;valid116 = valid116 || _valid46;if(!valid116){const _errs436 = errors;if(errors === _errs436){if(Array.isArray(data106)){if(data106.length > 3){const err386 = {};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}else {if(data106.length < 3){const err387 = {};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}else {const len40 = data106.length;if(len40 > 0){let data112 = data106[0];const _errs438 = errors;if(typeof data112 !== "string"){const err388 = {};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if("TextualBody" !== data112){const err389 = {};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}var valid119 = _errs438 === errors;}if(valid119){if(len40 > 1){let data113 = data106[1];const _errs440 = errors;if(typeof data113 !== "string"){const err390 = {};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}if("fabio:Correction" !== data113){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}var valid119 = _errs440 === errors;}if(valid119){if(len40 > 2){let data114 = data106[2];const _errs442 = errors;if(typeof data114 !== "string"){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}if("crm:E33_Linguistic_Object" !== data114){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid119 = _errs442 === errors;}}}}}}else {const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}var _valid46 = _errs436 === errors;valid116 = valid116 || _valid46;}}if(!valid116){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {errors = _errs421;if(vErrors !== null){if(_errs421){vErrors.length = _errs421;}else {vErrors = null;}}}}}else {const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var _valid45 = _errs418 === errors;errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}if(_valid45){const _errs444 = errors;const _errs446 = errors;let valid120 = true;const _errs447 = errors;if(errors === _errs447){if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.type !== undefined){let data115 = data105.type;const _errs449 = errors;if(errors === _errs449){if(Array.isArray(data115)){if(data115.length > 3){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(data115.length < 3){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {const len41 = data115.length;if(len41 > 0){let data116 = data115[0];const _errs451 = errors;if(typeof data116 !== "string"){const err399 = {};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if("TextualBody" !== data116){const err400 = {};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var valid122 = _errs451 === errors;}if(valid122){if(len41 > 1){let data117 = data115[1];const _errs453 = errors;if(typeof data117 !== "string"){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}if("xsd:date" !== data117){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}var valid122 = _errs453 === errors;}if(valid122){if(len41 > 2){let data118 = data115[2];const _errs455 = errors;if(typeof data118 !== "string"){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if("crm:E52_Time-Span" !== data118){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid122 = _errs455 === errors;}}}}}}else {const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}}}else {const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}var _valid47 = _errs447 === errors;errors = _errs446;if(vErrors !== null){if(_errs446){vErrors.length = _errs446;}else {vErrors = null;}}if(_valid47){const _errs457 = errors;if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.id === undefined){const err407 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if(data105.type === undefined){const err408 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data105.value === undefined){const err409 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}if(data105.value !== undefined){let data119 = data105.value;if(typeof data119 === "string"){if(!pattern0.test(data119)){const err410 = {instancePath:instancePath+"/body/" + i7+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}else {const err411 = {instancePath:instancePath+"/body/" + i7+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}}else {const err412 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}var _valid47 = _errs457 === errors;valid120 = _valid47;}if(!valid120){const err413 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.id === undefined){const err414 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}if(data105.type === undefined){const err415 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if(data105.value === undefined){const err416 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}else {const err417 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid45 = _errs444 === errors;valid114 = _valid45;}if(!valid114){const err418 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}var _valid44 = _errs416 === errors;valid113 = valid113 || _valid44;if(!valid113){const err419 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {errors = _errs415;if(vErrors !== null){if(_errs415){vErrors.length = _errs415;}else {vErrors = null;}}}if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.id === undefined){const err420 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}if(data105.type === undefined){const err421 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}for(const key1 in data105){if(!((((((key1 === "id") || (key1 === "type")) || (key1 === "value")) || (key1 === "label")) || (key1 === "P2_has_type")) || (key1 === "description"))){const err422 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}if(data105.id !== undefined){let data120 = data105.id;if(typeof data120 === "string"){if(!(formats0(data120))){const err423 = {instancePath:instancePath+"/body/" + i7+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}}else {const err424 = {instancePath:instancePath+"/body/" + i7+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(data105.type !== undefined){let data121 = data105.type;const _errs465 = errors;let valid125 = false;let passing33 = null;const _errs466 = errors;const _errs467 = errors;let valid126 = false;let passing34 = null;const _errs468 = errors;if(typeof data121 !== "string"){const err425 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if("crm:E21_Person" !== data121){const err426 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}var _valid49 = _errs468 === errors;if(_valid49){valid126 = true;passing34 = 0;}const _errs470 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err427 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if(data121.length < 2){const err428 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}const len42 = data121.length;if(len42 > 0){let data122 = data121[0];if(typeof data122 !== "string"){const err429 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}if("foaf:Person" !== data122){const err430 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}if(len42 > 1){let data123 = data121[1];if(typeof data123 !== "string"){const err431 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if("crm:E89_Propositional_Object" !== data123){const err432 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}}else {const err433 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}var _valid49 = _errs470 === errors;if(_valid49 && valid126){valid126 = false;passing34 = [passing34, 1];}else {if(_valid49){valid126 = true;passing34 = 1;}}if(!valid126){const err434 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing34},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}else {errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}}var _valid48 = _errs466 === errors;if(_valid48){valid125 = true;passing33 = 0;}const _errs476 = errors;const _errs477 = errors;let valid128 = false;let passing35 = null;const _errs478 = errors;if(typeof data121 !== "string"){const err435 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if("crm:E53_Place" !== data121){const err436 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid50 = _errs478 === errors;if(_valid50){valid128 = true;passing35 = 0;}const _errs480 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err437 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data121.length < 2){const err438 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}const len43 = data121.length;if(len43 > 0){let data124 = data121[0];if(typeof data124 !== "string"){const err439 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if("biography:fictionalPlace" !== data124){const err440 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}if(len43 > 1){let data125 = data121[1];if(typeof data125 !== "string"){const err441 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if("crm:E89_Propositional_Object" !== data125){const err442 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}else {const err443 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var _valid50 = _errs480 === errors;if(_valid50 && valid128){valid128 = false;passing35 = [passing35, 1];}else {if(_valid50){valid128 = true;passing35 = 1;}}if(!valid128){const err444 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing35},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {errors = _errs477;if(vErrors !== null){if(_errs477){vErrors.length = _errs477;}else {vErrors = null;}}}var _valid48 = _errs476 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 1];}else {if(_valid48){valid125 = true;passing33 = 1;}const _errs486 = errors;const _errs487 = errors;let valid130 = false;let passing36 = null;const _errs488 = errors;if(typeof data121 !== "string"){const err445 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}if("crm:E74_Group" !== data121){const err446 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}var _valid51 = _errs488 === errors;if(_valid51){valid130 = true;passing36 = 0;}const _errs490 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err447 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}if(data121.length < 2){const err448 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}const len44 = data121.length;if(len44 > 0){let data126 = data121[0];if(typeof data126 !== "string"){const err449 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if("foaf:Organization" !== data126){const err450 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}if(len44 > 1){let data127 = data121[1];if(typeof data127 !== "string"){const err451 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if("crm:E89_Propositional_Object" !== data127){const err452 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}else {const err453 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}var _valid51 = _errs490 === errors;if(_valid51 && valid130){valid130 = false;passing36 = [passing36, 1];}else {if(_valid51){valid130 = true;passing36 = 1;}}if(!valid130){const err454 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing36},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {errors = _errs487;if(vErrors !== null){if(_errs487){vErrors.length = _errs487;}else {vErrors = null;}}}var _valid48 = _errs486 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 2];}else {if(_valid48){valid125 = true;passing33 = 2;}const _errs496 = errors;const _errs497 = errors;let valid132 = false;let passing37 = null;const _errs498 = errors;if(typeof data121 !== "string"){const err455 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}if("frbroo:F1" !== data121){const err456 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}var _valid52 = _errs498 === errors;if(_valid52){valid132 = true;passing37 = 0;}const _errs500 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err457 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if(data121.length < 2){const err458 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}const len45 = data121.length;if(len45 > 0){let data128 = data121[0];if(typeof data128 !== "string"){const err459 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if("frbroo:F1" !== data128){const err460 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}if(len45 > 1){let data129 = data121[1];if(typeof data129 !== "string"){const err461 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if("wikidata:Q15306849" !== data129){const err462 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}else {const err463 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}var _valid52 = _errs500 === errors;if(_valid52 && valid132){valid132 = false;passing37 = [passing37, 1];}else {if(_valid52){valid132 = true;passing37 = 1;}}if(!valid132){const err464 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing37},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {errors = _errs497;if(vErrors !== null){if(_errs497){vErrors.length = _errs497;}else {vErrors = null;}}}var _valid48 = _errs496 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 3];}else {if(_valid48){valid125 = true;passing33 = 3;}const _errs506 = errors;const _errs507 = errors;let valid134 = false;let passing38 = null;const _errs508 = errors;if(typeof data121 !== "string"){const err465 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if("crm:E18_Physical_Thing" !== data121){const err466 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}var _valid53 = _errs508 === errors;if(_valid53){valid134 = true;passing38 = 0;}const _errs510 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err467 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data121.length < 2){const err468 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}const len46 = data121.length;if(len46 > 0){let data130 = data121[0];if(typeof data130 !== "string"){const err469 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if("wikidata:Q15831596" !== data130){const err470 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}if(len46 > 1){let data131 = data121[1];if(typeof data131 !== "string"){const err471 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if("crm:E89_Propositional_Object" !== data131){const err472 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}else {const err473 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}var _valid53 = _errs510 === errors;if(_valid53 && valid134){valid134 = false;passing38 = [passing38, 1];}else {if(_valid53){valid134 = true;passing38 = 1;}}if(!valid134){const err474 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing38},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}else {errors = _errs507;if(vErrors !== null){if(_errs507){vErrors.length = _errs507;}else {vErrors = null;}}}var _valid48 = _errs506 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 4];}else {if(_valid48){valid125 = true;passing33 = 4;}const _errs516 = errors;if(typeof data121 !== "string"){const err475 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if("crm:E28_Conceptual_Object" !== data121){const err476 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}var _valid48 = _errs516 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 5];}else {if(_valid48){valid125 = true;passing33 = 5;}const _errs518 = errors;const _errs519 = errors;let valid136 = false;let passing39 = null;const _errs520 = errors;if(typeof data121 !== "string"){const err477 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if("crm:E5_Event" !== data121){const err478 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}var _valid54 = _errs520 === errors;if(_valid54){valid136 = true;passing39 = 0;}const _errs522 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err479 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if(data121.length < 2){const err480 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}const len47 = data121.length;if(len47 > 0){let data132 = data121[0];if(typeof data132 !== "string"){const err481 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if("event:Event" !== data132){const err482 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}if(len47 > 1){let data133 = data121[1];if(typeof data133 !== "string"){const err483 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}if("crm:E89_Propositional_Object" !== data133){const err484 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}}}else {const err485 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}var _valid54 = _errs522 === errors;if(_valid54 && valid136){valid136 = false;passing39 = [passing39, 1];}else {if(_valid54){valid136 = true;passing39 = 1;}}if(!valid136){const err486 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing39},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}else {errors = _errs519;if(vErrors !== null){if(_errs519){vErrors.length = _errs519;}else {vErrors = null;}}}var _valid48 = _errs518 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 6];}else {if(_valid48){valid125 = true;passing33 = 6;}const _errs528 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err487 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data121.length < 2){const err488 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}const len48 = data121.length;if(len48 > 0){let data134 = data121[0];if(typeof data134 !== "string"){const err489 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if("cito:Citation" !== data134){const err490 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}if(len48 > 1){let data135 = data121[1];if(typeof data135 !== "string"){const err491 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}if("crm:E73_Information_Object" !== data135){const err492 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}}else {const err493 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}var _valid48 = _errs528 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 7];}else {if(_valid48){valid125 = true;passing33 = 7;}const _errs534 = errors;if(Array.isArray(data121)){if(data121.length > 3){const err494 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data121.length < 3){const err495 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}const len49 = data121.length;if(len49 > 0){let data136 = data121[0];if(typeof data136 !== "string"){const err496 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if("TextualBody" !== data136){const err497 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}if(len49 > 1){let data137 = data121[1];if(typeof data137 !== "string"){const err498 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if("xsd:date" !== data137){const err499 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}if(len49 > 2){let data138 = data121[2];if(typeof data138 !== "string"){const err500 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if("crm:E52_Time-Span" !== data138){const err501 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}}}else {const err502 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}var _valid48 = _errs534 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 8];}else {if(_valid48){valid125 = true;passing33 = 8;}const _errs542 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err503 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}if(data121.length < 2){const err504 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}const len50 = data121.length;if(len50 > 0){let data139 = data121[0];if(typeof data139 !== "string"){const err505 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if("TextualBody" !== data139){const err506 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}if(len50 > 1){let data140 = data121[1];if(typeof data140 !== "string"){const err507 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}if("crm:E33_Linguistic_Object" !== data140){const err508 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}else {const err509 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}var _valid48 = _errs542 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 9];}else {if(_valid48){valid125 = true;passing33 = 9;}const _errs548 = errors;if(Array.isArray(data121)){if(data121.length > 3){const err510 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}if(data121.length < 3){const err511 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}const len51 = data121.length;if(len51 > 0){let data141 = data121[0];if(typeof data141 !== "string"){const err512 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}if("TextualBody" !== data141){const err513 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(len51 > 1){let data142 = data121[1];if(typeof data142 !== "string"){const err514 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if("fabio:Correction" !== data142){const err515 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}}if(len51 > 2){let data143 = data121[2];if(typeof data143 !== "string"){const err516 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if("crm:E33_Linguistic_Object" !== data143){const err517 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}}else {const err518 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}var _valid48 = _errs548 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 10];}else {if(_valid48){valid125 = true;passing33 = 10;}const _errs556 = errors;if(typeof data121 !== "string"){const err519 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if("crmdig:D1_Digital_Object" !== data121){const err520 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}var _valid48 = _errs556 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 11];}else {if(_valid48){valid125 = true;passing33 = 11;}}}}}}}}}}}}if(!valid125){const err521 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing33},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}else {errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}}}if(data105.value !== undefined){if(typeof data105.value !== "string"){const err522 = {instancePath:instancePath+"/body/" + i7+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(data105.label !== undefined){let data145 = data105.label;if(typeof data145 === "string"){if(func2(data145) < 1){const err523 = {instancePath:instancePath+"/body/" + i7+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}}else {const err524 = {instancePath:instancePath+"/body/" + i7+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}if(data105.P2_has_type !== undefined){let data146 = data105.P2_has_type;if(Array.isArray(data146)){const len52 = data146.length;for(let i8=0; i8<len52; i8++){if(typeof data146[i8] !== "string"){const err525 = {instancePath:instancePath+"/body/" + i7+"/P2_has_type/" + i8,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}}else {const err526 = {instancePath:instancePath+"/body/" + i7+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(data105.description !== undefined){if(typeof data105.description !== "string"){const err527 = {instancePath:instancePath+"/body/" + i7+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}}else {const err528 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}}else {const err529 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}var _valid32 = _errs410 === errors;if(_valid32 && valid77){valid77 = false;passing25 = [passing25, 1];}else {if(_valid32){valid77 = true;passing25 = 1;}}if(!valid77){const err530 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing25},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}else {errors = _errs253;if(vErrors !== null){if(_errs253){vErrors.length = _errs253;}else {vErrors = null;}}}}}else {const err531 = {instancePath,schemaPath:"#/allOf/1/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}var _valid31 = _errs250 === errors;valid72 = _valid31;ifClause5 = "else";}if(!valid72){const err532 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err533 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if(data.id === undefined){const err534 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if(data.type === undefined){const err535 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}if(data.motivation === undefined){const err536 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}if(data.created === undefined){const err537 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}if(data.generator === undefined){const err538 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if(data.target === undefined){const err539 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}if(data.body === undefined){const err540 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}if(data.P2_has_type === undefined){const err541 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "P2_has_type"},message:"must have required property '"+"P2_has_type"+"'"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}for(const key2 in data){if(!(func5.call(schema11.properties, key2))){const err542 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}}if(data["@context"] !== undefined){let data149 = data["@context"];if(Array.isArray(data149)){if(data149.length > 3){const err543 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}if(data149.length < 3){const err544 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}const len53 = data149.length;if(len53 > 0){let data150 = data149[0];if(typeof data150 !== "string"){const err545 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data150){const err546 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/const",keyword:"const",params:{allowedValue: "http://www.w3.org/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}}if(len53 > 1){let data151 = data149[1];if(typeof data151 !== "string"){const err547 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}if("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" !== data151){const err548 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}}if(len53 > 2){let data152 = data149[2];if(typeof data152 !== "string"){const err549 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data152){const err550 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}}else {const err551 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}}if(data.id !== undefined){let data153 = data.id;if(typeof data153 === "string"){if(!(formats0(data153))){const err552 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}}else {const err553 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}}if(data.type !== undefined){let data154 = data.type;if(Array.isArray(data154)){if(data154.length > 2){const err554 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if(data154.length < 2){const err555 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}const len54 = data154.length;if(len54 > 0){let data155 = data154[0];if(typeof data155 !== "string"){const err556 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if("Annotation" !== data155){const err557 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Annotation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}if(len54 > 1){let data156 = data154[1];if(typeof data156 !== "string"){const err558 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}if("crm:E33_Linguistic_Object" !== data156){const err559 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}}else {const err560 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data.motivation !== undefined){let data157 = data.motivation;const _errs586 = errors;let valid147 = false;let passing40 = null;const _errs587 = errors;if(typeof data157 !== "string"){const err561 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if(!((((((data157 === "oa:identifying") || (data157 === "oa:describing")) || (data157 === "correcting")) || (data157 === "oa:linking")) || (data157 === "oa:tagging")) || (data157 === "citing"))){const err562 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}var _valid55 = _errs587 === errors;if(_valid55){valid147 = true;passing40 = 0;}if(!valid147){const err563 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf",keyword:"oneOf",params:{passingSchemas: passing40},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}else {errors = _errs586;if(vErrors !== null){if(_errs586){vErrors.length = _errs586;}else {vErrors = null;}}}}if(data.created !== undefined){let data158 = data.created;if(typeof data158 === "string"){if(!(formats10.validate(data158))){const err564 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}else {const err565 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}}if(data.modified !== undefined){let data159 = data.modified;if(typeof data159 === "string"){if(!(formats10.validate(data159))){const err566 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}}else {const err567 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}if(data.creator !== undefined){let data160 = data.creator;const _errs594 = errors;let valid148 = false;let passing41 = null;const _errs595 = errors;if(data160 && typeof data160 == "object" && !Array.isArray(data160)){if(data160.id === undefined){const err568 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data160.type === undefined){const err569 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}if(data160.name === undefined){const err570 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}if(data160.id !== undefined){let data161 = data160.id;if(typeof data161 === "string"){if(!(formats0(data161))){const err571 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}}else {const err572 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}}if(data160.type !== undefined){let data162 = data160.type;if(typeof data162 !== "string"){const err573 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if("crm:E21_Person" !== data162){const err574 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(data160.name !== undefined){let data163 = data160.name;if(typeof data163 === "string"){if(func2(data163) < 1){const err575 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}}else {const err576 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}}else {const err577 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}var _valid56 = _errs595 === errors;if(_valid56){valid148 = true;passing41 = 0;}const _errs604 = errors;if(data160 && typeof data160 == "object" && !Array.isArray(data160)){if(data160.id === undefined){const err578 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}if(data160.type === undefined){const err579 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if(data160.name === undefined){const err580 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}if(data160.id !== undefined){let data164 = data160.id;if(typeof data164 === "string"){if(!(formats0(data164))){const err581 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}}else {const err582 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}}if(data160.type !== undefined){let data165 = data160.type;if(typeof data165 !== "string"){const err583 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}if("crm:E74_Group" !== data165){const err584 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}}if(data160.name !== undefined){let data166 = data160.name;if(typeof data166 === "string"){if(func2(data166) < 1){const err585 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}else {const err586 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}}}else {const err587 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}var _valid56 = _errs604 === errors;if(_valid56 && valid148){valid148 = false;passing41 = [passing41, 1];}else {if(_valid56){valid148 = true;passing41 = 1;}}if(!valid148){const err588 = {instancePath:instancePath+"/creator",schemaPath:"#/properties/creator/oneOf",keyword:"oneOf",params:{passingSchemas: passing41},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}else {errors = _errs594;if(vErrors !== null){if(_errs594){vErrors.length = _errs594;}else {vErrors = null;}}}}if(data.contributor !== undefined){let data167 = data.contributor;if(Array.isArray(data167)){if(data167.length < 1){const err589 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}const len55 = data167.length;for(let i9=0; i9<len55; i9++){let data168 = data167[i9];const _errs616 = errors;let valid155 = false;let passing42 = null;const _errs617 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.id === undefined){const err590 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}if(data168.type === undefined){const err591 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}if(data168.name === undefined){const err592 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}if(data168.id !== undefined){let data169 = data168.id;if(typeof data169 === "string"){if(!(formats0(data169))){const err593 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}else {const err594 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}if(data168.type !== undefined){let data170 = data168.type;if(typeof data170 !== "string"){const err595 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}if("crm:E21_Person" !== data170){const err596 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}}if(data168.name !== undefined){let data171 = data168.name;if(typeof data171 === "string"){if(func2(data171) < 1){const err597 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}}else {const err598 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}}}else {const err599 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}var _valid57 = _errs617 === errors;if(_valid57){valid155 = true;passing42 = 0;}const _errs626 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.id === undefined){const err600 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}if(data168.type === undefined){const err601 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}if(data168.name === undefined){const err602 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}if(data168.id !== undefined){let data172 = data168.id;if(typeof data172 === "string"){if(!(formats0(data172))){const err603 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}}else {const err604 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}}if(data168.type !== undefined){let data173 = data168.type;if(typeof data173 !== "string"){const err605 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}if("crm:E74_Group" !== data173){const err606 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}}if(data168.name !== undefined){let data174 = data168.name;if(typeof data174 === "string"){if(func2(data174) < 1){const err607 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}}else {const err608 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}}}else {const err609 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}var _valid57 = _errs626 === errors;if(_valid57 && valid155){valid155 = false;passing42 = [passing42, 1];}else {if(_valid57){valid155 = true;passing42 = 1;}const _errs635 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.id === undefined){const err610 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}if(data168.type === undefined){const err611 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}if(data168.name === undefined){const err612 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}if(data168.id !== undefined){let data175 = data168.id;if(typeof data175 === "string"){if(!(formats0(data175))){const err613 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}}else {const err614 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}}if(data168.type !== undefined){let data176 = data168.type;if(Array.isArray(data176)){if(data176.length > 2){const err615 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}if(data176.length < 2){const err616 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}const len56 = data176.length;if(len56 > 0){let data177 = data176[0];if(typeof data177 !== "string"){const err617 = {instancePath:instancePath+"/contributor/" + i9+"/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}if("Software" !== data177){const err618 = {instancePath:instancePath+"/contributor/" + i9+"/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}}if(len56 > 1){let data178 = data176[1];if(typeof data178 !== "string"){const err619 = {instancePath:instancePath+"/contributor/" + i9+"/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if("crm:E73_Information_Object" !== data178){const err620 = {instancePath:instancePath+"/contributor/" + i9+"/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}}}else {const err621 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}}if(data168.P16_used_specific_object !== undefined){let data179 = data168.P16_used_specific_object;if(typeof data179 === "string"){if(!(formats0(data179))){const err622 = {instancePath:instancePath+"/contributor/" + i9+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}else {const err623 = {instancePath:instancePath+"/contributor/" + i9+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data168.name !== undefined){let data180 = data168.name;if(typeof data180 === "string"){if(func2(data180) < 1){const err624 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}}else {const err625 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}}if(data168.softwareVersion !== undefined){if(typeof data168.softwareVersion !== "string"){const err626 = {instancePath:instancePath+"/contributor/" + i9+"/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}}}else {const err627 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}var _valid57 = _errs635 === errors;if(_valid57 && valid155){valid155 = false;passing42 = [passing42, 2];}else {if(_valid57){valid155 = true;passing42 = 2;}}}if(!valid155){const err628 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"#/properties/contributor/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing42},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}else {errors = _errs616;if(vErrors !== null){if(_errs616){vErrors.length = _errs616;}else {vErrors = null;}}}}}else {const err629 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}if(data.generator !== undefined){let data182 = data.generator;if(data182 && typeof data182 == "object" && !Array.isArray(data182)){if(data182.id === undefined){const err630 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}if(data182.type === undefined){const err631 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(data182.name === undefined){const err632 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}if(data182.id !== undefined){let data183 = data182.id;if(typeof data183 === "string"){if(!(formats0(data183))){const err633 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}}else {const err634 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}if(data182.type !== undefined){let data184 = data182.type;if(Array.isArray(data184)){if(data184.length > 2){const err635 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}if(data184.length < 2){const err636 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}const len57 = data184.length;if(len57 > 0){let data185 = data184[0];if(typeof data185 !== "string"){const err637 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}if("Software" !== data185){const err638 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}}if(len57 > 1){let data186 = data184[1];if(typeof data186 !== "string"){const err639 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}if("crm:E73_Information_Object" !== data186){const err640 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}}}else {const err641 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}}if(data182.P16_used_specific_object !== undefined){let data187 = data182.P16_used_specific_object;if(typeof data187 === "string"){if(!(formats0(data187))){const err642 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}}else {const err643 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}}if(data182.name !== undefined){let data188 = data182.name;if(typeof data188 === "string"){if(func2(data188) < 1){const err644 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}else {const err645 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}}if(data182.softwareVersion !== undefined){if(typeof data182.softwareVersion !== "string"){const err646 = {instancePath:instancePath+"/generator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}}}else {const err647 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}}if(data.target !== undefined){let data190 = data.target;const _errs670 = errors;let valid166 = false;let passing43 = null;const _errs671 = errors;if(!(validate14(data190, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid58 = _errs671 === errors;if(_valid58){valid166 = true;passing43 = 0;}const _errs672 = errors;if(Array.isArray(data190)){if(data190.length < 1){const err648 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}const len58 = data190.length;for(let i10=0; i10<len58; i10++){if(!(validate14(data190[i10], {instancePath:instancePath+"/target/" + i10,parentData:data190,parentDataProperty:i10,rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}}}else {const err649 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}var _valid58 = _errs672 === errors;if(_valid58 && valid166){valid166 = false;passing43 = [passing43, 1];}else {if(_valid58){valid166 = true;passing43 = 1;}}if(!valid166){const err650 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf",keyword:"oneOf",params:{passingSchemas: passing43},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}else {errors = _errs670;if(vErrors !== null){if(_errs670){vErrors.length = _errs670;}else {vErrors = null;}}}}if(data.body !== undefined){let data192 = data.body;const _errs676 = errors;let valid169 = false;let passing44 = null;const _errs677 = errors;if(!(validate12(data192, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}var _valid59 = _errs677 === errors;if(_valid59){valid169 = true;passing44 = 0;}const _errs678 = errors;const _errs681 = errors;let valid171 = false;const _errs682 = errors;const _errs683 = errors;let valid172 = true;const _errs684 = errors;if(errors === _errs684){if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.type !== undefined){let data193 = data192.type;const _errs687 = errors;let valid174 = false;const _errs688 = errors;if(errors === _errs688){if(Array.isArray(data193)){if(data193.length > 2){const err651 = {};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}else {if(data193.length < 2){const err652 = {};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}else {const len59 = data193.length;if(len59 > 0){let data194 = data193[0];const _errs690 = errors;if(typeof data194 !== "string"){const err653 = {};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}if("TextualBody" !== data194){const err654 = {};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}var valid175 = _errs690 === errors;}if(valid175){if(len59 > 1){let data195 = data193[1];const _errs692 = errors;if(typeof data195 !== "string"){const err655 = {};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}if("crm:E33_Linguistic_Object" !== data195){const err656 = {};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}var valid175 = _errs692 === errors;}}}}}else {const err657 = {};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}}var _valid62 = _errs688 === errors;valid174 = valid174 || _valid62;if(!valid174){const _errs694 = errors;if(errors === _errs694){if(Array.isArray(data193)){if(data193.length > 3){const err658 = {};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}else {if(data193.length < 3){const err659 = {};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}else {const len60 = data193.length;if(len60 > 0){let data196 = data193[0];const _errs696 = errors;if(typeof data196 !== "string"){const err660 = {};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}if("TextualBody" !== data196){const err661 = {};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}var valid176 = _errs696 === errors;}if(valid176){if(len60 > 1){let data197 = data193[1];const _errs698 = errors;if(typeof data197 !== "string"){const err662 = {};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}if("xsd:date" !== data197){const err663 = {};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}var valid176 = _errs698 === errors;}if(valid176){if(len60 > 2){let data198 = data193[2];const _errs700 = errors;if(typeof data198 !== "string"){const err664 = {};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}if("crm:E52_Time-Span" !== data198){const err665 = {};if(vErrors === null){vErrors = [err665];}else {vErrors.push(err665);}errors++;}var valid176 = _errs700 === errors;}}}}}}else {const err666 = {};if(vErrors === null){vErrors = [err666];}else {vErrors.push(err666);}errors++;}}var _valid62 = _errs694 === errors;valid174 = valid174 || _valid62;if(!valid174){const _errs702 = errors;if(errors === _errs702){if(Array.isArray(data193)){if(data193.length > 3){const err667 = {};if(vErrors === null){vErrors = [err667];}else {vErrors.push(err667);}errors++;}else {if(data193.length < 3){const err668 = {};if(vErrors === null){vErrors = [err668];}else {vErrors.push(err668);}errors++;}else {const len61 = data193.length;if(len61 > 0){let data199 = data193[0];const _errs704 = errors;if(typeof data199 !== "string"){const err669 = {};if(vErrors === null){vErrors = [err669];}else {vErrors.push(err669);}errors++;}if("TextualBody" !== data199){const err670 = {};if(vErrors === null){vErrors = [err670];}else {vErrors.push(err670);}errors++;}var valid177 = _errs704 === errors;}if(valid177){if(len61 > 1){let data200 = data193[1];const _errs706 = errors;if(typeof data200 !== "string"){const err671 = {};if(vErrors === null){vErrors = [err671];}else {vErrors.push(err671);}errors++;}if("fabio:Correction" !== data200){const err672 = {};if(vErrors === null){vErrors = [err672];}else {vErrors.push(err672);}errors++;}var valid177 = _errs706 === errors;}if(valid177){if(len61 > 2){let data201 = data193[2];const _errs708 = errors;if(typeof data201 !== "string"){const err673 = {};if(vErrors === null){vErrors = [err673];}else {vErrors.push(err673);}errors++;}if("crm:E33_Linguistic_Object" !== data201){const err674 = {};if(vErrors === null){vErrors = [err674];}else {vErrors.push(err674);}errors++;}var valid177 = _errs708 === errors;}}}}}}else {const err675 = {};if(vErrors === null){vErrors = [err675];}else {vErrors.push(err675);}errors++;}}var _valid62 = _errs702 === errors;valid174 = valid174 || _valid62;}}if(!valid174){const err676 = {};if(vErrors === null){vErrors = [err676];}else {vErrors.push(err676);}errors++;}else {errors = _errs687;if(vErrors !== null){if(_errs687){vErrors.length = _errs687;}else {vErrors = null;}}}}}else {const err677 = {};if(vErrors === null){vErrors = [err677];}else {vErrors.push(err677);}errors++;}}var _valid61 = _errs684 === errors;errors = _errs683;if(vErrors !== null){if(_errs683){vErrors.length = _errs683;}else {vErrors = null;}}if(_valid61){const _errs710 = errors;const _errs712 = errors;let valid178 = true;const _errs713 = errors;if(errors === _errs713){if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.type !== undefined){let data202 = data192.type;const _errs715 = errors;if(errors === _errs715){if(Array.isArray(data202)){if(data202.length > 3){const err678 = {};if(vErrors === null){vErrors = [err678];}else {vErrors.push(err678);}errors++;}else {if(data202.length < 3){const err679 = {};if(vErrors === null){vErrors = [err679];}else {vErrors.push(err679);}errors++;}else {const len62 = data202.length;if(len62 > 0){let data203 = data202[0];const _errs717 = errors;if(typeof data203 !== "string"){const err680 = {};if(vErrors === null){vErrors = [err680];}else {vErrors.push(err680);}errors++;}if("TextualBody" !== data203){const err681 = {};if(vErrors === null){vErrors = [err681];}else {vErrors.push(err681);}errors++;}var valid180 = _errs717 === errors;}if(valid180){if(len62 > 1){let data204 = data202[1];const _errs719 = errors;if(typeof data204 !== "string"){const err682 = {};if(vErrors === null){vErrors = [err682];}else {vErrors.push(err682);}errors++;}if("xsd:date" !== data204){const err683 = {};if(vErrors === null){vErrors = [err683];}else {vErrors.push(err683);}errors++;}var valid180 = _errs719 === errors;}if(valid180){if(len62 > 2){let data205 = data202[2];const _errs721 = errors;if(typeof data205 !== "string"){const err684 = {};if(vErrors === null){vErrors = [err684];}else {vErrors.push(err684);}errors++;}if("crm:E52_Time-Span" !== data205){const err685 = {};if(vErrors === null){vErrors = [err685];}else {vErrors.push(err685);}errors++;}var valid180 = _errs721 === errors;}}}}}}else {const err686 = {};if(vErrors === null){vErrors = [err686];}else {vErrors.push(err686);}errors++;}}}}else {const err687 = {};if(vErrors === null){vErrors = [err687];}else {vErrors.push(err687);}errors++;}}var _valid63 = _errs713 === errors;errors = _errs712;if(vErrors !== null){if(_errs712){vErrors.length = _errs712;}else {vErrors = null;}}if(_valid63){const _errs723 = errors;if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err688 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err688];}else {vErrors.push(err688);}errors++;}if(data192.type === undefined){const err689 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err689];}else {vErrors.push(err689);}errors++;}if(data192.value === undefined){const err690 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err690];}else {vErrors.push(err690);}errors++;}if(data192.value !== undefined){let data206 = data192.value;if(typeof data206 === "string"){if(!pattern0.test(data206)){const err691 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err691];}else {vErrors.push(err691);}errors++;}}else {const err692 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err692];}else {vErrors.push(err692);}errors++;}}}else {const err693 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err693];}else {vErrors.push(err693);}errors++;}var _valid63 = _errs723 === errors;valid178 = _valid63;}if(!valid178){const err694 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err694];}else {vErrors.push(err694);}errors++;}if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err695 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err695];}else {vErrors.push(err695);}errors++;}if(data192.type === undefined){const err696 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err696];}else {vErrors.push(err696);}errors++;}if(data192.value === undefined){const err697 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err697];}else {vErrors.push(err697);}errors++;}}else {const err698 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err698];}else {vErrors.push(err698);}errors++;}var _valid61 = _errs710 === errors;valid172 = _valid61;}if(!valid172){const err699 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err699];}else {vErrors.push(err699);}errors++;}var _valid60 = _errs682 === errors;valid171 = valid171 || _valid60;if(!valid171){const err700 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err700];}else {vErrors.push(err700);}errors++;}else {errors = _errs681;if(vErrors !== null){if(_errs681){vErrors.length = _errs681;}else {vErrors = null;}}}if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err701 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err701];}else {vErrors.push(err701);}errors++;}if(data192.type === undefined){const err702 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err702];}else {vErrors.push(err702);}errors++;}for(const key3 in data192){if(!((((((key3 === "id") || (key3 === "type")) || (key3 === "value")) || (key3 === "label")) || (key3 === "P2_has_type")) || (key3 === "description"))){const err703 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err703];}else {vErrors.push(err703);}errors++;}}if(data192.id !== undefined){let data207 = data192.id;if(typeof data207 === "string"){if(!(formats0(data207))){const err704 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err704];}else {vErrors.push(err704);}errors++;}}else {const err705 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err705];}else {vErrors.push(err705);}errors++;}}if(data192.type !== undefined){let data208 = data192.type;const _errs731 = errors;let valid183 = false;let passing45 = null;const _errs732 = errors;const _errs733 = errors;let valid184 = false;let passing46 = null;const _errs734 = errors;if(typeof data208 !== "string"){const err706 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err706];}else {vErrors.push(err706);}errors++;}if("crm:E21_Person" !== data208){const err707 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err707];}else {vErrors.push(err707);}errors++;}var _valid65 = _errs734 === errors;if(_valid65){valid184 = true;passing46 = 0;}const _errs736 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err708 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err708];}else {vErrors.push(err708);}errors++;}if(data208.length < 2){const err709 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err709];}else {vErrors.push(err709);}errors++;}const len63 = data208.length;if(len63 > 0){let data209 = data208[0];if(typeof data209 !== "string"){const err710 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err710];}else {vErrors.push(err710);}errors++;}if("foaf:Person" !== data209){const err711 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err711];}else {vErrors.push(err711);}errors++;}}if(len63 > 1){let data210 = data208[1];if(typeof data210 !== "string"){const err712 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err712];}else {vErrors.push(err712);}errors++;}if("crm:E89_Propositional_Object" !== data210){const err713 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err713];}else {vErrors.push(err713);}errors++;}}}else {const err714 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err714];}else {vErrors.push(err714);}errors++;}var _valid65 = _errs736 === errors;if(_valid65 && valid184){valid184 = false;passing46 = [passing46, 1];}else {if(_valid65){valid184 = true;passing46 = 1;}}if(!valid184){const err715 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing46},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err715];}else {vErrors.push(err715);}errors++;}else {errors = _errs733;if(vErrors !== null){if(_errs733){vErrors.length = _errs733;}else {vErrors = null;}}}var _valid64 = _errs732 === errors;if(_valid64){valid183 = true;passing45 = 0;}const _errs742 = errors;const _errs743 = errors;let valid186 = false;let passing47 = null;const _errs744 = errors;if(typeof data208 !== "string"){const err716 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err716];}else {vErrors.push(err716);}errors++;}if("crm:E53_Place" !== data208){const err717 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err717];}else {vErrors.push(err717);}errors++;}var _valid66 = _errs744 === errors;if(_valid66){valid186 = true;passing47 = 0;}const _errs746 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err718 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err718];}else {vErrors.push(err718);}errors++;}if(data208.length < 2){const err719 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err719];}else {vErrors.push(err719);}errors++;}const len64 = data208.length;if(len64 > 0){let data211 = data208[0];if(typeof data211 !== "string"){const err720 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err720];}else {vErrors.push(err720);}errors++;}if("biography:fictionalPlace" !== data211){const err721 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err721];}else {vErrors.push(err721);}errors++;}}if(len64 > 1){let data212 = data208[1];if(typeof data212 !== "string"){const err722 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err722];}else {vErrors.push(err722);}errors++;}if("crm:E89_Propositional_Object" !== data212){const err723 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err723];}else {vErrors.push(err723);}errors++;}}}else {const err724 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err724];}else {vErrors.push(err724);}errors++;}var _valid66 = _errs746 === errors;if(_valid66 && valid186){valid186 = false;passing47 = [passing47, 1];}else {if(_valid66){valid186 = true;passing47 = 1;}}if(!valid186){const err725 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing47},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err725];}else {vErrors.push(err725);}errors++;}else {errors = _errs743;if(vErrors !== null){if(_errs743){vErrors.length = _errs743;}else {vErrors = null;}}}var _valid64 = _errs742 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 1];}else {if(_valid64){valid183 = true;passing45 = 1;}const _errs752 = errors;const _errs753 = errors;let valid188 = false;let passing48 = null;const _errs754 = errors;if(typeof data208 !== "string"){const err726 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err726];}else {vErrors.push(err726);}errors++;}if("crm:E74_Group" !== data208){const err727 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err727];}else {vErrors.push(err727);}errors++;}var _valid67 = _errs754 === errors;if(_valid67){valid188 = true;passing48 = 0;}const _errs756 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err728 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err728];}else {vErrors.push(err728);}errors++;}if(data208.length < 2){const err729 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err729];}else {vErrors.push(err729);}errors++;}const len65 = data208.length;if(len65 > 0){let data213 = data208[0];if(typeof data213 !== "string"){const err730 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err730];}else {vErrors.push(err730);}errors++;}if("foaf:Organization" !== data213){const err731 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err731];}else {vErrors.push(err731);}errors++;}}if(len65 > 1){let data214 = data208[1];if(typeof data214 !== "string"){const err732 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err732];}else {vErrors.push(err732);}errors++;}if("crm:E89_Propositional_Object" !== data214){const err733 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err733];}else {vErrors.push(err733);}errors++;}}}else {const err734 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err734];}else {vErrors.push(err734);}errors++;}var _valid67 = _errs756 === errors;if(_valid67 && valid188){valid188 = false;passing48 = [passing48, 1];}else {if(_valid67){valid188 = true;passing48 = 1;}}if(!valid188){const err735 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing48},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err735];}else {vErrors.push(err735);}errors++;}else {errors = _errs753;if(vErrors !== null){if(_errs753){vErrors.length = _errs753;}else {vErrors = null;}}}var _valid64 = _errs752 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 2];}else {if(_valid64){valid183 = true;passing45 = 2;}const _errs762 = errors;const _errs763 = errors;let valid190 = false;let passing49 = null;const _errs764 = errors;if(typeof data208 !== "string"){const err736 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err736];}else {vErrors.push(err736);}errors++;}if("frbroo:F1" !== data208){const err737 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err737];}else {vErrors.push(err737);}errors++;}var _valid68 = _errs764 === errors;if(_valid68){valid190 = true;passing49 = 0;}const _errs766 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err738 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err738];}else {vErrors.push(err738);}errors++;}if(data208.length < 2){const err739 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err739];}else {vErrors.push(err739);}errors++;}const len66 = data208.length;if(len66 > 0){let data215 = data208[0];if(typeof data215 !== "string"){const err740 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err740];}else {vErrors.push(err740);}errors++;}if("frbroo:F1" !== data215){const err741 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err741];}else {vErrors.push(err741);}errors++;}}if(len66 > 1){let data216 = data208[1];if(typeof data216 !== "string"){const err742 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err742];}else {vErrors.push(err742);}errors++;}if("wikidata:Q15306849" !== data216){const err743 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err743];}else {vErrors.push(err743);}errors++;}}}else {const err744 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err744];}else {vErrors.push(err744);}errors++;}var _valid68 = _errs766 === errors;if(_valid68 && valid190){valid190 = false;passing49 = [passing49, 1];}else {if(_valid68){valid190 = true;passing49 = 1;}}if(!valid190){const err745 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing49},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err745];}else {vErrors.push(err745);}errors++;}else {errors = _errs763;if(vErrors !== null){if(_errs763){vErrors.length = _errs763;}else {vErrors = null;}}}var _valid64 = _errs762 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 3];}else {if(_valid64){valid183 = true;passing45 = 3;}const _errs772 = errors;const _errs773 = errors;let valid192 = false;let passing50 = null;const _errs774 = errors;if(typeof data208 !== "string"){const err746 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err746];}else {vErrors.push(err746);}errors++;}if("crm:E18_Physical_Thing" !== data208){const err747 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err747];}else {vErrors.push(err747);}errors++;}var _valid69 = _errs774 === errors;if(_valid69){valid192 = true;passing50 = 0;}const _errs776 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err748 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err748];}else {vErrors.push(err748);}errors++;}if(data208.length < 2){const err749 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err749];}else {vErrors.push(err749);}errors++;}const len67 = data208.length;if(len67 > 0){let data217 = data208[0];if(typeof data217 !== "string"){const err750 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err750];}else {vErrors.push(err750);}errors++;}if("wikidata:Q15831596" !== data217){const err751 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err751];}else {vErrors.push(err751);}errors++;}}if(len67 > 1){let data218 = data208[1];if(typeof data218 !== "string"){const err752 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err752];}else {vErrors.push(err752);}errors++;}if("crm:E89_Propositional_Object" !== data218){const err753 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err753];}else {vErrors.push(err753);}errors++;}}}else {const err754 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err754];}else {vErrors.push(err754);}errors++;}var _valid69 = _errs776 === errors;if(_valid69 && valid192){valid192 = false;passing50 = [passing50, 1];}else {if(_valid69){valid192 = true;passing50 = 1;}}if(!valid192){const err755 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing50},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err755];}else {vErrors.push(err755);}errors++;}else {errors = _errs773;if(vErrors !== null){if(_errs773){vErrors.length = _errs773;}else {vErrors = null;}}}var _valid64 = _errs772 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 4];}else {if(_valid64){valid183 = true;passing45 = 4;}const _errs782 = errors;if(typeof data208 !== "string"){const err756 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err756];}else {vErrors.push(err756);}errors++;}if("crm:E28_Conceptual_Object" !== data208){const err757 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err757];}else {vErrors.push(err757);}errors++;}var _valid64 = _errs782 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 5];}else {if(_valid64){valid183 = true;passing45 = 5;}const _errs784 = errors;const _errs785 = errors;let valid194 = false;let passing51 = null;const _errs786 = errors;if(typeof data208 !== "string"){const err758 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err758];}else {vErrors.push(err758);}errors++;}if("crm:E5_Event" !== data208){const err759 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err759];}else {vErrors.push(err759);}errors++;}var _valid70 = _errs786 === errors;if(_valid70){valid194 = true;passing51 = 0;}const _errs788 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err760 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err760];}else {vErrors.push(err760);}errors++;}if(data208.length < 2){const err761 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err761];}else {vErrors.push(err761);}errors++;}const len68 = data208.length;if(len68 > 0){let data219 = data208[0];if(typeof data219 !== "string"){const err762 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err762];}else {vErrors.push(err762);}errors++;}if("event:Event" !== data219){const err763 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err763];}else {vErrors.push(err763);}errors++;}}if(len68 > 1){let data220 = data208[1];if(typeof data220 !== "string"){const err764 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err764];}else {vErrors.push(err764);}errors++;}if("crm:E89_Propositional_Object" !== data220){const err765 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err765];}else {vErrors.push(err765);}errors++;}}}else {const err766 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err766];}else {vErrors.push(err766);}errors++;}var _valid70 = _errs788 === errors;if(_valid70 && valid194){valid194 = false;passing51 = [passing51, 1];}else {if(_valid70){valid194 = true;passing51 = 1;}}if(!valid194){const err767 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing51},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err767];}else {vErrors.push(err767);}errors++;}else {errors = _errs785;if(vErrors !== null){if(_errs785){vErrors.length = _errs785;}else {vErrors = null;}}}var _valid64 = _errs784 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 6];}else {if(_valid64){valid183 = true;passing45 = 6;}const _errs794 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err768 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err768];}else {vErrors.push(err768);}errors++;}if(data208.length < 2){const err769 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err769];}else {vErrors.push(err769);}errors++;}const len69 = data208.length;if(len69 > 0){let data221 = data208[0];if(typeof data221 !== "string"){const err770 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err770];}else {vErrors.push(err770);}errors++;}if("cito:Citation" !== data221){const err771 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err771];}else {vErrors.push(err771);}errors++;}}if(len69 > 1){let data222 = data208[1];if(typeof data222 !== "string"){const err772 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err772];}else {vErrors.push(err772);}errors++;}if("crm:E73_Information_Object" !== data222){const err773 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err773];}else {vErrors.push(err773);}errors++;}}}else {const err774 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err774];}else {vErrors.push(err774);}errors++;}var _valid64 = _errs794 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 7];}else {if(_valid64){valid183 = true;passing45 = 7;}const _errs800 = errors;if(Array.isArray(data208)){if(data208.length > 3){const err775 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err775];}else {vErrors.push(err775);}errors++;}if(data208.length < 3){const err776 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err776];}else {vErrors.push(err776);}errors++;}const len70 = data208.length;if(len70 > 0){let data223 = data208[0];if(typeof data223 !== "string"){const err777 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err777];}else {vErrors.push(err777);}errors++;}if("TextualBody" !== data223){const err778 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err778];}else {vErrors.push(err778);}errors++;}}if(len70 > 1){let data224 = data208[1];if(typeof data224 !== "string"){const err779 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err779];}else {vErrors.push(err779);}errors++;}if("xsd:date" !== data224){const err780 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err780];}else {vErrors.push(err780);}errors++;}}if(len70 > 2){let data225 = data208[2];if(typeof data225 !== "string"){const err781 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err781];}else {vErrors.push(err781);}errors++;}if("crm:E52_Time-Span" !== data225){const err782 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err782];}else {vErrors.push(err782);}errors++;}}}else {const err783 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err783];}else {vErrors.push(err783);}errors++;}var _valid64 = _errs800 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 8];}else {if(_valid64){valid183 = true;passing45 = 8;}const _errs808 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err784 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err784];}else {vErrors.push(err784);}errors++;}if(data208.length < 2){const err785 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err785];}else {vErrors.push(err785);}errors++;}const len71 = data208.length;if(len71 > 0){let data226 = data208[0];if(typeof data226 !== "string"){const err786 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err786];}else {vErrors.push(err786);}errors++;}if("TextualBody" !== data226){const err787 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err787];}else {vErrors.push(err787);}errors++;}}if(len71 > 1){let data227 = data208[1];if(typeof data227 !== "string"){const err788 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err788];}else {vErrors.push(err788);}errors++;}if("crm:E33_Linguistic_Object" !== data227){const err789 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err789];}else {vErrors.push(err789);}errors++;}}}else {const err790 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err790];}else {vErrors.push(err790);}errors++;}var _valid64 = _errs808 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 9];}else {if(_valid64){valid183 = true;passing45 = 9;}const _errs814 = errors;if(Array.isArray(data208)){if(data208.length > 3){const err791 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err791];}else {vErrors.push(err791);}errors++;}if(data208.length < 3){const err792 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err792];}else {vErrors.push(err792);}errors++;}const len72 = data208.length;if(len72 > 0){let data228 = data208[0];if(typeof data228 !== "string"){const err793 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err793];}else {vErrors.push(err793);}errors++;}if("TextualBody" !== data228){const err794 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err794];}else {vErrors.push(err794);}errors++;}}if(len72 > 1){let data229 = data208[1];if(typeof data229 !== "string"){const err795 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err795];}else {vErrors.push(err795);}errors++;}if("fabio:Correction" !== data229){const err796 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err796];}else {vErrors.push(err796);}errors++;}}if(len72 > 2){let data230 = data208[2];if(typeof data230 !== "string"){const err797 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err797];}else {vErrors.push(err797);}errors++;}if("crm:E33_Linguistic_Object" !== data230){const err798 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err798];}else {vErrors.push(err798);}errors++;}}}else {const err799 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err799];}else {vErrors.push(err799);}errors++;}var _valid64 = _errs814 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 10];}else {if(_valid64){valid183 = true;passing45 = 10;}const _errs822 = errors;if(typeof data208 !== "string"){const err800 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err800];}else {vErrors.push(err800);}errors++;}if("crmdig:D1_Digital_Object" !== data208){const err801 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err801];}else {vErrors.push(err801);}errors++;}var _valid64 = _errs822 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 11];}else {if(_valid64){valid183 = true;passing45 = 11;}}}}}}}}}}}}if(!valid183){const err802 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing45},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err802];}else {vErrors.push(err802);}errors++;}else {errors = _errs731;if(vErrors !== null){if(_errs731){vErrors.length = _errs731;}else {vErrors = null;}}}}if(data192.value !== undefined){if(typeof data192.value !== "string"){const err803 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err803];}else {vErrors.push(err803);}errors++;}}if(data192.label !== undefined){let data232 = data192.label;if(typeof data232 === "string"){if(func2(data232) < 1){const err804 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err804];}else {vErrors.push(err804);}errors++;}}else {const err805 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err805];}else {vErrors.push(err805);}errors++;}}if(data192.P2_has_type !== undefined){let data233 = data192.P2_has_type;if(Array.isArray(data233)){const len73 = data233.length;for(let i11=0; i11<len73; i11++){if(typeof data233[i11] !== "string"){const err806 = {instancePath:instancePath+"/body/P2_has_type/" + i11,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err806];}else {vErrors.push(err806);}errors++;}}}else {const err807 = {instancePath:instancePath+"/body/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err807];}else {vErrors.push(err807);}errors++;}}if(data192.description !== undefined){if(typeof data192.description !== "string"){const err808 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err808];}else {vErrors.push(err808);}errors++;}}}else {const err809 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err809];}else {vErrors.push(err809);}errors++;}var _valid59 = _errs678 === errors;if(_valid59 && valid169){valid169 = false;passing44 = [passing44, 1];}else {if(_valid59){valid169 = true;passing44 = 1;}const _errs834 = errors;if(Array.isArray(data192)){if(data192.length < 1){const err810 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err810];}else {vErrors.push(err810);}errors++;}const len74 = data192.length;for(let i12=0; i12<len74; i12++){let data236 = data192[i12];const _errs839 = errors;let valid205 = false;const _errs840 = errors;const _errs841 = errors;let valid206 = true;const _errs842 = errors;if(errors === _errs842){if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.type !== undefined){let data237 = data236.type;const _errs845 = errors;let valid208 = false;const _errs846 = errors;if(errors === _errs846){if(Array.isArray(data237)){if(data237.length > 2){const err811 = {};if(vErrors === null){vErrors = [err811];}else {vErrors.push(err811);}errors++;}else {if(data237.length < 2){const err812 = {};if(vErrors === null){vErrors = [err812];}else {vErrors.push(err812);}errors++;}else {const len75 = data237.length;if(len75 > 0){let data238 = data237[0];const _errs848 = errors;if(typeof data238 !== "string"){const err813 = {};if(vErrors === null){vErrors = [err813];}else {vErrors.push(err813);}errors++;}if("TextualBody" !== data238){const err814 = {};if(vErrors === null){vErrors = [err814];}else {vErrors.push(err814);}errors++;}var valid209 = _errs848 === errors;}if(valid209){if(len75 > 1){let data239 = data237[1];const _errs850 = errors;if(typeof data239 !== "string"){const err815 = {};if(vErrors === null){vErrors = [err815];}else {vErrors.push(err815);}errors++;}if("crm:E33_Linguistic_Object" !== data239){const err816 = {};if(vErrors === null){vErrors = [err816];}else {vErrors.push(err816);}errors++;}var valid209 = _errs850 === errors;}}}}}else {const err817 = {};if(vErrors === null){vErrors = [err817];}else {vErrors.push(err817);}errors++;}}var _valid73 = _errs846 === errors;valid208 = valid208 || _valid73;if(!valid208){const _errs852 = errors;if(errors === _errs852){if(Array.isArray(data237)){if(data237.length > 3){const err818 = {};if(vErrors === null){vErrors = [err818];}else {vErrors.push(err818);}errors++;}else {if(data237.length < 3){const err819 = {};if(vErrors === null){vErrors = [err819];}else {vErrors.push(err819);}errors++;}else {const len76 = data237.length;if(len76 > 0){let data240 = data237[0];const _errs854 = errors;if(typeof data240 !== "string"){const err820 = {};if(vErrors === null){vErrors = [err820];}else {vErrors.push(err820);}errors++;}if("TextualBody" !== data240){const err821 = {};if(vErrors === null){vErrors = [err821];}else {vErrors.push(err821);}errors++;}var valid210 = _errs854 === errors;}if(valid210){if(len76 > 1){let data241 = data237[1];const _errs856 = errors;if(typeof data241 !== "string"){const err822 = {};if(vErrors === null){vErrors = [err822];}else {vErrors.push(err822);}errors++;}if("xsd:date" !== data241){const err823 = {};if(vErrors === null){vErrors = [err823];}else {vErrors.push(err823);}errors++;}var valid210 = _errs856 === errors;}if(valid210){if(len76 > 2){let data242 = data237[2];const _errs858 = errors;if(typeof data242 !== "string"){const err824 = {};if(vErrors === null){vErrors = [err824];}else {vErrors.push(err824);}errors++;}if("crm:E52_Time-Span" !== data242){const err825 = {};if(vErrors === null){vErrors = [err825];}else {vErrors.push(err825);}errors++;}var valid210 = _errs858 === errors;}}}}}}else {const err826 = {};if(vErrors === null){vErrors = [err826];}else {vErrors.push(err826);}errors++;}}var _valid73 = _errs852 === errors;valid208 = valid208 || _valid73;if(!valid208){const _errs860 = errors;if(errors === _errs860){if(Array.isArray(data237)){if(data237.length > 3){const err827 = {};if(vErrors === null){vErrors = [err827];}else {vErrors.push(err827);}errors++;}else {if(data237.length < 3){const err828 = {};if(vErrors === null){vErrors = [err828];}else {vErrors.push(err828);}errors++;}else {const len77 = data237.length;if(len77 > 0){let data243 = data237[0];const _errs862 = errors;if(typeof data243 !== "string"){const err829 = {};if(vErrors === null){vErrors = [err829];}else {vErrors.push(err829);}errors++;}if("TextualBody" !== data243){const err830 = {};if(vErrors === null){vErrors = [err830];}else {vErrors.push(err830);}errors++;}var valid211 = _errs862 === errors;}if(valid211){if(len77 > 1){let data244 = data237[1];const _errs864 = errors;if(typeof data244 !== "string"){const err831 = {};if(vErrors === null){vErrors = [err831];}else {vErrors.push(err831);}errors++;}if("fabio:Correction" !== data244){const err832 = {};if(vErrors === null){vErrors = [err832];}else {vErrors.push(err832);}errors++;}var valid211 = _errs864 === errors;}if(valid211){if(len77 > 2){let data245 = data237[2];const _errs866 = errors;if(typeof data245 !== "string"){const err833 = {};if(vErrors === null){vErrors = [err833];}else {vErrors.push(err833);}errors++;}if("crm:E33_Linguistic_Object" !== data245){const err834 = {};if(vErrors === null){vErrors = [err834];}else {vErrors.push(err834);}errors++;}var valid211 = _errs866 === errors;}}}}}}else {const err835 = {};if(vErrors === null){vErrors = [err835];}else {vErrors.push(err835);}errors++;}}var _valid73 = _errs860 === errors;valid208 = valid208 || _valid73;}}if(!valid208){const err836 = {};if(vErrors === null){vErrors = [err836];}else {vErrors.push(err836);}errors++;}else {errors = _errs845;if(vErrors !== null){if(_errs845){vErrors.length = _errs845;}else {vErrors = null;}}}}}else {const err837 = {};if(vErrors === null){vErrors = [err837];}else {vErrors.push(err837);}errors++;}}var _valid72 = _errs842 === errors;errors = _errs841;if(vErrors !== null){if(_errs841){vErrors.length = _errs841;}else {vErrors = null;}}if(_valid72){const _errs868 = errors;const _errs870 = errors;let valid212 = true;const _errs871 = errors;if(errors === _errs871){if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.type !== undefined){let data246 = data236.type;const _errs873 = errors;if(errors === _errs873){if(Array.isArray(data246)){if(data246.length > 3){const err838 = {};if(vErrors === null){vErrors = [err838];}else {vErrors.push(err838);}errors++;}else {if(data246.length < 3){const err839 = {};if(vErrors === null){vErrors = [err839];}else {vErrors.push(err839);}errors++;}else {const len78 = data246.length;if(len78 > 0){let data247 = data246[0];const _errs875 = errors;if(typeof data247 !== "string"){const err840 = {};if(vErrors === null){vErrors = [err840];}else {vErrors.push(err840);}errors++;}if("TextualBody" !== data247){const err841 = {};if(vErrors === null){vErrors = [err841];}else {vErrors.push(err841);}errors++;}var valid214 = _errs875 === errors;}if(valid214){if(len78 > 1){let data248 = data246[1];const _errs877 = errors;if(typeof data248 !== "string"){const err842 = {};if(vErrors === null){vErrors = [err842];}else {vErrors.push(err842);}errors++;}if("xsd:date" !== data248){const err843 = {};if(vErrors === null){vErrors = [err843];}else {vErrors.push(err843);}errors++;}var valid214 = _errs877 === errors;}if(valid214){if(len78 > 2){let data249 = data246[2];const _errs879 = errors;if(typeof data249 !== "string"){const err844 = {};if(vErrors === null){vErrors = [err844];}else {vErrors.push(err844);}errors++;}if("crm:E52_Time-Span" !== data249){const err845 = {};if(vErrors === null){vErrors = [err845];}else {vErrors.push(err845);}errors++;}var valid214 = _errs879 === errors;}}}}}}else {const err846 = {};if(vErrors === null){vErrors = [err846];}else {vErrors.push(err846);}errors++;}}}}else {const err847 = {};if(vErrors === null){vErrors = [err847];}else {vErrors.push(err847);}errors++;}}var _valid74 = _errs871 === errors;errors = _errs870;if(vErrors !== null){if(_errs870){vErrors.length = _errs870;}else {vErrors = null;}}if(_valid74){const _errs881 = errors;if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.id === undefined){const err848 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err848];}else {vErrors.push(err848);}errors++;}if(data236.type === undefined){const err849 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err849];}else {vErrors.push(err849);}errors++;}if(data236.value === undefined){const err850 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err850];}else {vErrors.push(err850);}errors++;}if(data236.value !== undefined){let data250 = data236.value;if(typeof data250 === "string"){if(!pattern0.test(data250)){const err851 = {instancePath:instancePath+"/body/" + i12+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err851];}else {vErrors.push(err851);}errors++;}}else {const err852 = {instancePath:instancePath+"/body/" + i12+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err852];}else {vErrors.push(err852);}errors++;}}}else {const err853 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err853];}else {vErrors.push(err853);}errors++;}var _valid74 = _errs881 === errors;valid212 = _valid74;}if(!valid212){const err854 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err854];}else {vErrors.push(err854);}errors++;}if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.id === undefined){const err855 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err855];}else {vErrors.push(err855);}errors++;}if(data236.type === undefined){const err856 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err856];}else {vErrors.push(err856);}errors++;}if(data236.value === undefined){const err857 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err857];}else {vErrors.push(err857);}errors++;}}else {const err858 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err858];}else {vErrors.push(err858);}errors++;}var _valid72 = _errs868 === errors;valid206 = _valid72;}if(!valid206){const err859 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err859];}else {vErrors.push(err859);}errors++;}var _valid71 = _errs840 === errors;valid205 = valid205 || _valid71;if(!valid205){const err860 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err860];}else {vErrors.push(err860);}errors++;}else {errors = _errs839;if(vErrors !== null){if(_errs839){vErrors.length = _errs839;}else {vErrors = null;}}}if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.id === undefined){const err861 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err861];}else {vErrors.push(err861);}errors++;}if(data236.type === undefined){const err862 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err862];}else {vErrors.push(err862);}errors++;}for(const key4 in data236){if(!((((((key4 === "id") || (key4 === "type")) || (key4 === "value")) || (key4 === "label")) || (key4 === "P2_has_type")) || (key4 === "description"))){const err863 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err863];}else {vErrors.push(err863);}errors++;}}if(data236.id !== undefined){let data251 = data236.id;if(typeof data251 === "string"){if(!(formats0(data251))){const err864 = {instancePath:instancePath+"/body/" + i12+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err864];}else {vErrors.push(err864);}errors++;}}else {const err865 = {instancePath:instancePath+"/body/" + i12+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err865];}else {vErrors.push(err865);}errors++;}}if(data236.type !== undefined){let data252 = data236.type;const _errs889 = errors;let valid217 = false;let passing52 = null;const _errs890 = errors;const _errs891 = errors;let valid218 = false;let passing53 = null;const _errs892 = errors;if(typeof data252 !== "string"){const err866 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err866];}else {vErrors.push(err866);}errors++;}if("crm:E21_Person" !== data252){const err867 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err867];}else {vErrors.push(err867);}errors++;}var _valid76 = _errs892 === errors;if(_valid76){valid218 = true;passing53 = 0;}const _errs894 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err868 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err868];}else {vErrors.push(err868);}errors++;}if(data252.length < 2){const err869 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err869];}else {vErrors.push(err869);}errors++;}const len79 = data252.length;if(len79 > 0){let data253 = data252[0];if(typeof data253 !== "string"){const err870 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err870];}else {vErrors.push(err870);}errors++;}if("foaf:Person" !== data253){const err871 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err871];}else {vErrors.push(err871);}errors++;}}if(len79 > 1){let data254 = data252[1];if(typeof data254 !== "string"){const err872 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err872];}else {vErrors.push(err872);}errors++;}if("crm:E89_Propositional_Object" !== data254){const err873 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err873];}else {vErrors.push(err873);}errors++;}}}else {const err874 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err874];}else {vErrors.push(err874);}errors++;}var _valid76 = _errs894 === errors;if(_valid76 && valid218){valid218 = false;passing53 = [passing53, 1];}else {if(_valid76){valid218 = true;passing53 = 1;}}if(!valid218){const err875 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing53},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err875];}else {vErrors.push(err875);}errors++;}else {errors = _errs891;if(vErrors !== null){if(_errs891){vErrors.length = _errs891;}else {vErrors = null;}}}var _valid75 = _errs890 === errors;if(_valid75){valid217 = true;passing52 = 0;}const _errs900 = errors;const _errs901 = errors;let valid220 = false;let passing54 = null;const _errs902 = errors;if(typeof data252 !== "string"){const err876 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err876];}else {vErrors.push(err876);}errors++;}if("crm:E53_Place" !== data252){const err877 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err877];}else {vErrors.push(err877);}errors++;}var _valid77 = _errs902 === errors;if(_valid77){valid220 = true;passing54 = 0;}const _errs904 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err878 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err878];}else {vErrors.push(err878);}errors++;}if(data252.length < 2){const err879 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err879];}else {vErrors.push(err879);}errors++;}const len80 = data252.length;if(len80 > 0){let data255 = data252[0];if(typeof data255 !== "string"){const err880 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err880];}else {vErrors.push(err880);}errors++;}if("biography:fictionalPlace" !== data255){const err881 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err881];}else {vErrors.push(err881);}errors++;}}if(len80 > 1){let data256 = data252[1];if(typeof data256 !== "string"){const err882 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err882];}else {vErrors.push(err882);}errors++;}if("crm:E89_Propositional_Object" !== data256){const err883 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err883];}else {vErrors.push(err883);}errors++;}}}else {const err884 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err884];}else {vErrors.push(err884);}errors++;}var _valid77 = _errs904 === errors;if(_valid77 && valid220){valid220 = false;passing54 = [passing54, 1];}else {if(_valid77){valid220 = true;passing54 = 1;}}if(!valid220){const err885 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing54},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err885];}else {vErrors.push(err885);}errors++;}else {errors = _errs901;if(vErrors !== null){if(_errs901){vErrors.length = _errs901;}else {vErrors = null;}}}var _valid75 = _errs900 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 1];}else {if(_valid75){valid217 = true;passing52 = 1;}const _errs910 = errors;const _errs911 = errors;let valid222 = false;let passing55 = null;const _errs912 = errors;if(typeof data252 !== "string"){const err886 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err886];}else {vErrors.push(err886);}errors++;}if("crm:E74_Group" !== data252){const err887 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err887];}else {vErrors.push(err887);}errors++;}var _valid78 = _errs912 === errors;if(_valid78){valid222 = true;passing55 = 0;}const _errs914 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err888 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err888];}else {vErrors.push(err888);}errors++;}if(data252.length < 2){const err889 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err889];}else {vErrors.push(err889);}errors++;}const len81 = data252.length;if(len81 > 0){let data257 = data252[0];if(typeof data257 !== "string"){const err890 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err890];}else {vErrors.push(err890);}errors++;}if("foaf:Organization" !== data257){const err891 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err891];}else {vErrors.push(err891);}errors++;}}if(len81 > 1){let data258 = data252[1];if(typeof data258 !== "string"){const err892 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err892];}else {vErrors.push(err892);}errors++;}if("crm:E89_Propositional_Object" !== data258){const err893 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err893];}else {vErrors.push(err893);}errors++;}}}else {const err894 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err894];}else {vErrors.push(err894);}errors++;}var _valid78 = _errs914 === errors;if(_valid78 && valid222){valid222 = false;passing55 = [passing55, 1];}else {if(_valid78){valid222 = true;passing55 = 1;}}if(!valid222){const err895 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing55},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err895];}else {vErrors.push(err895);}errors++;}else {errors = _errs911;if(vErrors !== null){if(_errs911){vErrors.length = _errs911;}else {vErrors = null;}}}var _valid75 = _errs910 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 2];}else {if(_valid75){valid217 = true;passing52 = 2;}const _errs920 = errors;const _errs921 = errors;let valid224 = false;let passing56 = null;const _errs922 = errors;if(typeof data252 !== "string"){const err896 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err896];}else {vErrors.push(err896);}errors++;}if("frbroo:F1" !== data252){const err897 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err897];}else {vErrors.push(err897);}errors++;}var _valid79 = _errs922 === errors;if(_valid79){valid224 = true;passing56 = 0;}const _errs924 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err898 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err898];}else {vErrors.push(err898);}errors++;}if(data252.length < 2){const err899 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err899];}else {vErrors.push(err899);}errors++;}const len82 = data252.length;if(len82 > 0){let data259 = data252[0];if(typeof data259 !== "string"){const err900 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err900];}else {vErrors.push(err900);}errors++;}if("frbroo:F1" !== data259){const err901 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err901];}else {vErrors.push(err901);}errors++;}}if(len82 > 1){let data260 = data252[1];if(typeof data260 !== "string"){const err902 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err902];}else {vErrors.push(err902);}errors++;}if("wikidata:Q15306849" !== data260){const err903 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err903];}else {vErrors.push(err903);}errors++;}}}else {const err904 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err904];}else {vErrors.push(err904);}errors++;}var _valid79 = _errs924 === errors;if(_valid79 && valid224){valid224 = false;passing56 = [passing56, 1];}else {if(_valid79){valid224 = true;passing56 = 1;}}if(!valid224){const err905 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing56},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err905];}else {vErrors.push(err905);}errors++;}else {errors = _errs921;if(vErrors !== null){if(_errs921){vErrors.length = _errs921;}else {vErrors = null;}}}var _valid75 = _errs920 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 3];}else {if(_valid75){valid217 = true;passing52 = 3;}const _errs930 = errors;const _errs931 = errors;let valid226 = false;let passing57 = null;const _errs932 = errors;if(typeof data252 !== "string"){const err906 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err906];}else {vErrors.push(err906);}errors++;}if("crm:E18_Physical_Thing" !== data252){const err907 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err907];}else {vErrors.push(err907);}errors++;}var _valid80 = _errs932 === errors;if(_valid80){valid226 = true;passing57 = 0;}const _errs934 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err908 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err908];}else {vErrors.push(err908);}errors++;}if(data252.length < 2){const err909 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err909];}else {vErrors.push(err909);}errors++;}const len83 = data252.length;if(len83 > 0){let data261 = data252[0];if(typeof data261 !== "string"){const err910 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err910];}else {vErrors.push(err910);}errors++;}if("wikidata:Q15831596" !== data261){const err911 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err911];}else {vErrors.push(err911);}errors++;}}if(len83 > 1){let data262 = data252[1];if(typeof data262 !== "string"){const err912 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err912];}else {vErrors.push(err912);}errors++;}if("crm:E89_Propositional_Object" !== data262){const err913 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err913];}else {vErrors.push(err913);}errors++;}}}else {const err914 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err914];}else {vErrors.push(err914);}errors++;}var _valid80 = _errs934 === errors;if(_valid80 && valid226){valid226 = false;passing57 = [passing57, 1];}else {if(_valid80){valid226 = true;passing57 = 1;}}if(!valid226){const err915 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing57},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err915];}else {vErrors.push(err915);}errors++;}else {errors = _errs931;if(vErrors !== null){if(_errs931){vErrors.length = _errs931;}else {vErrors = null;}}}var _valid75 = _errs930 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 4];}else {if(_valid75){valid217 = true;passing52 = 4;}const _errs940 = errors;if(typeof data252 !== "string"){const err916 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err916];}else {vErrors.push(err916);}errors++;}if("crm:E28_Conceptual_Object" !== data252){const err917 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err917];}else {vErrors.push(err917);}errors++;}var _valid75 = _errs940 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 5];}else {if(_valid75){valid217 = true;passing52 = 5;}const _errs942 = errors;const _errs943 = errors;let valid228 = false;let passing58 = null;const _errs944 = errors;if(typeof data252 !== "string"){const err918 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err918];}else {vErrors.push(err918);}errors++;}if("crm:E5_Event" !== data252){const err919 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err919];}else {vErrors.push(err919);}errors++;}var _valid81 = _errs944 === errors;if(_valid81){valid228 = true;passing58 = 0;}const _errs946 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err920 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err920];}else {vErrors.push(err920);}errors++;}if(data252.length < 2){const err921 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err921];}else {vErrors.push(err921);}errors++;}const len84 = data252.length;if(len84 > 0){let data263 = data252[0];if(typeof data263 !== "string"){const err922 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err922];}else {vErrors.push(err922);}errors++;}if("event:Event" !== data263){const err923 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err923];}else {vErrors.push(err923);}errors++;}}if(len84 > 1){let data264 = data252[1];if(typeof data264 !== "string"){const err924 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err924];}else {vErrors.push(err924);}errors++;}if("crm:E89_Propositional_Object" !== data264){const err925 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err925];}else {vErrors.push(err925);}errors++;}}}else {const err926 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err926];}else {vErrors.push(err926);}errors++;}var _valid81 = _errs946 === errors;if(_valid81 && valid228){valid228 = false;passing58 = [passing58, 1];}else {if(_valid81){valid228 = true;passing58 = 1;}}if(!valid228){const err927 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing58},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err927];}else {vErrors.push(err927);}errors++;}else {errors = _errs943;if(vErrors !== null){if(_errs943){vErrors.length = _errs943;}else {vErrors = null;}}}var _valid75 = _errs942 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 6];}else {if(_valid75){valid217 = true;passing52 = 6;}const _errs952 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err928 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err928];}else {vErrors.push(err928);}errors++;}if(data252.length < 2){const err929 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err929];}else {vErrors.push(err929);}errors++;}const len85 = data252.length;if(len85 > 0){let data265 = data252[0];if(typeof data265 !== "string"){const err930 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err930];}else {vErrors.push(err930);}errors++;}if("cito:Citation" !== data265){const err931 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err931];}else {vErrors.push(err931);}errors++;}}if(len85 > 1){let data266 = data252[1];if(typeof data266 !== "string"){const err932 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err932];}else {vErrors.push(err932);}errors++;}if("crm:E73_Information_Object" !== data266){const err933 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err933];}else {vErrors.push(err933);}errors++;}}}else {const err934 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err934];}else {vErrors.push(err934);}errors++;}var _valid75 = _errs952 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 7];}else {if(_valid75){valid217 = true;passing52 = 7;}const _errs958 = errors;if(Array.isArray(data252)){if(data252.length > 3){const err935 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err935];}else {vErrors.push(err935);}errors++;}if(data252.length < 3){const err936 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err936];}else {vErrors.push(err936);}errors++;}const len86 = data252.length;if(len86 > 0){let data267 = data252[0];if(typeof data267 !== "string"){const err937 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err937];}else {vErrors.push(err937);}errors++;}if("TextualBody" !== data267){const err938 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err938];}else {vErrors.push(err938);}errors++;}}if(len86 > 1){let data268 = data252[1];if(typeof data268 !== "string"){const err939 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err939];}else {vErrors.push(err939);}errors++;}if("xsd:date" !== data268){const err940 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err940];}else {vErrors.push(err940);}errors++;}}if(len86 > 2){let data269 = data252[2];if(typeof data269 !== "string"){const err941 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err941];}else {vErrors.push(err941);}errors++;}if("crm:E52_Time-Span" !== data269){const err942 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err942];}else {vErrors.push(err942);}errors++;}}}else {const err943 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err943];}else {vErrors.push(err943);}errors++;}var _valid75 = _errs958 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 8];}else {if(_valid75){valid217 = true;passing52 = 8;}const _errs966 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err944 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err944];}else {vErrors.push(err944);}errors++;}if(data252.length < 2){const err945 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err945];}else {vErrors.push(err945);}errors++;}const len87 = data252.length;if(len87 > 0){let data270 = data252[0];if(typeof data270 !== "string"){const err946 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err946];}else {vErrors.push(err946);}errors++;}if("TextualBody" !== data270){const err947 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err947];}else {vErrors.push(err947);}errors++;}}if(len87 > 1){let data271 = data252[1];if(typeof data271 !== "string"){const err948 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err948];}else {vErrors.push(err948);}errors++;}if("crm:E33_Linguistic_Object" !== data271){const err949 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err949];}else {vErrors.push(err949);}errors++;}}}else {const err950 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err950];}else {vErrors.push(err950);}errors++;}var _valid75 = _errs966 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 9];}else {if(_valid75){valid217 = true;passing52 = 9;}const _errs972 = errors;if(Array.isArray(data252)){if(data252.length > 3){const err951 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err951];}else {vErrors.push(err951);}errors++;}if(data252.length < 3){const err952 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err952];}else {vErrors.push(err952);}errors++;}const len88 = data252.length;if(len88 > 0){let data272 = data252[0];if(typeof data272 !== "string"){const err953 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err953];}else {vErrors.push(err953);}errors++;}if("TextualBody" !== data272){const err954 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err954];}else {vErrors.push(err954);}errors++;}}if(len88 > 1){let data273 = data252[1];if(typeof data273 !== "string"){const err955 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err955];}else {vErrors.push(err955);}errors++;}if("fabio:Correction" !== data273){const err956 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err956];}else {vErrors.push(err956);}errors++;}}if(len88 > 2){let data274 = data252[2];if(typeof data274 !== "string"){const err957 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err957];}else {vErrors.push(err957);}errors++;}if("crm:E33_Linguistic_Object" !== data274){const err958 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err958];}else {vErrors.push(err958);}errors++;}}}else {const err959 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err959];}else {vErrors.push(err959);}errors++;}var _valid75 = _errs972 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 10];}else {if(_valid75){valid217 = true;passing52 = 10;}const _errs980 = errors;if(typeof data252 !== "string"){const err960 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err960];}else {vErrors.push(err960);}errors++;}if("crmdig:D1_Digital_Object" !== data252){const err961 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err961];}else {vErrors.push(err961);}errors++;}var _valid75 = _errs980 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 11];}else {if(_valid75){valid217 = true;passing52 = 11;}}}}}}}}}}}}if(!valid217){const err962 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing52},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err962];}else {vErrors.push(err962);}errors++;}else {errors = _errs889;if(vErrors !== null){if(_errs889){vErrors.length = _errs889;}else {vErrors = null;}}}}if(data236.value !== undefined){if(typeof data236.value !== "string"){const err963 = {instancePath:instancePath+"/body/" + i12+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err963];}else {vErrors.push(err963);}errors++;}}if(data236.label !== undefined){let data276 = data236.label;if(typeof data276 === "string"){if(func2(data276) < 1){const err964 = {instancePath:instancePath+"/body/" + i12+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err964];}else {vErrors.push(err964);}errors++;}}else {const err965 = {instancePath:instancePath+"/body/" + i12+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err965];}else {vErrors.push(err965);}errors++;}}if(data236.P2_has_type !== undefined){let data277 = data236.P2_has_type;if(Array.isArray(data277)){const len89 = data277.length;for(let i13=0; i13<len89; i13++){if(typeof data277[i13] !== "string"){const err966 = {instancePath:instancePath+"/body/" + i12+"/P2_has_type/" + i13,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err966];}else {vErrors.push(err966);}errors++;}}}else {const err967 = {instancePath:instancePath+"/body/" + i12+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err967];}else {vErrors.push(err967);}errors++;}}if(data236.description !== undefined){if(typeof data236.description !== "string"){const err968 = {instancePath:instancePath+"/body/" + i12+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err968];}else {vErrors.push(err968);}errors++;}}}else {const err969 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err969];}else {vErrors.push(err969);}errors++;}}}else {const err970 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err970];}else {vErrors.push(err970);}errors++;}var _valid59 = _errs834 === errors;if(_valid59 && valid169){valid169 = false;passing44 = [passing44, 2];}else {if(_valid59){valid169 = true;passing44 = 2;}}}if(!valid169){const err971 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing44},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err971];}else {vErrors.push(err971);}errors++;}else {errors = _errs676;if(vErrors !== null){if(_errs676){vErrors.length = _errs676;}else {vErrors = null;}}}}if(data.label !== undefined){if(typeof data.label !== "string"){const err972 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err972];}else {vErrors.push(err972);}errors++;}}if(data.P2_has_type !== undefined){let data281 = data.P2_has_type;if(Array.isArray(data281)){if(data281.length > 3){const err973 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err973];}else {vErrors.push(err973);}errors++;}if(data281.length < 1){const err974 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err974];}else {vErrors.push(err974);}errors++;}const len90 = data281.length;var valid236 = len90 <= 1;if(!valid236){for(let i14=1; i14<len90; i14++){let data282 = data281[i14];const _errs996 = errors;const _errs997 = errors;let valid237 = false;let passing59 = null;const _errs998 = errors;const _errs999 = errors;let valid238 = false;let passing60 = null;const _errs1000 = errors;if(typeof data282 !== "string"){const err975 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err975];}else {vErrors.push(err975);}errors++;}if(!((((data282 === "edit:qualityLowCertainty") || (data282 === "edit:qualityMediumCertainty")) || (data282 === "edit:qualityHighCertainty")) || (data282 === "edit:qualityUnknownCertainty"))){const err976 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err976];}else {vErrors.push(err976);}errors++;}var _valid83 = _errs1000 === errors;if(_valid83){valid238 = true;passing60 = 0;}if(!valid238){const err977 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing60},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err977];}else {vErrors.push(err977);}errors++;}else {errors = _errs999;if(vErrors !== null){if(_errs999){vErrors.length = _errs999;}else {vErrors = null;}}}var _valid82 = _errs998 === errors;if(_valid82){valid237 = true;passing59 = 0;}const _errs1002 = errors;const _errs1003 = errors;let valid239 = false;let passing61 = null;const _errs1004 = errors;if(typeof data282 !== "string"){const err978 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err978];}else {vErrors.push(err978);}errors++;}if(!((((data282 === "edit:qualityLowPrecision") || (data282 === "edit:qualityMediumPrecision")) || (data282 === "edit:qualityHighPrecision")) || (data282 === "edit:qualityUnknownPrecision"))){const err979 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err979];}else {vErrors.push(err979);}errors++;}var _valid84 = _errs1004 === errors;if(_valid84){valid239 = true;passing61 = 0;}if(!valid239){const err980 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing61},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err980];}else {vErrors.push(err980);}errors++;}else {errors = _errs1003;if(vErrors !== null){if(_errs1003){vErrors.length = _errs1003;}else {vErrors = null;}}}var _valid82 = _errs1002 === errors;if(_valid82 && valid237){valid237 = false;passing59 = [passing59, 1];}else {if(_valid82){valid237 = true;passing59 = 1;}}if(!valid237){const err981 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing59},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err981];}else {vErrors.push(err981);}errors++;}else {errors = _errs997;if(vErrors !== null){if(_errs997){vErrors.length = _errs997;}else {vErrors = null;}}}var valid236 = _errs996 === errors;}}const len91 = data281.length;if(len91 > 0){let data283 = data281[0];const _errs1007 = errors;let valid241 = false;let passing62 = null;const _errs1008 = errors;if(typeof data283 !== "string"){const err982 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err982];}else {vErrors.push(err982);}errors++;}if(!((((((data283 === "oa:identifying") || (data283 === "oa:describing")) || (data283 === "correcting")) || (data283 === "oa:linking")) || (data283 === "oa:tagging")) || (data283 === "citing"))){const err983 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.P2_has_type.items[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err983];}else {vErrors.push(err983);}errors++;}var _valid85 = _errs1008 === errors;if(_valid85){valid241 = true;passing62 = 0;}if(!valid241){const err984 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing62},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err984];}else {vErrors.push(err984);}errors++;}else {errors = _errs1007;if(vErrors !== null){if(_errs1007){vErrors.length = _errs1007;}else {vErrors = null;}}}}}else {const err985 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err985];}else {vErrors.push(err985);}errors++;}}}else {const err986 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err986];}else {vErrors.push(err986);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";module.exports = validate10;module.exports.default = validate10;const schema11 = {"$id":"https://wa.lincsproject.ca/v1/schema.jsonld","type":"object","description":"LINCS Web Annotation Model","properties":{"@context":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},{"type":"string","const":"https://wa.lincsproject.ca/v1/ns/anno.jsonld"}],"description":"The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."},"id":{"type":"string","format":"uri","description":"The type of the Annotation."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Annotation"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The type of the Annotation."},"motivation":{"oneOf":[{"type":"string","enum":["oa:identifying","oa:describing","correcting","oa:linking","oa:tagging","citing"]}],"description":"The relationship between an Annotation and a Motivation."},"created":{"type":"string","format":"date-time","description":"The time at which the resource was created."},"modified":{"type":"string","format":"date-time","description":"The time at which the resource was modified, after creation."},"creator":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"}]},"contributor":{"type":"array","items":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"},{"$ref":"defs.jsonld#/definitions/software"}]},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"oneOf":[{"$ref":"defs.jsonld#/definitions/target"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/target"},"minItems":1}]},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"label":{"type":"string"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"oneOf":[{"type":"string","enum":["oa:identifying","oa:describing","correcting","oa:linking","oa:tagging","citing"]}],"description":"The relationship between an Annotation and a Motivation."}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}},"required":["@context","id","type","motivation","created","generator","target","body","P2_has_type"],"additionalProperties":false,"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"wikidata:Q15831596"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"event:Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:identifying"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:identifying"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"crm:E28_Conceptual_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:tagging"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:tagging"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:describing"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:describing"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"correcting"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"correcting"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:linking"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:linking"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"citing"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"citing"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","enum":["edit:certaintyUnknown","edit:certaintyLow","edit:certaintyMedium","edit:certaintyHigh"]}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","enum":["edit:precisionUnknown","edit:precisionLow","edit:precisionMedium","edit:precisionHigh"]}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}}}}}}}},{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"Choice"}}}}},"then":{"type":"object","properties":{"body":{"$ref":"defs.jsonld#/definitions/bodyChoice"}}},"else":{"type":"object","properties":{"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]}}}}]};const schema14 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"wikidata:Q15831596"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"string","const":"crm:E28_Conceptual_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"event:Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"}]},"value":{"type":"string"},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"P2_has_type":{"type":"array","items":{"type":"string"}},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","type"],"anyOf":[{"if":{"type":"object","properties":{"type":{"anyOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["id","type","value"],"if":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","required":["id","type","value"],"properties":{"value":{"type":"string","pattern":"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"}}}}}],"additionalProperties":false};const schema17 = {"type":"object","description":"User Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The person's name."}},"required":["id","type","name"]};const schema18 = {"type":"object","description":"Group Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E74_Group"},"name":{"type":"string","minLength":1,"description":"The group's name."}},"required":["id","type","name"]};const schema21 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:E73_Information_Object"}]},"P16_used_specific_object":{"type":"string","format":"uri"},"name":{"type":"string","minLength":1,"description":"The software's name."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","name"]};const schema13 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"Choice"},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","items"],"additionalProperties":false};const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const pattern0 = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$", "u");const func2 = require("ajv/dist/runtime/ucs2length").default;function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "id") || (key0 === "type")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err4 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("Choice" !== data1){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs11 = errors;let valid4 = false;const _errs12 = errors;const _errs13 = errors;let valid5 = true;const _errs14 = errors;if(errors === _errs14){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data4 = data3.type;const _errs17 = errors;let valid7 = false;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data4)){if(data4.length > 2){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.length < 2){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const len1 = data4.length;if(len1 > 0){let data5 = data4[0];const _errs20 = errors;if(typeof data5 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("TextualBody" !== data5){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid8 = _errs20 === errors;}if(valid8){if(len1 > 1){let data6 = data4[1];const _errs22 = errors;if(typeof data6 !== "string"){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("crm:E33_Linguistic_Object" !== data6){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid8 = _errs22 === errors;}}}}}else {const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var _valid2 = _errs18 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs24 = errors;if(errors === _errs24){if(Array.isArray(data4)){if(data4.length > 3){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data4.length < 3){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {const len2 = data4.length;if(len2 > 0){let data7 = data4[0];const _errs26 = errors;if(typeof data7 !== "string"){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("TextualBody" !== data7){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid9 = _errs26 === errors;}if(valid9){if(len2 > 1){let data8 = data4[1];const _errs28 = errors;if(typeof data8 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("xsd:date" !== data8){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs28 === errors;}if(valid9){if(len2 > 2){let data9 = data4[2];const _errs30 = errors;if(typeof data9 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E52_Time-Span" !== data9){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs30 === errors;}}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid2 = _errs24 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data4)){if(data4.length > 3){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(data4.length < 3){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {const len3 = data4.length;if(len3 > 0){let data10 = data4[0];const _errs34 = errors;if(typeof data10 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("TextualBody" !== data10){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs34 === errors;}if(valid10){if(len3 > 1){let data11 = data4[1];const _errs36 = errors;if(typeof data11 !== "string"){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("fabio:Correction" !== data11){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid10 = _errs36 === errors;}if(valid10){if(len3 > 2){let data12 = data4[2];const _errs38 = errors;if(typeof data12 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("crm:E33_Linguistic_Object" !== data12){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid10 = _errs38 === errors;}}}}}}else {const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid2 = _errs32 === errors;valid7 = valid7 || _valid2;}}if(!valid7){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}}}else {const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var _valid1 = _errs14 === errors;errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}if(_valid1){const _errs40 = errors;const _errs42 = errors;let valid11 = true;const _errs43 = errors;if(errors === _errs43){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data13 = data3.type;const _errs45 = errors;if(errors === _errs45){if(Array.isArray(data13)){if(data13.length > 3){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data13.length < 3){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {const len4 = data13.length;if(len4 > 0){let data14 = data13[0];const _errs47 = errors;if(typeof data14 !== "string"){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("TextualBody" !== data14){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid13 = _errs47 === errors;}if(valid13){if(len4 > 1){let data15 = data13[1];const _errs49 = errors;if(typeof data15 !== "string"){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("xsd:date" !== data15){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid13 = _errs49 === errors;}if(valid13){if(len4 > 2){let data16 = data13[2];const _errs51 = errors;if(typeof data16 !== "string"){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("crm:E52_Time-Span" !== data16){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid13 = _errs51 === errors;}}}}}}else {const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}else {const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var _valid3 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid3){const _errs53 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err45 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data3.type === undefined){const err46 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data3.value === undefined){const err47 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(data3.value !== undefined){let data17 = data3.value;if(typeof data17 === "string"){if(!pattern0.test(data17)){const err48 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}else {const err50 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid3 = _errs53 === errors;valid11 = _valid3;}if(!valid11){const err51 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err52 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data3.type === undefined){const err53 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data3.value === undefined){const err54 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}else {const err55 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid1 = _errs40 === errors;valid5 = _valid1;}if(!valid5){const err56 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid0 = _errs12 === errors;valid4 = valid4 || _valid0;if(!valid4){const err57 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err58 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data3.type === undefined){const err59 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key1 in data3){if(!((((((key1 === "id") || (key1 === "type")) || (key1 === "value")) || (key1 === "label")) || (key1 === "P2_has_type")) || (key1 === "description"))){const err60 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data3.id !== undefined){let data18 = data3.id;if(typeof data18 === "string"){if(!(formats0(data18))){const err61 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data3.type !== undefined){let data19 = data3.type;const _errs61 = errors;let valid16 = false;let passing0 = null;const _errs62 = errors;const _errs63 = errors;let valid17 = false;let passing1 = null;const _errs64 = errors;if(typeof data19 !== "string"){const err63 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("crm:E21_Person" !== data19){const err64 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid5 = _errs64 === errors;if(_valid5){valid17 = true;passing1 = 0;}const _errs66 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err65 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data19.length < 2){const err66 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}const len5 = data19.length;if(len5 > 0){let data20 = data19[0];if(typeof data20 !== "string"){const err67 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("foaf:Person" !== data20){const err68 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(len5 > 1){let data21 = data19[1];if(typeof data21 !== "string"){const err69 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if("crm:E89_Propositional_Object" !== data21){const err70 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var _valid5 = _errs66 === errors;if(_valid5 && valid17){valid17 = false;passing1 = [passing1, 1];}else {if(_valid5){valid17 = true;passing1 = 1;}}if(!valid17){const err72 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}}var _valid4 = _errs62 === errors;if(_valid4){valid16 = true;passing0 = 0;}const _errs72 = errors;const _errs73 = errors;let valid19 = false;let passing2 = null;const _errs74 = errors;if(typeof data19 !== "string"){const err73 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E53_Place" !== data19){const err74 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid6 = _errs74 === errors;if(_valid6){valid19 = true;passing2 = 0;}const _errs76 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err75 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data19.length < 2){const err76 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const len6 = data19.length;if(len6 > 0){let data22 = data19[0];if(typeof data22 !== "string"){const err77 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if("biography:fictionalPlace" !== data22){const err78 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(len6 > 1){let data23 = data19[1];if(typeof data23 !== "string"){const err79 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("crm:E89_Propositional_Object" !== data23){const err80 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid6 = _errs76 === errors;if(_valid6 && valid19){valid19 = false;passing2 = [passing2, 1];}else {if(_valid6){valid19 = true;passing2 = 1;}}if(!valid19){const err82 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}var _valid4 = _errs72 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 1];}else {if(_valid4){valid16 = true;passing0 = 1;}const _errs82 = errors;const _errs83 = errors;let valid21 = false;let passing3 = null;const _errs84 = errors;if(typeof data19 !== "string"){const err83 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E74_Group" !== data19){const err84 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid7 = _errs84 === errors;if(_valid7){valid21 = true;passing3 = 0;}const _errs86 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err85 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data19.length < 2){const err86 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const len7 = data19.length;if(len7 > 0){let data24 = data19[0];if(typeof data24 !== "string"){const err87 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("foaf:Organization" !== data24){const err88 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(len7 > 1){let data25 = data19[1];if(typeof data25 !== "string"){const err89 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E89_Propositional_Object" !== data25){const err90 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid7 = _errs86 === errors;if(_valid7 && valid21){valid21 = false;passing3 = [passing3, 1];}else {if(_valid7){valid21 = true;passing3 = 1;}}if(!valid21){const err92 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}}var _valid4 = _errs82 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 2];}else {if(_valid4){valid16 = true;passing0 = 2;}const _errs92 = errors;const _errs93 = errors;let valid23 = false;let passing4 = null;const _errs94 = errors;if(typeof data19 !== "string"){const err93 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("frbroo:F1" !== data19){const err94 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var _valid8 = _errs94 === errors;if(_valid8){valid23 = true;passing4 = 0;}const _errs96 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err95 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data19.length < 2){const err96 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const len8 = data19.length;if(len8 > 0){let data26 = data19[0];if(typeof data26 !== "string"){const err97 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if("frbroo:F1" !== data26){const err98 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(len8 > 1){let data27 = data19[1];if(typeof data27 !== "string"){const err99 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if("wikidata:Q15306849" !== data27){const err100 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}else {const err101 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var _valid8 = _errs96 === errors;if(_valid8 && valid23){valid23 = false;passing4 = [passing4, 1];}else {if(_valid8){valid23 = true;passing4 = 1;}}if(!valid23){const err102 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}}var _valid4 = _errs92 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 3];}else {if(_valid4){valid16 = true;passing0 = 3;}const _errs102 = errors;const _errs103 = errors;let valid25 = false;let passing5 = null;const _errs104 = errors;if(typeof data19 !== "string"){const err103 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("crm:E18_Physical_Thing" !== data19){const err104 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var _valid9 = _errs104 === errors;if(_valid9){valid25 = true;passing5 = 0;}const _errs106 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err105 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data19.length < 2){const err106 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const len9 = data19.length;if(len9 > 0){let data28 = data19[0];if(typeof data28 !== "string"){const err107 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if("wikidata:Q15831596" !== data28){const err108 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(len9 > 1){let data29 = data19[1];if(typeof data29 !== "string"){const err109 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if("crm:E89_Propositional_Object" !== data29){const err110 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}else {const err111 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var _valid9 = _errs106 === errors;if(_valid9 && valid25){valid25 = false;passing5 = [passing5, 1];}else {if(_valid9){valid25 = true;passing5 = 1;}}if(!valid25){const err112 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}}var _valid4 = _errs102 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 4];}else {if(_valid4){valid16 = true;passing0 = 4;}const _errs112 = errors;if(typeof data19 !== "string"){const err113 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if("crm:E28_Conceptual_Object" !== data19){const err114 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}var _valid4 = _errs112 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 5];}else {if(_valid4){valid16 = true;passing0 = 5;}const _errs114 = errors;const _errs115 = errors;let valid27 = false;let passing6 = null;const _errs116 = errors;if(typeof data19 !== "string"){const err115 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("crm:E5_Event" !== data19){const err116 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid10 = _errs116 === errors;if(_valid10){valid27 = true;passing6 = 0;}const _errs118 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err117 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data19.length < 2){const err118 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const len10 = data19.length;if(len10 > 0){let data30 = data19[0];if(typeof data30 !== "string"){const err119 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if("event:Event" !== data30){const err120 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(len10 > 1){let data31 = data19[1];if(typeof data31 !== "string"){const err121 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if("crm:E89_Propositional_Object" !== data31){const err122 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}else {const err123 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid10 = _errs118 === errors;if(_valid10 && valid27){valid27 = false;passing6 = [passing6, 1];}else {if(_valid10){valid27 = true;passing6 = 1;}}if(!valid27){const err124 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}}var _valid4 = _errs114 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 6];}else {if(_valid4){valid16 = true;passing0 = 6;}const _errs124 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err125 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data19.length < 2){const err126 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const len11 = data19.length;if(len11 > 0){let data32 = data19[0];if(typeof data32 !== "string"){const err127 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if("cito:Citation" !== data32){const err128 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(len11 > 1){let data33 = data19[1];if(typeof data33 !== "string"){const err129 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if("crm:E73_Information_Object" !== data33){const err130 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}else {const err131 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid4 = _errs124 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 7];}else {if(_valid4){valid16 = true;passing0 = 7;}const _errs130 = errors;if(Array.isArray(data19)){if(data19.length > 3){const err132 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data19.length < 3){const err133 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const len12 = data19.length;if(len12 > 0){let data34 = data19[0];if(typeof data34 !== "string"){const err134 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if("TextualBody" !== data34){const err135 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(len12 > 1){let data35 = data19[1];if(typeof data35 !== "string"){const err136 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("xsd:date" !== data35){const err137 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(len12 > 2){let data36 = data19[2];if(typeof data36 !== "string"){const err138 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if("crm:E52_Time-Span" !== data36){const err139 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}var _valid4 = _errs130 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 8];}else {if(_valid4){valid16 = true;passing0 = 8;}const _errs138 = errors;if(Array.isArray(data19)){if(data19.length > 2){const err141 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data19.length < 2){const err142 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}const len13 = data19.length;if(len13 > 0){let data37 = data19[0];if(typeof data37 !== "string"){const err143 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if("TextualBody" !== data37){const err144 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(len13 > 1){let data38 = data19[1];if(typeof data38 !== "string"){const err145 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if("crm:E33_Linguistic_Object" !== data38){const err146 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid4 = _errs138 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 9];}else {if(_valid4){valid16 = true;passing0 = 9;}const _errs144 = errors;if(Array.isArray(data19)){if(data19.length > 3){const err148 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data19.length < 3){const err149 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const len14 = data19.length;if(len14 > 0){let data39 = data19[0];if(typeof data39 !== "string"){const err150 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("TextualBody" !== data39){const err151 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(len14 > 1){let data40 = data19[1];if(typeof data40 !== "string"){const err152 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("fabio:Correction" !== data40){const err153 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(len14 > 2){let data41 = data19[2];if(typeof data41 !== "string"){const err154 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if("crm:E33_Linguistic_Object" !== data41){const err155 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}else {const err156 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid4 = _errs144 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 10];}else {if(_valid4){valid16 = true;passing0 = 10;}const _errs152 = errors;if(typeof data19 !== "string"){const err157 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if("crmdig:D1_Digital_Object" !== data19){const err158 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}var _valid4 = _errs152 === errors;if(_valid4 && valid16){valid16 = false;passing0 = [passing0, 11];}else {if(_valid4){valid16 = true;passing0 = 11;}}}}}}}}}}}}if(!valid16){const err159 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}if(data3.value !== undefined){if(typeof data3.value !== "string"){const err160 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data3.label !== undefined){let data43 = data3.label;if(typeof data43 === "string"){if(func2(data43) < 1){const err161 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data3.P2_has_type !== undefined){let data44 = data3.P2_has_type;if(Array.isArray(data44)){const len15 = data44.length;for(let i1=0; i1<len15; i1++){if(typeof data44[i1] !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/P2_has_type/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}else {const err164 = {instancePath:instancePath+"/items/" + i0+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data3.description !== undefined){if(typeof data3.description !== "string"){const err165 = {instancePath:instancePath+"/items/" + i0+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}else {const err166 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema23 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target resource."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"SpecificResource"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Specific Resource."},"source":{"type":"object","description":"Web Annotation Target's source","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target source."},"type":{"type":"string","const":"crm:D1_Digital_Object"},"format":{"type":["string","array"],"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification."}]},"P1_is_identified_by":{"type":"object","description":"indentifyBy","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E33_E41_Linguistic_Appellation"},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."}},"required":["id","type","title"],"nullable":true},"language":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},{"type":"array","minItems":1,"items":{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},"description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification."}]}},"required":["id","type","format"]},"renderedVia":{"$ref":"defs.jsonld#/definitions/software","description":"The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."},"selector":{"anyOf":[{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},{"type":"array","items":{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},"minItems":1}]}},"required":["id","type","source"],"allOf":[{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["id","type","exact","prefix","suffix"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","startSelector","endSelector"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","start","end"]}}}}]};const schema25 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."}},"required":["id","type","start","end"]};const schema26 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."}},"required":["id","type","exact","prefix","suffix"]};const schema33 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"}},"required":["id","type","value"]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data0 = data.selector;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs9 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("TextQuoteSelector" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs9 === errors;}if(valid4){if(len0 > 1){let data3 = data1[1];const _errs11 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs11 === errors;}}}}}else {const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data4 = data.selector;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.id === undefined){const err9 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.type === undefined){const err10 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data4.exact === undefined){const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.prefix === undefined){const err12 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data4.suffix === undefined){const err13 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err16 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data5 = data.selector;const _errs21 = errors;if(errors === _errs21){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 2){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data6.length < 2){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("RangeSelector" !== data7){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E73_Information_Object" !== data8){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}else {const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err26 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data9.startSelector === undefined){const err27 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.endSelector === undefined){const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err31 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const _errs34 = errors;let valid11 = true;const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data10 = data.selector;const _errs37 = errors;if(errors === _errs37){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.type !== undefined){let data11 = data10.type;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data11)){if(data11.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data11.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("XPathSelector" !== data12){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("crm:E73_Information_Object" !== data13){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data14 = data.selector;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.type === undefined){const err41 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data14.value === undefined){const err42 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/allOf/2/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid2 = _errs45 === errors;valid11 = _valid2;}if(!valid11){const err45 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs50 = errors;let valid16 = true;const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data15 = data.selector;const _errs53 = errors;if(errors === _errs53){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.type !== undefined){let data16 = data15.type;const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data16)){if(data16.length > 2){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data16.length < 2){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const len3 = data16.length;if(len3 > 0){let data17 = data16[0];const _errs57 = errors;if(typeof data17 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("CssSelector" !== data17){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs57 === errors;}if(valid19){if(len3 > 1){let data18 = data16[1];const _errs59 = errors;if(typeof data18 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E73_Information_Object" !== data18){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid19 = _errs59 === errors;}}}}}else {const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}else {const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}else {const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err55 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data19.value === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err59 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs66 = errors;let valid21 = true;const _errs67 = errors;if(errors === _errs67){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data20 = data.selector;const _errs69 = errors;if(errors === _errs69){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.type !== undefined){let data21 = data20.type;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data21)){if(data21.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data21.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len4 = data21.length;if(len4 > 0){let data22 = data21[0];const _errs73 = errors;if(typeof data22 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("TextPositionSelector" !== data22){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid24 = _errs73 === errors;}if(valid24){if(len4 > 1){let data23 = data21[1];const _errs75 = errors;if(typeof data23 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E73_Information_Object" !== data23){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid24 = _errs75 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}else {const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}else {const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}var _valid4 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid4){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data24 = data.selector;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.type === undefined){const err69 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data24.start === undefined){const err70 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data24.end === undefined){const err71 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath,schemaPath:"#/allOf/4/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid4 = _errs77 === errors;valid21 = _valid4;}if(!valid21){const err74 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err75 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.type === undefined){const err76 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.source === undefined){const err77 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.id !== undefined){let data25 = data.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err78 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data.type !== undefined){let data26 = data.type;if(Array.isArray(data26)){if(data26.length > 2){const err80 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data26.length < 2){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len5 = data26.length;if(len5 > 0){let data27 = data26[0];if(typeof data27 !== "string"){const err82 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("SpecificResource" !== data27){const err83 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "SpecificResource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(len5 > 1){let data28 = data26[1];if(typeof data28 !== "string"){const err84 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("crm:E73_Information_Object" !== data28){const err85 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data.source !== undefined){let data29 = data.source;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err87 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29.type === undefined){const err88 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.format === undefined){const err89 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err90 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err92 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("crm:D1_Digital_Object" !== data31){const err93 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/const",keyword:"const",params:{allowedValue: "crm:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data29.format !== undefined){let data32 = data29.format;if((typeof data32 !== "string") && (!(Array.isArray(data32)))){const err94 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema23.properties.source.properties.format.type},message:"must be string,array"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs97 = errors;let valid29 = false;const _errs98 = errors;if(typeof data32 === "string"){if(func2(data32) < 1){const err95 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}var _valid5 = _errs98 === errors;valid29 = valid29 || _valid5;if(!valid29){const _errs100 = errors;if(Array.isArray(data32)){if(data32.length < 1){const err97 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const len6 = data32.length;for(let i0=0; i0<len6; i0++){let data33 = data32[i0];if(typeof data33 === "string"){if(func2(data33) < 1){const err98 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid5 = _errs100 === errors;valid29 = valid29 || _valid5;}if(!valid29){const err101 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}}}if(data29.P1_is_identified_by !== undefined){let data34 = data29.P1_is_identified_by;if((!(data34 && typeof data34 == "object" && !Array.isArray(data34))) && (data34 !== null)){const err102 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.id === undefined){const err103 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data34.type === undefined){const err104 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data34.title === undefined){const err105 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data34.id !== undefined){let data35 = data34.id;if(typeof data35 === "string"){if(!(formats0(data35))){const err106 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data34.type !== undefined){let data36 = data34.type;if(typeof data36 !== "string"){const err108 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data36){const err109 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/const",keyword:"const",params:{allowedValue: "crm:E33_E41_Linguistic_Appellation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data34.title !== undefined){let data37 = data34.title;if(typeof data37 === "string"){if(func2(data37) < 1){const err110 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}if(data29.language !== undefined){let data38 = data29.language;if(((typeof data38 !== "string") && (!(Array.isArray(data38)))) && (data38 !== null)){const err112 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema23.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const _errs116 = errors;let valid33 = false;const _errs117 = errors;if(typeof data38 === "string"){if(func2(data38) > 3){const err113 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(func2(data38) < 2){const err114 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid6 = _errs117 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs119 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err116 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const len7 = data38.length;for(let i1=0; i1<len7; i1++){let data39 = data38[i1];if(typeof data39 === "string"){if(func2(data39) > 3){const err117 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(func2(data39) < 2){const err118 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}else {const err120 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid6 = _errs119 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err121 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err122 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data.renderedVia !== undefined){let data40 = data.renderedVia;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.id === undefined){const err123 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data40.type === undefined){const err124 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data40.name === undefined){const err125 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data40.id !== undefined){let data41 = data40.id;if(typeof data41 === "string"){if(!(formats0(data41))){const err126 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data40.type !== undefined){let data42 = data40.type;if(Array.isArray(data42)){if(data42.length > 2){const err128 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data42.length < 2){const err129 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const len8 = data42.length;if(len8 > 0){let data43 = data42[0];if(typeof data43 !== "string"){const err130 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("Software" !== data43){const err131 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(len8 > 1){let data44 = data42[1];if(typeof data44 !== "string"){const err132 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("crm:E73_Information_Object" !== data44){const err133 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data40.P16_used_specific_object !== undefined){let data45 = data40.P16_used_specific_object;if(typeof data45 === "string"){if(!(formats0(data45))){const err135 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data40.name !== undefined){let data46 = data40.name;if(typeof data46 === "string"){if(func2(data46) < 1){const err137 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data40.softwareVersion !== undefined){if(typeof data40.softwareVersion !== "string"){const err139 = {instancePath:instancePath+"/renderedVia/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data.selector !== undefined){let data48 = data.selector;const _errs141 = errors;let valid39 = false;const _errs142 = errors;const _errs144 = errors;let valid40 = false;let passing0 = null;const _errs145 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err141 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data48.type === undefined){const err142 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data48.exact === undefined){const err143 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data48.prefix === undefined){const err144 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data48.suffix === undefined){const err145 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data48.id !== undefined){let data49 = data48.id;if(typeof data49 === "string"){if(!(formats0(data49))){const err146 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data48.type !== undefined){let data50 = data48.type;if(Array.isArray(data50)){if(data50.length > 2){const err148 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data50.length < 2){const err149 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const len9 = data50.length;if(len9 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err150 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if("TextQuoteSelector" !== data51){const err151 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(len9 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err152 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err153 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data48.exact !== undefined){if(typeof data48.exact !== "string"){const err155 = {instancePath:instancePath+"/selector/exact",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data48.prefix !== undefined){if(typeof data48.prefix !== "string"){const err156 = {instancePath:instancePath+"/selector/prefix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data48.suffix !== undefined){if(typeof data48.suffix !== "string"){const err157 = {instancePath:instancePath+"/selector/suffix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data48.refinedBy !== undefined){let data56 = data48.refinedBy;const _errs163 = errors;let valid43 = false;let passing1 = null;const _errs164 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err158 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data56.type === undefined){const err159 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data56.start === undefined){const err160 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data56.end === undefined){const err161 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data56.id !== undefined){let data57 = data56.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err162 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}else {const err163 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data56.type !== undefined){let data58 = data56.type;if(Array.isArray(data58)){if(data58.length > 2){const err164 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data58.length < 2){const err165 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const len10 = data58.length;if(len10 > 0){let data59 = data58[0];if(typeof data59 !== "string"){const err166 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if("TextPositionSelector" !== data59){const err167 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(len10 > 1){let data60 = data58[1];if(typeof data60 !== "string"){const err168 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if("crm:E73_Information_Object" !== data60){const err169 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data56.start !== undefined){let data61 = data56.start;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 0 || isNaN(data61)){const err171 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data56.end !== undefined){let data62 = data56.end;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 0 || isNaN(data62)){const err173 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var _valid9 = _errs164 === errors;if(_valid9){valid43 = true;passing1 = 0;}const _errs179 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err176 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data56.type === undefined){const err177 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data56.exact === undefined){const err178 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if(data56.prefix === undefined){const err179 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(data56.suffix === undefined){const err180 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data56.id !== undefined){let data63 = data56.id;if(typeof data63 === "string"){if(!(formats0(data63))){const err181 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data56.type !== undefined){let data64 = data56.type;if(Array.isArray(data64)){if(data64.length > 2){const err183 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data64.length < 2){const err184 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const len11 = data64.length;if(len11 > 0){let data65 = data64[0];if(typeof data65 !== "string"){const err185 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if("TextQuoteSelector" !== data65){const err186 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(len11 > 1){let data66 = data64[1];if(typeof data66 !== "string"){const err187 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("crm:E33_Linguistic_Object" !== data66){const err188 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data56.exact !== undefined){if(typeof data56.exact !== "string"){const err190 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data56.prefix !== undefined){if(typeof data56.prefix !== "string"){const err191 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data56.suffix !== undefined){if(typeof data56.suffix !== "string"){const err192 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid9 = _errs179 === errors;if(_valid9 && valid43){valid43 = false;passing1 = [passing1, 1];}else {if(_valid9){valid43 = true;passing1 = 1;}}if(!valid43){const err194 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}}if(!(data56 && typeof data56 == "object" && !Array.isArray(data56))){const err195 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}else {const err196 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid8 = _errs145 === errors;if(_valid8){valid40 = true;passing0 = 0;}const _errs196 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err197 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data48.type === undefined){const err198 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data48.start === undefined){const err199 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data48.end === undefined){const err200 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if(data48.id !== undefined){let data70 = data48.id;if(typeof data70 === "string"){if(!(formats0(data70))){const err201 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data48.type !== undefined){let data71 = data48.type;if(Array.isArray(data71)){if(data71.length > 2){const err203 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if(data71.length < 2){const err204 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}const len12 = data71.length;if(len12 > 0){let data72 = data71[0];if(typeof data72 !== "string"){const err205 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("TextPositionSelector" !== data72){const err206 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(len12 > 1){let data73 = data71[1];if(typeof data73 !== "string"){const err207 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if("crm:E73_Information_Object" !== data73){const err208 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}}else {const err209 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data48.start !== undefined){let data74 = data48.start;if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err210 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}else {const err211 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data48.end !== undefined){let data75 = data48.end;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err212 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}else {const err213 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data48.refinedBy !== undefined){let data76 = data48.refinedBy;const _errs212 = errors;let valid52 = false;let passing2 = null;const _errs213 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err214 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data76.type === undefined){const err215 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(data76.start === undefined){const err216 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(data76.end === undefined){const err217 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err218 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data76.type !== undefined){let data78 = data76.type;if(Array.isArray(data78)){if(data78.length > 2){const err220 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}if(data78.length < 2){const err221 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}const len13 = data78.length;if(len13 > 0){let data79 = data78[0];if(typeof data79 !== "string"){const err222 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if("TextPositionSelector" !== data79){const err223 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(len13 > 1){let data80 = data78[1];if(typeof data80 !== "string"){const err224 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}if("crm:E73_Information_Object" !== data80){const err225 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data76.start !== undefined){let data81 = data76.start;if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err227 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data76.end !== undefined){let data82 = data76.end;if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err229 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}else {const err230 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid10 = _errs213 === errors;if(_valid10){valid52 = true;passing2 = 0;}const _errs228 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err232 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data76.type === undefined){const err233 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}if(data76.exact === undefined){const err234 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if(data76.prefix === undefined){const err235 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data76.suffix === undefined){const err236 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data76.id !== undefined){let data83 = data76.id;if(typeof data83 === "string"){if(!(formats0(data83))){const err237 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}else {const err238 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data76.type !== undefined){let data84 = data76.type;if(Array.isArray(data84)){if(data84.length > 2){const err239 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data84.length < 2){const err240 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}const len14 = data84.length;if(len14 > 0){let data85 = data84[0];if(typeof data85 !== "string"){const err241 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if("TextQuoteSelector" !== data85){const err242 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}if(len14 > 1){let data86 = data84[1];if(typeof data86 !== "string"){const err243 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("crm:E33_Linguistic_Object" !== data86){const err244 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}}else {const err245 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data76.exact !== undefined){if(typeof data76.exact !== "string"){const err246 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}if(data76.prefix !== undefined){if(typeof data76.prefix !== "string"){const err247 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data76.suffix !== undefined){if(typeof data76.suffix !== "string"){const err248 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}else {const err249 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var _valid10 = _errs228 === errors;if(_valid10 && valid52){valid52 = false;passing2 = [passing2, 1];}else {if(_valid10){valid52 = true;passing2 = 1;}}if(!valid52){const err250 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs212;if(vErrors !== null){if(_errs212){vErrors.length = _errs212;}else {vErrors = null;}}}if(!(data76 && typeof data76 == "object" && !Array.isArray(data76))){const err251 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid8 = _errs196 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 1];}else {if(_valid8){valid40 = true;passing0 = 1;}const _errs245 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err253 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if(data48.type === undefined){const err254 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(data48.value === undefined){const err255 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data48.id !== undefined){let data90 = data48.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err256 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}else {const err257 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data48.type !== undefined){let data91 = data48.type;if(Array.isArray(data91)){if(data91.length > 2){const err258 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(data91.length < 2){const err259 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}const len15 = data91.length;if(len15 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err260 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if("XPathSelector" !== data92){const err261 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}if(len15 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err262 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crm:E73_Information_Object" !== data93){const err263 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}else {const err264 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err265 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}if(data48.refinedBy !== undefined){let data95 = data48.refinedBy;const _errs259 = errors;let valid61 = false;const _errs260 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err266 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data95.type === undefined){const err267 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data95.start === undefined){const err268 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if(data95.end === undefined){const err269 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if(data95.id !== undefined){let data96 = data95.id;if(typeof data96 === "string"){if(!(formats0(data96))){const err270 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}else {const err271 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}if(data95.type !== undefined){let data97 = data95.type;if(Array.isArray(data97)){if(data97.length > 2){const err272 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}if(data97.length < 2){const err273 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}const len16 = data97.length;if(len16 > 0){let data98 = data97[0];if(typeof data98 !== "string"){const err274 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if("TextPositionSelector" !== data98){const err275 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}}if(len16 > 1){let data99 = data97[1];if(typeof data99 !== "string"){const err276 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if("crm:E73_Information_Object" !== data99){const err277 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}else {const err278 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data95.start !== undefined){let data100 = data95.start;if((typeof data100 == "number") && (isFinite(data100))){if(data100 < 0 || isNaN(data100)){const err279 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}else {const err280 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data95.end !== undefined){let data101 = data95.end;if((typeof data101 == "number") && (isFinite(data101))){if(data101 < 0 || isNaN(data101)){const err281 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}else {const err282 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid11 = _errs260 === errors;valid61 = valid61 || _valid11;if(!valid61){const _errs275 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err284 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data95.type === undefined){const err285 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data95.exact === undefined){const err286 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data95.prefix === undefined){const err287 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data95.suffix === undefined){const err288 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if(data95.id !== undefined){let data102 = data95.id;if(typeof data102 === "string"){if(!(formats0(data102))){const err289 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data95.type !== undefined){let data103 = data95.type;if(Array.isArray(data103)){if(data103.length > 2){const err291 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data103.length < 2){const err292 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const len17 = data103.length;if(len17 > 0){let data104 = data103[0];if(typeof data104 !== "string"){const err293 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if("TextQuoteSelector" !== data104){const err294 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}if(len17 > 1){let data105 = data103[1];if(typeof data105 !== "string"){const err295 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("crm:E33_Linguistic_Object" !== data105){const err296 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(data95.exact !== undefined){if(typeof data95.exact !== "string"){const err298 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}if(data95.prefix !== undefined){if(typeof data95.prefix !== "string"){const err299 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(data95.suffix !== undefined){if(typeof data95.suffix !== "string"){const err300 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}}else {const err301 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}var _valid11 = _errs275 === errors;valid61 = valid61 || _valid11;}if(!valid61){const err302 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}}if(!(data95 && typeof data95 == "object" && !Array.isArray(data95))){const err303 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var _valid8 = _errs245 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 2];}else {if(_valid8){valid40 = true;passing0 = 2;}const _errs292 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err305 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if(data48.type === undefined){const err306 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data48.value === undefined){const err307 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data48.id !== undefined){let data109 = data48.id;if(typeof data109 === "string"){if(!(formats0(data109))){const err308 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(data48.type !== undefined){let data110 = data48.type;if(Array.isArray(data110)){if(data110.length > 2){const err310 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if(data110.length < 2){const err311 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}const len18 = data110.length;if(len18 > 0){let data111 = data110[0];if(typeof data111 !== "string"){const err312 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("CssSelector" !== data111){const err313 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(len18 > 1){let data112 = data110[1];if(typeof data112 !== "string"){const err314 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E73_Information_Object" !== data112){const err315 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}}}else {const err316 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err317 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}if(data48.refinedBy !== undefined){let data114 = data48.refinedBy;const _errs306 = errors;let valid70 = false;const _errs307 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err318 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if(data114.type === undefined){const err319 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(data114.start === undefined){const err320 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if(data114.end === undefined){const err321 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}if(data114.id !== undefined){let data115 = data114.id;if(typeof data115 === "string"){if(!(formats0(data115))){const err322 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}else {const err323 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}}if(data114.type !== undefined){let data116 = data114.type;if(Array.isArray(data116)){if(data116.length > 2){const err324 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data116.length < 2){const err325 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}const len19 = data116.length;if(len19 > 0){let data117 = data116[0];if(typeof data117 !== "string"){const err326 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if("TextPositionSelector" !== data117){const err327 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}if(len19 > 1){let data118 = data116[1];if(typeof data118 !== "string"){const err328 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}if("crm:E73_Information_Object" !== data118){const err329 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}}else {const err330 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}if(data114.start !== undefined){let data119 = data114.start;if((typeof data119 == "number") && (isFinite(data119))){if(data119 < 0 || isNaN(data119)){const err331 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}}else {const err332 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}if(data114.end !== undefined){let data120 = data114.end;if((typeof data120 == "number") && (isFinite(data120))){if(data120 < 0 || isNaN(data120)){const err333 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}}else {const err334 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid12 = _errs307 === errors;valid70 = valid70 || _valid12;if(!valid70){const _errs322 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err336 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if(data114.type === undefined){const err337 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}if(data114.exact === undefined){const err338 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if(data114.prefix === undefined){const err339 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if(data114.suffix === undefined){const err340 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data114.id !== undefined){let data121 = data114.id;if(typeof data121 === "string"){if(!(formats0(data121))){const err341 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}else {const err342 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(data114.type !== undefined){let data122 = data114.type;if(Array.isArray(data122)){if(data122.length > 2){const err343 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if(data122.length < 2){const err344 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}const len20 = data122.length;if(len20 > 0){let data123 = data122[0];if(typeof data123 !== "string"){const err345 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if("TextQuoteSelector" !== data123){const err346 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(len20 > 1){let data124 = data122[1];if(typeof data124 !== "string"){const err347 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E33_Linguistic_Object" !== data124){const err348 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}if(data114.exact !== undefined){if(typeof data114.exact !== "string"){const err350 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}if(data114.prefix !== undefined){if(typeof data114.prefix !== "string"){const err351 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}if(data114.suffix !== undefined){if(typeof data114.suffix !== "string"){const err352 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}}else {const err353 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}var _valid12 = _errs322 === errors;valid70 = valid70 || _valid12;}if(!valid70){const err354 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}else {errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}}if(!(data114 && typeof data114 == "object" && !Array.isArray(data114))){const err355 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}}else {const err356 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid8 = _errs292 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 3];}else {if(_valid8){valid40 = true;passing0 = 3;}const _errs339 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err357 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if(data48.type === undefined){const err358 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data48.startSelector === undefined){const err359 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if(data48.endSelector === undefined){const err360 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data48.id !== undefined){let data128 = data48.id;if(typeof data128 === "string"){if(!(formats0(data128))){const err361 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}else {const err362 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}if(data48.type !== undefined){let data129 = data48.type;if(Array.isArray(data129)){if(data129.length > 2){const err363 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if(data129.length < 2){const err364 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}const len21 = data129.length;if(len21 > 0){let data130 = data129[0];if(typeof data130 !== "string"){const err365 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if("RangeSelector" !== data130){const err366 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(len21 > 1){let data131 = data129[1];if(typeof data131 !== "string"){const err367 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("crm:E73_Information_Object" !== data131){const err368 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}}else {const err369 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(data48.startSelector !== undefined){let data132 = data48.startSelector;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if(data132.id === undefined){const err370 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if(data132.type === undefined){const err371 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}if(data132.value === undefined){const err372 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}if(data132.id !== undefined){let data133 = data132.id;if(typeof data133 === "string"){if(!(formats0(data133))){const err373 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}if(data132.type !== undefined){let data134 = data132.type;if(Array.isArray(data134)){if(data134.length > 2){const err375 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data134.length < 2){const err376 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}const len22 = data134.length;if(len22 > 0){let data135 = data134[0];if(typeof data135 !== "string"){const err377 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}if("XPathSelector" !== data135){const err378 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}if(len22 > 1){let data136 = data134[1];if(typeof data136 !== "string"){const err379 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if("crm:E73_Information_Object" !== data136){const err380 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}}else {const err381 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}if(data132.value !== undefined){if(typeof data132.value !== "string"){const err382 = {instancePath:instancePath+"/selector/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}}else {const err383 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}if(data48.endSelector !== undefined){let data138 = data48.endSelector;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(data138.id === undefined){const err384 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}if(data138.type === undefined){const err385 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}if(data138.value === undefined){const err386 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}if(data138.id !== undefined){let data139 = data138.id;if(typeof data139 === "string"){if(!(formats0(data139))){const err387 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}else {const err388 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}if(data138.type !== undefined){let data140 = data138.type;if(Array.isArray(data140)){if(data140.length > 2){const err389 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data140.length < 2){const err390 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}const len23 = data140.length;if(len23 > 0){let data141 = data140[0];if(typeof data141 !== "string"){const err391 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}if("XPathSelector" !== data141){const err392 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}if(len23 > 1){let data142 = data140[1];if(typeof data142 !== "string"){const err393 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}if("crm:E73_Information_Object" !== data142){const err394 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}}else {const err395 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}}if(data138.value !== undefined){if(typeof data138.value !== "string"){const err396 = {instancePath:instancePath+"/selector/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}}else {const err397 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}else {const err398 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var _valid8 = _errs339 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 4];}else {if(_valid8){valid40 = true;passing0 = 4;}}}}}if(!valid40){const err399 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}if(!(data48 && typeof data48 == "object" && !Array.isArray(data48))){const err400 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid7 = _errs142 === errors;valid39 = valid39 || _valid7;if(!valid39){const _errs375 = errors;if(Array.isArray(data48)){if(data48.length < 1){const err401 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}const len24 = data48.length;for(let i2=0; i2<len24; i2++){let data144 = data48[i2];const _errs379 = errors;let valid87 = false;let passing3 = null;const _errs380 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err402 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}if(data144.type === undefined){const err403 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if(data144.exact === undefined){const err404 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}if(data144.prefix === undefined){const err405 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if(data144.suffix === undefined){const err406 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}if(data144.id !== undefined){let data145 = data144.id;if(typeof data145 === "string"){if(!(formats0(data145))){const err407 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}else {const err408 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}if(data144.type !== undefined){let data146 = data144.type;if(Array.isArray(data146)){if(data146.length > 2){const err409 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}if(data146.length < 2){const err410 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}const len25 = data146.length;if(len25 > 0){let data147 = data146[0];if(typeof data147 !== "string"){const err411 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}if("TextQuoteSelector" !== data147){const err412 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}}if(len25 > 1){let data148 = data146[1];if(typeof data148 !== "string"){const err413 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}if("crm:E33_Linguistic_Object" !== data148){const err414 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}}else {const err415 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}if(data144.exact !== undefined){if(typeof data144.exact !== "string"){const err416 = {instancePath:instancePath+"/selector/" + i2+"/exact",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}if(data144.prefix !== undefined){if(typeof data144.prefix !== "string"){const err417 = {instancePath:instancePath+"/selector/" + i2+"/prefix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}if(data144.suffix !== undefined){if(typeof data144.suffix !== "string"){const err418 = {instancePath:instancePath+"/selector/" + i2+"/suffix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}if(data144.refinedBy !== undefined){let data152 = data144.refinedBy;const _errs398 = errors;let valid90 = false;let passing4 = null;const _errs399 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err419 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}if(data152.type === undefined){const err420 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}if(data152.start === undefined){const err421 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if(data152.end === undefined){const err422 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if(data152.id !== undefined){let data153 = data152.id;if(typeof data153 === "string"){if(!(formats0(data153))){const err423 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}}else {const err424 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(data152.type !== undefined){let data154 = data152.type;if(Array.isArray(data154)){if(data154.length > 2){const err425 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if(data154.length < 2){const err426 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}const len26 = data154.length;if(len26 > 0){let data155 = data154[0];if(typeof data155 !== "string"){const err427 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if("TextPositionSelector" !== data155){const err428 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}if(len26 > 1){let data156 = data154[1];if(typeof data156 !== "string"){const err429 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}if("crm:E73_Information_Object" !== data156){const err430 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}else {const err431 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}}if(data152.start !== undefined){let data157 = data152.start;if((typeof data157 == "number") && (isFinite(data157))){if(data157 < 0 || isNaN(data157)){const err432 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}else {const err433 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}if(data152.end !== undefined){let data158 = data152.end;if((typeof data158 == "number") && (isFinite(data158))){if(data158 < 0 || isNaN(data158)){const err434 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}else {const err435 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}}else {const err436 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid14 = _errs399 === errors;if(_valid14){valid90 = true;passing4 = 0;}const _errs414 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err437 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data152.type === undefined){const err438 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}if(data152.exact === undefined){const err439 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if(data152.prefix === undefined){const err440 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}if(data152.suffix === undefined){const err441 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if(data152.id !== undefined){let data159 = data152.id;if(typeof data159 === "string"){if(!(formats0(data159))){const err442 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}else {const err443 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}}if(data152.type !== undefined){let data160 = data152.type;if(Array.isArray(data160)){if(data160.length > 2){const err444 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if(data160.length < 2){const err445 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}const len27 = data160.length;if(len27 > 0){let data161 = data160[0];if(typeof data161 !== "string"){const err446 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if("TextQuoteSelector" !== data161){const err447 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}if(len27 > 1){let data162 = data160[1];if(typeof data162 !== "string"){const err448 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}if("crm:E33_Linguistic_Object" !== data162){const err449 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}}}else {const err450 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}if(data152.exact !== undefined){if(typeof data152.exact !== "string"){const err451 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}}if(data152.prefix !== undefined){if(typeof data152.prefix !== "string"){const err452 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}if(data152.suffix !== undefined){if(typeof data152.suffix !== "string"){const err453 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}}else {const err454 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var _valid14 = _errs414 === errors;if(_valid14 && valid90){valid90 = false;passing4 = [passing4, 1];}else {if(_valid14){valid90 = true;passing4 = 1;}}if(!valid90){const err455 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}else {errors = _errs398;if(vErrors !== null){if(_errs398){vErrors.length = _errs398;}else {vErrors = null;}}}if(!(data152 && typeof data152 == "object" && !Array.isArray(data152))){const err456 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}}else {const err457 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}var _valid13 = _errs380 === errors;if(_valid13){valid87 = true;passing3 = 0;}const _errs431 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err458 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}if(data144.type === undefined){const err459 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if(data144.start === undefined){const err460 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}if(data144.end === undefined){const err461 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data144.id !== undefined){let data166 = data144.id;if(typeof data166 === "string"){if(!(formats0(data166))){const err462 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}else {const err463 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}if(data144.type !== undefined){let data167 = data144.type;if(Array.isArray(data167)){if(data167.length > 2){const err464 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}if(data167.length < 2){const err465 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}const len28 = data167.length;if(len28 > 0){let data168 = data167[0];if(typeof data168 !== "string"){const err466 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}if("TextPositionSelector" !== data168){const err467 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}}if(len28 > 1){let data169 = data167[1];if(typeof data169 !== "string"){const err468 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}if("crm:E73_Information_Object" !== data169){const err469 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}}else {const err470 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}if(data144.start !== undefined){let data170 = data144.start;if((typeof data170 == "number") && (isFinite(data170))){if(data170 < 0 || isNaN(data170)){const err471 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}else {const err472 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}if(data144.end !== undefined){let data171 = data144.end;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err473 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}else {const err474 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}}if(data144.refinedBy !== undefined){let data172 = data144.refinedBy;const _errs447 = errors;let valid99 = false;let passing5 = null;const _errs448 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err475 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if(data172.type === undefined){const err476 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if(data172.start === undefined){const err477 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data172.end === undefined){const err478 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if(data172.id !== undefined){let data173 = data172.id;if(typeof data173 === "string"){if(!(formats0(data173))){const err479 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}}else {const err480 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}if(data172.type !== undefined){let data174 = data172.type;if(Array.isArray(data174)){if(data174.length > 2){const err481 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if(data174.length < 2){const err482 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}const len29 = data174.length;if(len29 > 0){let data175 = data174[0];if(typeof data175 !== "string"){const err483 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}if("TextPositionSelector" !== data175){const err484 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}}if(len29 > 1){let data176 = data174[1];if(typeof data176 !== "string"){const err485 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}if("crm:E73_Information_Object" !== data176){const err486 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}}}else {const err487 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}}if(data172.start !== undefined){let data177 = data172.start;if((typeof data177 == "number") && (isFinite(data177))){if(data177 < 0 || isNaN(data177)){const err488 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}else {const err489 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(data172.end !== undefined){let data178 = data172.end;if((typeof data178 == "number") && (isFinite(data178))){if(data178 < 0 || isNaN(data178)){const err490 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}else {const err491 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid15 = _errs448 === errors;if(_valid15){valid99 = true;passing5 = 0;}const _errs463 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err493 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}if(data172.type === undefined){const err494 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data172.exact === undefined){const err495 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if(data172.prefix === undefined){const err496 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if(data172.suffix === undefined){const err497 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if(data172.id !== undefined){let data179 = data172.id;if(typeof data179 === "string"){if(!(formats0(data179))){const err498 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}else {const err499 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}if(data172.type !== undefined){let data180 = data172.type;if(Array.isArray(data180)){if(data180.length > 2){const err500 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if(data180.length < 2){const err501 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}const len30 = data180.length;if(len30 > 0){let data181 = data180[0];if(typeof data181 !== "string"){const err502 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if("TextQuoteSelector" !== data181){const err503 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}if(len30 > 1){let data182 = data180[1];if(typeof data182 !== "string"){const err504 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if("crm:E33_Linguistic_Object" !== data182){const err505 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}}else {const err506 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}if(data172.exact !== undefined){if(typeof data172.exact !== "string"){const err507 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}if(data172.prefix !== undefined){if(typeof data172.prefix !== "string"){const err508 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(data172.suffix !== undefined){if(typeof data172.suffix !== "string"){const err509 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}}}else {const err510 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}var _valid15 = _errs463 === errors;if(_valid15 && valid99){valid99 = false;passing5 = [passing5, 1];}else {if(_valid15){valid99 = true;passing5 = 1;}}if(!valid99){const err511 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}else {errors = _errs447;if(vErrors !== null){if(_errs447){vErrors.length = _errs447;}else {vErrors = null;}}}if(!(data172 && typeof data172 == "object" && !Array.isArray(data172))){const err512 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}}else {const err513 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}var _valid13 = _errs431 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 1];}else {if(_valid13){valid87 = true;passing3 = 1;}const _errs480 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err514 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data144.type === undefined){const err515 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if(data144.value === undefined){const err516 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data144.id !== undefined){let data186 = data144.id;if(typeof data186 === "string"){if(!(formats0(data186))){const err517 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}else {const err518 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}if(data144.type !== undefined){let data187 = data144.type;if(Array.isArray(data187)){if(data187.length > 2){const err519 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if(data187.length < 2){const err520 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}const len31 = data187.length;if(len31 > 0){let data188 = data187[0];if(typeof data188 !== "string"){const err521 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}if("XPathSelector" !== data188){const err522 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(len31 > 1){let data189 = data187[1];if(typeof data189 !== "string"){const err523 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if("crm:E73_Information_Object" !== data189){const err524 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err526 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(data144.refinedBy !== undefined){let data191 = data144.refinedBy;const _errs494 = errors;let valid108 = false;const _errs495 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err527 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}if(data191.type === undefined){const err528 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if(data191.start === undefined){const err529 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}if(data191.end === undefined){const err530 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if(data191.id !== undefined){let data192 = data191.id;if(typeof data192 === "string"){if(!(formats0(data192))){const err531 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}else {const err532 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}}if(data191.type !== undefined){let data193 = data191.type;if(Array.isArray(data193)){if(data193.length > 2){const err533 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if(data193.length < 2){const err534 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}const len32 = data193.length;if(len32 > 0){let data194 = data193[0];if(typeof data194 !== "string"){const err535 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}if("TextPositionSelector" !== data194){const err536 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}if(len32 > 1){let data195 = data193[1];if(typeof data195 !== "string"){const err537 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}if("crm:E73_Information_Object" !== data195){const err538 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}}}else {const err539 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}if(data191.start !== undefined){let data196 = data191.start;if((typeof data196 == "number") && (isFinite(data196))){if(data196 < 0 || isNaN(data196)){const err540 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}}else {const err541 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}}if(data191.end !== undefined){let data197 = data191.end;if((typeof data197 == "number") && (isFinite(data197))){if(data197 < 0 || isNaN(data197)){const err542 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}}else {const err543 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}}}else {const err544 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}var _valid16 = _errs495 === errors;valid108 = valid108 || _valid16;if(!valid108){const _errs510 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err545 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}if(data191.type === undefined){const err546 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}if(data191.exact === undefined){const err547 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}if(data191.prefix === undefined){const err548 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}if(data191.suffix === undefined){const err549 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}if(data191.id !== undefined){let data198 = data191.id;if(typeof data198 === "string"){if(!(formats0(data198))){const err550 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}else {const err551 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}}if(data191.type !== undefined){let data199 = data191.type;if(Array.isArray(data199)){if(data199.length > 2){const err552 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}if(data199.length < 2){const err553 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}const len33 = data199.length;if(len33 > 0){let data200 = data199[0];if(typeof data200 !== "string"){const err554 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if("TextQuoteSelector" !== data200){const err555 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}if(len33 > 1){let data201 = data199[1];if(typeof data201 !== "string"){const err556 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if("crm:E33_Linguistic_Object" !== data201){const err557 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}}else {const err558 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}}if(data191.exact !== undefined){if(typeof data191.exact !== "string"){const err559 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}if(data191.prefix !== undefined){if(typeof data191.prefix !== "string"){const err560 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data191.suffix !== undefined){if(typeof data191.suffix !== "string"){const err561 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}}}else {const err562 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}var _valid16 = _errs510 === errors;valid108 = valid108 || _valid16;}if(!valid108){const err563 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}if(!(data191 && typeof data191 == "object" && !Array.isArray(data191))){const err564 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}}else {const err565 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}var _valid13 = _errs480 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 2];}else {if(_valid13){valid87 = true;passing3 = 2;}const _errs527 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err566 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if(data144.type === undefined){const err567 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}if(data144.value === undefined){const err568 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data144.id !== undefined){let data205 = data144.id;if(typeof data205 === "string"){if(!(formats0(data205))){const err569 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}else {const err570 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}}if(data144.type !== undefined){let data206 = data144.type;if(Array.isArray(data206)){if(data206.length > 2){const err571 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}if(data206.length < 2){const err572 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}const len34 = data206.length;if(len34 > 0){let data207 = data206[0];if(typeof data207 !== "string"){const err573 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if("CssSelector" !== data207){const err574 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(len34 > 1){let data208 = data206[1];if(typeof data208 !== "string"){const err575 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if("crm:E73_Information_Object" !== data208){const err576 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}}else {const err577 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err578 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}}if(data144.refinedBy !== undefined){let data210 = data144.refinedBy;const _errs541 = errors;let valid117 = false;const _errs542 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err579 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if(data210.type === undefined){const err580 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}if(data210.start === undefined){const err581 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}if(data210.end === undefined){const err582 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}if(data210.id !== undefined){let data211 = data210.id;if(typeof data211 === "string"){if(!(formats0(data211))){const err583 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}}else {const err584 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}}if(data210.type !== undefined){let data212 = data210.type;if(Array.isArray(data212)){if(data212.length > 2){const err585 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}if(data212.length < 2){const err586 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}const len35 = data212.length;if(len35 > 0){let data213 = data212[0];if(typeof data213 !== "string"){const err587 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}if("TextPositionSelector" !== data213){const err588 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}}if(len35 > 1){let data214 = data212[1];if(typeof data214 !== "string"){const err589 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}if("crm:E73_Information_Object" !== data214){const err590 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}}}else {const err591 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}}if(data210.start !== undefined){let data215 = data210.start;if((typeof data215 == "number") && (isFinite(data215))){if(data215 < 0 || isNaN(data215)){const err592 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}else {const err593 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}if(data210.end !== undefined){let data216 = data210.end;if((typeof data216 == "number") && (isFinite(data216))){if(data216 < 0 || isNaN(data216)){const err594 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}else {const err595 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}}}else {const err596 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}var _valid17 = _errs542 === errors;valid117 = valid117 || _valid17;if(!valid117){const _errs557 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err597 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}if(data210.type === undefined){const err598 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}if(data210.exact === undefined){const err599 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(data210.prefix === undefined){const err600 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}if(data210.suffix === undefined){const err601 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}if(data210.id !== undefined){let data217 = data210.id;if(typeof data217 === "string"){if(!(formats0(data217))){const err602 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}}else {const err603 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}}if(data210.type !== undefined){let data218 = data210.type;if(Array.isArray(data218)){if(data218.length > 2){const err604 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}if(data218.length < 2){const err605 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}const len36 = data218.length;if(len36 > 0){let data219 = data218[0];if(typeof data219 !== "string"){const err606 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}if("TextQuoteSelector" !== data219){const err607 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}}if(len36 > 1){let data220 = data218[1];if(typeof data220 !== "string"){const err608 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}if("crm:E33_Linguistic_Object" !== data220){const err609 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}}}else {const err610 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}}if(data210.exact !== undefined){if(typeof data210.exact !== "string"){const err611 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}}if(data210.prefix !== undefined){if(typeof data210.prefix !== "string"){const err612 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}}if(data210.suffix !== undefined){if(typeof data210.suffix !== "string"){const err613 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}}}else {const err614 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}var _valid17 = _errs557 === errors;valid117 = valid117 || _valid17;}if(!valid117){const err615 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}else {errors = _errs541;if(vErrors !== null){if(_errs541){vErrors.length = _errs541;}else {vErrors = null;}}}if(!(data210 && typeof data210 == "object" && !Array.isArray(data210))){const err616 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}else {const err617 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}var _valid13 = _errs527 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 3];}else {if(_valid13){valid87 = true;passing3 = 3;}const _errs574 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err618 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}if(data144.type === undefined){const err619 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if(data144.startSelector === undefined){const err620 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}if(data144.endSelector === undefined){const err621 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}if(data144.id !== undefined){let data224 = data144.id;if(typeof data224 === "string"){if(!(formats0(data224))){const err622 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}else {const err623 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data144.type !== undefined){let data225 = data144.type;if(Array.isArray(data225)){if(data225.length > 2){const err624 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}if(data225.length < 2){const err625 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}const len37 = data225.length;if(len37 > 0){let data226 = data225[0];if(typeof data226 !== "string"){const err626 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}if("RangeSelector" !== data226){const err627 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}}if(len37 > 1){let data227 = data225[1];if(typeof data227 !== "string"){const err628 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}if("crm:E73_Information_Object" !== data227){const err629 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}}else {const err630 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}if(data144.startSelector !== undefined){let data228 = data144.startSelector;if(data228 && typeof data228 == "object" && !Array.isArray(data228)){if(data228.id === undefined){const err631 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(data228.type === undefined){const err632 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}if(data228.value === undefined){const err633 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}if(data228.id !== undefined){let data229 = data228.id;if(typeof data229 === "string"){if(!(formats0(data229))){const err634 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}else {const err635 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}}if(data228.type !== undefined){let data230 = data228.type;if(Array.isArray(data230)){if(data230.length > 2){const err636 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}if(data230.length < 2){const err637 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}const len38 = data230.length;if(len38 > 0){let data231 = data230[0];if(typeof data231 !== "string"){const err638 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}if("XPathSelector" !== data231){const err639 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}}if(len38 > 1){let data232 = data230[1];if(typeof data232 !== "string"){const err640 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}if("crm:E73_Information_Object" !== data232){const err641 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}}}else {const err642 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}}if(data228.value !== undefined){if(typeof data228.value !== "string"){const err643 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}}}else {const err644 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}if(data144.endSelector !== undefined){let data234 = data144.endSelector;if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if(data234.id === undefined){const err645 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}if(data234.type === undefined){const err646 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}if(data234.value === undefined){const err647 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}if(data234.id !== undefined){let data235 = data234.id;if(typeof data235 === "string"){if(!(formats0(data235))){const err648 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}}else {const err649 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}}if(data234.type !== undefined){let data236 = data234.type;if(Array.isArray(data236)){if(data236.length > 2){const err650 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}if(data236.length < 2){const err651 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}const len39 = data236.length;if(len39 > 0){let data237 = data236[0];if(typeof data237 !== "string"){const err652 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}if("XPathSelector" !== data237){const err653 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}}if(len39 > 1){let data238 = data236[1];if(typeof data238 !== "string"){const err654 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}if("crm:E73_Information_Object" !== data238){const err655 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}}}else {const err656 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}}if(data234.value !== undefined){if(typeof data234.value !== "string"){const err657 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}}}else {const err658 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}}}else {const err659 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}var _valid13 = _errs574 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 4];}else {if(_valid13){valid87 = true;passing3 = 4;}}}}}if(!valid87){const err660 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}if(!(data144 && typeof data144 == "object" && !Array.isArray(data144))){const err661 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}}}else {const err662 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}var _valid7 = _errs375 === errors;valid39 = valid39 || _valid7;}if(!valid39){const err663 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}}}else {const err664 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}validate14.errors = vErrors;return errors === 0;}const formats10 = require("ajv-formats/dist/formats").fullFormats["date-time"];const func5 = Object.prototype.hasOwnProperty;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://wa.lincsproject.ca/v1/schema.jsonld" */;let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data0 = data.body;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;const _errs10 = errors;let valid5 = false;let passing1 = null;const _errs11 = errors;if(typeof data1 !== "string"){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("crm:E21_Person" !== data1){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data1)){if(data1.length > 2){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data1.length < 2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs15 = errors;if(typeof data2 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("foaf:Person" !== data2){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid6 = _errs15 === errors;}if(valid6){if(len0 > 1){let data3 = data1[1];const _errs17 = errors;if(typeof data3 !== "string"){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("crm:E89_Propositional_Object" !== data3){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs17 === errors;}}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var _valid1 = _errs9 === errors;if(_valid1){valid4 = true;passing0 = 0;}const _errs19 = errors;const _errs20 = errors;let valid7 = false;let passing2 = null;const _errs21 = errors;if(typeof data1 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("crm:E53_Place" !== data1){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs21 === errors;if(_valid3){valid7 = true;passing2 = 0;}const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data1)){if(data1.length > 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data1.length < 2){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {const len1 = data1.length;if(len1 > 0){let data4 = data1[0];const _errs25 = errors;if(typeof data4 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("biography:fictionalPlace" !== data4){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid8 = _errs25 === errors;}if(valid8){if(len1 > 1){let data5 = data1[1];const _errs27 = errors;if(typeof data5 !== "string"){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("crm:E89_Propositional_Object" !== data5){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid8 = _errs27 === errors;}}}}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs23 === errors;if(_valid3 && valid7){valid7 = false;passing2 = [passing2, 1];}else {if(_valid3){valid7 = true;passing2 = 1;}}if(!valid7){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var _valid1 = _errs19 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid1){valid4 = true;passing0 = 1;}const _errs29 = errors;const _errs30 = errors;let valid9 = false;let passing3 = null;const _errs31 = errors;if(typeof data1 !== "string"){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("crm:E74_Group" !== data1){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid4 = _errs31 === errors;if(_valid4){valid9 = true;passing3 = 0;}const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data1)){if(data1.length > 2){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data1.length < 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs35 = errors;if(typeof data6 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("foaf:Organization" !== data6){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid10 = _errs35 === errors;}if(valid10){if(len2 > 1){let data7 = data1[1];const _errs37 = errors;if(typeof data7 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("crm:E89_Propositional_Object" !== data7){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs37 === errors;}}}}}else {const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid4 = _errs33 === errors;if(_valid4 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid4){valid9 = true;passing3 = 1;}}if(!valid9){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;const _errs40 = errors;let valid11 = false;let passing4 = null;const _errs41 = errors;if(typeof data1 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("frbroo:F1" !== data1){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid5 = _errs41 === errors;if(_valid5){valid11 = true;passing4 = 0;}const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data1)){if(data1.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data1.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs45 = errors;if(typeof data8 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data8){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid12 = _errs45 === errors;}if(valid12){if(len3 > 1){let data9 = data1[1];const _errs47 = errors;if(typeof data9 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("wikidata:Q15306849" !== data9){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid12 = _errs47 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var _valid5 = _errs43 === errors;if(_valid5 && valid11){valid11 = false;passing4 = [passing4, 1];}else {if(_valid5){valid11 = true;passing4 = 1;}}if(!valid11){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}var _valid1 = _errs39 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 3];}else {if(_valid1){valid4 = true;passing0 = 3;}const _errs49 = errors;const _errs50 = errors;let valid13 = false;let passing5 = null;const _errs51 = errors;if(typeof data1 !== "string"){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("crm:E18_Physical_Thing" !== data1){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid6 = _errs51 === errors;if(_valid6){valid13 = true;passing5 = 0;}const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data1)){if(data1.length > 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data1.length < 2){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {const len4 = data1.length;if(len4 > 0){let data10 = data1[0];const _errs55 = errors;if(typeof data10 !== "string"){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if("wikidata:Q15831596" !== data10){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len4 > 1){let data11 = data1[1];const _errs57 = errors;if(typeof data11 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("crm:E89_Propositional_Object" !== data11){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs57 === errors;}}}}}else {const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var _valid6 = _errs53 === errors;if(_valid6 && valid13){valid13 = false;passing5 = [passing5, 1];}else {if(_valid6){valid13 = true;passing5 = 1;}}if(!valid13){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var _valid1 = _errs49 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 4];}else {if(_valid1){valid4 = true;passing0 = 4;}const _errs59 = errors;if(errors === _errs59){if(Array.isArray(data1)){if(data1.length > 3){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data1.length < 3){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {const len5 = data1.length;if(len5 > 0){let data12 = data1[0];const _errs61 = errors;if(typeof data12 !== "string"){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if("TextualBody" !== data12){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid15 = _errs61 === errors;}if(valid15){if(len5 > 1){let data13 = data1[1];const _errs63 = errors;if(typeof data13 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("xsd:date" !== data13){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid15 = _errs63 === errors;}if(valid15){if(len5 > 2){let data14 = data1[2];const _errs65 = errors;if(typeof data14 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("crm:E52_Time-Span" !== data14){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid15 = _errs65 === errors;}}}}}}else {const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs67 = errors;const _errs68 = errors;let valid16 = false;let passing6 = null;const _errs69 = errors;if(typeof data1 !== "string"){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("crm:E5_Event" !== data1){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid7 = _errs69 === errors;if(_valid7){valid16 = true;passing6 = 0;}const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data1)){if(data1.length > 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data1.length < 2){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data15 = data1[0];const _errs73 = errors;if(typeof data15 !== "string"){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("event:Event" !== data15){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid17 = _errs73 === errors;}if(valid17){if(len6 > 1){let data16 = data1[1];const _errs75 = errors;if(typeof data16 !== "string"){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("crm:E89_Propositional_Object" !== data16){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid17 = _errs75 === errors;}}}}}else {const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid7 = _errs71 === errors;if(_valid7 && valid16){valid16 = false;passing6 = [passing6, 1];}else {if(_valid7){valid16 = true;passing6 = 1;}}if(!valid16){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}var _valid1 = _errs67 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}}}}}}}if(!valid4){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}else {const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data17 = data.motivation;if(typeof data17 !== "string"){const err72 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("oa:identifying" !== data17){const err73 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.P2_has_type !== undefined){let data18 = data.P2_has_type;if(Array.isArray(data18)){if(data18.length > 3){const err74 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data18.length < 1){const err75 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const len7 = data18.length;var valid19 = len7 <= 1;if(!valid19){for(let i0=1; i0<len7; i0++){let data19 = data18[i0];const _errs83 = errors;const _errs84 = errors;let valid20 = false;let passing7 = null;const _errs85 = errors;const _errs86 = errors;let valid21 = false;let passing8 = null;const _errs87 = errors;if(typeof data19 !== "string"){const err76 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(!((((data19 === "edit:certaintyUnknown") || (data19 === "edit:certaintyLow")) || (data19 === "edit:certaintyMedium")) || (data19 === "edit:certaintyHigh"))){const err77 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid9 = _errs87 === errors;if(_valid9){valid21 = true;passing8 = 0;}if(!valid21){const err78 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}var _valid8 = _errs85 === errors;if(_valid8){valid20 = true;passing7 = 0;}const _errs89 = errors;const _errs90 = errors;let valid22 = false;let passing9 = null;const _errs91 = errors;if(typeof data19 !== "string"){const err79 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(!((((data19 === "edit:precisionUnknown") || (data19 === "edit:precisionLow")) || (data19 === "edit:precisionMedium")) || (data19 === "edit:precisionHigh"))){const err80 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var _valid10 = _errs91 === errors;if(_valid10){valid22 = true;passing9 = 0;}if(!valid22){const err81 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}}var _valid8 = _errs89 === errors;if(_valid8 && valid20){valid20 = false;passing7 = [passing7, 1];}else {if(_valid8){valid20 = true;passing7 = 1;}}if(!valid20){const err82 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs84;if(vErrors !== null){if(_errs84){vErrors.length = _errs84;}else {vErrors = null;}}}var valid19 = _errs83 === errors;}}const len8 = data18.length;if(len8 > 0){let data20 = data18[0];if(typeof data20 !== "string"){const err83 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("oa:identifying" !== data20){const err84 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid0 = _errs77 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs95 = errors;const _errs96 = errors;let valid24 = true;const _errs97 = errors;if(errors === _errs97){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data21 = data.body;const _errs99 = errors;if(errors === _errs99){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type !== undefined){let data22 = data21.type;if(typeof data22 !== "string"){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("crm:E28_Conceptual_Object" !== data22){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}else {const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}var _valid11 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}let ifClause1;if(_valid11){const _errs103 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data23 = data.motivation;if(typeof data23 !== "string"){const err91 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if("oa:tagging" !== data23){const err92 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data.P2_has_type !== undefined){let data24 = data.P2_has_type;if(Array.isArray(data24)){if(data24.length > 3){const err93 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data24.length < 1){const err94 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const len9 = data24.length;var valid28 = len9 <= 1;if(!valid28){for(let i1=1; i1<len9; i1++){let data25 = data24[i1];const _errs109 = errors;const _errs110 = errors;let valid29 = false;let passing10 = null;const _errs111 = errors;const _errs112 = errors;let valid30 = false;let passing11 = null;const _errs113 = errors;if(typeof data25 !== "string"){const err95 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(!((((data25 === "edit:certaintyUnknown") || (data25 === "edit:certaintyLow")) || (data25 === "edit:certaintyMedium")) || (data25 === "edit:certaintyHigh"))){const err96 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}var _valid13 = _errs113 === errors;if(_valid13){valid30 = true;passing11 = 0;}if(!valid30){const err97 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}}var _valid12 = _errs111 === errors;if(_valid12){valid29 = true;passing10 = 0;}const _errs115 = errors;const _errs116 = errors;let valid31 = false;let passing12 = null;const _errs117 = errors;if(typeof data25 !== "string"){const err98 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(!((((data25 === "edit:precisionUnknown") || (data25 === "edit:precisionLow")) || (data25 === "edit:precisionMedium")) || (data25 === "edit:precisionHigh"))){const err99 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var _valid14 = _errs117 === errors;if(_valid14){valid31 = true;passing12 = 0;}if(!valid31){const err100 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}var _valid12 = _errs115 === errors;if(_valid12 && valid29){valid29 = false;passing10 = [passing10, 1];}else {if(_valid12){valid29 = true;passing10 = 1;}}if(!valid29){const err101 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}}var valid28 = _errs109 === errors;}}const len10 = data24.length;if(len10 > 0){let data26 = data24[0];if(typeof data26 !== "string"){const err102 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if("oa:tagging" !== data26){const err103 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid11 = _errs103 === errors;valid24 = _valid11;ifClause1 = "then";}else {const _errs121 = errors;const _errs122 = errors;let valid33 = true;const _errs123 = errors;if(errors === _errs123){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data27 = data.body;const _errs125 = errors;if(errors === _errs125){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type !== undefined){let data28 = data27.type;const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data28)){if(data28.length > 2){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data28.length < 2){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {const len11 = data28.length;if(len11 > 0){let data29 = data28[0];const _errs129 = errors;if(typeof data29 !== "string"){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("TextualBody" !== data29){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var valid36 = _errs129 === errors;}if(valid36){if(len11 > 1){let data30 = data28[1];const _errs131 = errors;if(typeof data30 !== "string"){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if("crm:E33_Linguistic_Object" !== data30){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid36 = _errs131 === errors;}}}}}else {const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}else {const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}}else {const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid15 = _errs123 === errors;errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}let ifClause2;if(_valid15){const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data31 = data.motivation;if(typeof data31 !== "string"){const err115 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if("oa:describing" !== data31){const err116 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data.P2_has_type !== undefined){let data32 = data.P2_has_type;if(Array.isArray(data32)){if(data32.length > 3){const err117 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data32.length < 1){const err118 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const len12 = data32.length;var valid38 = len12 <= 1;if(!valid38){for(let i2=1; i2<len12; i2++){let data33 = data32[i2];const _errs139 = errors;const _errs140 = errors;let valid39 = false;let passing13 = null;const _errs141 = errors;const _errs142 = errors;let valid40 = false;let passing14 = null;const _errs143 = errors;if(typeof data33 !== "string"){const err119 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(!((((data33 === "edit:certaintyUnknown") || (data33 === "edit:certaintyLow")) || (data33 === "edit:certaintyMedium")) || (data33 === "edit:certaintyHigh"))){const err120 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid17 = _errs143 === errors;if(_valid17){valid40 = true;passing14 = 0;}if(!valid40){const err121 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}var _valid16 = _errs141 === errors;if(_valid16){valid39 = true;passing13 = 0;}const _errs145 = errors;const _errs146 = errors;let valid41 = false;let passing15 = null;const _errs147 = errors;if(typeof data33 !== "string"){const err122 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if(!((((data33 === "edit:precisionUnknown") || (data33 === "edit:precisionLow")) || (data33 === "edit:precisionMedium")) || (data33 === "edit:precisionHigh"))){const err123 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid18 = _errs147 === errors;if(_valid18){valid41 = true;passing15 = 0;}if(!valid41){const err124 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}var _valid16 = _errs145 === errors;if(_valid16 && valid39){valid39 = false;passing13 = [passing13, 1];}else {if(_valid16){valid39 = true;passing13 = 1;}}if(!valid39){const err125 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}var valid38 = _errs139 === errors;}}const len13 = data32.length;if(len13 > 0){let data34 = data32[0];if(typeof data34 !== "string"){const err126 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if("oa:describing" !== data34){const err127 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var _valid15 = _errs133 === errors;valid33 = _valid15;ifClause2 = "then";}else {const _errs151 = errors;const _errs152 = errors;let valid43 = true;const _errs153 = errors;if(errors === _errs153){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data35 = data.body;const _errs155 = errors;if(errors === _errs155){if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.type !== undefined){let data36 = data35.type;const _errs157 = errors;if(errors === _errs157){if(Array.isArray(data36)){if(data36.length > 3){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {if(data36.length < 3){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {const len14 = data36.length;if(len14 > 0){let data37 = data36[0];const _errs159 = errors;if(typeof data37 !== "string"){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("TextualBody" !== data37){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var valid46 = _errs159 === errors;}if(valid46){if(len14 > 1){let data38 = data36[1];const _errs161 = errors;if(typeof data38 !== "string"){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if("fabio:Correction" !== data38){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var valid46 = _errs161 === errors;}if(valid46){if(len14 > 2){let data39 = data36[2];const _errs163 = errors;if(typeof data39 !== "string"){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("crm:E33_Linguistic_Object" !== data39){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var valid46 = _errs163 === errors;}}}}}}else {const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}}}else {const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}}else {const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid19 = _errs153 === errors;errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}let ifClause3;if(_valid19){const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data40 = data.motivation;if(typeof data40 !== "string"){const err141 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if("correcting" !== data40){const err142 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data.P2_has_type !== undefined){let data41 = data.P2_has_type;if(Array.isArray(data41)){if(data41.length > 3){const err143 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data41.length < 1){const err144 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const len15 = data41.length;var valid48 = len15 <= 1;if(!valid48){for(let i3=1; i3<len15; i3++){let data42 = data41[i3];const _errs171 = errors;const _errs172 = errors;let valid49 = false;let passing16 = null;const _errs173 = errors;const _errs174 = errors;let valid50 = false;let passing17 = null;const _errs175 = errors;if(typeof data42 !== "string"){const err145 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(!((((data42 === "edit:certaintyUnknown") || (data42 === "edit:certaintyLow")) || (data42 === "edit:certaintyMedium")) || (data42 === "edit:certaintyHigh"))){const err146 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var _valid21 = _errs175 === errors;if(_valid21){valid50 = true;passing17 = 0;}if(!valid50){const err147 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}}var _valid20 = _errs173 === errors;if(_valid20){valid49 = true;passing16 = 0;}const _errs177 = errors;const _errs178 = errors;let valid51 = false;let passing18 = null;const _errs179 = errors;if(typeof data42 !== "string"){const err148 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(!((((data42 === "edit:precisionUnknown") || (data42 === "edit:precisionLow")) || (data42 === "edit:precisionMedium")) || (data42 === "edit:precisionHigh"))){const err149 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid22 = _errs179 === errors;if(_valid22){valid51 = true;passing18 = 0;}if(!valid51){const err150 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}var _valid20 = _errs177 === errors;if(_valid20 && valid49){valid49 = false;passing16 = [passing16, 1];}else {if(_valid20){valid49 = true;passing16 = 1;}}if(!valid49){const err151 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}var valid48 = _errs171 === errors;}}const len16 = data41.length;if(len16 > 0){let data43 = data41[0];if(typeof data43 !== "string"){const err152 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("correcting" !== data43){const err153 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid19 = _errs165 === errors;valid43 = _valid19;ifClause3 = "then";}else {const _errs183 = errors;const _errs184 = errors;let valid53 = true;const _errs185 = errors;if(errors === _errs185){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data44 = data.body;const _errs187 = errors;if(errors === _errs187){if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type !== undefined){let data45 = data44.type;if(typeof data45 !== "string"){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if("crmdig:D1_Digital_Object" !== data45){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}else {const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}else {const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid23 = _errs185 === errors;errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}let ifClause4;if(_valid23){const _errs191 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data46 = data.motivation;if(typeof data46 !== "string"){const err160 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if("oa:linking" !== data46){const err161 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data.P2_has_type !== undefined){let data47 = data.P2_has_type;if(Array.isArray(data47)){if(data47.length > 3){const err162 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data47.length < 1){const err163 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const len17 = data47.length;var valid57 = len17 <= 1;if(!valid57){for(let i4=1; i4<len17; i4++){let data48 = data47[i4];const _errs197 = errors;const _errs198 = errors;let valid58 = false;let passing19 = null;const _errs199 = errors;const _errs200 = errors;let valid59 = false;let passing20 = null;const _errs201 = errors;if(typeof data48 !== "string"){const err164 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(!((((data48 === "edit:certaintyUnknown") || (data48 === "edit:certaintyLow")) || (data48 === "edit:certaintyMedium")) || (data48 === "edit:certaintyHigh"))){const err165 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}var _valid25 = _errs201 === errors;if(_valid25){valid59 = true;passing20 = 0;}if(!valid59){const err166 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}var _valid24 = _errs199 === errors;if(_valid24){valid58 = true;passing19 = 0;}const _errs203 = errors;const _errs204 = errors;let valid60 = false;let passing21 = null;const _errs205 = errors;if(typeof data48 !== "string"){const err167 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(!((((data48 === "edit:precisionUnknown") || (data48 === "edit:precisionLow")) || (data48 === "edit:precisionMedium")) || (data48 === "edit:precisionHigh"))){const err168 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid26 = _errs205 === errors;if(_valid26){valid60 = true;passing21 = 0;}if(!valid60){const err169 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs204;if(vErrors !== null){if(_errs204){vErrors.length = _errs204;}else {vErrors = null;}}}var _valid24 = _errs203 === errors;if(_valid24 && valid58){valid58 = false;passing19 = [passing19, 1];}else {if(_valid24){valid58 = true;passing19 = 1;}}if(!valid58){const err170 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {errors = _errs198;if(vErrors !== null){if(_errs198){vErrors.length = _errs198;}else {vErrors = null;}}}var valid57 = _errs197 === errors;}}const len18 = data47.length;if(len18 > 0){let data49 = data47[0];if(typeof data49 !== "string"){const err171 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("oa:linking" !== data49){const err172 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}}else {const err174 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}var _valid23 = _errs191 === errors;valid53 = _valid23;ifClause4 = "then";}else {const _errs209 = errors;const _errs210 = errors;let valid62 = true;const _errs211 = errors;if(errors === _errs211){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data50 = data.body;const _errs213 = errors;if(errors === _errs213){if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type !== undefined){let data51 = data50.type;const _errs215 = errors;if(errors === _errs215){if(Array.isArray(data51)){if(data51.length > 2){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data51.length < 2){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {const len19 = data51.length;if(len19 > 0){let data52 = data51[0];const _errs217 = errors;if(typeof data52 !== "string"){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if("cito:Citation" !== data52){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var valid65 = _errs217 === errors;}if(valid65){if(len19 > 1){let data53 = data51[1];const _errs219 = errors;if(typeof data53 !== "string"){const err179 = {};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("crm:E73_Information_Object" !== data53){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}var valid65 = _errs219 === errors;}}}}}else {const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}}else {const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}}else {const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}var _valid27 = _errs211 === errors;errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}if(_valid27){const _errs221 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data54 = data.motivation;if(typeof data54 !== "string"){const err184 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if("citing" !== data54){const err185 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data.P2_has_type !== undefined){let data55 = data.P2_has_type;if(Array.isArray(data55)){if(data55.length > 3){const err186 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data55.length < 1){const err187 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}const len20 = data55.length;var valid67 = len20 <= 1;if(!valid67){for(let i5=1; i5<len20; i5++){let data56 = data55[i5];const _errs227 = errors;const _errs228 = errors;let valid68 = false;let passing22 = null;const _errs229 = errors;const _errs230 = errors;let valid69 = false;let passing23 = null;const _errs231 = errors;if(typeof data56 !== "string"){const err188 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(!((((data56 === "edit:certaintyUnknown") || (data56 === "edit:certaintyLow")) || (data56 === "edit:certaintyMedium")) || (data56 === "edit:certaintyHigh"))){const err189 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}var _valid29 = _errs231 === errors;if(_valid29){valid69 = true;passing23 = 0;}if(!valid69){const err190 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs230;if(vErrors !== null){if(_errs230){vErrors.length = _errs230;}else {vErrors = null;}}}var _valid28 = _errs229 === errors;if(_valid28){valid68 = true;passing22 = 0;}const _errs233 = errors;const _errs234 = errors;let valid70 = false;let passing24 = null;const _errs235 = errors;if(typeof data56 !== "string"){const err191 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(!((((data56 === "edit:precisionUnknown") || (data56 === "edit:precisionLow")) || (data56 === "edit:precisionMedium")) || (data56 === "edit:precisionHigh"))){const err192 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.allOf[0].else.else.else.else.else.then.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid30 = _errs235 === errors;if(_valid30){valid70 = true;passing24 = 0;}if(!valid70){const err193 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}var _valid28 = _errs233 === errors;if(_valid28 && valid68){valid68 = false;passing22 = [passing22, 1];}else {if(_valid28){valid68 = true;passing22 = 1;}}if(!valid68){const err194 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var valid67 = _errs227 === errors;}}const len21 = data55.length;if(len21 > 0){let data57 = data55[0];if(typeof data57 !== "string"){const err195 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if("citing" !== data57){const err196 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}}else {const err197 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}else {const err198 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var _valid27 = _errs221 === errors;valid62 = _valid27;}if(!valid62){const err199 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}var _valid23 = _errs209 === errors;valid53 = _valid23;ifClause4 = "else";}if(!valid53){const err200 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var _valid19 = _errs183 === errors;valid43 = _valid19;ifClause3 = "else";}if(!valid43){const err201 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}var _valid15 = _errs151 === errors;valid33 = _valid15;ifClause2 = "else";}if(!valid33){const err202 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}var _valid11 = _errs121 === errors;valid24 = _valid11;ifClause1 = "else";}if(!valid24){const err203 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var _valid0 = _errs95 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err204 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}const _errs240 = errors;let valid72 = true;const _errs241 = errors;if(errors === _errs241){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data58 = data.body;const _errs243 = errors;if(errors === _errs243){if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.type !== undefined){let data59 = data58.type;if(typeof data59 !== "string"){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("Choice" !== data59){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}else {const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}}else {const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var _valid31 = _errs241 === errors;errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}let ifClause5;if(_valid31){const _errs247 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){if(!(validate12(data.body, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}}else {const err209 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}var _valid31 = _errs247 === errors;valid72 = _valid31;ifClause5 = "then";}else {const _errs250 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data61 = data.body;const _errs253 = errors;let valid77 = false;let passing25 = null;const _errs254 = errors;const _errs257 = errors;let valid79 = false;const _errs258 = errors;const _errs259 = errors;let valid80 = true;const _errs260 = errors;if(errors === _errs260){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.type !== undefined){let data62 = data61.type;const _errs263 = errors;let valid82 = false;const _errs264 = errors;if(errors === _errs264){if(Array.isArray(data62)){if(data62.length > 2){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data62.length < 2){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}else {const len22 = data62.length;if(len22 > 0){let data63 = data62[0];const _errs266 = errors;if(typeof data63 !== "string"){const err212 = {};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if("TextualBody" !== data63){const err213 = {};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var valid83 = _errs266 === errors;}if(valid83){if(len22 > 1){let data64 = data62[1];const _errs268 = errors;if(typeof data64 !== "string"){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if("crm:E33_Linguistic_Object" !== data64){const err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}var valid83 = _errs268 === errors;}}}}}else {const err216 = {};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}var _valid35 = _errs264 === errors;valid82 = valid82 || _valid35;if(!valid82){const _errs270 = errors;if(errors === _errs270){if(Array.isArray(data62)){if(data62.length > 3){const err217 = {};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {if(data62.length < 3){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}else {const len23 = data62.length;if(len23 > 0){let data65 = data62[0];const _errs272 = errors;if(typeof data65 !== "string"){const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if("TextualBody" !== data65){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}var valid84 = _errs272 === errors;}if(valid84){if(len23 > 1){let data66 = data62[1];const _errs274 = errors;if(typeof data66 !== "string"){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if("xsd:date" !== data66){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var valid84 = _errs274 === errors;}if(valid84){if(len23 > 2){let data67 = data62[2];const _errs276 = errors;if(typeof data67 !== "string"){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if("crm:E52_Time-Span" !== data67){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}var valid84 = _errs276 === errors;}}}}}}else {const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}var _valid35 = _errs270 === errors;valid82 = valid82 || _valid35;if(!valid82){const _errs278 = errors;if(errors === _errs278){if(Array.isArray(data62)){if(data62.length > 3){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}else {if(data62.length < 3){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {const len24 = data62.length;if(len24 > 0){let data68 = data62[0];const _errs280 = errors;if(typeof data68 !== "string"){const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if("TextualBody" !== data68){const err229 = {};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}var valid85 = _errs280 === errors;}if(valid85){if(len24 > 1){let data69 = data62[1];const _errs282 = errors;if(typeof data69 !== "string"){const err230 = {};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if("fabio:Correction" !== data69){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var valid85 = _errs282 === errors;}if(valid85){if(len24 > 2){let data70 = data62[2];const _errs284 = errors;if(typeof data70 !== "string"){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if("crm:E33_Linguistic_Object" !== data70){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var valid85 = _errs284 === errors;}}}}}}else {const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}var _valid35 = _errs278 === errors;valid82 = valid82 || _valid35;}}if(!valid82){const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {errors = _errs263;if(vErrors !== null){if(_errs263){vErrors.length = _errs263;}else {vErrors = null;}}}}}else {const err236 = {};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}var _valid34 = _errs260 === errors;errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}if(_valid34){const _errs286 = errors;const _errs288 = errors;let valid86 = true;const _errs289 = errors;if(errors === _errs289){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.type !== undefined){let data71 = data61.type;const _errs291 = errors;if(errors === _errs291){if(Array.isArray(data71)){if(data71.length > 3){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}else {if(data71.length < 3){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {const len25 = data71.length;if(len25 > 0){let data72 = data71[0];const _errs293 = errors;if(typeof data72 !== "string"){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("TextualBody" !== data72){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var valid88 = _errs293 === errors;}if(valid88){if(len25 > 1){let data73 = data71[1];const _errs295 = errors;if(typeof data73 !== "string"){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if("xsd:date" !== data73){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}var valid88 = _errs295 === errors;}if(valid88){if(len25 > 2){let data74 = data71[2];const _errs297 = errors;if(typeof data74 !== "string"){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("crm:E52_Time-Span" !== data74){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}var valid88 = _errs297 === errors;}}}}}}else {const err245 = {};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}}else {const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}var _valid36 = _errs289 === errors;errors = _errs288;if(vErrors !== null){if(_errs288){vErrors.length = _errs288;}else {vErrors = null;}}if(_valid36){const _errs299 = errors;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err247 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data61.type === undefined){const err248 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data61.value === undefined){const err249 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data61.value !== undefined){let data75 = data61.value;if(typeof data75 === "string"){if(!pattern0.test(data75)){const err250 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}else {const err251 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid36 = _errs299 === errors;valid86 = _valid36;}if(!valid86){const err253 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err254 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(data61.type === undefined){const err255 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data61.value === undefined){const err256 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}else {const err257 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid34 = _errs286 === errors;valid80 = _valid34;}if(!valid80){const err258 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}var _valid33 = _errs258 === errors;valid79 = valid79 || _valid33;if(!valid79){const err259 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err260 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if(data61.type === undefined){const err261 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}for(const key0 in data61){if(!((((((key0 === "id") || (key0 === "type")) || (key0 === "value")) || (key0 === "label")) || (key0 === "P2_has_type")) || (key0 === "description"))){const err262 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data61.id !== undefined){let data76 = data61.id;if(typeof data76 === "string"){if(!(formats0(data76))){const err263 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data61.type !== undefined){let data77 = data61.type;const _errs307 = errors;let valid91 = false;let passing26 = null;const _errs308 = errors;const _errs309 = errors;let valid92 = false;let passing27 = null;const _errs310 = errors;if(typeof data77 !== "string"){const err265 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}if("crm:E21_Person" !== data77){const err266 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}var _valid38 = _errs310 === errors;if(_valid38){valid92 = true;passing27 = 0;}const _errs312 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err267 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data77.length < 2){const err268 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const len26 = data77.length;if(len26 > 0){let data78 = data77[0];if(typeof data78 !== "string"){const err269 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if("foaf:Person" !== data78){const err270 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}if(len26 > 1){let data79 = data77[1];if(typeof data79 !== "string"){const err271 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}if("crm:E89_Propositional_Object" !== data79){const err272 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}else {const err273 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid38 = _errs312 === errors;if(_valid38 && valid92){valid92 = false;passing27 = [passing27, 1];}else {if(_valid38){valid92 = true;passing27 = 1;}}if(!valid92){const err274 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing27},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var _valid37 = _errs308 === errors;if(_valid37){valid91 = true;passing26 = 0;}const _errs318 = errors;const _errs319 = errors;let valid94 = false;let passing28 = null;const _errs320 = errors;if(typeof data77 !== "string"){const err275 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if("crm:E53_Place" !== data77){const err276 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var _valid39 = _errs320 === errors;if(_valid39){valid94 = true;passing28 = 0;}const _errs322 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err277 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data77.length < 2){const err278 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}const len27 = data77.length;if(len27 > 0){let data80 = data77[0];if(typeof data80 !== "string"){const err279 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}if("biography:fictionalPlace" !== data80){const err280 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(len27 > 1){let data81 = data77[1];if(typeof data81 !== "string"){const err281 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}if("crm:E89_Propositional_Object" !== data81){const err282 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid39 = _errs322 === errors;if(_valid39 && valid94){valid94 = false;passing28 = [passing28, 1];}else {if(_valid39){valid94 = true;passing28 = 1;}}if(!valid94){const err284 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing28},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {errors = _errs319;if(vErrors !== null){if(_errs319){vErrors.length = _errs319;}else {vErrors = null;}}}var _valid37 = _errs318 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 1];}else {if(_valid37){valid91 = true;passing26 = 1;}const _errs328 = errors;const _errs329 = errors;let valid96 = false;let passing29 = null;const _errs330 = errors;if(typeof data77 !== "string"){const err285 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if("crm:E74_Group" !== data77){const err286 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}var _valid40 = _errs330 === errors;if(_valid40){valid96 = true;passing29 = 0;}const _errs332 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err287 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data77.length < 2){const err288 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}const len28 = data77.length;if(len28 > 0){let data82 = data77[0];if(typeof data82 !== "string"){const err289 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}if("foaf:Organization" !== data82){const err290 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(len28 > 1){let data83 = data77[1];if(typeof data83 !== "string"){const err291 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if("crm:E89_Propositional_Object" !== data83){const err292 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}}else {const err293 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var _valid40 = _errs332 === errors;if(_valid40 && valid96){valid96 = false;passing29 = [passing29, 1];}else {if(_valid40){valid96 = true;passing29 = 1;}}if(!valid96){const err294 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing29},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}}var _valid37 = _errs328 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 2];}else {if(_valid37){valid91 = true;passing26 = 2;}const _errs338 = errors;const _errs339 = errors;let valid98 = false;let passing30 = null;const _errs340 = errors;if(typeof data77 !== "string"){const err295 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("frbroo:F1" !== data77){const err296 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var _valid41 = _errs340 === errors;if(_valid41){valid98 = true;passing30 = 0;}const _errs342 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err297 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}if(data77.length < 2){const err298 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}const len29 = data77.length;if(len29 > 0){let data84 = data77[0];if(typeof data84 !== "string"){const err299 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if("frbroo:F1" !== data84){const err300 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}if(len29 > 1){let data85 = data77[1];if(typeof data85 !== "string"){const err301 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}if("wikidata:Q15306849" !== data85){const err302 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}}else {const err303 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var _valid41 = _errs342 === errors;if(_valid41 && valid98){valid98 = false;passing30 = [passing30, 1];}else {if(_valid41){valid98 = true;passing30 = 1;}}if(!valid98){const err304 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing30},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs339;if(vErrors !== null){if(_errs339){vErrors.length = _errs339;}else {vErrors = null;}}}var _valid37 = _errs338 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 3];}else {if(_valid37){valid91 = true;passing26 = 3;}const _errs348 = errors;const _errs349 = errors;let valid100 = false;let passing31 = null;const _errs350 = errors;if(typeof data77 !== "string"){const err305 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if("crm:E18_Physical_Thing" !== data77){const err306 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}var _valid42 = _errs350 === errors;if(_valid42){valid100 = true;passing31 = 0;}const _errs352 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err307 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data77.length < 2){const err308 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}const len30 = data77.length;if(len30 > 0){let data86 = data77[0];if(typeof data86 !== "string"){const err309 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}if("wikidata:Q15831596" !== data86){const err310 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}if(len30 > 1){let data87 = data77[1];if(typeof data87 !== "string"){const err311 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}if("crm:E89_Propositional_Object" !== data87){const err312 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}}else {const err313 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid42 = _errs352 === errors;if(_valid42 && valid100){valid100 = false;passing31 = [passing31, 1];}else {if(_valid42){valid100 = true;passing31 = 1;}}if(!valid100){const err314 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing31},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}else {errors = _errs349;if(vErrors !== null){if(_errs349){vErrors.length = _errs349;}else {vErrors = null;}}}var _valid37 = _errs348 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 4];}else {if(_valid37){valid91 = true;passing26 = 4;}const _errs358 = errors;if(typeof data77 !== "string"){const err315 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if("crm:E28_Conceptual_Object" !== data77){const err316 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}var _valid37 = _errs358 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 5];}else {if(_valid37){valid91 = true;passing26 = 5;}const _errs360 = errors;const _errs361 = errors;let valid102 = false;let passing32 = null;const _errs362 = errors;if(typeof data77 !== "string"){const err317 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}if("crm:E5_Event" !== data77){const err318 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid43 = _errs362 === errors;if(_valid43){valid102 = true;passing32 = 0;}const _errs364 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err319 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(data77.length < 2){const err320 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}const len31 = data77.length;if(len31 > 0){let data88 = data77[0];if(typeof data88 !== "string"){const err321 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}if("event:Event" !== data88){const err322 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}if(len31 > 1){let data89 = data77[1];if(typeof data89 !== "string"){const err323 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if("crm:E89_Propositional_Object" !== data89){const err324 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}}else {const err325 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}var _valid43 = _errs364 === errors;if(_valid43 && valid102){valid102 = false;passing32 = [passing32, 1];}else {if(_valid43){valid102 = true;passing32 = 1;}}if(!valid102){const err326 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing32},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}else {errors = _errs361;if(vErrors !== null){if(_errs361){vErrors.length = _errs361;}else {vErrors = null;}}}var _valid37 = _errs360 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 6];}else {if(_valid37){valid91 = true;passing26 = 6;}const _errs370 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err327 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}if(data77.length < 2){const err328 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}const len32 = data77.length;if(len32 > 0){let data90 = data77[0];if(typeof data90 !== "string"){const err329 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}if("cito:Citation" !== data90){const err330 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}if(len32 > 1){let data91 = data77[1];if(typeof data91 !== "string"){const err331 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if("crm:E73_Information_Object" !== data91){const err332 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}}else {const err333 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}var _valid37 = _errs370 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 7];}else {if(_valid37){valid91 = true;passing26 = 7;}const _errs376 = errors;if(Array.isArray(data77)){if(data77.length > 3){const err334 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(data77.length < 3){const err335 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}const len33 = data77.length;if(len33 > 0){let data92 = data77[0];if(typeof data92 !== "string"){const err336 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if("TextualBody" !== data92){const err337 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}if(len33 > 1){let data93 = data77[1];if(typeof data93 !== "string"){const err338 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if("xsd:date" !== data93){const err339 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(len33 > 2){let data94 = data77[2];if(typeof data94 !== "string"){const err340 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if("crm:E52_Time-Span" !== data94){const err341 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}}else {const err342 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}var _valid37 = _errs376 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 8];}else {if(_valid37){valid91 = true;passing26 = 8;}const _errs384 = errors;if(Array.isArray(data77)){if(data77.length > 2){const err343 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if(data77.length < 2){const err344 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}const len34 = data77.length;if(len34 > 0){let data95 = data77[0];if(typeof data95 !== "string"){const err345 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if("TextualBody" !== data95){const err346 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(len34 > 1){let data96 = data77[1];if(typeof data96 !== "string"){const err347 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E33_Linguistic_Object" !== data96){const err348 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}var _valid37 = _errs384 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 9];}else {if(_valid37){valid91 = true;passing26 = 9;}const _errs390 = errors;if(Array.isArray(data77)){if(data77.length > 3){const err350 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(data77.length < 3){const err351 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}const len35 = data77.length;if(len35 > 0){let data97 = data77[0];if(typeof data97 !== "string"){const err352 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if("TextualBody" !== data97){const err353 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}if(len35 > 1){let data98 = data77[1];if(typeof data98 !== "string"){const err354 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if("fabio:Correction" !== data98){const err355 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}if(len35 > 2){let data99 = data77[2];if(typeof data99 !== "string"){const err356 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E33_Linguistic_Object" !== data99){const err357 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}}else {const err358 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}var _valid37 = _errs390 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 10];}else {if(_valid37){valid91 = true;passing26 = 10;}const _errs398 = errors;if(typeof data77 !== "string"){const err359 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("crmdig:D1_Digital_Object" !== data77){const err360 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}var _valid37 = _errs398 === errors;if(_valid37 && valid91){valid91 = false;passing26 = [passing26, 11];}else {if(_valid37){valid91 = true;passing26 = 11;}}}}}}}}}}}}if(!valid91){const err361 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing26},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}else {errors = _errs307;if(vErrors !== null){if(_errs307){vErrors.length = _errs307;}else {vErrors = null;}}}}if(data61.value !== undefined){if(typeof data61.value !== "string"){const err362 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}if(data61.label !== undefined){let data101 = data61.label;if(typeof data101 === "string"){if(func2(data101) < 1){const err363 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}else {const err364 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}if(data61.P2_has_type !== undefined){let data102 = data61.P2_has_type;if(Array.isArray(data102)){const len36 = data102.length;for(let i6=0; i6<len36; i6++){if(typeof data102[i6] !== "string"){const err365 = {instancePath:instancePath+"/body/P2_has_type/" + i6,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}else {const err366 = {instancePath:instancePath+"/body/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(data61.description !== undefined){if(typeof data61.description !== "string"){const err367 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}}else {const err368 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}var _valid32 = _errs254 === errors;if(_valid32){valid77 = true;passing25 = 0;}const _errs410 = errors;if(Array.isArray(data61)){if(data61.length < 1){const err369 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}const len37 = data61.length;for(let i7=0; i7<len37; i7++){let data105 = data61[i7];const _errs415 = errors;let valid113 = false;const _errs416 = errors;const _errs417 = errors;let valid114 = true;const _errs418 = errors;if(errors === _errs418){if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.type !== undefined){let data106 = data105.type;const _errs421 = errors;let valid116 = false;const _errs422 = errors;if(errors === _errs422){if(Array.isArray(data106)){if(data106.length > 2){const err370 = {};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}else {if(data106.length < 2){const err371 = {};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}else {const len38 = data106.length;if(len38 > 0){let data107 = data106[0];const _errs424 = errors;if(typeof data107 !== "string"){const err372 = {};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}if("TextualBody" !== data107){const err373 = {};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}var valid117 = _errs424 === errors;}if(valid117){if(len38 > 1){let data108 = data106[1];const _errs426 = errors;if(typeof data108 !== "string"){const err374 = {};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if("crm:E33_Linguistic_Object" !== data108){const err375 = {};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}var valid117 = _errs426 === errors;}}}}}else {const err376 = {};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}var _valid46 = _errs422 === errors;valid116 = valid116 || _valid46;if(!valid116){const _errs428 = errors;if(errors === _errs428){if(Array.isArray(data106)){if(data106.length > 3){const err377 = {};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}else {if(data106.length < 3){const err378 = {};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}else {const len39 = data106.length;if(len39 > 0){let data109 = data106[0];const _errs430 = errors;if(typeof data109 !== "string"){const err379 = {};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if("TextualBody" !== data109){const err380 = {};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}var valid118 = _errs430 === errors;}if(valid118){if(len39 > 1){let data110 = data106[1];const _errs432 = errors;if(typeof data110 !== "string"){const err381 = {};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if("xsd:date" !== data110){const err382 = {};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}var valid118 = _errs432 === errors;}if(valid118){if(len39 > 2){let data111 = data106[2];const _errs434 = errors;if(typeof data111 !== "string"){const err383 = {};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}if("crm:E52_Time-Span" !== data111){const err384 = {};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}var valid118 = _errs434 === errors;}}}}}}else {const err385 = {};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}var _valid46 = _errs428 === errors;valid116 = valid116 || _valid46;if(!valid116){const _errs436 = errors;if(errors === _errs436){if(Array.isArray(data106)){if(data106.length > 3){const err386 = {};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}else {if(data106.length < 3){const err387 = {};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}else {const len40 = data106.length;if(len40 > 0){let data112 = data106[0];const _errs438 = errors;if(typeof data112 !== "string"){const err388 = {};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}if("TextualBody" !== data112){const err389 = {};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}var valid119 = _errs438 === errors;}if(valid119){if(len40 > 1){let data113 = data106[1];const _errs440 = errors;if(typeof data113 !== "string"){const err390 = {};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}if("fabio:Correction" !== data113){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}var valid119 = _errs440 === errors;}if(valid119){if(len40 > 2){let data114 = data106[2];const _errs442 = errors;if(typeof data114 !== "string"){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}if("crm:E33_Linguistic_Object" !== data114){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid119 = _errs442 === errors;}}}}}}else {const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}var _valid46 = _errs436 === errors;valid116 = valid116 || _valid46;}}if(!valid116){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {errors = _errs421;if(vErrors !== null){if(_errs421){vErrors.length = _errs421;}else {vErrors = null;}}}}}else {const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}}var _valid45 = _errs418 === errors;errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}if(_valid45){const _errs444 = errors;const _errs446 = errors;let valid120 = true;const _errs447 = errors;if(errors === _errs447){if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.type !== undefined){let data115 = data105.type;const _errs449 = errors;if(errors === _errs449){if(Array.isArray(data115)){if(data115.length > 3){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}else {if(data115.length < 3){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {const len41 = data115.length;if(len41 > 0){let data116 = data115[0];const _errs451 = errors;if(typeof data116 !== "string"){const err399 = {};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if("TextualBody" !== data116){const err400 = {};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var valid122 = _errs451 === errors;}if(valid122){if(len41 > 1){let data117 = data115[1];const _errs453 = errors;if(typeof data117 !== "string"){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}if("xsd:date" !== data117){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}var valid122 = _errs453 === errors;}if(valid122){if(len41 > 2){let data118 = data115[2];const _errs455 = errors;if(typeof data118 !== "string"){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if("crm:E52_Time-Span" !== data118){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid122 = _errs455 === errors;}}}}}}else {const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}}}else {const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}var _valid47 = _errs447 === errors;errors = _errs446;if(vErrors !== null){if(_errs446){vErrors.length = _errs446;}else {vErrors = null;}}if(_valid47){const _errs457 = errors;if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.id === undefined){const err407 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if(data105.type === undefined){const err408 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data105.value === undefined){const err409 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}if(data105.value !== undefined){let data119 = data105.value;if(typeof data119 === "string"){if(!pattern0.test(data119)){const err410 = {instancePath:instancePath+"/body/" + i7+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}else {const err411 = {instancePath:instancePath+"/body/" + i7+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}}else {const err412 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}var _valid47 = _errs457 === errors;valid120 = _valid47;}if(!valid120){const err413 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.id === undefined){const err414 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}if(data105.type === undefined){const err415 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if(data105.value === undefined){const err416 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}else {const err417 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}var _valid45 = _errs444 === errors;valid114 = _valid45;}if(!valid114){const err418 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}var _valid44 = _errs416 === errors;valid113 = valid113 || _valid44;if(!valid113){const err419 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {errors = _errs415;if(vErrors !== null){if(_errs415){vErrors.length = _errs415;}else {vErrors = null;}}}if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.id === undefined){const err420 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}if(data105.type === undefined){const err421 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}for(const key1 in data105){if(!((((((key1 === "id") || (key1 === "type")) || (key1 === "value")) || (key1 === "label")) || (key1 === "P2_has_type")) || (key1 === "description"))){const err422 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}if(data105.id !== undefined){let data120 = data105.id;if(typeof data120 === "string"){if(!(formats0(data120))){const err423 = {instancePath:instancePath+"/body/" + i7+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}}else {const err424 = {instancePath:instancePath+"/body/" + i7+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(data105.type !== undefined){let data121 = data105.type;const _errs465 = errors;let valid125 = false;let passing33 = null;const _errs466 = errors;const _errs467 = errors;let valid126 = false;let passing34 = null;const _errs468 = errors;if(typeof data121 !== "string"){const err425 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if("crm:E21_Person" !== data121){const err426 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}var _valid49 = _errs468 === errors;if(_valid49){valid126 = true;passing34 = 0;}const _errs470 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err427 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if(data121.length < 2){const err428 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}const len42 = data121.length;if(len42 > 0){let data122 = data121[0];if(typeof data122 !== "string"){const err429 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}if("foaf:Person" !== data122){const err430 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}if(len42 > 1){let data123 = data121[1];if(typeof data123 !== "string"){const err431 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if("crm:E89_Propositional_Object" !== data123){const err432 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}}else {const err433 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}var _valid49 = _errs470 === errors;if(_valid49 && valid126){valid126 = false;passing34 = [passing34, 1];}else {if(_valid49){valid126 = true;passing34 = 1;}}if(!valid126){const err434 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing34},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}else {errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}}var _valid48 = _errs466 === errors;if(_valid48){valid125 = true;passing33 = 0;}const _errs476 = errors;const _errs477 = errors;let valid128 = false;let passing35 = null;const _errs478 = errors;if(typeof data121 !== "string"){const err435 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if("crm:E53_Place" !== data121){const err436 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid50 = _errs478 === errors;if(_valid50){valid128 = true;passing35 = 0;}const _errs480 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err437 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data121.length < 2){const err438 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}const len43 = data121.length;if(len43 > 0){let data124 = data121[0];if(typeof data124 !== "string"){const err439 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if("biography:fictionalPlace" !== data124){const err440 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}if(len43 > 1){let data125 = data121[1];if(typeof data125 !== "string"){const err441 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if("crm:E89_Propositional_Object" !== data125){const err442 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}else {const err443 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var _valid50 = _errs480 === errors;if(_valid50 && valid128){valid128 = false;passing35 = [passing35, 1];}else {if(_valid50){valid128 = true;passing35 = 1;}}if(!valid128){const err444 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing35},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {errors = _errs477;if(vErrors !== null){if(_errs477){vErrors.length = _errs477;}else {vErrors = null;}}}var _valid48 = _errs476 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 1];}else {if(_valid48){valid125 = true;passing33 = 1;}const _errs486 = errors;const _errs487 = errors;let valid130 = false;let passing36 = null;const _errs488 = errors;if(typeof data121 !== "string"){const err445 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}if("crm:E74_Group" !== data121){const err446 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}var _valid51 = _errs488 === errors;if(_valid51){valid130 = true;passing36 = 0;}const _errs490 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err447 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}if(data121.length < 2){const err448 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}const len44 = data121.length;if(len44 > 0){let data126 = data121[0];if(typeof data126 !== "string"){const err449 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if("foaf:Organization" !== data126){const err450 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}if(len44 > 1){let data127 = data121[1];if(typeof data127 !== "string"){const err451 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if("crm:E89_Propositional_Object" !== data127){const err452 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}else {const err453 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}var _valid51 = _errs490 === errors;if(_valid51 && valid130){valid130 = false;passing36 = [passing36, 1];}else {if(_valid51){valid130 = true;passing36 = 1;}}if(!valid130){const err454 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing36},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {errors = _errs487;if(vErrors !== null){if(_errs487){vErrors.length = _errs487;}else {vErrors = null;}}}var _valid48 = _errs486 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 2];}else {if(_valid48){valid125 = true;passing33 = 2;}const _errs496 = errors;const _errs497 = errors;let valid132 = false;let passing37 = null;const _errs498 = errors;if(typeof data121 !== "string"){const err455 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}if("frbroo:F1" !== data121){const err456 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}var _valid52 = _errs498 === errors;if(_valid52){valid132 = true;passing37 = 0;}const _errs500 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err457 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if(data121.length < 2){const err458 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}const len45 = data121.length;if(len45 > 0){let data128 = data121[0];if(typeof data128 !== "string"){const err459 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if("frbroo:F1" !== data128){const err460 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}if(len45 > 1){let data129 = data121[1];if(typeof data129 !== "string"){const err461 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if("wikidata:Q15306849" !== data129){const err462 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}else {const err463 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}var _valid52 = _errs500 === errors;if(_valid52 && valid132){valid132 = false;passing37 = [passing37, 1];}else {if(_valid52){valid132 = true;passing37 = 1;}}if(!valid132){const err464 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing37},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {errors = _errs497;if(vErrors !== null){if(_errs497){vErrors.length = _errs497;}else {vErrors = null;}}}var _valid48 = _errs496 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 3];}else {if(_valid48){valid125 = true;passing33 = 3;}const _errs506 = errors;const _errs507 = errors;let valid134 = false;let passing38 = null;const _errs508 = errors;if(typeof data121 !== "string"){const err465 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if("crm:E18_Physical_Thing" !== data121){const err466 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}var _valid53 = _errs508 === errors;if(_valid53){valid134 = true;passing38 = 0;}const _errs510 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err467 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data121.length < 2){const err468 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}const len46 = data121.length;if(len46 > 0){let data130 = data121[0];if(typeof data130 !== "string"){const err469 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if("wikidata:Q15831596" !== data130){const err470 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}if(len46 > 1){let data131 = data121[1];if(typeof data131 !== "string"){const err471 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if("crm:E89_Propositional_Object" !== data131){const err472 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}else {const err473 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}var _valid53 = _errs510 === errors;if(_valid53 && valid134){valid134 = false;passing38 = [passing38, 1];}else {if(_valid53){valid134 = true;passing38 = 1;}}if(!valid134){const err474 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing38},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}else {errors = _errs507;if(vErrors !== null){if(_errs507){vErrors.length = _errs507;}else {vErrors = null;}}}var _valid48 = _errs506 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 4];}else {if(_valid48){valid125 = true;passing33 = 4;}const _errs516 = errors;if(typeof data121 !== "string"){const err475 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if("crm:E28_Conceptual_Object" !== data121){const err476 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}var _valid48 = _errs516 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 5];}else {if(_valid48){valid125 = true;passing33 = 5;}const _errs518 = errors;const _errs519 = errors;let valid136 = false;let passing39 = null;const _errs520 = errors;if(typeof data121 !== "string"){const err477 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if("crm:E5_Event" !== data121){const err478 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}var _valid54 = _errs520 === errors;if(_valid54){valid136 = true;passing39 = 0;}const _errs522 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err479 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if(data121.length < 2){const err480 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}const len47 = data121.length;if(len47 > 0){let data132 = data121[0];if(typeof data132 !== "string"){const err481 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if("event:Event" !== data132){const err482 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}if(len47 > 1){let data133 = data121[1];if(typeof data133 !== "string"){const err483 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}if("crm:E89_Propositional_Object" !== data133){const err484 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}}}else {const err485 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}var _valid54 = _errs522 === errors;if(_valid54 && valid136){valid136 = false;passing39 = [passing39, 1];}else {if(_valid54){valid136 = true;passing39 = 1;}}if(!valid136){const err486 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing39},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}else {errors = _errs519;if(vErrors !== null){if(_errs519){vErrors.length = _errs519;}else {vErrors = null;}}}var _valid48 = _errs518 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 6];}else {if(_valid48){valid125 = true;passing33 = 6;}const _errs528 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err487 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data121.length < 2){const err488 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}const len48 = data121.length;if(len48 > 0){let data134 = data121[0];if(typeof data134 !== "string"){const err489 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if("cito:Citation" !== data134){const err490 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}if(len48 > 1){let data135 = data121[1];if(typeof data135 !== "string"){const err491 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}if("crm:E73_Information_Object" !== data135){const err492 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}}else {const err493 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}var _valid48 = _errs528 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 7];}else {if(_valid48){valid125 = true;passing33 = 7;}const _errs534 = errors;if(Array.isArray(data121)){if(data121.length > 3){const err494 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data121.length < 3){const err495 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}const len49 = data121.length;if(len49 > 0){let data136 = data121[0];if(typeof data136 !== "string"){const err496 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if("TextualBody" !== data136){const err497 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}if(len49 > 1){let data137 = data121[1];if(typeof data137 !== "string"){const err498 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if("xsd:date" !== data137){const err499 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}if(len49 > 2){let data138 = data121[2];if(typeof data138 !== "string"){const err500 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if("crm:E52_Time-Span" !== data138){const err501 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}}}else {const err502 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}var _valid48 = _errs534 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 8];}else {if(_valid48){valid125 = true;passing33 = 8;}const _errs542 = errors;if(Array.isArray(data121)){if(data121.length > 2){const err503 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}if(data121.length < 2){const err504 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}const len50 = data121.length;if(len50 > 0){let data139 = data121[0];if(typeof data139 !== "string"){const err505 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if("TextualBody" !== data139){const err506 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}if(len50 > 1){let data140 = data121[1];if(typeof data140 !== "string"){const err507 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}if("crm:E33_Linguistic_Object" !== data140){const err508 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}else {const err509 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}var _valid48 = _errs542 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 9];}else {if(_valid48){valid125 = true;passing33 = 9;}const _errs548 = errors;if(Array.isArray(data121)){if(data121.length > 3){const err510 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}if(data121.length < 3){const err511 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}const len51 = data121.length;if(len51 > 0){let data141 = data121[0];if(typeof data141 !== "string"){const err512 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}if("TextualBody" !== data141){const err513 = {instancePath:instancePath+"/body/" + i7+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(len51 > 1){let data142 = data121[1];if(typeof data142 !== "string"){const err514 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if("fabio:Correction" !== data142){const err515 = {instancePath:instancePath+"/body/" + i7+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}}if(len51 > 2){let data143 = data121[2];if(typeof data143 !== "string"){const err516 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if("crm:E33_Linguistic_Object" !== data143){const err517 = {instancePath:instancePath+"/body/" + i7+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}}else {const err518 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}var _valid48 = _errs548 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 10];}else {if(_valid48){valid125 = true;passing33 = 10;}const _errs556 = errors;if(typeof data121 !== "string"){const err519 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if("crmdig:D1_Digital_Object" !== data121){const err520 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}var _valid48 = _errs556 === errors;if(_valid48 && valid125){valid125 = false;passing33 = [passing33, 11];}else {if(_valid48){valid125 = true;passing33 = 11;}}}}}}}}}}}}if(!valid125){const err521 = {instancePath:instancePath+"/body/" + i7+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing33},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}else {errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}}}if(data105.value !== undefined){if(typeof data105.value !== "string"){const err522 = {instancePath:instancePath+"/body/" + i7+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(data105.label !== undefined){let data145 = data105.label;if(typeof data145 === "string"){if(func2(data145) < 1){const err523 = {instancePath:instancePath+"/body/" + i7+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}}else {const err524 = {instancePath:instancePath+"/body/" + i7+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}if(data105.P2_has_type !== undefined){let data146 = data105.P2_has_type;if(Array.isArray(data146)){const len52 = data146.length;for(let i8=0; i8<len52; i8++){if(typeof data146[i8] !== "string"){const err525 = {instancePath:instancePath+"/body/" + i7+"/P2_has_type/" + i8,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}}else {const err526 = {instancePath:instancePath+"/body/" + i7+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(data105.description !== undefined){if(typeof data105.description !== "string"){const err527 = {instancePath:instancePath+"/body/" + i7+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}}else {const err528 = {instancePath:instancePath+"/body/" + i7,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}}else {const err529 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}var _valid32 = _errs410 === errors;if(_valid32 && valid77){valid77 = false;passing25 = [passing25, 1];}else {if(_valid32){valid77 = true;passing25 = 1;}}if(!valid77){const err530 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing25},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}else {errors = _errs253;if(vErrors !== null){if(_errs253){vErrors.length = _errs253;}else {vErrors = null;}}}}}else {const err531 = {instancePath,schemaPath:"#/allOf/1/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}var _valid31 = _errs250 === errors;valid72 = _valid31;ifClause5 = "else";}if(!valid72){const err532 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err533 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if(data.id === undefined){const err534 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if(data.type === undefined){const err535 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}if(data.motivation === undefined){const err536 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}if(data.created === undefined){const err537 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}if(data.generator === undefined){const err538 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if(data.target === undefined){const err539 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}if(data.body === undefined){const err540 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}if(data.P2_has_type === undefined){const err541 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "P2_has_type"},message:"must have required property '"+"P2_has_type"+"'"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}for(const key2 in data){if(!(func5.call(schema11.properties, key2))){const err542 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}}if(data["@context"] !== undefined){let data149 = data["@context"];if(Array.isArray(data149)){if(data149.length > 3){const err543 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}if(data149.length < 3){const err544 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}const len53 = data149.length;if(len53 > 0){let data150 = data149[0];if(typeof data150 !== "string"){const err545 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data150){const err546 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/const",keyword:"const",params:{allowedValue: "http://www.w3.org/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}}if(len53 > 1){let data151 = data149[1];if(typeof data151 !== "string"){const err547 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}if("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" !== data151){const err548 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}}if(len53 > 2){let data152 = data149[2];if(typeof data152 !== "string"){const err549 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data152){const err550 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}}else {const err551 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}}if(data.id !== undefined){let data153 = data.id;if(typeof data153 === "string"){if(!(formats0(data153))){const err552 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}}else {const err553 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}}if(data.type !== undefined){let data154 = data.type;if(Array.isArray(data154)){if(data154.length > 2){const err554 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if(data154.length < 2){const err555 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}const len54 = data154.length;if(len54 > 0){let data155 = data154[0];if(typeof data155 !== "string"){const err556 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if("Annotation" !== data155){const err557 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Annotation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}if(len54 > 1){let data156 = data154[1];if(typeof data156 !== "string"){const err558 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}if("crm:E33_Linguistic_Object" !== data156){const err559 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}}else {const err560 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data.motivation !== undefined){let data157 = data.motivation;const _errs586 = errors;let valid147 = false;let passing40 = null;const _errs587 = errors;if(typeof data157 !== "string"){const err561 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if(!((((((data157 === "oa:identifying") || (data157 === "oa:describing")) || (data157 === "correcting")) || (data157 === "oa:linking")) || (data157 === "oa:tagging")) || (data157 === "citing"))){const err562 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}var _valid55 = _errs587 === errors;if(_valid55){valid147 = true;passing40 = 0;}if(!valid147){const err563 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf",keyword:"oneOf",params:{passingSchemas: passing40},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}else {errors = _errs586;if(vErrors !== null){if(_errs586){vErrors.length = _errs586;}else {vErrors = null;}}}}if(data.created !== undefined){let data158 = data.created;if(typeof data158 === "string"){if(!(formats10.validate(data158))){const err564 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}else {const err565 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}}if(data.modified !== undefined){let data159 = data.modified;if(typeof data159 === "string"){if(!(formats10.validate(data159))){const err566 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}}else {const err567 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}if(data.creator !== undefined){let data160 = data.creator;const _errs594 = errors;let valid148 = false;let passing41 = null;const _errs595 = errors;if(data160 && typeof data160 == "object" && !Array.isArray(data160)){if(data160.id === undefined){const err568 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data160.type === undefined){const err569 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}if(data160.name === undefined){const err570 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}if(data160.id !== undefined){let data161 = data160.id;if(typeof data161 === "string"){if(!(formats0(data161))){const err571 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}}else {const err572 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}}if(data160.type !== undefined){let data162 = data160.type;if(typeof data162 !== "string"){const err573 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if("crm:E21_Person" !== data162){const err574 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(data160.name !== undefined){let data163 = data160.name;if(typeof data163 === "string"){if(func2(data163) < 1){const err575 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}}else {const err576 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}}else {const err577 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}var _valid56 = _errs595 === errors;if(_valid56){valid148 = true;passing41 = 0;}const _errs604 = errors;if(data160 && typeof data160 == "object" && !Array.isArray(data160)){if(data160.id === undefined){const err578 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}if(data160.type === undefined){const err579 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if(data160.name === undefined){const err580 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}if(data160.id !== undefined){let data164 = data160.id;if(typeof data164 === "string"){if(!(formats0(data164))){const err581 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}}else {const err582 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}}if(data160.type !== undefined){let data165 = data160.type;if(typeof data165 !== "string"){const err583 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}if("crm:E74_Group" !== data165){const err584 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}}if(data160.name !== undefined){let data166 = data160.name;if(typeof data166 === "string"){if(func2(data166) < 1){const err585 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}else {const err586 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}}}else {const err587 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}var _valid56 = _errs604 === errors;if(_valid56 && valid148){valid148 = false;passing41 = [passing41, 1];}else {if(_valid56){valid148 = true;passing41 = 1;}}if(!valid148){const err588 = {instancePath:instancePath+"/creator",schemaPath:"#/properties/creator/oneOf",keyword:"oneOf",params:{passingSchemas: passing41},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}else {errors = _errs594;if(vErrors !== null){if(_errs594){vErrors.length = _errs594;}else {vErrors = null;}}}}if(data.contributor !== undefined){let data167 = data.contributor;if(Array.isArray(data167)){if(data167.length < 1){const err589 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}const len55 = data167.length;for(let i9=0; i9<len55; i9++){let data168 = data167[i9];const _errs616 = errors;let valid155 = false;let passing42 = null;const _errs617 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.id === undefined){const err590 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}if(data168.type === undefined){const err591 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}if(data168.name === undefined){const err592 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}if(data168.id !== undefined){let data169 = data168.id;if(typeof data169 === "string"){if(!(formats0(data169))){const err593 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}else {const err594 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}if(data168.type !== undefined){let data170 = data168.type;if(typeof data170 !== "string"){const err595 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}if("crm:E21_Person" !== data170){const err596 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}}if(data168.name !== undefined){let data171 = data168.name;if(typeof data171 === "string"){if(func2(data171) < 1){const err597 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}}else {const err598 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}}}else {const err599 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}var _valid57 = _errs617 === errors;if(_valid57){valid155 = true;passing42 = 0;}const _errs626 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.id === undefined){const err600 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}if(data168.type === undefined){const err601 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}if(data168.name === undefined){const err602 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}if(data168.id !== undefined){let data172 = data168.id;if(typeof data172 === "string"){if(!(formats0(data172))){const err603 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}}else {const err604 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}}if(data168.type !== undefined){let data173 = data168.type;if(typeof data173 !== "string"){const err605 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}if("crm:E74_Group" !== data173){const err606 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}}if(data168.name !== undefined){let data174 = data168.name;if(typeof data174 === "string"){if(func2(data174) < 1){const err607 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}}else {const err608 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}}}else {const err609 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}var _valid57 = _errs626 === errors;if(_valid57 && valid155){valid155 = false;passing42 = [passing42, 1];}else {if(_valid57){valid155 = true;passing42 = 1;}const _errs635 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.id === undefined){const err610 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}if(data168.type === undefined){const err611 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}if(data168.name === undefined){const err612 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}if(data168.id !== undefined){let data175 = data168.id;if(typeof data175 === "string"){if(!(formats0(data175))){const err613 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}}else {const err614 = {instancePath:instancePath+"/contributor/" + i9+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}}if(data168.type !== undefined){let data176 = data168.type;if(Array.isArray(data176)){if(data176.length > 2){const err615 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}if(data176.length < 2){const err616 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}const len56 = data176.length;if(len56 > 0){let data177 = data176[0];if(typeof data177 !== "string"){const err617 = {instancePath:instancePath+"/contributor/" + i9+"/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}if("Software" !== data177){const err618 = {instancePath:instancePath+"/contributor/" + i9+"/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}}if(len56 > 1){let data178 = data176[1];if(typeof data178 !== "string"){const err619 = {instancePath:instancePath+"/contributor/" + i9+"/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if("crm:E73_Information_Object" !== data178){const err620 = {instancePath:instancePath+"/contributor/" + i9+"/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}}}else {const err621 = {instancePath:instancePath+"/contributor/" + i9+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}}if(data168.P16_used_specific_object !== undefined){let data179 = data168.P16_used_specific_object;if(typeof data179 === "string"){if(!(formats0(data179))){const err622 = {instancePath:instancePath+"/contributor/" + i9+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}else {const err623 = {instancePath:instancePath+"/contributor/" + i9+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data168.name !== undefined){let data180 = data168.name;if(typeof data180 === "string"){if(func2(data180) < 1){const err624 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}}else {const err625 = {instancePath:instancePath+"/contributor/" + i9+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}}if(data168.softwareVersion !== undefined){if(typeof data168.softwareVersion !== "string"){const err626 = {instancePath:instancePath+"/contributor/" + i9+"/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}}}else {const err627 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}var _valid57 = _errs635 === errors;if(_valid57 && valid155){valid155 = false;passing42 = [passing42, 2];}else {if(_valid57){valid155 = true;passing42 = 2;}}}if(!valid155){const err628 = {instancePath:instancePath+"/contributor/" + i9,schemaPath:"#/properties/contributor/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing42},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}else {errors = _errs616;if(vErrors !== null){if(_errs616){vErrors.length = _errs616;}else {vErrors = null;}}}}}else {const err629 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}if(data.generator !== undefined){let data182 = data.generator;if(data182 && typeof data182 == "object" && !Array.isArray(data182)){if(data182.id === undefined){const err630 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}if(data182.type === undefined){const err631 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(data182.name === undefined){const err632 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}if(data182.id !== undefined){let data183 = data182.id;if(typeof data183 === "string"){if(!(formats0(data183))){const err633 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}}else {const err634 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}if(data182.type !== undefined){let data184 = data182.type;if(Array.isArray(data184)){if(data184.length > 2){const err635 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}if(data184.length < 2){const err636 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}const len57 = data184.length;if(len57 > 0){let data185 = data184[0];if(typeof data185 !== "string"){const err637 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}if("Software" !== data185){const err638 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}}if(len57 > 1){let data186 = data184[1];if(typeof data186 !== "string"){const err639 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}if("crm:E73_Information_Object" !== data186){const err640 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}}}else {const err641 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}}if(data182.P16_used_specific_object !== undefined){let data187 = data182.P16_used_specific_object;if(typeof data187 === "string"){if(!(formats0(data187))){const err642 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}}else {const err643 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}}if(data182.name !== undefined){let data188 = data182.name;if(typeof data188 === "string"){if(func2(data188) < 1){const err644 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}else {const err645 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}}if(data182.softwareVersion !== undefined){if(typeof data182.softwareVersion !== "string"){const err646 = {instancePath:instancePath+"/generator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}}}else {const err647 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}}if(data.target !== undefined){let data190 = data.target;const _errs670 = errors;let valid166 = false;let passing43 = null;const _errs671 = errors;if(!(validate14(data190, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid58 = _errs671 === errors;if(_valid58){valid166 = true;passing43 = 0;}const _errs672 = errors;if(Array.isArray(data190)){if(data190.length < 1){const err648 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}const len58 = data190.length;for(let i10=0; i10<len58; i10++){if(!(validate14(data190[i10], {instancePath:instancePath+"/target/" + i10,parentData:data190,parentDataProperty:i10,rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}}}else {const err649 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}var _valid58 = _errs672 === errors;if(_valid58 && valid166){valid166 = false;passing43 = [passing43, 1];}else {if(_valid58){valid166 = true;passing43 = 1;}}if(!valid166){const err650 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf",keyword:"oneOf",params:{passingSchemas: passing43},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}else {errors = _errs670;if(vErrors !== null){if(_errs670){vErrors.length = _errs670;}else {vErrors = null;}}}}if(data.body !== undefined){let data192 = data.body;const _errs676 = errors;let valid169 = false;let passing44 = null;const _errs677 = errors;if(!(validate12(data192, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}var _valid59 = _errs677 === errors;if(_valid59){valid169 = true;passing44 = 0;}const _errs678 = errors;const _errs681 = errors;let valid171 = false;const _errs682 = errors;const _errs683 = errors;let valid172 = true;const _errs684 = errors;if(errors === _errs684){if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.type !== undefined){let data193 = data192.type;const _errs687 = errors;let valid174 = false;const _errs688 = errors;if(errors === _errs688){if(Array.isArray(data193)){if(data193.length > 2){const err651 = {};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}else {if(data193.length < 2){const err652 = {};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}else {const len59 = data193.length;if(len59 > 0){let data194 = data193[0];const _errs690 = errors;if(typeof data194 !== "string"){const err653 = {};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}if("TextualBody" !== data194){const err654 = {};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}var valid175 = _errs690 === errors;}if(valid175){if(len59 > 1){let data195 = data193[1];const _errs692 = errors;if(typeof data195 !== "string"){const err655 = {};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}if("crm:E33_Linguistic_Object" !== data195){const err656 = {};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}var valid175 = _errs692 === errors;}}}}}else {const err657 = {};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}}var _valid62 = _errs688 === errors;valid174 = valid174 || _valid62;if(!valid174){const _errs694 = errors;if(errors === _errs694){if(Array.isArray(data193)){if(data193.length > 3){const err658 = {};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}else {if(data193.length < 3){const err659 = {};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}else {const len60 = data193.length;if(len60 > 0){let data196 = data193[0];const _errs696 = errors;if(typeof data196 !== "string"){const err660 = {};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}if("TextualBody" !== data196){const err661 = {};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}var valid176 = _errs696 === errors;}if(valid176){if(len60 > 1){let data197 = data193[1];const _errs698 = errors;if(typeof data197 !== "string"){const err662 = {};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}if("xsd:date" !== data197){const err663 = {};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}var valid176 = _errs698 === errors;}if(valid176){if(len60 > 2){let data198 = data193[2];const _errs700 = errors;if(typeof data198 !== "string"){const err664 = {};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}if("crm:E52_Time-Span" !== data198){const err665 = {};if(vErrors === null){vErrors = [err665];}else {vErrors.push(err665);}errors++;}var valid176 = _errs700 === errors;}}}}}}else {const err666 = {};if(vErrors === null){vErrors = [err666];}else {vErrors.push(err666);}errors++;}}var _valid62 = _errs694 === errors;valid174 = valid174 || _valid62;if(!valid174){const _errs702 = errors;if(errors === _errs702){if(Array.isArray(data193)){if(data193.length > 3){const err667 = {};if(vErrors === null){vErrors = [err667];}else {vErrors.push(err667);}errors++;}else {if(data193.length < 3){const err668 = {};if(vErrors === null){vErrors = [err668];}else {vErrors.push(err668);}errors++;}else {const len61 = data193.length;if(len61 > 0){let data199 = data193[0];const _errs704 = errors;if(typeof data199 !== "string"){const err669 = {};if(vErrors === null){vErrors = [err669];}else {vErrors.push(err669);}errors++;}if("TextualBody" !== data199){const err670 = {};if(vErrors === null){vErrors = [err670];}else {vErrors.push(err670);}errors++;}var valid177 = _errs704 === errors;}if(valid177){if(len61 > 1){let data200 = data193[1];const _errs706 = errors;if(typeof data200 !== "string"){const err671 = {};if(vErrors === null){vErrors = [err671];}else {vErrors.push(err671);}errors++;}if("fabio:Correction" !== data200){const err672 = {};if(vErrors === null){vErrors = [err672];}else {vErrors.push(err672);}errors++;}var valid177 = _errs706 === errors;}if(valid177){if(len61 > 2){let data201 = data193[2];const _errs708 = errors;if(typeof data201 !== "string"){const err673 = {};if(vErrors === null){vErrors = [err673];}else {vErrors.push(err673);}errors++;}if("crm:E33_Linguistic_Object" !== data201){const err674 = {};if(vErrors === null){vErrors = [err674];}else {vErrors.push(err674);}errors++;}var valid177 = _errs708 === errors;}}}}}}else {const err675 = {};if(vErrors === null){vErrors = [err675];}else {vErrors.push(err675);}errors++;}}var _valid62 = _errs702 === errors;valid174 = valid174 || _valid62;}}if(!valid174){const err676 = {};if(vErrors === null){vErrors = [err676];}else {vErrors.push(err676);}errors++;}else {errors = _errs687;if(vErrors !== null){if(_errs687){vErrors.length = _errs687;}else {vErrors = null;}}}}}else {const err677 = {};if(vErrors === null){vErrors = [err677];}else {vErrors.push(err677);}errors++;}}var _valid61 = _errs684 === errors;errors = _errs683;if(vErrors !== null){if(_errs683){vErrors.length = _errs683;}else {vErrors = null;}}if(_valid61){const _errs710 = errors;const _errs712 = errors;let valid178 = true;const _errs713 = errors;if(errors === _errs713){if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.type !== undefined){let data202 = data192.type;const _errs715 = errors;if(errors === _errs715){if(Array.isArray(data202)){if(data202.length > 3){const err678 = {};if(vErrors === null){vErrors = [err678];}else {vErrors.push(err678);}errors++;}else {if(data202.length < 3){const err679 = {};if(vErrors === null){vErrors = [err679];}else {vErrors.push(err679);}errors++;}else {const len62 = data202.length;if(len62 > 0){let data203 = data202[0];const _errs717 = errors;if(typeof data203 !== "string"){const err680 = {};if(vErrors === null){vErrors = [err680];}else {vErrors.push(err680);}errors++;}if("TextualBody" !== data203){const err681 = {};if(vErrors === null){vErrors = [err681];}else {vErrors.push(err681);}errors++;}var valid180 = _errs717 === errors;}if(valid180){if(len62 > 1){let data204 = data202[1];const _errs719 = errors;if(typeof data204 !== "string"){const err682 = {};if(vErrors === null){vErrors = [err682];}else {vErrors.push(err682);}errors++;}if("xsd:date" !== data204){const err683 = {};if(vErrors === null){vErrors = [err683];}else {vErrors.push(err683);}errors++;}var valid180 = _errs719 === errors;}if(valid180){if(len62 > 2){let data205 = data202[2];const _errs721 = errors;if(typeof data205 !== "string"){const err684 = {};if(vErrors === null){vErrors = [err684];}else {vErrors.push(err684);}errors++;}if("crm:E52_Time-Span" !== data205){const err685 = {};if(vErrors === null){vErrors = [err685];}else {vErrors.push(err685);}errors++;}var valid180 = _errs721 === errors;}}}}}}else {const err686 = {};if(vErrors === null){vErrors = [err686];}else {vErrors.push(err686);}errors++;}}}}else {const err687 = {};if(vErrors === null){vErrors = [err687];}else {vErrors.push(err687);}errors++;}}var _valid63 = _errs713 === errors;errors = _errs712;if(vErrors !== null){if(_errs712){vErrors.length = _errs712;}else {vErrors = null;}}if(_valid63){const _errs723 = errors;if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err688 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err688];}else {vErrors.push(err688);}errors++;}if(data192.type === undefined){const err689 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err689];}else {vErrors.push(err689);}errors++;}if(data192.value === undefined){const err690 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err690];}else {vErrors.push(err690);}errors++;}if(data192.value !== undefined){let data206 = data192.value;if(typeof data206 === "string"){if(!pattern0.test(data206)){const err691 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err691];}else {vErrors.push(err691);}errors++;}}else {const err692 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err692];}else {vErrors.push(err692);}errors++;}}}else {const err693 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err693];}else {vErrors.push(err693);}errors++;}var _valid63 = _errs723 === errors;valid178 = _valid63;}if(!valid178){const err694 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err694];}else {vErrors.push(err694);}errors++;}if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err695 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err695];}else {vErrors.push(err695);}errors++;}if(data192.type === undefined){const err696 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err696];}else {vErrors.push(err696);}errors++;}if(data192.value === undefined){const err697 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err697];}else {vErrors.push(err697);}errors++;}}else {const err698 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err698];}else {vErrors.push(err698);}errors++;}var _valid61 = _errs710 === errors;valid172 = _valid61;}if(!valid172){const err699 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err699];}else {vErrors.push(err699);}errors++;}var _valid60 = _errs682 === errors;valid171 = valid171 || _valid60;if(!valid171){const err700 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err700];}else {vErrors.push(err700);}errors++;}else {errors = _errs681;if(vErrors !== null){if(_errs681){vErrors.length = _errs681;}else {vErrors = null;}}}if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err701 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err701];}else {vErrors.push(err701);}errors++;}if(data192.type === undefined){const err702 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err702];}else {vErrors.push(err702);}errors++;}for(const key3 in data192){if(!((((((key3 === "id") || (key3 === "type")) || (key3 === "value")) || (key3 === "label")) || (key3 === "P2_has_type")) || (key3 === "description"))){const err703 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err703];}else {vErrors.push(err703);}errors++;}}if(data192.id !== undefined){let data207 = data192.id;if(typeof data207 === "string"){if(!(formats0(data207))){const err704 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err704];}else {vErrors.push(err704);}errors++;}}else {const err705 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err705];}else {vErrors.push(err705);}errors++;}}if(data192.type !== undefined){let data208 = data192.type;const _errs731 = errors;let valid183 = false;let passing45 = null;const _errs732 = errors;const _errs733 = errors;let valid184 = false;let passing46 = null;const _errs734 = errors;if(typeof data208 !== "string"){const err706 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err706];}else {vErrors.push(err706);}errors++;}if("crm:E21_Person" !== data208){const err707 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err707];}else {vErrors.push(err707);}errors++;}var _valid65 = _errs734 === errors;if(_valid65){valid184 = true;passing46 = 0;}const _errs736 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err708 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err708];}else {vErrors.push(err708);}errors++;}if(data208.length < 2){const err709 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err709];}else {vErrors.push(err709);}errors++;}const len63 = data208.length;if(len63 > 0){let data209 = data208[0];if(typeof data209 !== "string"){const err710 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err710];}else {vErrors.push(err710);}errors++;}if("foaf:Person" !== data209){const err711 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err711];}else {vErrors.push(err711);}errors++;}}if(len63 > 1){let data210 = data208[1];if(typeof data210 !== "string"){const err712 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err712];}else {vErrors.push(err712);}errors++;}if("crm:E89_Propositional_Object" !== data210){const err713 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err713];}else {vErrors.push(err713);}errors++;}}}else {const err714 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err714];}else {vErrors.push(err714);}errors++;}var _valid65 = _errs736 === errors;if(_valid65 && valid184){valid184 = false;passing46 = [passing46, 1];}else {if(_valid65){valid184 = true;passing46 = 1;}}if(!valid184){const err715 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing46},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err715];}else {vErrors.push(err715);}errors++;}else {errors = _errs733;if(vErrors !== null){if(_errs733){vErrors.length = _errs733;}else {vErrors = null;}}}var _valid64 = _errs732 === errors;if(_valid64){valid183 = true;passing45 = 0;}const _errs742 = errors;const _errs743 = errors;let valid186 = false;let passing47 = null;const _errs744 = errors;if(typeof data208 !== "string"){const err716 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err716];}else {vErrors.push(err716);}errors++;}if("crm:E53_Place" !== data208){const err717 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err717];}else {vErrors.push(err717);}errors++;}var _valid66 = _errs744 === errors;if(_valid66){valid186 = true;passing47 = 0;}const _errs746 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err718 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err718];}else {vErrors.push(err718);}errors++;}if(data208.length < 2){const err719 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err719];}else {vErrors.push(err719);}errors++;}const len64 = data208.length;if(len64 > 0){let data211 = data208[0];if(typeof data211 !== "string"){const err720 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err720];}else {vErrors.push(err720);}errors++;}if("biography:fictionalPlace" !== data211){const err721 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err721];}else {vErrors.push(err721);}errors++;}}if(len64 > 1){let data212 = data208[1];if(typeof data212 !== "string"){const err722 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err722];}else {vErrors.push(err722);}errors++;}if("crm:E89_Propositional_Object" !== data212){const err723 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err723];}else {vErrors.push(err723);}errors++;}}}else {const err724 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err724];}else {vErrors.push(err724);}errors++;}var _valid66 = _errs746 === errors;if(_valid66 && valid186){valid186 = false;passing47 = [passing47, 1];}else {if(_valid66){valid186 = true;passing47 = 1;}}if(!valid186){const err725 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing47},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err725];}else {vErrors.push(err725);}errors++;}else {errors = _errs743;if(vErrors !== null){if(_errs743){vErrors.length = _errs743;}else {vErrors = null;}}}var _valid64 = _errs742 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 1];}else {if(_valid64){valid183 = true;passing45 = 1;}const _errs752 = errors;const _errs753 = errors;let valid188 = false;let passing48 = null;const _errs754 = errors;if(typeof data208 !== "string"){const err726 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err726];}else {vErrors.push(err726);}errors++;}if("crm:E74_Group" !== data208){const err727 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err727];}else {vErrors.push(err727);}errors++;}var _valid67 = _errs754 === errors;if(_valid67){valid188 = true;passing48 = 0;}const _errs756 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err728 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err728];}else {vErrors.push(err728);}errors++;}if(data208.length < 2){const err729 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err729];}else {vErrors.push(err729);}errors++;}const len65 = data208.length;if(len65 > 0){let data213 = data208[0];if(typeof data213 !== "string"){const err730 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err730];}else {vErrors.push(err730);}errors++;}if("foaf:Organization" !== data213){const err731 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err731];}else {vErrors.push(err731);}errors++;}}if(len65 > 1){let data214 = data208[1];if(typeof data214 !== "string"){const err732 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err732];}else {vErrors.push(err732);}errors++;}if("crm:E89_Propositional_Object" !== data214){const err733 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err733];}else {vErrors.push(err733);}errors++;}}}else {const err734 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err734];}else {vErrors.push(err734);}errors++;}var _valid67 = _errs756 === errors;if(_valid67 && valid188){valid188 = false;passing48 = [passing48, 1];}else {if(_valid67){valid188 = true;passing48 = 1;}}if(!valid188){const err735 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing48},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err735];}else {vErrors.push(err735);}errors++;}else {errors = _errs753;if(vErrors !== null){if(_errs753){vErrors.length = _errs753;}else {vErrors = null;}}}var _valid64 = _errs752 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 2];}else {if(_valid64){valid183 = true;passing45 = 2;}const _errs762 = errors;const _errs763 = errors;let valid190 = false;let passing49 = null;const _errs764 = errors;if(typeof data208 !== "string"){const err736 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err736];}else {vErrors.push(err736);}errors++;}if("frbroo:F1" !== data208){const err737 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err737];}else {vErrors.push(err737);}errors++;}var _valid68 = _errs764 === errors;if(_valid68){valid190 = true;passing49 = 0;}const _errs766 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err738 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err738];}else {vErrors.push(err738);}errors++;}if(data208.length < 2){const err739 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err739];}else {vErrors.push(err739);}errors++;}const len66 = data208.length;if(len66 > 0){let data215 = data208[0];if(typeof data215 !== "string"){const err740 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err740];}else {vErrors.push(err740);}errors++;}if("frbroo:F1" !== data215){const err741 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err741];}else {vErrors.push(err741);}errors++;}}if(len66 > 1){let data216 = data208[1];if(typeof data216 !== "string"){const err742 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err742];}else {vErrors.push(err742);}errors++;}if("wikidata:Q15306849" !== data216){const err743 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err743];}else {vErrors.push(err743);}errors++;}}}else {const err744 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err744];}else {vErrors.push(err744);}errors++;}var _valid68 = _errs766 === errors;if(_valid68 && valid190){valid190 = false;passing49 = [passing49, 1];}else {if(_valid68){valid190 = true;passing49 = 1;}}if(!valid190){const err745 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing49},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err745];}else {vErrors.push(err745);}errors++;}else {errors = _errs763;if(vErrors !== null){if(_errs763){vErrors.length = _errs763;}else {vErrors = null;}}}var _valid64 = _errs762 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 3];}else {if(_valid64){valid183 = true;passing45 = 3;}const _errs772 = errors;const _errs773 = errors;let valid192 = false;let passing50 = null;const _errs774 = errors;if(typeof data208 !== "string"){const err746 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err746];}else {vErrors.push(err746);}errors++;}if("crm:E18_Physical_Thing" !== data208){const err747 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err747];}else {vErrors.push(err747);}errors++;}var _valid69 = _errs774 === errors;if(_valid69){valid192 = true;passing50 = 0;}const _errs776 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err748 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err748];}else {vErrors.push(err748);}errors++;}if(data208.length < 2){const err749 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err749];}else {vErrors.push(err749);}errors++;}const len67 = data208.length;if(len67 > 0){let data217 = data208[0];if(typeof data217 !== "string"){const err750 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err750];}else {vErrors.push(err750);}errors++;}if("wikidata:Q15831596" !== data217){const err751 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err751];}else {vErrors.push(err751);}errors++;}}if(len67 > 1){let data218 = data208[1];if(typeof data218 !== "string"){const err752 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err752];}else {vErrors.push(err752);}errors++;}if("crm:E89_Propositional_Object" !== data218){const err753 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err753];}else {vErrors.push(err753);}errors++;}}}else {const err754 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err754];}else {vErrors.push(err754);}errors++;}var _valid69 = _errs776 === errors;if(_valid69 && valid192){valid192 = false;passing50 = [passing50, 1];}else {if(_valid69){valid192 = true;passing50 = 1;}}if(!valid192){const err755 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing50},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err755];}else {vErrors.push(err755);}errors++;}else {errors = _errs773;if(vErrors !== null){if(_errs773){vErrors.length = _errs773;}else {vErrors = null;}}}var _valid64 = _errs772 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 4];}else {if(_valid64){valid183 = true;passing45 = 4;}const _errs782 = errors;if(typeof data208 !== "string"){const err756 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err756];}else {vErrors.push(err756);}errors++;}if("crm:E28_Conceptual_Object" !== data208){const err757 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err757];}else {vErrors.push(err757);}errors++;}var _valid64 = _errs782 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 5];}else {if(_valid64){valid183 = true;passing45 = 5;}const _errs784 = errors;const _errs785 = errors;let valid194 = false;let passing51 = null;const _errs786 = errors;if(typeof data208 !== "string"){const err758 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err758];}else {vErrors.push(err758);}errors++;}if("crm:E5_Event" !== data208){const err759 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err759];}else {vErrors.push(err759);}errors++;}var _valid70 = _errs786 === errors;if(_valid70){valid194 = true;passing51 = 0;}const _errs788 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err760 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err760];}else {vErrors.push(err760);}errors++;}if(data208.length < 2){const err761 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err761];}else {vErrors.push(err761);}errors++;}const len68 = data208.length;if(len68 > 0){let data219 = data208[0];if(typeof data219 !== "string"){const err762 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err762];}else {vErrors.push(err762);}errors++;}if("event:Event" !== data219){const err763 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err763];}else {vErrors.push(err763);}errors++;}}if(len68 > 1){let data220 = data208[1];if(typeof data220 !== "string"){const err764 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err764];}else {vErrors.push(err764);}errors++;}if("crm:E89_Propositional_Object" !== data220){const err765 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err765];}else {vErrors.push(err765);}errors++;}}}else {const err766 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err766];}else {vErrors.push(err766);}errors++;}var _valid70 = _errs788 === errors;if(_valid70 && valid194){valid194 = false;passing51 = [passing51, 1];}else {if(_valid70){valid194 = true;passing51 = 1;}}if(!valid194){const err767 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing51},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err767];}else {vErrors.push(err767);}errors++;}else {errors = _errs785;if(vErrors !== null){if(_errs785){vErrors.length = _errs785;}else {vErrors = null;}}}var _valid64 = _errs784 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 6];}else {if(_valid64){valid183 = true;passing45 = 6;}const _errs794 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err768 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err768];}else {vErrors.push(err768);}errors++;}if(data208.length < 2){const err769 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err769];}else {vErrors.push(err769);}errors++;}const len69 = data208.length;if(len69 > 0){let data221 = data208[0];if(typeof data221 !== "string"){const err770 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err770];}else {vErrors.push(err770);}errors++;}if("cito:Citation" !== data221){const err771 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err771];}else {vErrors.push(err771);}errors++;}}if(len69 > 1){let data222 = data208[1];if(typeof data222 !== "string"){const err772 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err772];}else {vErrors.push(err772);}errors++;}if("crm:E73_Information_Object" !== data222){const err773 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err773];}else {vErrors.push(err773);}errors++;}}}else {const err774 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err774];}else {vErrors.push(err774);}errors++;}var _valid64 = _errs794 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 7];}else {if(_valid64){valid183 = true;passing45 = 7;}const _errs800 = errors;if(Array.isArray(data208)){if(data208.length > 3){const err775 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err775];}else {vErrors.push(err775);}errors++;}if(data208.length < 3){const err776 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err776];}else {vErrors.push(err776);}errors++;}const len70 = data208.length;if(len70 > 0){let data223 = data208[0];if(typeof data223 !== "string"){const err777 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err777];}else {vErrors.push(err777);}errors++;}if("TextualBody" !== data223){const err778 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err778];}else {vErrors.push(err778);}errors++;}}if(len70 > 1){let data224 = data208[1];if(typeof data224 !== "string"){const err779 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err779];}else {vErrors.push(err779);}errors++;}if("xsd:date" !== data224){const err780 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err780];}else {vErrors.push(err780);}errors++;}}if(len70 > 2){let data225 = data208[2];if(typeof data225 !== "string"){const err781 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err781];}else {vErrors.push(err781);}errors++;}if("crm:E52_Time-Span" !== data225){const err782 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err782];}else {vErrors.push(err782);}errors++;}}}else {const err783 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err783];}else {vErrors.push(err783);}errors++;}var _valid64 = _errs800 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 8];}else {if(_valid64){valid183 = true;passing45 = 8;}const _errs808 = errors;if(Array.isArray(data208)){if(data208.length > 2){const err784 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err784];}else {vErrors.push(err784);}errors++;}if(data208.length < 2){const err785 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err785];}else {vErrors.push(err785);}errors++;}const len71 = data208.length;if(len71 > 0){let data226 = data208[0];if(typeof data226 !== "string"){const err786 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err786];}else {vErrors.push(err786);}errors++;}if("TextualBody" !== data226){const err787 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err787];}else {vErrors.push(err787);}errors++;}}if(len71 > 1){let data227 = data208[1];if(typeof data227 !== "string"){const err788 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err788];}else {vErrors.push(err788);}errors++;}if("crm:E33_Linguistic_Object" !== data227){const err789 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err789];}else {vErrors.push(err789);}errors++;}}}else {const err790 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err790];}else {vErrors.push(err790);}errors++;}var _valid64 = _errs808 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 9];}else {if(_valid64){valid183 = true;passing45 = 9;}const _errs814 = errors;if(Array.isArray(data208)){if(data208.length > 3){const err791 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err791];}else {vErrors.push(err791);}errors++;}if(data208.length < 3){const err792 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err792];}else {vErrors.push(err792);}errors++;}const len72 = data208.length;if(len72 > 0){let data228 = data208[0];if(typeof data228 !== "string"){const err793 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err793];}else {vErrors.push(err793);}errors++;}if("TextualBody" !== data228){const err794 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err794];}else {vErrors.push(err794);}errors++;}}if(len72 > 1){let data229 = data208[1];if(typeof data229 !== "string"){const err795 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err795];}else {vErrors.push(err795);}errors++;}if("fabio:Correction" !== data229){const err796 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err796];}else {vErrors.push(err796);}errors++;}}if(len72 > 2){let data230 = data208[2];if(typeof data230 !== "string"){const err797 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err797];}else {vErrors.push(err797);}errors++;}if("crm:E33_Linguistic_Object" !== data230){const err798 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err798];}else {vErrors.push(err798);}errors++;}}}else {const err799 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err799];}else {vErrors.push(err799);}errors++;}var _valid64 = _errs814 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 10];}else {if(_valid64){valid183 = true;passing45 = 10;}const _errs822 = errors;if(typeof data208 !== "string"){const err800 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err800];}else {vErrors.push(err800);}errors++;}if("crmdig:D1_Digital_Object" !== data208){const err801 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err801];}else {vErrors.push(err801);}errors++;}var _valid64 = _errs822 === errors;if(_valid64 && valid183){valid183 = false;passing45 = [passing45, 11];}else {if(_valid64){valid183 = true;passing45 = 11;}}}}}}}}}}}}if(!valid183){const err802 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing45},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err802];}else {vErrors.push(err802);}errors++;}else {errors = _errs731;if(vErrors !== null){if(_errs731){vErrors.length = _errs731;}else {vErrors = null;}}}}if(data192.value !== undefined){if(typeof data192.value !== "string"){const err803 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err803];}else {vErrors.push(err803);}errors++;}}if(data192.label !== undefined){let data232 = data192.label;if(typeof data232 === "string"){if(func2(data232) < 1){const err804 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err804];}else {vErrors.push(err804);}errors++;}}else {const err805 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err805];}else {vErrors.push(err805);}errors++;}}if(data192.P2_has_type !== undefined){let data233 = data192.P2_has_type;if(Array.isArray(data233)){const len73 = data233.length;for(let i11=0; i11<len73; i11++){if(typeof data233[i11] !== "string"){const err806 = {instancePath:instancePath+"/body/P2_has_type/" + i11,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err806];}else {vErrors.push(err806);}errors++;}}}else {const err807 = {instancePath:instancePath+"/body/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err807];}else {vErrors.push(err807);}errors++;}}if(data192.description !== undefined){if(typeof data192.description !== "string"){const err808 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err808];}else {vErrors.push(err808);}errors++;}}}else {const err809 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err809];}else {vErrors.push(err809);}errors++;}var _valid59 = _errs678 === errors;if(_valid59 && valid169){valid169 = false;passing44 = [passing44, 1];}else {if(_valid59){valid169 = true;passing44 = 1;}const _errs834 = errors;if(Array.isArray(data192)){if(data192.length < 1){const err810 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err810];}else {vErrors.push(err810);}errors++;}const len74 = data192.length;for(let i12=0; i12<len74; i12++){let data236 = data192[i12];const _errs839 = errors;let valid205 = false;const _errs840 = errors;const _errs841 = errors;let valid206 = true;const _errs842 = errors;if(errors === _errs842){if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.type !== undefined){let data237 = data236.type;const _errs845 = errors;let valid208 = false;const _errs846 = errors;if(errors === _errs846){if(Array.isArray(data237)){if(data237.length > 2){const err811 = {};if(vErrors === null){vErrors = [err811];}else {vErrors.push(err811);}errors++;}else {if(data237.length < 2){const err812 = {};if(vErrors === null){vErrors = [err812];}else {vErrors.push(err812);}errors++;}else {const len75 = data237.length;if(len75 > 0){let data238 = data237[0];const _errs848 = errors;if(typeof data238 !== "string"){const err813 = {};if(vErrors === null){vErrors = [err813];}else {vErrors.push(err813);}errors++;}if("TextualBody" !== data238){const err814 = {};if(vErrors === null){vErrors = [err814];}else {vErrors.push(err814);}errors++;}var valid209 = _errs848 === errors;}if(valid209){if(len75 > 1){let data239 = data237[1];const _errs850 = errors;if(typeof data239 !== "string"){const err815 = {};if(vErrors === null){vErrors = [err815];}else {vErrors.push(err815);}errors++;}if("crm:E33_Linguistic_Object" !== data239){const err816 = {};if(vErrors === null){vErrors = [err816];}else {vErrors.push(err816);}errors++;}var valid209 = _errs850 === errors;}}}}}else {const err817 = {};if(vErrors === null){vErrors = [err817];}else {vErrors.push(err817);}errors++;}}var _valid73 = _errs846 === errors;valid208 = valid208 || _valid73;if(!valid208){const _errs852 = errors;if(errors === _errs852){if(Array.isArray(data237)){if(data237.length > 3){const err818 = {};if(vErrors === null){vErrors = [err818];}else {vErrors.push(err818);}errors++;}else {if(data237.length < 3){const err819 = {};if(vErrors === null){vErrors = [err819];}else {vErrors.push(err819);}errors++;}else {const len76 = data237.length;if(len76 > 0){let data240 = data237[0];const _errs854 = errors;if(typeof data240 !== "string"){const err820 = {};if(vErrors === null){vErrors = [err820];}else {vErrors.push(err820);}errors++;}if("TextualBody" !== data240){const err821 = {};if(vErrors === null){vErrors = [err821];}else {vErrors.push(err821);}errors++;}var valid210 = _errs854 === errors;}if(valid210){if(len76 > 1){let data241 = data237[1];const _errs856 = errors;if(typeof data241 !== "string"){const err822 = {};if(vErrors === null){vErrors = [err822];}else {vErrors.push(err822);}errors++;}if("xsd:date" !== data241){const err823 = {};if(vErrors === null){vErrors = [err823];}else {vErrors.push(err823);}errors++;}var valid210 = _errs856 === errors;}if(valid210){if(len76 > 2){let data242 = data237[2];const _errs858 = errors;if(typeof data242 !== "string"){const err824 = {};if(vErrors === null){vErrors = [err824];}else {vErrors.push(err824);}errors++;}if("crm:E52_Time-Span" !== data242){const err825 = {};if(vErrors === null){vErrors = [err825];}else {vErrors.push(err825);}errors++;}var valid210 = _errs858 === errors;}}}}}}else {const err826 = {};if(vErrors === null){vErrors = [err826];}else {vErrors.push(err826);}errors++;}}var _valid73 = _errs852 === errors;valid208 = valid208 || _valid73;if(!valid208){const _errs860 = errors;if(errors === _errs860){if(Array.isArray(data237)){if(data237.length > 3){const err827 = {};if(vErrors === null){vErrors = [err827];}else {vErrors.push(err827);}errors++;}else {if(data237.length < 3){const err828 = {};if(vErrors === null){vErrors = [err828];}else {vErrors.push(err828);}errors++;}else {const len77 = data237.length;if(len77 > 0){let data243 = data237[0];const _errs862 = errors;if(typeof data243 !== "string"){const err829 = {};if(vErrors === null){vErrors = [err829];}else {vErrors.push(err829);}errors++;}if("TextualBody" !== data243){const err830 = {};if(vErrors === null){vErrors = [err830];}else {vErrors.push(err830);}errors++;}var valid211 = _errs862 === errors;}if(valid211){if(len77 > 1){let data244 = data237[1];const _errs864 = errors;if(typeof data244 !== "string"){const err831 = {};if(vErrors === null){vErrors = [err831];}else {vErrors.push(err831);}errors++;}if("fabio:Correction" !== data244){const err832 = {};if(vErrors === null){vErrors = [err832];}else {vErrors.push(err832);}errors++;}var valid211 = _errs864 === errors;}if(valid211){if(len77 > 2){let data245 = data237[2];const _errs866 = errors;if(typeof data245 !== "string"){const err833 = {};if(vErrors === null){vErrors = [err833];}else {vErrors.push(err833);}errors++;}if("crm:E33_Linguistic_Object" !== data245){const err834 = {};if(vErrors === null){vErrors = [err834];}else {vErrors.push(err834);}errors++;}var valid211 = _errs866 === errors;}}}}}}else {const err835 = {};if(vErrors === null){vErrors = [err835];}else {vErrors.push(err835);}errors++;}}var _valid73 = _errs860 === errors;valid208 = valid208 || _valid73;}}if(!valid208){const err836 = {};if(vErrors === null){vErrors = [err836];}else {vErrors.push(err836);}errors++;}else {errors = _errs845;if(vErrors !== null){if(_errs845){vErrors.length = _errs845;}else {vErrors = null;}}}}}else {const err837 = {};if(vErrors === null){vErrors = [err837];}else {vErrors.push(err837);}errors++;}}var _valid72 = _errs842 === errors;errors = _errs841;if(vErrors !== null){if(_errs841){vErrors.length = _errs841;}else {vErrors = null;}}if(_valid72){const _errs868 = errors;const _errs870 = errors;let valid212 = true;const _errs871 = errors;if(errors === _errs871){if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.type !== undefined){let data246 = data236.type;const _errs873 = errors;if(errors === _errs873){if(Array.isArray(data246)){if(data246.length > 3){const err838 = {};if(vErrors === null){vErrors = [err838];}else {vErrors.push(err838);}errors++;}else {if(data246.length < 3){const err839 = {};if(vErrors === null){vErrors = [err839];}else {vErrors.push(err839);}errors++;}else {const len78 = data246.length;if(len78 > 0){let data247 = data246[0];const _errs875 = errors;if(typeof data247 !== "string"){const err840 = {};if(vErrors === null){vErrors = [err840];}else {vErrors.push(err840);}errors++;}if("TextualBody" !== data247){const err841 = {};if(vErrors === null){vErrors = [err841];}else {vErrors.push(err841);}errors++;}var valid214 = _errs875 === errors;}if(valid214){if(len78 > 1){let data248 = data246[1];const _errs877 = errors;if(typeof data248 !== "string"){const err842 = {};if(vErrors === null){vErrors = [err842];}else {vErrors.push(err842);}errors++;}if("xsd:date" !== data248){const err843 = {};if(vErrors === null){vErrors = [err843];}else {vErrors.push(err843);}errors++;}var valid214 = _errs877 === errors;}if(valid214){if(len78 > 2){let data249 = data246[2];const _errs879 = errors;if(typeof data249 !== "string"){const err844 = {};if(vErrors === null){vErrors = [err844];}else {vErrors.push(err844);}errors++;}if("crm:E52_Time-Span" !== data249){const err845 = {};if(vErrors === null){vErrors = [err845];}else {vErrors.push(err845);}errors++;}var valid214 = _errs879 === errors;}}}}}}else {const err846 = {};if(vErrors === null){vErrors = [err846];}else {vErrors.push(err846);}errors++;}}}}else {const err847 = {};if(vErrors === null){vErrors = [err847];}else {vErrors.push(err847);}errors++;}}var _valid74 = _errs871 === errors;errors = _errs870;if(vErrors !== null){if(_errs870){vErrors.length = _errs870;}else {vErrors = null;}}if(_valid74){const _errs881 = errors;if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.id === undefined){const err848 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err848];}else {vErrors.push(err848);}errors++;}if(data236.type === undefined){const err849 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err849];}else {vErrors.push(err849);}errors++;}if(data236.value === undefined){const err850 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err850];}else {vErrors.push(err850);}errors++;}if(data236.value !== undefined){let data250 = data236.value;if(typeof data250 === "string"){if(!pattern0.test(data250)){const err851 = {instancePath:instancePath+"/body/" + i12+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err851];}else {vErrors.push(err851);}errors++;}}else {const err852 = {instancePath:instancePath+"/body/" + i12+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err852];}else {vErrors.push(err852);}errors++;}}}else {const err853 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err853];}else {vErrors.push(err853);}errors++;}var _valid74 = _errs881 === errors;valid212 = _valid74;}if(!valid212){const err854 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err854];}else {vErrors.push(err854);}errors++;}if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.id === undefined){const err855 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err855];}else {vErrors.push(err855);}errors++;}if(data236.type === undefined){const err856 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err856];}else {vErrors.push(err856);}errors++;}if(data236.value === undefined){const err857 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err857];}else {vErrors.push(err857);}errors++;}}else {const err858 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err858];}else {vErrors.push(err858);}errors++;}var _valid72 = _errs868 === errors;valid206 = _valid72;}if(!valid206){const err859 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err859];}else {vErrors.push(err859);}errors++;}var _valid71 = _errs840 === errors;valid205 = valid205 || _valid71;if(!valid205){const err860 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err860];}else {vErrors.push(err860);}errors++;}else {errors = _errs839;if(vErrors !== null){if(_errs839){vErrors.length = _errs839;}else {vErrors = null;}}}if(data236 && typeof data236 == "object" && !Array.isArray(data236)){if(data236.id === undefined){const err861 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err861];}else {vErrors.push(err861);}errors++;}if(data236.type === undefined){const err862 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err862];}else {vErrors.push(err862);}errors++;}for(const key4 in data236){if(!((((((key4 === "id") || (key4 === "type")) || (key4 === "value")) || (key4 === "label")) || (key4 === "P2_has_type")) || (key4 === "description"))){const err863 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err863];}else {vErrors.push(err863);}errors++;}}if(data236.id !== undefined){let data251 = data236.id;if(typeof data251 === "string"){if(!(formats0(data251))){const err864 = {instancePath:instancePath+"/body/" + i12+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err864];}else {vErrors.push(err864);}errors++;}}else {const err865 = {instancePath:instancePath+"/body/" + i12+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err865];}else {vErrors.push(err865);}errors++;}}if(data236.type !== undefined){let data252 = data236.type;const _errs889 = errors;let valid217 = false;let passing52 = null;const _errs890 = errors;const _errs891 = errors;let valid218 = false;let passing53 = null;const _errs892 = errors;if(typeof data252 !== "string"){const err866 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err866];}else {vErrors.push(err866);}errors++;}if("crm:E21_Person" !== data252){const err867 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err867];}else {vErrors.push(err867);}errors++;}var _valid76 = _errs892 === errors;if(_valid76){valid218 = true;passing53 = 0;}const _errs894 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err868 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err868];}else {vErrors.push(err868);}errors++;}if(data252.length < 2){const err869 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err869];}else {vErrors.push(err869);}errors++;}const len79 = data252.length;if(len79 > 0){let data253 = data252[0];if(typeof data253 !== "string"){const err870 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err870];}else {vErrors.push(err870);}errors++;}if("foaf:Person" !== data253){const err871 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err871];}else {vErrors.push(err871);}errors++;}}if(len79 > 1){let data254 = data252[1];if(typeof data254 !== "string"){const err872 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err872];}else {vErrors.push(err872);}errors++;}if("crm:E89_Propositional_Object" !== data254){const err873 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err873];}else {vErrors.push(err873);}errors++;}}}else {const err874 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err874];}else {vErrors.push(err874);}errors++;}var _valid76 = _errs894 === errors;if(_valid76 && valid218){valid218 = false;passing53 = [passing53, 1];}else {if(_valid76){valid218 = true;passing53 = 1;}}if(!valid218){const err875 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing53},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err875];}else {vErrors.push(err875);}errors++;}else {errors = _errs891;if(vErrors !== null){if(_errs891){vErrors.length = _errs891;}else {vErrors = null;}}}var _valid75 = _errs890 === errors;if(_valid75){valid217 = true;passing52 = 0;}const _errs900 = errors;const _errs901 = errors;let valid220 = false;let passing54 = null;const _errs902 = errors;if(typeof data252 !== "string"){const err876 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err876];}else {vErrors.push(err876);}errors++;}if("crm:E53_Place" !== data252){const err877 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err877];}else {vErrors.push(err877);}errors++;}var _valid77 = _errs902 === errors;if(_valid77){valid220 = true;passing54 = 0;}const _errs904 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err878 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err878];}else {vErrors.push(err878);}errors++;}if(data252.length < 2){const err879 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err879];}else {vErrors.push(err879);}errors++;}const len80 = data252.length;if(len80 > 0){let data255 = data252[0];if(typeof data255 !== "string"){const err880 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err880];}else {vErrors.push(err880);}errors++;}if("biography:fictionalPlace" !== data255){const err881 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err881];}else {vErrors.push(err881);}errors++;}}if(len80 > 1){let data256 = data252[1];if(typeof data256 !== "string"){const err882 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err882];}else {vErrors.push(err882);}errors++;}if("crm:E89_Propositional_Object" !== data256){const err883 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err883];}else {vErrors.push(err883);}errors++;}}}else {const err884 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err884];}else {vErrors.push(err884);}errors++;}var _valid77 = _errs904 === errors;if(_valid77 && valid220){valid220 = false;passing54 = [passing54, 1];}else {if(_valid77){valid220 = true;passing54 = 1;}}if(!valid220){const err885 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing54},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err885];}else {vErrors.push(err885);}errors++;}else {errors = _errs901;if(vErrors !== null){if(_errs901){vErrors.length = _errs901;}else {vErrors = null;}}}var _valid75 = _errs900 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 1];}else {if(_valid75){valid217 = true;passing52 = 1;}const _errs910 = errors;const _errs911 = errors;let valid222 = false;let passing55 = null;const _errs912 = errors;if(typeof data252 !== "string"){const err886 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err886];}else {vErrors.push(err886);}errors++;}if("crm:E74_Group" !== data252){const err887 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err887];}else {vErrors.push(err887);}errors++;}var _valid78 = _errs912 === errors;if(_valid78){valid222 = true;passing55 = 0;}const _errs914 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err888 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err888];}else {vErrors.push(err888);}errors++;}if(data252.length < 2){const err889 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err889];}else {vErrors.push(err889);}errors++;}const len81 = data252.length;if(len81 > 0){let data257 = data252[0];if(typeof data257 !== "string"){const err890 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err890];}else {vErrors.push(err890);}errors++;}if("foaf:Organization" !== data257){const err891 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err891];}else {vErrors.push(err891);}errors++;}}if(len81 > 1){let data258 = data252[1];if(typeof data258 !== "string"){const err892 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err892];}else {vErrors.push(err892);}errors++;}if("crm:E89_Propositional_Object" !== data258){const err893 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err893];}else {vErrors.push(err893);}errors++;}}}else {const err894 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err894];}else {vErrors.push(err894);}errors++;}var _valid78 = _errs914 === errors;if(_valid78 && valid222){valid222 = false;passing55 = [passing55, 1];}else {if(_valid78){valid222 = true;passing55 = 1;}}if(!valid222){const err895 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing55},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err895];}else {vErrors.push(err895);}errors++;}else {errors = _errs911;if(vErrors !== null){if(_errs911){vErrors.length = _errs911;}else {vErrors = null;}}}var _valid75 = _errs910 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 2];}else {if(_valid75){valid217 = true;passing52 = 2;}const _errs920 = errors;const _errs921 = errors;let valid224 = false;let passing56 = null;const _errs922 = errors;if(typeof data252 !== "string"){const err896 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err896];}else {vErrors.push(err896);}errors++;}if("frbroo:F1" !== data252){const err897 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err897];}else {vErrors.push(err897);}errors++;}var _valid79 = _errs922 === errors;if(_valid79){valid224 = true;passing56 = 0;}const _errs924 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err898 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err898];}else {vErrors.push(err898);}errors++;}if(data252.length < 2){const err899 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err899];}else {vErrors.push(err899);}errors++;}const len82 = data252.length;if(len82 > 0){let data259 = data252[0];if(typeof data259 !== "string"){const err900 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err900];}else {vErrors.push(err900);}errors++;}if("frbroo:F1" !== data259){const err901 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err901];}else {vErrors.push(err901);}errors++;}}if(len82 > 1){let data260 = data252[1];if(typeof data260 !== "string"){const err902 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err902];}else {vErrors.push(err902);}errors++;}if("wikidata:Q15306849" !== data260){const err903 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err903];}else {vErrors.push(err903);}errors++;}}}else {const err904 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err904];}else {vErrors.push(err904);}errors++;}var _valid79 = _errs924 === errors;if(_valid79 && valid224){valid224 = false;passing56 = [passing56, 1];}else {if(_valid79){valid224 = true;passing56 = 1;}}if(!valid224){const err905 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing56},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err905];}else {vErrors.push(err905);}errors++;}else {errors = _errs921;if(vErrors !== null){if(_errs921){vErrors.length = _errs921;}else {vErrors = null;}}}var _valid75 = _errs920 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 3];}else {if(_valid75){valid217 = true;passing52 = 3;}const _errs930 = errors;const _errs931 = errors;let valid226 = false;let passing57 = null;const _errs932 = errors;if(typeof data252 !== "string"){const err906 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err906];}else {vErrors.push(err906);}errors++;}if("crm:E18_Physical_Thing" !== data252){const err907 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err907];}else {vErrors.push(err907);}errors++;}var _valid80 = _errs932 === errors;if(_valid80){valid226 = true;passing57 = 0;}const _errs934 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err908 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err908];}else {vErrors.push(err908);}errors++;}if(data252.length < 2){const err909 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err909];}else {vErrors.push(err909);}errors++;}const len83 = data252.length;if(len83 > 0){let data261 = data252[0];if(typeof data261 !== "string"){const err910 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err910];}else {vErrors.push(err910);}errors++;}if("wikidata:Q15831596" !== data261){const err911 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err911];}else {vErrors.push(err911);}errors++;}}if(len83 > 1){let data262 = data252[1];if(typeof data262 !== "string"){const err912 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err912];}else {vErrors.push(err912);}errors++;}if("crm:E89_Propositional_Object" !== data262){const err913 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err913];}else {vErrors.push(err913);}errors++;}}}else {const err914 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err914];}else {vErrors.push(err914);}errors++;}var _valid80 = _errs934 === errors;if(_valid80 && valid226){valid226 = false;passing57 = [passing57, 1];}else {if(_valid80){valid226 = true;passing57 = 1;}}if(!valid226){const err915 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing57},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err915];}else {vErrors.push(err915);}errors++;}else {errors = _errs931;if(vErrors !== null){if(_errs931){vErrors.length = _errs931;}else {vErrors = null;}}}var _valid75 = _errs930 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 4];}else {if(_valid75){valid217 = true;passing52 = 4;}const _errs940 = errors;if(typeof data252 !== "string"){const err916 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err916];}else {vErrors.push(err916);}errors++;}if("crm:E28_Conceptual_Object" !== data252){const err917 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err917];}else {vErrors.push(err917);}errors++;}var _valid75 = _errs940 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 5];}else {if(_valid75){valid217 = true;passing52 = 5;}const _errs942 = errors;const _errs943 = errors;let valid228 = false;let passing58 = null;const _errs944 = errors;if(typeof data252 !== "string"){const err918 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err918];}else {vErrors.push(err918);}errors++;}if("crm:E5_Event" !== data252){const err919 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err919];}else {vErrors.push(err919);}errors++;}var _valid81 = _errs944 === errors;if(_valid81){valid228 = true;passing58 = 0;}const _errs946 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err920 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err920];}else {vErrors.push(err920);}errors++;}if(data252.length < 2){const err921 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err921];}else {vErrors.push(err921);}errors++;}const len84 = data252.length;if(len84 > 0){let data263 = data252[0];if(typeof data263 !== "string"){const err922 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err922];}else {vErrors.push(err922);}errors++;}if("event:Event" !== data263){const err923 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err923];}else {vErrors.push(err923);}errors++;}}if(len84 > 1){let data264 = data252[1];if(typeof data264 !== "string"){const err924 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err924];}else {vErrors.push(err924);}errors++;}if("crm:E89_Propositional_Object" !== data264){const err925 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err925];}else {vErrors.push(err925);}errors++;}}}else {const err926 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err926];}else {vErrors.push(err926);}errors++;}var _valid81 = _errs946 === errors;if(_valid81 && valid228){valid228 = false;passing58 = [passing58, 1];}else {if(_valid81){valid228 = true;passing58 = 1;}}if(!valid228){const err927 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing58},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err927];}else {vErrors.push(err927);}errors++;}else {errors = _errs943;if(vErrors !== null){if(_errs943){vErrors.length = _errs943;}else {vErrors = null;}}}var _valid75 = _errs942 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 6];}else {if(_valid75){valid217 = true;passing52 = 6;}const _errs952 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err928 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err928];}else {vErrors.push(err928);}errors++;}if(data252.length < 2){const err929 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err929];}else {vErrors.push(err929);}errors++;}const len85 = data252.length;if(len85 > 0){let data265 = data252[0];if(typeof data265 !== "string"){const err930 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err930];}else {vErrors.push(err930);}errors++;}if("cito:Citation" !== data265){const err931 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err931];}else {vErrors.push(err931);}errors++;}}if(len85 > 1){let data266 = data252[1];if(typeof data266 !== "string"){const err932 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err932];}else {vErrors.push(err932);}errors++;}if("crm:E73_Information_Object" !== data266){const err933 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err933];}else {vErrors.push(err933);}errors++;}}}else {const err934 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err934];}else {vErrors.push(err934);}errors++;}var _valid75 = _errs952 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 7];}else {if(_valid75){valid217 = true;passing52 = 7;}const _errs958 = errors;if(Array.isArray(data252)){if(data252.length > 3){const err935 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err935];}else {vErrors.push(err935);}errors++;}if(data252.length < 3){const err936 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err936];}else {vErrors.push(err936);}errors++;}const len86 = data252.length;if(len86 > 0){let data267 = data252[0];if(typeof data267 !== "string"){const err937 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err937];}else {vErrors.push(err937);}errors++;}if("TextualBody" !== data267){const err938 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err938];}else {vErrors.push(err938);}errors++;}}if(len86 > 1){let data268 = data252[1];if(typeof data268 !== "string"){const err939 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err939];}else {vErrors.push(err939);}errors++;}if("xsd:date" !== data268){const err940 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err940];}else {vErrors.push(err940);}errors++;}}if(len86 > 2){let data269 = data252[2];if(typeof data269 !== "string"){const err941 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err941];}else {vErrors.push(err941);}errors++;}if("crm:E52_Time-Span" !== data269){const err942 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err942];}else {vErrors.push(err942);}errors++;}}}else {const err943 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err943];}else {vErrors.push(err943);}errors++;}var _valid75 = _errs958 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 8];}else {if(_valid75){valid217 = true;passing52 = 8;}const _errs966 = errors;if(Array.isArray(data252)){if(data252.length > 2){const err944 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err944];}else {vErrors.push(err944);}errors++;}if(data252.length < 2){const err945 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err945];}else {vErrors.push(err945);}errors++;}const len87 = data252.length;if(len87 > 0){let data270 = data252[0];if(typeof data270 !== "string"){const err946 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err946];}else {vErrors.push(err946);}errors++;}if("TextualBody" !== data270){const err947 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err947];}else {vErrors.push(err947);}errors++;}}if(len87 > 1){let data271 = data252[1];if(typeof data271 !== "string"){const err948 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err948];}else {vErrors.push(err948);}errors++;}if("crm:E33_Linguistic_Object" !== data271){const err949 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err949];}else {vErrors.push(err949);}errors++;}}}else {const err950 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err950];}else {vErrors.push(err950);}errors++;}var _valid75 = _errs966 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 9];}else {if(_valid75){valid217 = true;passing52 = 9;}const _errs972 = errors;if(Array.isArray(data252)){if(data252.length > 3){const err951 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err951];}else {vErrors.push(err951);}errors++;}if(data252.length < 3){const err952 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err952];}else {vErrors.push(err952);}errors++;}const len88 = data252.length;if(len88 > 0){let data272 = data252[0];if(typeof data272 !== "string"){const err953 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err953];}else {vErrors.push(err953);}errors++;}if("TextualBody" !== data272){const err954 = {instancePath:instancePath+"/body/" + i12+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err954];}else {vErrors.push(err954);}errors++;}}if(len88 > 1){let data273 = data252[1];if(typeof data273 !== "string"){const err955 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err955];}else {vErrors.push(err955);}errors++;}if("fabio:Correction" !== data273){const err956 = {instancePath:instancePath+"/body/" + i12+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err956];}else {vErrors.push(err956);}errors++;}}if(len88 > 2){let data274 = data252[2];if(typeof data274 !== "string"){const err957 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err957];}else {vErrors.push(err957);}errors++;}if("crm:E33_Linguistic_Object" !== data274){const err958 = {instancePath:instancePath+"/body/" + i12+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err958];}else {vErrors.push(err958);}errors++;}}}else {const err959 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err959];}else {vErrors.push(err959);}errors++;}var _valid75 = _errs972 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 10];}else {if(_valid75){valid217 = true;passing52 = 10;}const _errs980 = errors;if(typeof data252 !== "string"){const err960 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err960];}else {vErrors.push(err960);}errors++;}if("crmdig:D1_Digital_Object" !== data252){const err961 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err961];}else {vErrors.push(err961);}errors++;}var _valid75 = _errs980 === errors;if(_valid75 && valid217){valid217 = false;passing52 = [passing52, 11];}else {if(_valid75){valid217 = true;passing52 = 11;}}}}}}}}}}}}if(!valid217){const err962 = {instancePath:instancePath+"/body/" + i12+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing52},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err962];}else {vErrors.push(err962);}errors++;}else {errors = _errs889;if(vErrors !== null){if(_errs889){vErrors.length = _errs889;}else {vErrors = null;}}}}if(data236.value !== undefined){if(typeof data236.value !== "string"){const err963 = {instancePath:instancePath+"/body/" + i12+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err963];}else {vErrors.push(err963);}errors++;}}if(data236.label !== undefined){let data276 = data236.label;if(typeof data276 === "string"){if(func2(data276) < 1){const err964 = {instancePath:instancePath+"/body/" + i12+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err964];}else {vErrors.push(err964);}errors++;}}else {const err965 = {instancePath:instancePath+"/body/" + i12+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err965];}else {vErrors.push(err965);}errors++;}}if(data236.P2_has_type !== undefined){let data277 = data236.P2_has_type;if(Array.isArray(data277)){const len89 = data277.length;for(let i13=0; i13<len89; i13++){if(typeof data277[i13] !== "string"){const err966 = {instancePath:instancePath+"/body/" + i12+"/P2_has_type/" + i13,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err966];}else {vErrors.push(err966);}errors++;}}}else {const err967 = {instancePath:instancePath+"/body/" + i12+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err967];}else {vErrors.push(err967);}errors++;}}if(data236.description !== undefined){if(typeof data236.description !== "string"){const err968 = {instancePath:instancePath+"/body/" + i12+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err968];}else {vErrors.push(err968);}errors++;}}}else {const err969 = {instancePath:instancePath+"/body/" + i12,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err969];}else {vErrors.push(err969);}errors++;}}}else {const err970 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err970];}else {vErrors.push(err970);}errors++;}var _valid59 = _errs834 === errors;if(_valid59 && valid169){valid169 = false;passing44 = [passing44, 2];}else {if(_valid59){valid169 = true;passing44 = 2;}}}if(!valid169){const err971 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing44},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err971];}else {vErrors.push(err971);}errors++;}else {errors = _errs676;if(vErrors !== null){if(_errs676){vErrors.length = _errs676;}else {vErrors = null;}}}}if(data.label !== undefined){if(typeof data.label !== "string"){const err972 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err972];}else {vErrors.push(err972);}errors++;}}if(data.P2_has_type !== undefined){let data281 = data.P2_has_type;if(Array.isArray(data281)){if(data281.length > 3){const err973 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err973];}else {vErrors.push(err973);}errors++;}if(data281.length < 1){const err974 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err974];}else {vErrors.push(err974);}errors++;}const len90 = data281.length;var valid236 = len90 <= 1;if(!valid236){for(let i14=1; i14<len90; i14++){let data282 = data281[i14];const _errs996 = errors;const _errs997 = errors;let valid237 = false;let passing59 = null;const _errs998 = errors;const _errs999 = errors;let valid238 = false;let passing60 = null;const _errs1000 = errors;if(typeof data282 !== "string"){const err975 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err975];}else {vErrors.push(err975);}errors++;}if(!((((data282 === "edit:certaintyUnknown") || (data282 === "edit:certaintyLow")) || (data282 === "edit:certaintyMedium")) || (data282 === "edit:certaintyHigh"))){const err976 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.P2_has_type.additionalItems.oneOf[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err976];}else {vErrors.push(err976);}errors++;}var _valid83 = _errs1000 === errors;if(_valid83){valid238 = true;passing60 = 0;}if(!valid238){const err977 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing60},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err977];}else {vErrors.push(err977);}errors++;}else {errors = _errs999;if(vErrors !== null){if(_errs999){vErrors.length = _errs999;}else {vErrors = null;}}}var _valid82 = _errs998 === errors;if(_valid82){valid237 = true;passing59 = 0;}const _errs1002 = errors;const _errs1003 = errors;let valid239 = false;let passing61 = null;const _errs1004 = errors;if(typeof data282 !== "string"){const err978 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err978];}else {vErrors.push(err978);}errors++;}if(!((((data282 === "edit:precisionUnknown") || (data282 === "edit:precisionLow")) || (data282 === "edit:precisionMedium")) || (data282 === "edit:precisionHigh"))){const err979 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.P2_has_type.additionalItems.oneOf[1].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err979];}else {vErrors.push(err979);}errors++;}var _valid84 = _errs1004 === errors;if(_valid84){valid239 = true;passing61 = 0;}if(!valid239){const err980 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing61},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err980];}else {vErrors.push(err980);}errors++;}else {errors = _errs1003;if(vErrors !== null){if(_errs1003){vErrors.length = _errs1003;}else {vErrors = null;}}}var _valid82 = _errs1002 === errors;if(_valid82 && valid237){valid237 = false;passing59 = [passing59, 1];}else {if(_valid82){valid237 = true;passing59 = 1;}}if(!valid237){const err981 = {instancePath:instancePath+"/P2_has_type/" + i14,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing59},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err981];}else {vErrors.push(err981);}errors++;}else {errors = _errs997;if(vErrors !== null){if(_errs997){vErrors.length = _errs997;}else {vErrors = null;}}}var valid236 = _errs996 === errors;}}const len91 = data281.length;if(len91 > 0){let data283 = data281[0];const _errs1007 = errors;let valid241 = false;let passing62 = null;const _errs1008 = errors;if(typeof data283 !== "string"){const err982 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err982];}else {vErrors.push(err982);}errors++;}if(!((((((data283 === "oa:identifying") || (data283 === "oa:describing")) || (data283 === "correcting")) || (data283 === "oa:linking")) || (data283 === "oa:tagging")) || (data283 === "citing"))){const err983 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.P2_has_type.items[0].oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err983];}else {vErrors.push(err983);}errors++;}var _valid85 = _errs1008 === errors;if(_valid85){valid241 = true;passing62 = 0;}if(!valid241){const err984 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing62},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err984];}else {vErrors.push(err984);}errors++;}else {errors = _errs1007;if(vErrors !== null){if(_errs1007){vErrors.length = _errs1007;}else {vErrors = null;}}}}}else {const err985 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err985];}else {vErrors.push(err985);}errors++;}}}else {const err986 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err986];}else {vErrors.push(err986);}errors++;}validate10.errors = vErrors;return errors === 0;}