@lincs.project/webannotation-schema 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +155 -0
- package/dist/context.jsonld +24 -0
- package/dist/defs.jsonld +949 -0
- package/dist/schema.jsonld +621 -0
- package/dist/validate.js +1 -0
- package/lib/index.d.ts +145 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -0
- package/lib/schema/config.d.ts +4 -0
- package/lib/schema/config.d.ts.map +1 -0
- package/lib/schema/config.js +4 -0
- package/lib/schema/config.js.map +1 -0
- package/lib/schema/context.d.ts +25 -0
- package/lib/schema/context.d.ts.map +1 -0
- package/lib/schema/context.js +25 -0
- package/lib/schema/context.js.map +1 -0
- package/lib/schema/definitions/agent.d.ts +36 -0
- package/lib/schema/definitions/agent.d.ts.map +1 -0
- package/lib/schema/definitions/agent.js +82 -0
- package/lib/schema/definitions/agent.js.map +1 -0
- package/lib/schema/definitions/body/citation.d.ts +27 -0
- package/lib/schema/definitions/body/citation.d.ts.map +1 -0
- package/lib/schema/definitions/body/citation.js +53 -0
- package/lib/schema/definitions/body/citation.js.map +1 -0
- package/lib/schema/definitions/body/common.d.ts +17 -0
- package/lib/schema/definitions/body/common.d.ts.map +1 -0
- package/lib/schema/definitions/body/common.js +46 -0
- package/lib/schema/definitions/body/common.js.map +1 -0
- package/lib/schema/definitions/body/conceptualObject.d.ts +27 -0
- package/lib/schema/definitions/body/conceptualObject.d.ts.map +1 -0
- package/lib/schema/definitions/body/conceptualObject.js +61 -0
- package/lib/schema/definitions/body/conceptualObject.js.map +1 -0
- package/lib/schema/definitions/body/correction.d.ts +24 -0
- package/lib/schema/definitions/body/correction.d.ts.map +1 -0
- package/lib/schema/definitions/body/correction.js +54 -0
- package/lib/schema/definitions/body/correction.js.map +1 -0
- package/lib/schema/definitions/body/date.d.ts +30 -0
- package/lib/schema/definitions/body/date.d.ts.map +1 -0
- package/lib/schema/definitions/body/date.js +61 -0
- package/lib/schema/definitions/body/date.js.map +1 -0
- package/lib/schema/definitions/body/index.d.ts +37 -0
- package/lib/schema/definitions/body/index.d.ts.map +1 -0
- package/lib/schema/definitions/body/index.js +220 -0
- package/lib/schema/definitions/body/index.js.map +1 -0
- package/lib/schema/definitions/body/keyword.d.ts +48 -0
- package/lib/schema/definitions/body/keyword.d.ts.map +1 -0
- package/lib/schema/definitions/body/keyword.js +100 -0
- package/lib/schema/definitions/body/keyword.js.map +1 -0
- package/lib/schema/definitions/body/link.d.ts +21 -0
- package/lib/schema/definitions/body/link.d.ts.map +1 -0
- package/lib/schema/definitions/body/link.js +37 -0
- package/lib/schema/definitions/body/link.js.map +1 -0
- package/lib/schema/definitions/body/note.d.ts +27 -0
- package/lib/schema/definitions/body/note.d.ts.map +1 -0
- package/lib/schema/definitions/body/note.js +54 -0
- package/lib/schema/definitions/body/note.js.map +1 -0
- package/lib/schema/definitions/body/organization.d.ts +27 -0
- package/lib/schema/definitions/body/organization.d.ts.map +1 -0
- package/lib/schema/definitions/body/organization.js +65 -0
- package/lib/schema/definitions/body/organization.js.map +1 -0
- package/lib/schema/definitions/body/person.d.ts +27 -0
- package/lib/schema/definitions/body/person.d.ts.map +1 -0
- package/lib/schema/definitions/body/person.js +61 -0
- package/lib/schema/definitions/body/person.js.map +1 -0
- package/lib/schema/definitions/body/physicalThing.d.ts +27 -0
- package/lib/schema/definitions/body/physicalThing.d.ts.map +1 -0
- package/lib/schema/definitions/body/physicalThing.js +61 -0
- package/lib/schema/definitions/body/physicalThing.js.map +1 -0
- package/lib/schema/definitions/body/place.d.ts +30 -0
- package/lib/schema/definitions/body/place.d.ts.map +1 -0
- package/lib/schema/definitions/body/place.js +64 -0
- package/lib/schema/definitions/body/place.js.map +1 -0
- package/lib/schema/definitions/body/work.d.ts +27 -0
- package/lib/schema/definitions/body/work.d.ts.map +1 -0
- package/lib/schema/definitions/body/work.js +61 -0
- package/lib/schema/definitions/body/work.js.map +1 -0
- package/lib/schema/definitions/index.d.ts +22 -0
- package/lib/schema/definitions/index.d.ts.map +1 -0
- package/lib/schema/definitions/index.js +24 -0
- package/lib/schema/definitions/index.js.map +1 -0
- package/lib/schema/definitions/target/index.d.ts +710 -0
- package/lib/schema/definitions/target/index.d.ts.map +1 -0
- package/lib/schema/definitions/target/index.js +231 -0
- package/lib/schema/definitions/target/index.js.map +1 -0
- package/lib/schema/definitions/target/selector/index.d.ts +5 -0
- package/lib/schema/definitions/target/selector/index.d.ts.map +1 -0
- package/lib/schema/definitions/target/selector/index.js +5 -0
- package/lib/schema/definitions/target/selector/index.js.map +1 -0
- package/lib/schema/definitions/target/selector/range.d.ts +141 -0
- package/lib/schema/definitions/target/selector/range.d.ts.map +1 -0
- package/lib/schema/definitions/target/selector/range.js +44 -0
- package/lib/schema/definitions/target/selector/range.js.map +1 -0
- package/lib/schema/definitions/target/selector/textPosition.d.ts +21 -0
- package/lib/schema/definitions/target/selector/textPosition.d.ts.map +1 -0
- package/lib/schema/definitions/target/selector/textPosition.js +57 -0
- package/lib/schema/definitions/target/selector/textPosition.js.map +1 -0
- package/lib/schema/definitions/target/selector/textQuote.d.ts +297 -0
- package/lib/schema/definitions/target/selector/textQuote.d.ts.map +1 -0
- package/lib/schema/definitions/target/selector/textQuote.js +78 -0
- package/lib/schema/definitions/target/selector/textQuote.js.map +1 -0
- package/lib/schema/definitions/target/selector/xpath.d.ts +46 -0
- package/lib/schema/definitions/target/selector/xpath.d.ts.map +1 -0
- package/lib/schema/definitions/target/selector/xpath.js +51 -0
- package/lib/schema/definitions/target/selector/xpath.js.map +1 -0
- package/lib/schema/index.d.ts +5 -0
- package/lib/schema/index.d.ts.map +1 -0
- package/lib/schema/index.js +5 -0
- package/lib/schema/index.js.map +1 -0
- package/lib/schema/root.d.ts +1076 -0
- package/lib/schema/root.d.ts.map +1 -0
- package/lib/schema/root.js +408 -0
- package/lib/schema/root.js.map +1 -0
- package/lib/validation.d.ts +25 -0
- package/lib/validation.d.ts.map +1 -0
- package/lib/validation.js +35 -0
- package/lib/validation.js.map +1 -0
- package/package.json +68 -0
package/dist/validate.js
ADDED
|
@@ -0,0 +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":2,"maxItems":2,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.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":{"anyOf":[{"type":"string","format":"uri","description":"Idealy, this this uri must be a concatenation of an URI and UUID with an \"_\"."},{"type":"string","format":"uuid"}],"description":"The identity of the Annotation. It must be a URI or UUID."},"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":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","enum":["identifying","describing","correcting","tagging","classifying","linking","citing"]},{"type":"string","const":"crm:E33_Linguistic_Object"}],"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":{"$ref":"defs.jsonld#/definitions/creator"},"contributor":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/creator"},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"$ref":"defs.jsonld#/definitions/target"},"body":{"$ref":"defs.jsonld#/definitions/body"},"status":{"type":"string","enum":["draft","approved","published"]}},"required":["@context","id","type","motivation","created","creator","generator","target","body","status"],"allOf":[{"if":{"type":"object","properties":{"status":{"const":"published"}}},"then":{"type":"object","properties":{"id":{"type":"string","format":"uri"}},"required":["status"]},"else":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["status"]}},{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"identifying"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crm:E33_Linguistic_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"describing"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"correcting"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"tagging"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"classifying"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"linking"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"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":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"citing"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}}}}}}}],"additionalProperties":false};const schema13 = {"type":"object","description":"Software Agent","properties":{"id":{"anyOf":[{"type":"string","format":"uri"},{"type":"string","const":"anonymous"}],"description":"The URI that identifies the agent (Creator or Contributor)."},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The name of the agent."}},"required":["id","type","name"]};const schema15 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (software)."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:P16_used_specific_object"}],"description":"The type of the Agent."},"label":{"type":"string","minLength":1,"description":"The name of the software."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","label"]};const schema24 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"oneOf":[{"type":"string","format":"uri","description":"The IRI that identifies the Body resource"},{"type":"string","format":"uuid"}]},"type":{"type":"string","const":"TextualBody"},"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"}]},"additionalType":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"value":{"type":"string"},"certainty":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},"precision":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","entityType"],"anyOf":[{"if":{"type":"object","properties":{"entityType":{"anyOf":[{"const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"fabio:Correction"},{"const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"crm:E55_Type"},{"const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["type","value"],"properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","const":"TextualBody"}},"if":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","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)?)$"}}},"else":{"type":"object","properties":{"value":{"type":"string"}}}},"else":{"type":"object","properties":{"id":{"type":"string","format":"uri"}}}}],"additionalProperties":false};const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const formats2 = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;const formats8 = require("ajv-formats/dist/formats").fullFormats["date-time"];const func2 = Object.prototype.hasOwnProperty;const func3 = require("ajv/dist/runtime/ucs2length").default;const schema16 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"anyOf":[{"type":"string","format":"uri","description":"This document URI"},{"type":"string","format":"uuid"}],"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."},"format":{"type":"array","items":{"type":"string","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."},"description":"The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."},"language":{"type":"array","items":{"type":"string","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."},"minItems":1,"description":"The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."},"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":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textQuoteSelector"},{"$ref":"defs.jsonld#/definitions/rangeSelector"},{"$ref":"defs.jsonld#/definitions/xpathSelector"},{"$ref":"defs.jsonld#/definitions/textPositionSelector"}],"description":"The relationship between a Specific Resource and a Selector. ","required":["id","type"]}},"required":["id","type"],"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":["type","exact"]}}},"required":["selector"]},{"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"]}},"required":["selector"]}},{"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"]}},"required":["selector"]}},{"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"]}},"required":["selector"]}}]};const schema21 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uuid","description":"UUID that identifies the selector."},"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 schema18 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uuid","description":"UUID that identifies the selector."},"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."},"sufix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","description":"The relationship between a broader selector and the more specific selector that should be applied to the results of the first.","oneOf":[{"$ref":"defs.jsonld#/definitions/rangeSelector"},{"$ref":"defs.jsonld#/definitions/xpathSelector"},{"$ref":"defs.jsonld#/definitions/textPositionSelector"}],"required":[]}},"required":["id","type","exact"]};const schema19 = {"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uuid","description":"UUID that identifies the selector."},"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"]};const schema20 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uuid","description":"UUID that identifies the selector."},"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":{"$ref":"defs.jsonld#/definitions/textPositionSelector","description":"The relationship between a broader selector and the more specific selector that should be applied to the results of the first."}},"required":["id","type","value"]};function validate15(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.value === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats2.test(data0))){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(Array.isArray(data1)){if(data1.length > 2){const err5 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1.length < 2){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const len0 = data1.length;if(len0 > 0){let data2 = data1[0];if(typeof data2 !== "string"){const err7 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("XPathSelector" !== data2){const err8 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(len0 > 1){let data3 = data1[1];if(typeof data3 !== "string"){const err9 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("crm:E73_Information_Object" !== data3){const err10 = {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 = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.value !== undefined){if(typeof data.value !== "string"){const err12 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.refinedBy !== undefined){let data5 = data.refinedBy;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.id === undefined){const err13 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data5.type === undefined){const err14 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data5.start === undefined){const err15 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data5.end === undefined){const err16 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data5.id !== undefined){let data6 = data5.id;if(typeof data6 === "string"){if(!(formats2.test(data6))){const err17 = {instancePath:instancePath+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data5.type !== undefined){let data7 = data5.type;if(Array.isArray(data7)){if(data7.length > 2){const err19 = {instancePath:instancePath+"/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 = [err19];}else {vErrors.push(err19);}errors++;}if(data7.length < 2){const err20 = {instancePath:instancePath+"/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 = [err20];}else {vErrors.push(err20);}errors++;}const len1 = data7.length;if(len1 > 0){let data8 = data7[0];if(typeof data8 !== "string"){const err21 = {instancePath:instancePath+"/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 = [err21];}else {vErrors.push(err21);}errors++;}if("TextPositionSelector" !== data8){const err22 = {instancePath:instancePath+"/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 = [err22];}else {vErrors.push(err22);}errors++;}}if(len1 > 1){let data9 = data7[1];if(typeof data9 !== "string"){const err23 = {instancePath:instancePath+"/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 = [err23];}else {vErrors.push(err23);}errors++;}if("crm:E73_Information_Object" !== data9){const err24 = {instancePath:instancePath+"/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 = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath:instancePath+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data5.start !== undefined){let data10 = data5.start;if((typeof data10 == "number") && (isFinite(data10))){if(data10 < 0 || isNaN(data10)){const err26 = {instancePath:instancePath+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.end !== undefined){let data11 = data5.end;if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 0 || isNaN(data11)){const err28 = {instancePath:instancePath+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(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.startSelector === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.endSelector === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats2.test(data0))){const err4 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};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(Array.isArray(data1)){if(data1.length > 2){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data1.length < 2){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}const len0 = data1.length;if(len0 > 0){let data2 = data1[0];if(typeof data2 !== "string"){const err8 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if("RangeSelector" !== data2){const err9 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(len0 > 1){let data3 = data1[1];if(typeof data3 !== "string"){const err10 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("crm:E73_Information_Object" !== data3){const err11 = {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 = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.startSelector !== undefined){if(!(validate15(data.startSelector, {instancePath:instancePath+"/startSelector",parentData:data,parentDataProperty:"startSelector",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}if(data.endSelector !== undefined){if(!(validate15(data.endSelector, {instancePath:instancePath+"/endSelector",parentData:data,parentDataProperty:"endSelector",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate14.errors = vErrors;return errors === 0;}function validate13(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.exact === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats2.test(data0))){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(Array.isArray(data1)){if(data1.length > 2){const err5 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1.length < 2){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const len0 = data1.length;if(len0 > 0){let data2 = data1[0];if(typeof data2 !== "string"){const err7 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("TextQuoteSelector" !== data2){const err8 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(len0 > 1){let data3 = data1[1];if(typeof data3 !== "string"){const err9 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err10 = {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 = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.exact !== undefined){if(typeof data.exact !== "string"){const err12 = {instancePath:instancePath+"/exact",schemaPath:"#/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.prefix !== undefined){if(typeof data.prefix !== "string"){const err13 = {instancePath:instancePath+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.sufix !== undefined){if(typeof data.sufix !== "string"){const err14 = {instancePath:instancePath+"/sufix",schemaPath:"#/properties/sufix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.refinedBy !== undefined){let data7 = data.refinedBy;const _errs17 = errors;let valid2 = false;let passing0 = null;const _errs18 = errors;if(!(validate14(data7, {instancePath:instancePath+"/refinedBy",parentData:data,parentDataProperty:"refinedBy",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid0 = _errs18 === errors;if(_valid0){valid2 = true;passing0 = 0;}const _errs19 = errors;if(!(validate15(data7, {instancePath:instancePath+"/refinedBy",parentData:data,parentDataProperty:"refinedBy",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs19 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 1];}else {if(_valid0){valid2 = true;passing0 = 1;}const _errs20 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.id === undefined){const err15 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data7.type === undefined){const err16 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data7.start === undefined){const err17 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data7.end === undefined){const err18 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.id !== undefined){let data8 = data7.id;if(typeof data8 === "string"){if(!(formats2.test(data8))){const err19 = {instancePath:instancePath+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data7.type !== undefined){let data9 = data7.type;if(Array.isArray(data9)){if(data9.length > 2){const err21 = {instancePath:instancePath+"/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 = [err21];}else {vErrors.push(err21);}errors++;}if(data9.length < 2){const err22 = {instancePath:instancePath+"/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 = [err22];}else {vErrors.push(err22);}errors++;}const len1 = data9.length;if(len1 > 0){let data10 = data9[0];if(typeof data10 !== "string"){const err23 = {instancePath:instancePath+"/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 = [err23];}else {vErrors.push(err23);}errors++;}if("TextPositionSelector" !== data10){const err24 = {instancePath:instancePath+"/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 = [err24];}else {vErrors.push(err24);}errors++;}}if(len1 > 1){let data11 = data9[1];if(typeof data11 !== "string"){const err25 = {instancePath:instancePath+"/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 = [err25];}else {vErrors.push(err25);}errors++;}if("crm:E73_Information_Object" !== data11){const err26 = {instancePath:instancePath+"/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 = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.start !== undefined){let data12 = data7.start;if((typeof data12 == "number") && (isFinite(data12))){if(data12 < 0 || isNaN(data12)){const err28 = {instancePath:instancePath+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data7.end !== undefined){let data13 = data7.end;if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 0 || isNaN(data13)){const err30 = {instancePath:instancePath+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid0 = _errs20 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 2];}else {if(_valid0){valid2 = true;passing0 = 2;}}}if(!valid2){const err33 = {instancePath:instancePath+"/refinedBy",schemaPath:"#/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(!(data7 && typeof data7 == "object" && !Array.isArray(data7))){const err34 = {instancePath:instancePath+"/refinedBy",schemaPath:"#/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}validate13.errors = vErrors;return errors === 0;}function validate12(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.type === undefined){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}if(data4.exact === undefined){const err10 = {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 = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err13 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector === undefined){const err14 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "selector"},message:"must have required property '"+"selector"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}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 err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data6.length < 2){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("RangeSelector" !== data7){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("crm:E73_Information_Object" !== data8){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}}else {const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}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){const err24 = {instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: "selector"},message:"must have required property '"+"selector"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err25 = {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 = [err25];}else {vErrors.push(err25);}errors++;}if(data9.startSelector === undefined){const err26 = {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 = [err26];}else {vErrors.push(err26);}errors++;}if(data9.endSelector === undefined){const err27 = {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 = [err27];}else {vErrors.push(err27);}errors++;}}else {const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err30 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}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 err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data11.length < 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("XPathSelector" !== data12){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("crm:E73_Information_Object" !== data13){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}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++;}}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){const err40 = {instancePath,schemaPath:"#/allOf/2/then/required",keyword:"required",params:{missingProperty: "selector"},message:"must have required property '"+"selector"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}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("TextPositionSelector" !== 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){const err55 = {instancePath,schemaPath:"#/allOf/3/then/required",keyword:"required",params:{missingProperty: "selector"},message:"must have required property '"+"selector"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err56 = {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 = [err56];}else {vErrors.push(err56);}errors++;}if(data19.start === undefined){const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data19.end === undefined){const err58 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}else {const err59 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err61 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.type === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.id !== undefined){let data20 = data.id;const _errs66 = errors;let valid22 = false;const _errs67 = errors;if(typeof data20 === "string"){if(!(formats0(data20))){const err64 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}else {const err65 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var _valid4 = _errs67 === errors;valid22 = valid22 || _valid4;if(!valid22){const _errs69 = errors;if(typeof data20 === "string"){if(!(formats2.test(data20))){const err66 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/1/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid4 = _errs69 === errors;valid22 = valid22 || _valid4;}if(!valid22){const err68 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}}}if(data.type !== undefined){let data21 = data.type;if(Array.isArray(data21)){if(data21.length > 2){const err69 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data21.length < 2){const err70 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const len4 = data21.length;if(len4 > 0){let data22 = data21[0];if(typeof data22 !== "string"){const err71 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("SpecificResource" !== data22){const err72 = {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 = [err72];}else {vErrors.push(err72);}errors++;}}if(len4 > 1){let data23 = data21[1];if(typeof data23 !== "string"){const err73 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E73_Information_Object" !== data23){const err74 = {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 = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data.format !== undefined){let data24 = data.format;if(Array.isArray(data24)){const len5 = data24.length;for(let i0=0; i0<len5; i0++){let data25 = data24[i0];if(typeof data25 === "string"){if(func3(data25) < 1){const err76 = {instancePath:instancePath+"/format/" + i0,schemaPath:"#/properties/format/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/format/" + i0,schemaPath:"#/properties/format/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data.language !== undefined){let data26 = data.language;if(Array.isArray(data26)){if(data26.length < 1){const err79 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}const len6 = data26.length;for(let i1=0; i1<len6; i1++){let data27 = data26[i1];if(typeof data27 === "string"){if(func3(data27) > 3){const err80 = {instancePath:instancePath+"/language/" + i1,schemaPath:"#/properties/language/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(func3(data27) < 2){const err81 = {instancePath:instancePath+"/language/" + i1,schemaPath:"#/properties/language/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}else {const err82 = {instancePath:instancePath+"/language/" + i1,schemaPath:"#/properties/language/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}else {const err83 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data.title !== undefined){let data28 = data.title;if(typeof data28 === "string"){if(func3(data28) < 1){const err84 = {instancePath:instancePath+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data.renderedVia !== undefined){let data29 = data.renderedVia;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err86 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data29.type === undefined){const err87 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29.label === undefined){const err88 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err89 = {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 = [err89];}else {vErrors.push(err89);}errors++;}}else {const err90 = {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 = [err90];}else {vErrors.push(err90);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(Array.isArray(data31)){if(data31.length > 2){const err91 = {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 = [err91];}else {vErrors.push(err91);}errors++;}if(data31.length < 2){const err92 = {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 = [err92];}else {vErrors.push(err92);}errors++;}const len7 = data31.length;if(len7 > 0){let data32 = data31[0];if(typeof data32 !== "string"){const err93 = {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 = [err93];}else {vErrors.push(err93);}errors++;}if("Software" !== data32){const err94 = {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 = [err94];}else {vErrors.push(err94);}errors++;}}if(len7 > 1){let data33 = data31[1];if(typeof data33 !== "string"){const err95 = {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 = [err95];}else {vErrors.push(err95);}errors++;}if("crm:P16_used_specific_object" !== data33){const err96 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:P16_used_specific_object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}else {const err97 = {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 = [err97];}else {vErrors.push(err97);}errors++;}}if(data29.label !== undefined){let data34 = data29.label;if(typeof data34 === "string"){if(func3(data34) < 1){const err98 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/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+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data29.softwareVersion !== undefined){if(typeof data29.softwareVersion !== "string"){const err100 = {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 = [err100];}else {vErrors.push(err100);}errors++;}}}else {const err101 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data.selector !== undefined){let data36 = data.selector;const _errs104 = errors;let valid31 = false;let passing0 = null;const _errs105 = errors;if(!(validate13(data36, {instancePath:instancePath+"/selector",parentData:data,parentDataProperty:"selector",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}var _valid5 = _errs105 === errors;if(_valid5){valid31 = true;passing0 = 0;}const _errs106 = errors;if(!(validate14(data36, {instancePath:instancePath+"/selector",parentData:data,parentDataProperty:"selector",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid5 = _errs106 === errors;if(_valid5 && valid31){valid31 = false;passing0 = [passing0, 1];}else {if(_valid5){valid31 = true;passing0 = 1;}const _errs107 = errors;if(!(validate15(data36, {instancePath:instancePath+"/selector",parentData:data,parentDataProperty:"selector",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid5 = _errs107 === errors;if(_valid5 && valid31){valid31 = false;passing0 = [passing0, 2];}else {if(_valid5){valid31 = true;passing0 = 2;}const _errs108 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.id === undefined){const err102 = {instancePath:instancePath+"/selector",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data36.type === undefined){const err103 = {instancePath:instancePath+"/selector",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data36.start === undefined){const err104 = {instancePath:instancePath+"/selector",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data36.end === undefined){const err105 = {instancePath:instancePath+"/selector",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data36.id !== undefined){let data37 = data36.id;if(typeof data37 === "string"){if(!(formats2.test(data37))){const err106 = {instancePath:instancePath+"/selector/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/selector/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data36.type !== undefined){let data38 = data36.type;if(Array.isArray(data38)){if(data38.length > 2){const err108 = {instancePath:instancePath+"/selector/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 = [err108];}else {vErrors.push(err108);}errors++;}if(data38.length < 2){const err109 = {instancePath:instancePath+"/selector/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 = [err109];}else {vErrors.push(err109);}errors++;}const len8 = data38.length;if(len8 > 0){let data39 = data38[0];if(typeof data39 !== "string"){const err110 = {instancePath:instancePath+"/selector/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 = [err110];}else {vErrors.push(err110);}errors++;}if("TextPositionSelector" !== data39){const err111 = {instancePath:instancePath+"/selector/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 = [err111];}else {vErrors.push(err111);}errors++;}}if(len8 > 1){let data40 = data38[1];if(typeof data40 !== "string"){const err112 = {instancePath:instancePath+"/selector/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 = [err112];}else {vErrors.push(err112);}errors++;}if("crm:E73_Information_Object" !== data40){const err113 = {instancePath:instancePath+"/selector/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 = [err113];}else {vErrors.push(err113);}errors++;}}}else {const err114 = {instancePath:instancePath+"/selector/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data36.start !== undefined){let data41 = data36.start;if((typeof data41 == "number") && (isFinite(data41))){if(data41 < 0 || isNaN(data41)){const err115 = {instancePath:instancePath+"/selector/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/selector/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data36.end !== undefined){let data42 = data36.end;if((typeof data42 == "number") && (isFinite(data42))){if(data42 < 0 || isNaN(data42)){const err117 = {instancePath:instancePath+"/selector/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {instancePath:instancePath+"/selector/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}}else {const err119 = {instancePath:instancePath+"/selector",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var _valid5 = _errs108 === errors;if(_valid5 && valid31){valid31 = false;passing0 = [passing0, 3];}else {if(_valid5){valid31 = true;passing0 = 3;}}}}if(!valid31){const err120 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.id === undefined){const err121 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data36.type === undefined){const err122 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}else {const err124 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}validate12.errors = vErrors;return errors === 0;}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");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.status !== undefined){if("published" !== data.status){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.status === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: "status"},message:"must have required property '"+"status"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.id !== undefined){let data1 = data.id;if(typeof data1 === "string"){if(!(formats0(data1))){const err3 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/then/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/then/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs6 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.status === undefined){const err6 = {instancePath,schemaPath:"#/allOf/0/else/required",keyword:"required",params:{missingProperty: "status"},message:"must have required property '"+"status"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.id !== undefined){let data2 = data.id;if(typeof data2 === "string"){if(!(formats2.test(data2))){const err7 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/else/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/else/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath,schemaPath:"#/allOf/0/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid0 = _errs10 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err10 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const _errs15 = errors;let valid5 = true;const _errs16 = errors;if(errors === _errs16){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data3 = data.body;const _errs18 = errors;if(errors === _errs18){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.entityType !== undefined){let data4 = data3.entityType;const _errs21 = errors;let valid8 = false;let passing0 = null;const _errs22 = errors;if(errors === _errs22){if(Array.isArray(data4)){if(data4.length > 2){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data4.length < 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {const len0 = data4.length;if(len0 > 0){let data5 = data4[0];const _errs24 = errors;if(typeof data5 !== "string"){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("Person" !== data5){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid9 = _errs24 === errors;}if(valid9){if(len0 > 1){let data6 = data4[1];const _errs26 = errors;const _errs27 = errors;let valid10 = false;let passing1 = null;const _errs28 = errors;if(typeof data6 !== "string"){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("crm:E21_Person" !== data6){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid3 = _errs28 === errors;if(_valid3){valid10 = true;passing1 = 0;}const _errs30 = errors;if(typeof data6 !== "string"){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("crm:E89_Propositional_Object" !== data6){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid3 = _errs30 === errors;if(_valid3 && valid10){valid10 = false;passing1 = [passing1, 1];}else {if(_valid3){valid10 = true;passing1 = 1;}}if(!valid10){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid9 = _errs26 === errors;}}}}}else {const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var _valid2 = _errs22 === errors;if(_valid2){valid8 = true;passing0 = 0;}const _errs32 = errors;const _errs33 = errors;let valid11 = false;let passing2 = null;const _errs34 = errors;if(typeof data4 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("cwrc:place" !== data4){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid4 = _errs34 === errors;if(_valid4){valid11 = true;passing2 = 0;}const _errs36 = errors;if(errors === _errs36){if(Array.isArray(data4)){if(data4.length > 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(data4.length < 2){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {const len1 = data4.length;if(len1 > 0){let data7 = data4[0];const _errs38 = errors;if(typeof data7 !== "string"){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("cwrc:place" !== data7){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid12 = _errs38 === errors;}if(valid12){if(len1 > 1){let data8 = data4[1];const _errs40 = errors;if(typeof data8 !== "string"){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid12 = _errs40 === errors;}}}}}else {const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid4 = _errs36 === errors;if(_valid4 && valid11){valid11 = false;passing2 = [passing2, 1];}else {if(_valid4){valid11 = true;passing2 = 1;}}if(!valid11){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var _valid2 = _errs32 === errors;if(_valid2 && valid8){valid8 = false;passing0 = [passing0, 1];}else {if(_valid2){valid8 = true;passing0 = 1;}const _errs42 = errors;if(errors === _errs42){if(Array.isArray(data4)){if(data4.length > 2){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data4.length < 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {const len2 = data4.length;if(len2 > 0){let data9 = data4[0];const _errs44 = errors;if(typeof data9 !== "string"){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("foaf:Organization" !== data9){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid13 = _errs44 === errors;}if(valid13){if(len2 > 1){let data10 = data4[1];const _errs46 = errors;const _errs47 = errors;let valid14 = false;let passing3 = null;const _errs48 = errors;if(typeof data10 !== "string"){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("crm:E74_Group" !== data10){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid5 = _errs48 === errors;if(_valid5){valid14 = true;passing3 = 0;}const _errs50 = errors;if(typeof data10 !== "string"){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("crm:E89_Propositional_Object" !== data10){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid5 = _errs50 === errors;if(_valid5 && valid14){valid14 = false;passing3 = [passing3, 1];}else {if(_valid5){valid14 = true;passing3 = 1;}}if(!valid14){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs47;if(vErrors !== null){if(_errs47){vErrors.length = _errs47;}else {vErrors = null;}}}var valid13 = _errs46 === errors;}}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs42 === errors;if(_valid2 && valid8){valid8 = false;passing0 = [passing0, 2];}else {if(_valid2){valid8 = true;passing0 = 2;}const _errs52 = errors;if(errors === _errs52){if(Array.isArray(data4)){if(data4.length > 2){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data4.length < 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {const len3 = data4.length;if(len3 > 0){let data11 = data4[0];const _errs54 = errors;if(typeof data11 !== "string"){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("crm:E89_Propositional_Object" !== data11){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid15 = _errs54 === errors;}if(valid15){if(len3 > 1){let data12 = data4[1];const _errs56 = errors;const _errs57 = errors;let valid16 = false;let passing4 = null;const _errs58 = errors;if(typeof data12 !== "string"){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("frbroo:F1" !== data12){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var _valid6 = _errs58 === errors;if(_valid6){valid16 = true;passing4 = 0;}const _errs60 = errors;if(typeof data12 !== "string"){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if("wikidata:Q15306849" !== data12){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid6 = _errs60 === errors;if(_valid6 && valid16){valid16 = false;passing4 = [passing4, 1];}else {if(_valid6){valid16 = true;passing4 = 1;}}if(!valid16){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid15 = _errs56 === errors;}}}}}else {const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}var _valid2 = _errs52 === errors;if(_valid2 && valid8){valid8 = false;passing0 = [passing0, 3];}else {if(_valid2){valid8 = true;passing0 = 3;}const _errs62 = errors;const _errs63 = errors;let valid17 = false;let passing5 = null;const _errs64 = errors;if(typeof data4 !== "string"){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if("crm:E18_Physical_Thing" !== data4){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var _valid7 = _errs64 === errors;if(_valid7){valid17 = true;passing5 = 0;}const _errs66 = errors;if(errors === _errs66){if(Array.isArray(data4)){if(data4.length > 2){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data4.length < 2){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {const len4 = data4.length;if(len4 > 0){let data13 = data4[0];const _errs68 = errors;if(typeof data13 !== "string"){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if("crm:E18_Physical_Thing" !== data13){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid18 = _errs68 === errors;}if(valid18){if(len4 > 1){let data14 = data4[1];const _errs70 = errors;if(typeof data14 !== "string"){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if("wikidata:Q15831596" !== data14){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid18 = _errs70 === errors;}}}}}else {const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var _valid7 = _errs66 === errors;if(_valid7 && valid17){valid17 = false;passing5 = [passing5, 1];}else {if(_valid7){valid17 = true;passing5 = 1;}}if(!valid17){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}}var _valid2 = _errs62 === errors;if(_valid2 && valid8){valid8 = false;passing0 = [passing0, 4];}else {if(_valid2){valid8 = true;passing0 = 4;}const _errs72 = errors;const _errs73 = errors;let valid19 = false;let passing6 = null;const _errs74 = errors;if(typeof data4 !== "string"){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("crm:E28_Conceptual_Object" !== data4){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var _valid8 = _errs74 === errors;if(_valid8){valid19 = true;passing6 = 0;}const _errs76 = errors;if(errors === _errs76){if(Array.isArray(data4)){if(data4.length > 2){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data4.length < 2){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {const len5 = data4.length;if(len5 > 0){let data15 = data4[0];const _errs78 = errors;if(typeof data15 !== "string"){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("crm:E28_Conceptual_Object" !== data15){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid20 = _errs78 === errors;}if(valid20){if(len5 > 1){let data16 = data4[1];const _errs80 = errors;if(typeof data16 !== "string"){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("wikidata:Q15831596" !== data16){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid20 = _errs80 === errors;}}}}}else {const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid8 = _errs76 === errors;if(_valid8 && valid19){valid19 = false;passing6 = [passing6, 1];}else {if(_valid8){valid19 = true;passing6 = 1;}}if(!valid19){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}var _valid2 = _errs72 === errors;if(_valid2 && valid8){valid8 = false;passing0 = [passing0, 5];}else {if(_valid2){valid8 = true;passing0 = 5;}const _errs82 = errors;if(errors === _errs82){if(Array.isArray(data4)){if(data4.length > 2){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data4.length < 2){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {const len6 = data4.length;if(len6 > 0){let data17 = data4[0];const _errs84 = errors;if(typeof data17 !== "string"){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("xsd:date" !== data17){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid21 = _errs84 === errors;}if(valid21){if(len6 > 1){let data18 = data4[1];const _errs86 = errors;if(typeof data18 !== "string"){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if("crm:E52_Time-Span" !== data18){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var valid21 = _errs86 === errors;}}}}}else {const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}var _valid2 = _errs82 === errors;if(_valid2 && valid8){valid8 = false;passing0 = [passing0, 6];}else {if(_valid2){valid8 = true;passing0 = 6;}}}}}}}if(!valid8){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}}}else {const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}else {const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var _valid1 = _errs16 === errors;errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}let ifClause1;if(_valid1){const _errs88 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data19 = data.motivation;if(Array.isArray(data19)){if(data19.length > 2){const err81 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if(data19.length < 2){const err82 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const len7 = data19.length;if(len7 > 0){let data20 = data19[0];if(typeof data20 !== "string"){const err83 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("identifying" !== data20){const err84 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(len7 > 1){let data21 = data19[1];if(typeof data21 !== "string"){const err85 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if("crm:E33_Linguistic_Object" !== data21){const err86 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}else {const err87 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}else {const err88 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var _valid1 = _errs88 === errors;valid5 = _valid1;ifClause1 = "then";}else {const _errs96 = errors;const _errs97 = errors;let valid24 = true;const _errs98 = errors;if(errors === _errs98){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data22 = data.body;const _errs100 = errors;if(errors === _errs100){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.entityType !== undefined){let data23 = data22.entityType;if(typeof data23 !== "string"){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E33_Linguistic_Object" !== data23){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}}else {const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}var _valid9 = _errs98 === errors;errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}let ifClause2;if(_valid9){const _errs104 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data24 = data.motivation;if(Array.isArray(data24)){if(data24.length > 2){const err93 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data24.length < 2){const err94 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const len8 = data24.length;if(len8 > 0){let data25 = data24[0];if(typeof data25 !== "string"){const err95 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if("describing" !== data25){const err96 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}if(len8 > 1){let data26 = data24[1];if(typeof data26 !== "string"){const err97 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if("crm:E33_Linguistic_Object" !== data26){const err98 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath,schemaPath:"#/allOf/1/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid9 = _errs104 === errors;valid24 = _valid9;ifClause2 = "then";}else {const _errs112 = errors;const _errs113 = errors;let valid29 = true;const _errs114 = errors;if(errors === _errs114){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data27 = data.body;const _errs116 = errors;if(errors === _errs116){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.entityType !== undefined){let data28 = data27.entityType;const _errs118 = errors;if(errors === _errs118){if(Array.isArray(data28)){if(data28.length > 2){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data28.length < 2){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {const len9 = data28.length;if(len9 > 0){let data29 = data28[0];const _errs120 = errors;if(typeof data29 !== "string"){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("fabio:Correction" !== data29){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid32 = _errs120 === errors;}if(valid32){if(len9 > 1){let data30 = data28[1];const _errs122 = errors;if(typeof data30 !== "string"){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if("crm:E33_Linguistic_Object" !== data30){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid32 = _errs122 === errors;}}}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid10 = _errs114 === errors;errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}let ifClause3;if(_valid10){const _errs124 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data31 = data.motivation;if(Array.isArray(data31)){if(data31.length > 2){const err110 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data31.length < 2){const err111 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const len10 = data31.length;if(len10 > 0){let data32 = data31[0];if(typeof data32 !== "string"){const err112 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("correcting" !== data32){const err113 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(len10 > 1){let data33 = data31[1];if(typeof data33 !== "string"){const err114 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("crm:E33_Linguistic_Object" !== data33){const err115 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}else {const err117 = {instancePath,schemaPath:"#/allOf/1/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var _valid10 = _errs124 === errors;valid29 = _valid10;ifClause3 = "then";}else {const _errs132 = errors;const _errs133 = errors;let valid35 = true;const _errs134 = errors;if(errors === _errs134){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data34 = data.body;const _errs136 = errors;if(errors === _errs136){if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.entityType !== undefined){let data35 = data34.entityType;const _errs138 = errors;if(errors === _errs138){if(Array.isArray(data35)){if(data35.length > 2){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data35.length < 2){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {const len11 = data35.length;if(len11 > 0){let data36 = data35[0];const _errs140 = errors;if(typeof data36 !== "string"){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if("crm:E55_Type" !== data36){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid38 = _errs140 === errors;}if(valid38){if(len11 > 1){let data37 = data35[1];const _errs142 = errors;if(typeof data37 !== "string"){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if("crm:E33_Linguistic_Object" !== data37){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var valid38 = _errs142 === errors;}}}}}else {const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}}else {const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}}else {const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid11 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}let ifClause4;if(_valid11){const _errs144 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data38 = data.motivation;if(Array.isArray(data38)){if(data38.length > 2){const err127 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data38.length < 2){const err128 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const len12 = data38.length;if(len12 > 0){let data39 = data38[0];if(typeof data39 !== "string"){const err129 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if("tagging" !== data39){const err130 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(len12 > 1){let data40 = data38[1];if(typeof data40 !== "string"){const err131 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if("crm:E33_Linguistic_Object" !== data40){const err132 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}else {const err133 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {instancePath,schemaPath:"#/allOf/1/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var _valid11 = _errs144 === errors;valid35 = _valid11;ifClause4 = "then";}else {const _errs152 = errors;const _errs153 = errors;let valid41 = true;const _errs154 = errors;if(errors === _errs154){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data41 = data.body;const _errs156 = errors;if(errors === _errs156){if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.entityType !== undefined){let data42 = data41.entityType;const _errs158 = errors;if(errors === _errs158){if(Array.isArray(data42)){if(data42.length > 2){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {if(data42.length < 2){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {const len13 = data42.length;if(len13 > 0){let data43 = data42[0];const _errs160 = errors;if(typeof data43 !== "string"){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if("crm:E55_Type" !== data43){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var valid44 = _errs160 === errors;}if(valid44){if(len13 > 1){let data44 = data42[1];const _errs162 = errors;if(typeof data44 !== "string"){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if("crmdig:D1_Digital_Object" !== data44){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}var valid44 = _errs162 === errors;}}}}}else {const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}}else {const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}}else {const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid12 = _errs154 === errors;errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}let ifClause5;if(_valid12){const _errs164 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data45 = data.motivation;if(Array.isArray(data45)){if(data45.length > 2){const err144 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data45.length < 2){const err145 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const len14 = data45.length;if(len14 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err146 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if("classifying" !== data46){const err147 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(len14 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err148 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if("crm:E33_Linguistic_Object" !== data47){const err149 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}else {const err151 = {instancePath,schemaPath:"#/allOf/1/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}var _valid12 = _errs164 === errors;valid41 = _valid12;ifClause5 = "then";}else {const _errs172 = errors;const _errs173 = errors;let valid47 = true;const _errs174 = errors;if(errors === _errs174){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data48 = data.body;const _errs176 = errors;if(errors === _errs176){if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.entityType !== undefined){let data49 = data48.entityType;if(typeof data49 !== "string"){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("crmdig:D1_Digital_Object" !== data49){const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}}else {const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}var _valid13 = _errs174 === errors;errors = _errs173;if(vErrors !== null){if(_errs173){vErrors.length = _errs173;}else {vErrors = null;}}let ifClause6;if(_valid13){const _errs180 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data50 = data.motivation;if(Array.isArray(data50)){if(data50.length > 2){const err156 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data50.length < 2){const err157 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const len15 = data50.length;if(len15 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err158 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if("linking" !== data51){const err159 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(len15 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err160 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err161 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}else {const err162 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}else {const err163 = {instancePath,schemaPath:"#/allOf/1/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}var _valid13 = _errs180 === errors;valid47 = _valid13;ifClause6 = "then";}else {const _errs188 = errors;const _errs189 = errors;let valid52 = true;const _errs190 = errors;if(errors === _errs190){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data53 = data.body;const _errs192 = errors;if(errors === _errs192){if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.entityType !== undefined){let data54 = data53.entityType;const _errs194 = errors;if(errors === _errs194){if(Array.isArray(data54)){if(data54.length > 2){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data54.length < 2){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}else {const len16 = data54.length;if(len16 > 0){let data55 = data54[0];const _errs196 = errors;if(typeof data55 !== "string"){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if("cito:Citation" !== data55){const err167 = {};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}var valid55 = _errs196 === errors;}if(valid55){if(len16 > 1){let data56 = data54[1];const _errs198 = errors;if(typeof data56 !== "string"){const err168 = {};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if("crm:E73_Information_Object" !== data56){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}var valid55 = _errs198 === errors;}}}}}else {const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}}else {const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}else {const err172 = {};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}var _valid14 = _errs190 === errors;errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}if(_valid14){const _errs200 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data57 = data.motivation;if(Array.isArray(data57)){if(data57.length > 2){const err173 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data57.length < 2){const err174 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}const len17 = data57.length;if(len17 > 0){let data58 = data57[0];if(typeof data58 !== "string"){const err175 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if("citing" !== data58){const err176 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(len17 > 1){let data59 = data57[1];if(typeof data59 !== "string"){const err177 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if("crm:E33_Linguistic_Object" !== data59){const err178 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/1/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {instancePath,schemaPath:"#/allOf/1/else/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}var _valid14 = _errs200 === errors;valid52 = _valid14;}if(!valid52){const err181 = {instancePath,schemaPath:"#/allOf/1/else/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var _valid13 = _errs188 === errors;valid47 = _valid13;ifClause6 = "else";}if(!valid47){const err182 = {instancePath,schemaPath:"#/allOf/1/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var _valid12 = _errs172 === errors;valid41 = _valid12;ifClause5 = "else";}if(!valid41){const err183 = {instancePath,schemaPath:"#/allOf/1/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid11 = _errs152 === errors;valid35 = _valid11;ifClause4 = "else";}if(!valid35){const err184 = {instancePath,schemaPath:"#/allOf/1/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}var _valid10 = _errs132 === errors;valid29 = _valid10;ifClause3 = "else";}if(!valid29){const err185 = {instancePath,schemaPath:"#/allOf/1/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}var _valid9 = _errs112 === errors;valid24 = _valid9;ifClause2 = "else";}if(!valid24){const err186 = {instancePath,schemaPath:"#/allOf/1/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var _valid1 = _errs96 === errors;valid5 = _valid1;ifClause1 = "else";}if(!valid5){const err187 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err188 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data.id === undefined){const err189 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(data.type === undefined){const err190 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data.motivation === undefined){const err191 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data.created === undefined){const err192 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data.creator === undefined){const err193 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "creator"},message:"must have required property '"+"creator"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data.generator === undefined){const err194 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data.target === undefined){const err195 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data.body === undefined){const err196 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data.status === undefined){const err197 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "status"},message:"must have required property '"+"status"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err198 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data["@context"] !== undefined){let data60 = data["@context"];if(Array.isArray(data60)){if(data60.length > 2){const err199 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data60.length < 2){const err200 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}const len18 = data60.length;if(len18 > 0){let data61 = data60[0];if(typeof data61 !== "string"){const err201 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data61){const err202 = {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 = [err202];}else {vErrors.push(err202);}errors++;}}if(len18 > 1){let data62 = data60[1];if(typeof data62 !== "string"){const err203 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data62){const err204 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data.id !== undefined){let data63 = data.id;const _errs216 = errors;let valid60 = false;const _errs217 = errors;if(typeof data63 === "string"){if(!(formats0(data63))){const err206 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}else {const err207 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}var _valid15 = _errs217 === errors;valid60 = valid60 || _valid15;if(!valid60){const _errs219 = errors;if(typeof data63 === "string"){if(!(formats2.test(data63))){const err208 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/1/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}else {const err209 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}var _valid15 = _errs219 === errors;valid60 = valid60 || _valid15;}if(!valid60){const err210 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}}if(data.type !== undefined){let data64 = data.type;if(Array.isArray(data64)){if(data64.length > 2){const err211 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data64.length < 2){const err212 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}const len19 = data64.length;if(len19 > 0){let data65 = data64[0];if(typeof data65 !== "string"){const err213 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if("Annotation" !== data65){const err214 = {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 = [err214];}else {vErrors.push(err214);}errors++;}}if(len19 > 1){let data66 = data64[1];if(typeof data66 !== "string"){const err215 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("crm:E33_Linguistic_Object" !== data66){const err216 = {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 = [err216];}else {vErrors.push(err216);}errors++;}}}else {const err217 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data.motivation !== undefined){let data67 = data.motivation;if(Array.isArray(data67)){if(data67.length > 2){const err218 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data67.length < 2){const err219 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}const len20 = data67.length;if(len20 > 0){let data68 = data67[0];if(typeof data68 !== "string"){const err220 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}if(!(((((((data68 === "identifying") || (data68 === "describing")) || (data68 === "correcting")) || (data68 === "tagging")) || (data68 === "classifying")) || (data68 === "linking")) || (data68 === "citing"))){const err221 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/properties/motivation/items/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.items[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}if(len20 > 1){let data69 = data67[1];if(typeof data69 !== "string"){const err222 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if("crm:E33_Linguistic_Object" !== data69){const err223 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}}else {const err224 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data.created !== undefined){let data70 = data.created;if(typeof data70 === "string"){if(!(formats8.validate(data70))){const err225 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}else {const err226 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data.modified !== undefined){let data71 = data.modified;if(typeof data71 === "string"){if(!(formats8.validate(data71))){const err227 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data.creator !== undefined){let data72 = data.creator;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.id === undefined){const err229 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if(data72.type === undefined){const err230 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if(data72.name === undefined){const err231 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data72.id !== undefined){let data73 = data72.id;const _errs241 = errors;let valid65 = false;const _errs242 = errors;if(typeof data73 === "string"){if(!(formats0(data73))){const err232 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}else {const err233 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var _valid16 = _errs242 === errors;valid65 = valid65 || _valid16;if(!valid65){const _errs244 = errors;if(typeof data73 !== "string"){const err234 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if("anonymous" !== data73){const err235 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/1/const",keyword:"const",params:{allowedValue: "anonymous"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var _valid16 = _errs244 === errors;valid65 = valid65 || _valid16;}if(!valid65){const err236 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {errors = _errs241;if(vErrors !== null){if(_errs241){vErrors.length = _errs241;}else {vErrors = null;}}}}if(data72.type !== undefined){let data74 = data72.type;if(typeof data74 !== "string"){const err237 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if("crm:E21_Person" !== data74){const err238 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data72.name !== undefined){let data75 = data72.name;if(typeof data75 === "string"){if(func3(data75) < 1){const err239 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}else {const err240 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}}else {const err241 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data.contributor !== undefined){let data76 = data.contributor;if(Array.isArray(data76)){if(data76.length < 1){const err242 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}const len21 = data76.length;for(let i0=0; i0<len21; i0++){let data77 = data76[i0];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.id === undefined){const err243 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if(data77.type === undefined){const err244 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}if(data77.name === undefined){const err245 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data77.id !== undefined){let data78 = data77.id;const _errs256 = errors;let valid70 = false;const _errs257 = errors;if(typeof data78 === "string"){if(!(formats0(data78))){const err246 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}else {const err247 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var _valid17 = _errs257 === errors;valid70 = valid70 || _valid17;if(!valid70){const _errs259 = errors;if(typeof data78 !== "string"){const err248 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if("anonymous" !== data78){const err249 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf/1/const",keyword:"const",params:{allowedValue: "anonymous"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var _valid17 = _errs259 === errors;valid70 = valid70 || _valid17;}if(!valid70){const err250 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs256;if(vErrors !== null){if(_errs256){vErrors.length = _errs256;}else {vErrors = null;}}}}if(data77.type !== undefined){let data79 = data77.type;if(typeof data79 !== "string"){const err251 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if("crm:E21_Person" !== data79){const err252 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}if(data77.name !== undefined){let data80 = data77.name;if(typeof data80 === "string"){if(func3(data80) < 1){const err253 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}else {const err254 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}else {const err255 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}}else {const err256 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}if(data.generator !== undefined){let data81 = data.generator;if(data81 && typeof data81 == "object" && !Array.isArray(data81)){if(data81.id === undefined){const err257 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(data81.type === undefined){const err258 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(data81.label === undefined){const err259 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if(data81.id !== undefined){let data82 = data81.id;if(typeof data82 === "string"){if(!(formats0(data82))){const err260 = {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 = [err260];}else {vErrors.push(err260);}errors++;}}else {const err261 = {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 = [err261];}else {vErrors.push(err261);}errors++;}}if(data81.type !== undefined){let data83 = data81.type;if(Array.isArray(data83)){if(data83.length > 2){const err262 = {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 = [err262];}else {vErrors.push(err262);}errors++;}if(data83.length < 2){const err263 = {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 = [err263];}else {vErrors.push(err263);}errors++;}const len22 = data83.length;if(len22 > 0){let data84 = data83[0];if(typeof data84 !== "string"){const err264 = {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 = [err264];}else {vErrors.push(err264);}errors++;}if("Software" !== data84){const err265 = {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 = [err265];}else {vErrors.push(err265);}errors++;}}if(len22 > 1){let data85 = data83[1];if(typeof data85 !== "string"){const err266 = {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 = [err266];}else {vErrors.push(err266);}errors++;}if("crm:P16_used_specific_object" !== data85){const err267 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:P16_used_specific_object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}else {const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}}if(data81.label !== undefined){let data86 = data81.label;if(typeof data86 === "string"){if(func3(data86) < 1){const err269 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}else {const err270 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}if(data81.softwareVersion !== undefined){if(typeof data81.softwareVersion !== "string"){const err271 = {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 = [err271];}else {vErrors.push(err271);}errors++;}}}else {const err272 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data.target !== undefined){if(!(validate12(data.target, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}if(data.body !== undefined){let data89 = data.body;const _errs284 = errors;let valid75 = false;const _errs285 = errors;const _errs286 = errors;let valid76 = true;const _errs287 = errors;if(errors === _errs287){if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.entityType !== undefined){let data90 = data89.entityType;const _errs290 = errors;let valid78 = false;const _errs291 = errors;if("crm:E33_Linguistic_Object" !== data90){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid20 = _errs291 === errors;valid78 = valid78 || _valid20;if(!valid78){const _errs292 = errors;if(errors === _errs292){if(Array.isArray(data90)){if(data90.length > 2){const err274 = {};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {if(data90.length < 2){const err275 = {};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {const len23 = data90.length;if(len23 > 0){const _errs294 = errors;if("xsd:date" !== data90[0]){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var valid79 = _errs294 === errors;}if(valid79){if(len23 > 1){const _errs295 = errors;if("crm:E52_Time-Span" !== data90[1]){const err277 = {};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var valid79 = _errs295 === errors;}}}}}else {const err278 = {};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}var _valid20 = _errs292 === errors;valid78 = valid78 || _valid20;if(!valid78){const _errs296 = errors;if(errors === _errs296){if(Array.isArray(data90)){if(data90.length > 2){const err279 = {};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}else {if(data90.length < 2){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {const len24 = data90.length;if(len24 > 0){const _errs298 = errors;if("fabio:Correction" !== data90[0]){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}var valid80 = _errs298 === errors;}if(valid80){if(len24 > 1){const _errs299 = errors;if("crm:E33_Linguistic_Object" !== data90[1]){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}var valid80 = _errs299 === errors;}}}}}else {const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}var _valid20 = _errs296 === errors;valid78 = valid78 || _valid20;if(!valid78){const _errs300 = errors;if(errors === _errs300){if(Array.isArray(data90)){if(data90.length > 2){const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {if(data90.length < 2){const err285 = {};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}else {const len25 = data90.length;if(len25 > 0){const _errs302 = errors;if("crm:E55_Type" !== data90[0]){const err286 = {};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}var valid81 = _errs302 === errors;}if(valid81){if(len25 > 1){const _errs303 = errors;if("crm:E33_Linguistic_Object" !== data90[1]){const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}var valid81 = _errs303 === errors;}}}}}else {const err288 = {};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}var _valid20 = _errs300 === errors;valid78 = valid78 || _valid20;}}}if(!valid78){const err289 = {};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs290;if(vErrors !== null){if(_errs290){vErrors.length = _errs290;}else {vErrors = null;}}}}}else {const err290 = {};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}var _valid19 = _errs287 === errors;errors = _errs286;if(vErrors !== null){if(_errs286){vErrors.length = _errs286;}else {vErrors = null;}}let ifClause7;if(_valid19){const _errs304 = errors;const _errs306 = errors;let valid82 = true;const _errs307 = errors;if(errors === _errs307){if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.entityType !== undefined){let data97 = data89.entityType;const _errs309 = errors;if(errors === _errs309){if(Array.isArray(data97)){if(data97.length > 2){const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}else {if(data97.length < 2){const err292 = {};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}else {const len26 = data97.length;if(len26 > 0){const _errs311 = errors;if("xsd:date" !== data97[0]){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}var valid84 = _errs311 === errors;}if(valid84){if(len26 > 1){const _errs312 = errors;if("crm:E52_Time-Span" !== data97[1]){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}var valid84 = _errs312 === errors;}}}}}else {const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}}else {const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}var _valid21 = _errs307 === errors;errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}let ifClause8;if(_valid21){const _errs313 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.value !== undefined){let data100 = data89.value;if(typeof data100 === "string"){if(!pattern0.test(data100)){const err297 = {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 = [err297];}else {vErrors.push(err297);}errors++;}}else {const err298 = {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 = [err298];}else {vErrors.push(err298);}errors++;}}}else {const err299 = {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 = [err299];}else {vErrors.push(err299);}errors++;}var _valid21 = _errs313 === errors;valid82 = _valid21;ifClause8 = "then";}else {const _errs317 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.value !== undefined){if(typeof data89.value !== "string"){const err300 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/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+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}var _valid21 = _errs317 === errors;valid82 = _valid21;ifClause8 = "else";}if(!valid82){const err302 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause8},message:"must match \""+ifClause8+"\" schema"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.type === undefined){const err303 = {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 = [err303];}else {vErrors.push(err303);}errors++;}if(data89.value === undefined){const err304 = {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 = [err304];}else {vErrors.push(err304);}errors++;}if(data89.id !== undefined){let data102 = data89.id;if(typeof data102 === "string"){if(!(formats2.test(data102))){const err305 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/id/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}else {const err306 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}if(data89.type !== undefined){let data103 = data89.type;if(typeof data103 !== "string"){const err307 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if("TextualBody" !== data103){const err308 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}}else {const err309 = {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 = [err309];}else {vErrors.push(err309);}errors++;}var _valid19 = _errs304 === errors;valid76 = _valid19;ifClause7 = "then";}else {const _errs325 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.id !== undefined){let data104 = data89.id;if(typeof data104 === "string"){if(!(formats0(data104))){const err310 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/else/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}else {const err311 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/else/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}else {const err312 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}var _valid19 = _errs325 === errors;valid76 = _valid19;ifClause7 = "else";}if(!valid76){const err313 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid18 = _errs285 === errors;valid75 = valid75 || _valid18;if(!valid75){const err314 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}else {errors = _errs284;if(vErrors !== null){if(_errs284){vErrors.length = _errs284;}else {vErrors = null;}}}if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.id === undefined){const err315 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if(data89.entityType === undefined){const err316 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}for(const key1 in data89){if(!(func2.call(schema24.properties, key1))){const err317 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}if(data89.id !== undefined){let data105 = data89.id;const _errs331 = errors;let valid90 = false;let passing7 = null;const _errs332 = errors;if(typeof data105 === "string"){if(!(formats0(data105))){const err318 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/oneOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}}else {const err319 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid22 = _errs332 === errors;if(_valid22){valid90 = true;passing7 = 0;}const _errs334 = errors;if(typeof data105 === "string"){if(!(formats2.test(data105))){const err320 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/oneOf/1/format",keyword:"format",params:{format: "uuid"},message:"must match format \""+"uuid"+"\""};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}}else {const err321 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}var _valid22 = _errs334 === errors;if(_valid22 && valid90){valid90 = false;passing7 = [passing7, 1];}else {if(_valid22){valid90 = true;passing7 = 1;}}if(!valid90){const err322 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}else {errors = _errs331;if(vErrors !== null){if(_errs331){vErrors.length = _errs331;}else {vErrors = null;}}}}if(data89.type !== undefined){let data106 = data89.type;if(typeof data106 !== "string"){const err323 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if("TextualBody" !== data106){const err324 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}if(data89.entityType !== undefined){let data107 = data89.entityType;const _errs339 = errors;let valid91 = false;let passing8 = null;const _errs340 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err325 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}if(data107.length < 2){const err326 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}const len27 = data107.length;if(len27 > 0){let data108 = data107[0];if(typeof data108 !== "string"){const err327 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}if("Person" !== data108){const err328 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}}if(len27 > 1){let data109 = data107[1];const _errs345 = errors;let valid93 = false;let passing9 = null;const _errs346 = errors;if(typeof data109 !== "string"){const err329 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}if("crm:E21_Person" !== data109){const err330 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}var _valid24 = _errs346 === errors;if(_valid24){valid93 = true;passing9 = 0;}const _errs348 = errors;if(typeof data109 !== "string"){const err331 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if("crm:E89_Propositional_Object" !== data109){const err332 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}var _valid24 = _errs348 === errors;if(_valid24 && valid93){valid93 = false;passing9 = [passing9, 1];}else {if(_valid24){valid93 = true;passing9 = 1;}}if(!valid93){const err333 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}else {errors = _errs345;if(vErrors !== null){if(_errs345){vErrors.length = _errs345;}else {vErrors = null;}}}}}else {const err334 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}var _valid23 = _errs340 === errors;if(_valid23){valid91 = true;passing8 = 0;}const _errs350 = errors;const _errs351 = errors;let valid94 = false;let passing10 = null;const _errs352 = errors;if(typeof data107 !== "string"){const err335 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}if("cwrc:place" !== data107){const err336 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}var _valid25 = _errs352 === errors;if(_valid25){valid94 = true;passing10 = 0;}const _errs354 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err337 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}if(data107.length < 2){const err338 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}const len28 = data107.length;if(len28 > 0){let data110 = data107[0];if(typeof data110 !== "string"){const err339 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if("cwrc:place" !== data110){const err340 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}}if(len28 > 1){let data111 = data107[1];if(typeof data111 !== "string"){const err341 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if("crm:E89_Propositional_Object" !== data111){const err342 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/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 = [err342];}else {vErrors.push(err342);}errors++;}}}else {const err343 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}var _valid25 = _errs354 === errors;if(_valid25 && valid94){valid94 = false;passing10 = [passing10, 1];}else {if(_valid25){valid94 = true;passing10 = 1;}}if(!valid94){const err344 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}else {errors = _errs351;if(vErrors !== null){if(_errs351){vErrors.length = _errs351;}else {vErrors = null;}}}var _valid23 = _errs350 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 1];}else {if(_valid23){valid91 = true;passing8 = 1;}const _errs360 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err345 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if(data107.length < 2){const err346 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}const len29 = data107.length;if(len29 > 0){let data112 = data107[0];if(typeof data112 !== "string"){const err347 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if("foaf:Organization" !== data112){const err348 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}if(len29 > 1){let data113 = data107[1];const _errs365 = errors;let valid97 = false;let passing11 = null;const _errs366 = errors;if(typeof data113 !== "string"){const err349 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if("crm:E74_Group" !== data113){const err350 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}var _valid26 = _errs366 === errors;if(_valid26){valid97 = true;passing11 = 0;}const _errs368 = errors;if(typeof data113 !== "string"){const err351 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}if("crm:E89_Propositional_Object" !== data113){const err352 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var _valid26 = _errs368 === errors;if(_valid26 && valid97){valid97 = false;passing11 = [passing11, 1];}else {if(_valid26){valid97 = true;passing11 = 1;}}if(!valid97){const err353 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {errors = _errs365;if(vErrors !== null){if(_errs365){vErrors.length = _errs365;}else {vErrors = null;}}}}}else {const err354 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}var _valid23 = _errs360 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 2];}else {if(_valid23){valid91 = true;passing8 = 2;}const _errs370 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err355 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data107.length < 2){const err356 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}const len30 = data107.length;if(len30 > 0){let data114 = data107[0];if(typeof data114 !== "string"){const err357 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if("crm:E89_Propositional_Object" !== data114){const err358 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}if(len30 > 1){let data115 = data107[1];const _errs375 = errors;let valid99 = false;let passing12 = null;const _errs376 = errors;if(typeof data115 !== "string"){const err359 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("frbroo:F1" !== data115){const err360 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}var _valid27 = _errs376 === errors;if(_valid27){valid99 = true;passing12 = 0;}const _errs378 = errors;if(typeof data115 !== "string"){const err361 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}if("wikidata:Q15306849" !== data115){const err362 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}var _valid27 = _errs378 === errors;if(_valid27 && valid99){valid99 = false;passing12 = [passing12, 1];}else {if(_valid27){valid99 = true;passing12 = 1;}}if(!valid99){const err363 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}else {errors = _errs375;if(vErrors !== null){if(_errs375){vErrors.length = _errs375;}else {vErrors = null;}}}}}else {const err364 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}var _valid23 = _errs370 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 3];}else {if(_valid23){valid91 = true;passing8 = 3;}const _errs380 = errors;const _errs381 = errors;let valid100 = false;let passing13 = null;const _errs382 = errors;if(typeof data107 !== "string"){const err365 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if("crm:E18_Physical_Thing" !== data107){const err366 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}var _valid28 = _errs382 === errors;if(_valid28){valid100 = true;passing13 = 0;}const _errs384 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err367 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data107.length < 2){const err368 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}const len31 = data107.length;if(len31 > 0){let data116 = data107[0];if(typeof data116 !== "string"){const err369 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if("crm:E18_Physical_Thing" !== data116){const err370 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}if(len31 > 1){let data117 = data107[1];if(typeof data117 !== "string"){const err371 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}if("wikidata:Q15831596" !== data117){const err372 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}}else {const err373 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}var _valid28 = _errs384 === errors;if(_valid28 && valid100){valid100 = false;passing13 = [passing13, 1];}else {if(_valid28){valid100 = true;passing13 = 1;}}if(!valid100){const err374 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}else {errors = _errs381;if(vErrors !== null){if(_errs381){vErrors.length = _errs381;}else {vErrors = null;}}}var _valid23 = _errs380 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 4];}else {if(_valid23){valid91 = true;passing8 = 4;}const _errs390 = errors;const _errs391 = errors;let valid102 = false;let passing14 = null;const _errs392 = errors;if(typeof data107 !== "string"){const err375 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if("crm:E28_Conceptual_Object" !== data107){const err376 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}var _valid29 = _errs392 === errors;if(_valid29){valid102 = true;passing14 = 0;}const _errs394 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err377 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}if(data107.length < 2){const err378 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}const len32 = data107.length;if(len32 > 0){let data118 = data107[0];if(typeof data118 !== "string"){const err379 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if("crm:E28_Conceptual_Object" !== data118){const err380 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}}if(len32 > 1){let data119 = data107[1];if(typeof data119 !== "string"){const err381 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if("wikidata:Q15831596" !== data119){const err382 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}}else {const err383 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}var _valid29 = _errs394 === errors;if(_valid29 && valid102){valid102 = false;passing14 = [passing14, 1];}else {if(_valid29){valid102 = true;passing14 = 1;}}if(!valid102){const err384 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {errors = _errs391;if(vErrors !== null){if(_errs391){vErrors.length = _errs391;}else {vErrors = null;}}}var _valid23 = _errs390 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 5];}else {if(_valid23){valid91 = true;passing8 = 5;}const _errs400 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err385 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}if(data107.length < 2){const err386 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}const len33 = data107.length;if(len33 > 0){let data120 = data107[0];if(typeof data120 !== "string"){const err387 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if("cito:Citation" !== data120){const err388 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}if(len33 > 1){let data121 = data107[1];if(typeof data121 !== "string"){const err389 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if("crm:E73_Information_Object" !== data121){const err390 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}}}else {const err391 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}var _valid23 = _errs400 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 6];}else {if(_valid23){valid91 = true;passing8 = 6;}const _errs406 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err392 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}if(data107.length < 2){const err393 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}const len34 = data107.length;if(len34 > 0){let data122 = data107[0];if(typeof data122 !== "string"){const err394 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if("xsd:date" !== data122){const err395 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}}if(len34 > 1){let data123 = data107[1];if(typeof data123 !== "string"){const err396 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if("crm:E52_Time-Span" !== data123){const err397 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}else {const err398 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var _valid23 = _errs406 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 7];}else {if(_valid23){valid91 = true;passing8 = 7;}const _errs412 = errors;if(typeof data107 !== "string"){const err399 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if("crm:E33_Linguistic_Object" !== data107){const err400 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid23 = _errs412 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 8];}else {if(_valid23){valid91 = true;passing8 = 8;}const _errs414 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err401 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}if(data107.length < 2){const err402 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}const len35 = data107.length;if(len35 > 0){let data124 = data107[0];if(typeof data124 !== "string"){const err403 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if("fabio:Correction" !== data124){const err404 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}if(len35 > 1){let data125 = data107[1];if(typeof data125 !== "string"){const err405 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if("crm:E33_Linguistic_Object" !== data125){const err406 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}}else {const err407 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}var _valid23 = _errs414 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 9];}else {if(_valid23){valid91 = true;passing8 = 9;}const _errs420 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err408 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data107.length < 2){const err409 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}const len36 = data107.length;if(len36 > 0){let data126 = data107[0];if(typeof data126 !== "string"){const err410 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}if("crm:E55_Type" !== data126){const err411 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}if(len36 > 1){let data127 = data107[1];if(typeof data127 !== "string"){const err412 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}if("crmdig:D1_Digital_Object" !== data127){const err413 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}}}else {const err414 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}var _valid23 = _errs420 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 10];}else {if(_valid23){valid91 = true;passing8 = 10;}const _errs426 = errors;if(Array.isArray(data107)){if(data107.length > 2){const err415 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if(data107.length < 2){const err416 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}const len37 = data107.length;if(len37 > 0){let data128 = data107[0];if(typeof data128 !== "string"){const err417 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}if("crm:E55_Type" !== data128){const err418 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}if(len37 > 1){let data129 = data107[1];if(typeof data129 !== "string"){const err419 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}if("crm:E33_Linguistic_Object" !== data129){const err420 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}}else {const err421 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}var _valid23 = _errs426 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 11];}else {if(_valid23){valid91 = true;passing8 = 11;}const _errs432 = errors;if(typeof data107 !== "string"){const err422 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if("crmdig:D1_Digital_Object" !== data107){const err423 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}var _valid23 = _errs432 === errors;if(_valid23 && valid91){valid91 = false;passing8 = [passing8, 12];}else {if(_valid23){valid91 = true;passing8 = 12;}}}}}}}}}}}}}if(!valid91){const err424 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}else {errors = _errs339;if(vErrors !== null){if(_errs339){vErrors.length = _errs339;}else {vErrors = null;}}}}if(data89.additionalType !== undefined){let data130 = data89.additionalType;const _errs435 = errors;let valid109 = false;const _errs436 = errors;if(typeof data130 !== "string"){const err425 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}var _valid30 = _errs436 === errors;valid109 = valid109 || _valid30;if(!valid109){const _errs438 = errors;if(Array.isArray(data130)){const len38 = data130.length;for(let i1=0; i1<len38; i1++){if(typeof data130[i1] !== "string"){const err426 = {instancePath:instancePath+"/body/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}}else {const err427 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}var _valid30 = _errs438 === errors;valid109 = valid109 || _valid30;}if(!valid109){const err428 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}else {errors = _errs435;if(vErrors !== null){if(_errs435){vErrors.length = _errs435;}else {vErrors = null;}}}}if(data89.value !== undefined){if(typeof data89.value !== "string"){const err429 = {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 = [err429];}else {vErrors.push(err429);}errors++;}}if(data89.certainty !== undefined){let data133 = data89.certainty;if(typeof data133 !== "string"){const err430 = {instancePath:instancePath+"/body/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}if(!((((data133 === "edit:qualityLow") || (data133 === "edit:qualityMedium")) || (data133 === "edit:qualityHigh")) || (data133 === "edit:qualityUnknown"))){const err431 = {instancePath:instancePath+"/body/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema24.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}}if(data89.precision !== undefined){let data134 = data89.precision;if(typeof data134 !== "string"){const err432 = {instancePath:instancePath+"/body/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}if(!((((data134 === "edit:qualityLow") || (data134 === "edit:qualityMedium")) || (data134 === "edit:qualityHigh")) || (data134 === "edit:qualityUnknown"))){const err433 = {instancePath:instancePath+"/body/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema24.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}if(data89.label !== undefined){let data135 = data89.label;if(typeof data135 === "string"){if(func3(data135) < 1){const err434 = {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 = [err434];}else {vErrors.push(err434);}errors++;}}else {const err435 = {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 = [err435];}else {vErrors.push(err435);}errors++;}}if(data89.description !== undefined){if(typeof data89.description !== "string"){const err436 = {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 = [err436];}else {vErrors.push(err436);}errors++;}}}else {const err437 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}}if(data.status !== undefined){let data137 = data.status;if(typeof data137 !== "string"){const err438 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}if(!(((data137 === "draft") || (data137 === "approved")) || (data137 === "published"))){const err439 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema11.properties.status.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}}}else {const err440 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}validate10.errors = vErrors;return errors === 0;}
|