// @ts-nocheck import {ucs2length} from './ucs2length.js';"use strict";export const customAudioList = validate10;const schema11 = {"$id":"customAudioList","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["type","audioSources"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"audioSourceList"},"audioSources":{"type":"array","items":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"name":{"type":"string"},"url":{"type":"string"}}}}}};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="customAudioList" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.audioSources === undefined) && (missing0 = "audioSources"))){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!((key0 === "type") || (key0 === "audioSources"))){validate10.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){let data0 = data.type;const _errs2 = errors;if(typeof data0 !== "string"){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("audioSourceList" !== data0){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "audioSourceList"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.audioSources !== undefined){let data1 = data.audioSources;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){var valid1 = true;const len0 = data1.length;for(let i0=0; i0 4){validate12.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 4},message:"must NOT have more than 4 items"}];return false;}else {if(data0.length < 4){validate12.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 4},message:"must NOT have fewer than 4 items"}];return false;}else {const len1 = data0.length;var valid1 = len1 <= 4;if(!valid1){for(let i1=4; i1 0){let data2 = data0[0];const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func2(data2) < 1){validate12.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs5 === errors;}if(valid2){if(len2 > 1){const _errs7 = errors;if(typeof data0[1] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs7 === errors;}if(valid2){if(len2 > 2){const _errs9 = errors;if(typeof data0[2] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;}if(valid2){if(len2 > 3){const _errs11 = errors;if(typeof data0[3] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;}}}}}}}}else {validate12.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate12.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate12.errors = vErrors;return errors === 0;}export const dictionaryKanjiBankV3 = validate13;const schema16 = {"$id":"dictionaryKanjiBankV3","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing kanji information.","items":{"type":"array","description":"Information about a single kanji character.","minItems":6,"maxItems":6,"additionalItems":false,"items":[{"type":"string","description":"Kanji character.","minLength":1},{"type":"string","description":"String of space-separated onyomi readings for the kanji character. An empty string is treated as no readings."},{"type":"string","description":"String of space-separated kunyomi readings for the kanji character. An empty string is treated as no readings."},{"type":"string","description":"String of space-separated tags for the kanji character. An empty string is treated as no tags."},{"type":"array","description":"Array of meanings for the kanji character.","items":{"type":"string","description":"A meaning for the kanji character."}},{"type":"object","description":"Various stats for the kanji character.","additionalProperties":{"type":"string"}}]}};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryKanjiBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0 6){validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 6},message:"must NOT have more than 6 items"}];return false;}else {if(data0.length < 6){validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 6},message:"must NOT have fewer than 6 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 6)){validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 6},message:"must NOT have more than 6 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){let data1 = data0[0];const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func2(data1) < 1){validate13.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate13.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){const _errs5 = errors;if(typeof data0[1] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){const _errs7 = errors;if(typeof data0[2] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs7 === errors;}if(valid1){if(len2 > 3){const _errs9 = errors;if(typeof data0[3] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}if(valid1){if(len2 > 4){let data5 = data0[4];const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data5)){var valid2 = true;const len3 = data5.length;for(let i1=0; i1 5){let data7 = data0[5];const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key0 in data7){const _errs18 = errors;if(typeof data7[key0] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/5/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/items/items/5/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs18 === errors;if(!valid3){break;}}}else {validate13.errors = [{instancePath:instancePath+"/" + i0+"/5",schemaPath:"#/items/items/5/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs15 === errors;}}}}}}}}}}else {validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate13.errors = vErrors;return errors === 0;}export const dictionaryKanjiMetaBankV3 = validate14;const schema17 = {"$id":"dictionaryKanjiMetaBankV3","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"frequency":{"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]}},"type":"array","description":"Custom metadata for kanji characters.","items":{"type":"array","description":"Metadata about a single kanji character.","minItems":3,"maxItems":3,"additionalItems":false,"items":[{"type":"string","minLength":1},{"type":"string","const":"freq","description":"Type of data. \"freq\" corresponds to frequency information."},{"$ref":"#/definitions/frequency","description":"Data for the character."}]}};const schema18 = {"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryKanjiMetaBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0 3){validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {if(data0.length < 3){validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 3)){validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){let data1 = data0[0];const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func2(data1) < 1){validate14.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate14.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){let data2 = data0[1];const _errs5 = errors;if(typeof data2 !== "string"){validate14.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("freq" !== data2){validate14.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/const",keyword:"const",params:{allowedValue: "freq"},message:"must be equal to constant"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){let data3 = data0[2];const _errs7 = errors;const _errs9 = errors;let valid3 = false;let passing0 = null;const _errs10 = errors;if((typeof data3 !== "string") && (!((typeof data3 == "number") && (isFinite(data3))))){const err0 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/0/type",keyword:"type",params:{type: schema18.oneOf[0].type},message:"must be string,number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;if(_valid0){valid3 = true;passing0 = 0;}const _errs12 = errors;if(errors === _errs12){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing0;if((data3.value === undefined) && (missing0 = "value")){const err1 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const _errs14 = errors;for(const key0 in data3){if(!((key0 === "value") || (key0 === "displayValue"))){const err2 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;break;}}if(_errs14 === errors){if(data3.value !== undefined){let data4 = data3.value;const _errs15 = errors;if(!((typeof data4 == "number") && (isFinite(data4)))){const err3 = {instancePath:instancePath+"/" + i0+"/2/value",schemaPath:"#/definitions/frequency/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data3.displayValue !== undefined){const _errs17 = errors;if(typeof data3.displayValue !== "string"){const err4 = {instancePath:instancePath+"/" + i0+"/2/displayValue",schemaPath:"#/definitions/frequency/oneOf/1/properties/displayValue/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}}}}}else {const err5 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs12 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 1];}else {if(_valid0){valid3 = true;passing0 = 1;}}if(!valid3){const err6 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate14.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid1 = _errs7 === errors;}}}}}}}else {validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate14.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate14.errors = vErrors;return errors === 0;}export const dictionaryTagBankV3 = validate15;const schema19 = {"$id":"dictionaryTagBankV3","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing tag information for terms and kanji.","items":{"type":"array","description":"Information about a single tag.","minItems":5,"maxItems":5,"additionalItems":false,"items":[{"type":"string","description":"Tag name."},{"type":"string","description":"Category for the tag."},{"type":"number","description":"Sorting order for the tag."},{"type":"string","description":"Notes for the tag."},{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."}]}};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTagBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0 5){validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"}];return false;}else {if(data0.length < 5){validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 5},message:"must NOT have fewer than 5 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 5)){validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 5},message:"must NOT have more than 5 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){const _errs3 = errors;if(typeof data0[0] !== "string"){validate15.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){const _errs5 = errors;if(typeof data0[1] !== "string"){validate15.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){let data3 = data0[2];const _errs7 = errors;if(!((typeof data3 == "number") && (isFinite(data3)))){validate15.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs7 === errors;}if(valid1){if(len2 > 3){const _errs9 = errors;if(typeof data0[3] !== "string"){validate15.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}if(valid1){if(len2 > 4){let data5 = data0[4];const _errs11 = errors;if(!((typeof data5 == "number") && (isFinite(data5)))){validate15.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs11 === errors;}}}}}}}}}else {validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate15.errors = vErrors;return errors === 0;}export const dictionaryTermBankV1 = validate16;const schema20 = {"$id":"dictionaryTermBankV1","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing term information.","items":{"type":"array","description":"Information about a single term.","minItems":5,"maxItems":5,"items":[{"type":"string","description":"The text for the term."},{"type":"string","description":"Reading of the term, or an empty string if the reading is the same as the term."},{"type":["string","null"],"description":"String of space-separated tags for the definition. An empty string is treated as no tags."},{"type":"string","description":"String of space-separated rule identifiers for the definition which is used to validate delinflection. Valid rule identifiers are: v1: ichidan verb; v5: godan verb; vs: suru verb; vz: zuru verb; vk: kuru verb; adj-i: i-adjective. An empty string corresponds to words which aren't inflected, such as nouns."},{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."}],"additionalItems":{"type":"string","description":"Single definition for the term."}}};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTermBankV1" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0 5){validate16.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"}];return false;}else {if(data0.length < 5){validate16.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 5},message:"must NOT have fewer than 5 items"}];return false;}else {const len1 = data0.length;var valid1 = len1 <= 5;if(!valid1){for(let i1=5; i1 0){const _errs5 = errors;if(typeof data0[0] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs5 === errors;}if(valid2){if(len2 > 1){const _errs7 = errors;if(typeof data0[1] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs7 === errors;}if(valid2){if(len2 > 2){let data4 = data0[2];const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate16.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: schema20.items.items[2].type},message:"must be string,null"}];return false;}var valid2 = _errs9 === errors;}if(valid2){if(len2 > 3){const _errs11 = errors;if(typeof data0[3] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;}if(valid2){if(len2 > 4){let data6 = data0[4];const _errs13 = errors;if(!((typeof data6 == "number") && (isFinite(data6)))){validate16.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid2 = _errs13 === errors;}}}}}}}}}else {validate16.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate16.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate16.errors = vErrors;return errors === 0;}export const dictionaryTermBankV3 = validate17;const schema21 = {"$id":"dictionaryTermBankV3","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"structuredContent":{"oneOf":[{"type":"string","description":"Represents a text node."},{"type":"array","items":{"$ref":"#/definitions/structuredContent","description":"An array of child content."}},{"type":"object","oneOf":[{"type":"object","description":"Empty tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"br"},"data":{"$ref":"#/definitions/structuredContentData"}}},{"type":"object","description":"Generic container tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["ruby","rt","rp","table","thead","tbody","tfoot","tr"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Table tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["td","th"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"colSpan":{"type":"integer","minimum":1},"rowSpan":{"type":"integer","minimum":1},"style":{"$ref":"#/definitions/structuredContentStyle"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Container tags supporting configurable styles.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["span","div","ol","ul","li","details","summary"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"style":{"$ref":"#/definitions/structuredContentStyle"},"title":{"type":"string","description":"Hover text for the element."},"open":{"type":"boolean","description":"Whether or not the details element is open by default."},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Image tag.","required":["tag","path"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"img"},"data":{"$ref":"#/definitions/structuredContentData"},"path":{"type":"string","description":"Path to the image file in the archive."},"width":{"type":"number","description":"Preferred width of the image.","minimum":0},"height":{"type":"number","description":"Preferred height of the image.","minimum":0},"title":{"type":"string","description":"Hover text for the image."},"alt":{"type":"string","description":"Alt text for the image."},"description":{"type":"string","description":"Description of the image."},"pixelated":{"type":"boolean","description":"Whether or not the image should appear pixelated at sizes larger than the image's native resolution.","default":false},"imageRendering":{"type":"string","description":"Controls how the image is rendered. The value of this field supersedes the pixelated field.","enum":["auto","pixelated","crisp-edges"],"default":"auto"},"appearance":{"type":"string","description":"Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.","enum":["auto","monochrome"],"default":"auto"},"background":{"type":"boolean","description":"Whether or not a background color is displayed behind the image.","default":true},"collapsed":{"type":"boolean","description":"Whether or not the image is collapsed by default.","default":false},"collapsible":{"type":"boolean","description":"Whether or not the image can be collapsed.","default":false},"verticalAlign":{"type":"string","description":"The vertical alignment of the image.","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"]},"border":{"type":"string","description":"Shorthand for border width, style, and color."},"borderRadius":{"type":"string","description":"Roundness of the corners of the image's outer border edge."},"sizeUnits":{"type":"string","description":"The units for the width and height.","enum":["px","em"]}}},{"type":"object","description":"Link tag.","required":["tag","href"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"a"},"content":{"$ref":"#/definitions/structuredContent"},"href":{"type":"string","description":"The URL for the link. URLs starting with a ? are treated as internal links to other dictionary content.","pattern":"^(?:https?:|\\?)[\\w\\W]*"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}}]}]},"structuredContentData":{"type":"object","description":"Generic data attributes that should be added to the element.","additionalProperties":{"type":"string"}},"structuredContentStyle":{"type":"object","additionalProperties":false,"properties":{"fontStyle":{"type":"string","enum":["normal","italic"],"default":"normal"},"fontWeight":{"type":"string","enum":["normal","bold"],"default":"normal"},"fontSize":{"type":"string","default":"medium"},"color":{"type":"string"},"background":{"type":"string"},"backgroundColor":{"type":"string"},"textDecorationLine":{"oneOf":[{"type":"string","enum":["none","underline","overline","line-through"],"default":"none"},{"type":"array","items":{"type":"string","enum":["underline","overline","line-through"],"default":"none"}}]},"textDecorationStyle":{"type":"string","enum":["solid","double","dotted","dashed","wavy"],"default":"solid"},"textDecorationColor":{"type":"string"},"borderColor":{"type":"string"},"borderStyle":{"type":"string"},"borderRadius":{"type":"string"},"borderWidth":{"type":"string"},"clipPath":{"type":"string"},"verticalAlign":{"type":"string","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"],"default":"baseline"},"textAlign":{"type":"string","enum":["start","end","left","right","center","justify","justify-all","match-parent"],"default":"start"},"textEmphasis":{"type":"string"},"textShadow":{"type":"string"},"margin":{"type":"string"},"marginTop":{"type":["number","string"],"default":0},"marginLeft":{"type":["number","string"],"default":0},"marginRight":{"type":["number","string"],"default":0},"marginBottom":{"type":["number","string"],"default":0},"padding":{"type":"string"},"paddingTop":{"type":"string"},"paddingLeft":{"type":"string"},"paddingRight":{"type":"string"},"paddingBottom":{"type":"string"},"wordBreak":{"type":"string","enum":["normal","break-all","keep-all"],"default":"normal"},"whiteSpace":{"type":"string","default":"normal"},"cursor":{"type":"string","default":"auto"},"listStyleType":{"type":"string","default":"disc"}}}},"type":"array","description":"Data file containing term information.","items":{"type":"array","description":"Information about a single term.","minItems":8,"maxItems":8,"additionalItems":false,"items":[{"type":"string","description":"The text for the term."},{"type":"string","description":"Reading of the term, or an empty string if the reading is the same as the term."},{"type":["string","null"],"description":"String of space-separated tags for the definition. An empty string is treated as no tags."},{"type":"string","description":"String of space-separated rule identifiers for the definition which is used to validate deinflection. An empty string should be used for words which aren't inflected."},{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."},{"type":"array","description":"Array of definitions for the term.","items":{"oneOf":[{"type":"string","description":"Single definition for the term."},{"type":"object","description":"Single detailed definition for the term.","required":["type"],"properties":{"type":{"type":"string","description":"The type of the data for this definition.","enum":["text","image","structured-content"]}},"oneOf":[{"required":["type","text"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","description":"Single definition for the term."}}},{"required":["type","content"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"structured-content"},"content":{"$ref":"#/definitions/structuredContent","description":"Single definition for the term using a structured content object."}}},{"required":["type","path"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"image"},"path":{"type":"string","description":"Path to the image file in the archive."},"width":{"type":"integer","description":"Preferred width of the image.","minimum":1},"height":{"type":"integer","description":"Preferred height of the image.","minimum":1},"title":{"type":"string","description":"Hover text for the image."},"alt":{"type":"string","description":"Alt text for the image."},"description":{"type":"string","description":"Description of the image."},"pixelated":{"type":"boolean","description":"Whether or not the image should appear pixelated at sizes larger than the image's native resolution.","default":false},"imageRendering":{"type":"string","description":"Controls how the image is rendered. The value of this field supersedes the pixelated field.","enum":["auto","pixelated","crisp-edges"],"default":"auto"},"appearance":{"type":"string","description":"Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.","enum":["auto","monochrome"],"default":"auto"},"background":{"type":"boolean","description":"Whether or not a background color is displayed behind the image.","default":true},"collapsed":{"type":"boolean","description":"Whether or not the image is collapsed by default.","default":false},"collapsible":{"type":"boolean","description":"Whether or not the image can be collapsed.","default":true}}}]},{"type":"array","description":"Deinflection of the term to an uninflected term.","minItems":2,"maxItems":2,"items":[{"type":"string","description":"The uninflected term."},{"type":"array","description":"A chain of inflection rules that produced the inflected term","items":{"type":"string","description":"A single inflection rule."}}]}]}},{"type":"integer","description":"Sequence number for the term. Terms with the same sequence number can be shown together when the \"resultOutputMode\" option is set to \"merge\"."},{"type":"string","description":"String of space-separated tags for the term. An empty string is treated as no tags."}]}};const schema22 = {"oneOf":[{"type":"string","description":"Represents a text node."},{"type":"array","items":{"$ref":"#/definitions/structuredContent","description":"An array of child content."}},{"type":"object","oneOf":[{"type":"object","description":"Empty tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"br"},"data":{"$ref":"#/definitions/structuredContentData"}}},{"type":"object","description":"Generic container tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["ruby","rt","rp","table","thead","tbody","tfoot","tr"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Table tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["td","th"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"colSpan":{"type":"integer","minimum":1},"rowSpan":{"type":"integer","minimum":1},"style":{"$ref":"#/definitions/structuredContentStyle"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Container tags supporting configurable styles.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["span","div","ol","ul","li","details","summary"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"style":{"$ref":"#/definitions/structuredContentStyle"},"title":{"type":"string","description":"Hover text for the element."},"open":{"type":"boolean","description":"Whether or not the details element is open by default."},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Image tag.","required":["tag","path"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"img"},"data":{"$ref":"#/definitions/structuredContentData"},"path":{"type":"string","description":"Path to the image file in the archive."},"width":{"type":"number","description":"Preferred width of the image.","minimum":0},"height":{"type":"number","description":"Preferred height of the image.","minimum":0},"title":{"type":"string","description":"Hover text for the image."},"alt":{"type":"string","description":"Alt text for the image."},"description":{"type":"string","description":"Description of the image."},"pixelated":{"type":"boolean","description":"Whether or not the image should appear pixelated at sizes larger than the image's native resolution.","default":false},"imageRendering":{"type":"string","description":"Controls how the image is rendered. The value of this field supersedes the pixelated field.","enum":["auto","pixelated","crisp-edges"],"default":"auto"},"appearance":{"type":"string","description":"Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.","enum":["auto","monochrome"],"default":"auto"},"background":{"type":"boolean","description":"Whether or not a background color is displayed behind the image.","default":true},"collapsed":{"type":"boolean","description":"Whether or not the image is collapsed by default.","default":false},"collapsible":{"type":"boolean","description":"Whether or not the image can be collapsed.","default":false},"verticalAlign":{"type":"string","description":"The vertical alignment of the image.","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"]},"border":{"type":"string","description":"Shorthand for border width, style, and color."},"borderRadius":{"type":"string","description":"Roundness of the corners of the image's outer border edge."},"sizeUnits":{"type":"string","description":"The units for the width and height.","enum":["px","em"]}}},{"type":"object","description":"Link tag.","required":["tag","href"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"a"},"content":{"$ref":"#/definitions/structuredContent"},"href":{"type":"string","description":"The URL for the link. URLs starting with a ? are treated as internal links to other dictionary content.","pattern":"^(?:https?:|\\?)[\\w\\W]*"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}}]}]};const schema23 = {"type":"object","description":"Generic data attributes that should be added to the element.","additionalProperties":{"type":"string"}};const schema26 = {"type":"object","additionalProperties":false,"properties":{"fontStyle":{"type":"string","enum":["normal","italic"],"default":"normal"},"fontWeight":{"type":"string","enum":["normal","bold"],"default":"normal"},"fontSize":{"type":"string","default":"medium"},"color":{"type":"string"},"background":{"type":"string"},"backgroundColor":{"type":"string"},"textDecorationLine":{"oneOf":[{"type":"string","enum":["none","underline","overline","line-through"],"default":"none"},{"type":"array","items":{"type":"string","enum":["underline","overline","line-through"],"default":"none"}}]},"textDecorationStyle":{"type":"string","enum":["solid","double","dotted","dashed","wavy"],"default":"solid"},"textDecorationColor":{"type":"string"},"borderColor":{"type":"string"},"borderStyle":{"type":"string"},"borderRadius":{"type":"string"},"borderWidth":{"type":"string"},"clipPath":{"type":"string"},"verticalAlign":{"type":"string","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"],"default":"baseline"},"textAlign":{"type":"string","enum":["start","end","left","right","center","justify","justify-all","match-parent"],"default":"start"},"textEmphasis":{"type":"string"},"textShadow":{"type":"string"},"margin":{"type":"string"},"marginTop":{"type":["number","string"],"default":0},"marginLeft":{"type":["number","string"],"default":0},"marginRight":{"type":["number","string"],"default":0},"marginBottom":{"type":["number","string"],"default":0},"padding":{"type":"string"},"paddingTop":{"type":"string"},"paddingLeft":{"type":"string"},"paddingRight":{"type":"string"},"paddingBottom":{"type":"string"},"wordBreak":{"type":"string","enum":["normal","break-all","keep-all"],"default":"normal"},"whiteSpace":{"type":"string","default":"normal"},"cursor":{"type":"string","default":"auto"},"listStyleType":{"type":"string","default":"disc"}}};const wrapper0 = {validate: validate18};const func5 = Object.prototype.hasOwnProperty;const pattern2 = new RegExp("^(?:https?:|\\?)[\\w\\W]*", "u");function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data)){var valid1 = true;const len0 = data.length;for(let i0=0; i0=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}var valid9 = _errs46 === errors;}else {var valid9 = true;}if(valid9){if(data.rowSpan !== undefined){let data14 = data.rowSpan;const _errs48 = errors;if(!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))){const err26 = {instancePath:instancePath+"/rowSpan",schemaPath:"#/oneOf/2/oneOf/2/properties/rowSpan/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors === _errs48){if((typeof data14 == "number") && (isFinite(data14))){if(data14 < 1 || isNaN(data14)){const err27 = {instancePath:instancePath+"/rowSpan",schemaPath:"#/oneOf/2/oneOf/2/properties/rowSpan/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}var valid9 = _errs48 === errors;}else {var valid9 = true;}if(valid9){if(data.style !== undefined){let data15 = data.style;const _errs50 = errors;const _errs51 = errors;if(errors === _errs51){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){const _errs53 = errors;for(const key6 in data15){if(!(func5.call(schema26.properties, key6))){const err28 = {instancePath:instancePath+"/style",schemaPath:"#/definitions/structuredContentStyle/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;break;}}if(_errs53 === errors){if(data15.fontStyle !== undefined){let data16 = data15.fontStyle;const _errs54 = errors;if(typeof data16 !== "string"){const err29 = {instancePath:instancePath+"/style/fontStyle",schemaPath:"#/definitions/structuredContentStyle/properties/fontStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!((data16 === "normal") || (data16 === "italic"))){const err30 = {instancePath:instancePath+"/style/fontStyle",schemaPath:"#/definitions/structuredContentStyle/properties/fontStyle/enum",keyword:"enum",params:{allowedValues: schema26.properties.fontStyle.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid13 = _errs54 === errors;}else {var valid13 = true;}if(valid13){if(data15.fontWeight !== undefined){let data17 = data15.fontWeight;const _errs56 = errors;if(typeof data17 !== "string"){const err31 = {instancePath:instancePath+"/style/fontWeight",schemaPath:"#/definitions/structuredContentStyle/properties/fontWeight/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!((data17 === "normal") || (data17 === "bold"))){const err32 = {instancePath:instancePath+"/style/fontWeight",schemaPath:"#/definitions/structuredContentStyle/properties/fontWeight/enum",keyword:"enum",params:{allowedValues: schema26.properties.fontWeight.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid13 = _errs56 === errors;}else {var valid13 = true;}if(valid13){if(data15.fontSize !== undefined){const _errs58 = errors;if(typeof data15.fontSize !== "string"){const err33 = {instancePath:instancePath+"/style/fontSize",schemaPath:"#/definitions/structuredContentStyle/properties/fontSize/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid13 = _errs58 === errors;}else {var valid13 = true;}if(valid13){if(data15.color !== undefined){const _errs60 = errors;if(typeof data15.color !== "string"){const err34 = {instancePath:instancePath+"/style/color",schemaPath:"#/definitions/structuredContentStyle/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid13 = _errs60 === errors;}else {var valid13 = true;}if(valid13){if(data15.background !== undefined){const _errs62 = errors;if(typeof data15.background !== "string"){const err35 = {instancePath:instancePath+"/style/background",schemaPath:"#/definitions/structuredContentStyle/properties/background/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid13 = _errs62 === errors;}else {var valid13 = true;}if(valid13){if(data15.backgroundColor !== undefined){const _errs64 = errors;if(typeof data15.backgroundColor !== "string"){const err36 = {instancePath:instancePath+"/style/backgroundColor",schemaPath:"#/definitions/structuredContentStyle/properties/backgroundColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid13 = _errs64 === errors;}else {var valid13 = true;}if(valid13){if(data15.textDecorationLine !== undefined){let data22 = data15.textDecorationLine;const _errs66 = errors;const _errs67 = errors;let valid14 = false;let passing2 = null;const _errs68 = errors;if(typeof data22 !== "string"){const err37 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(!((((data22 === "none") || (data22 === "underline")) || (data22 === "overline")) || (data22 === "line-through"))){const err38 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationLine.oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid2 = _errs68 === errors;if(_valid2){valid14 = true;passing2 = 0;}const _errs70 = errors;if(errors === _errs70){if(Array.isArray(data22)){var valid15 = true;const len1 = data22.length;for(let i1=0; i1=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/width",schemaPath:"#/oneOf/2/oneOf/4/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var valid23 = _errs231 === errors;}else {var valid23 = true;}if(valid23){if(data.height !== undefined){let data96 = data.height;const _errs233 = errors;if(errors === _errs233){if((typeof data96 == "number") && (isFinite(data96))){if(data96 < 0 || isNaN(data96)){const err139 = {instancePath:instancePath+"/height",schemaPath:"#/oneOf/2/oneOf/4/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}else {const err140 = {instancePath:instancePath+"/height",schemaPath:"#/oneOf/2/oneOf/4/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var valid23 = _errs233 === errors;}else {var valid23 = true;}if(valid23){if(data.title !== undefined){const _errs235 = errors;if(typeof data.title !== "string"){const err141 = {instancePath:instancePath+"/title",schemaPath:"#/oneOf/2/oneOf/4/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid23 = _errs235 === errors;}else {var valid23 = true;}if(valid23){if(data.alt !== undefined){const _errs237 = errors;if(typeof data.alt !== "string"){const err142 = {instancePath:instancePath+"/alt",schemaPath:"#/oneOf/2/oneOf/4/properties/alt/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid23 = _errs237 === errors;}else {var valid23 = true;}if(valid23){if(data.description !== undefined){const _errs239 = errors;if(typeof data.description !== "string"){const err143 = {instancePath:instancePath+"/description",schemaPath:"#/oneOf/2/oneOf/4/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}var valid23 = _errs239 === errors;}else {var valid23 = true;}if(valid23){if(data.pixelated !== undefined){const _errs241 = errors;if(typeof data.pixelated !== "boolean"){const err144 = {instancePath:instancePath+"/pixelated",schemaPath:"#/oneOf/2/oneOf/4/properties/pixelated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid23 = _errs241 === errors;}else {var valid23 = true;}if(valid23){if(data.imageRendering !== undefined){let data101 = data.imageRendering;const _errs243 = errors;if(typeof data101 !== "string"){const err145 = {instancePath:instancePath+"/imageRendering",schemaPath:"#/oneOf/2/oneOf/4/properties/imageRendering/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(!(((data101 === "auto") || (data101 === "pixelated")) || (data101 === "crisp-edges"))){const err146 = {instancePath:instancePath+"/imageRendering",schemaPath:"#/oneOf/2/oneOf/4/properties/imageRendering/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.imageRendering.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var valid23 = _errs243 === errors;}else {var valid23 = true;}if(valid23){if(data.appearance !== undefined){let data102 = data.appearance;const _errs245 = errors;if(typeof data102 !== "string"){const err147 = {instancePath:instancePath+"/appearance",schemaPath:"#/oneOf/2/oneOf/4/properties/appearance/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!((data102 === "auto") || (data102 === "monochrome"))){const err148 = {instancePath:instancePath+"/appearance",schemaPath:"#/oneOf/2/oneOf/4/properties/appearance/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.appearance.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid23 = _errs245 === errors;}else {var valid23 = true;}if(valid23){if(data.background !== undefined){const _errs247 = errors;if(typeof data.background !== "boolean"){const err149 = {instancePath:instancePath+"/background",schemaPath:"#/oneOf/2/oneOf/4/properties/background/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var valid23 = _errs247 === errors;}else {var valid23 = true;}if(valid23){if(data.collapsed !== undefined){const _errs249 = errors;if(typeof data.collapsed !== "boolean"){const err150 = {instancePath:instancePath+"/collapsed",schemaPath:"#/oneOf/2/oneOf/4/properties/collapsed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var valid23 = _errs249 === errors;}else {var valid23 = true;}if(valid23){if(data.collapsible !== undefined){const _errs251 = errors;if(typeof data.collapsible !== "boolean"){const err151 = {instancePath:instancePath+"/collapsible",schemaPath:"#/oneOf/2/oneOf/4/properties/collapsible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}var valid23 = _errs251 === errors;}else {var valid23 = true;}if(valid23){if(data.verticalAlign !== undefined){let data106 = data.verticalAlign;const _errs253 = errors;if(typeof data106 !== "string"){const err152 = {instancePath:instancePath+"/verticalAlign",schemaPath:"#/oneOf/2/oneOf/4/properties/verticalAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(!((((((((data106 === "baseline") || (data106 === "sub")) || (data106 === "super")) || (data106 === "text-top")) || (data106 === "text-bottom")) || (data106 === "middle")) || (data106 === "top")) || (data106 === "bottom"))){const err153 = {instancePath:instancePath+"/verticalAlign",schemaPath:"#/oneOf/2/oneOf/4/properties/verticalAlign/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.verticalAlign.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}var valid23 = _errs253 === errors;}else {var valid23 = true;}if(valid23){if(data.border !== undefined){const _errs255 = errors;if(typeof data.border !== "string"){const err154 = {instancePath:instancePath+"/border",schemaPath:"#/oneOf/2/oneOf/4/properties/border/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}var valid23 = _errs255 === errors;}else {var valid23 = true;}if(valid23){if(data.borderRadius !== undefined){const _errs257 = errors;if(typeof data.borderRadius !== "string"){const err155 = {instancePath:instancePath+"/borderRadius",schemaPath:"#/oneOf/2/oneOf/4/properties/borderRadius/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var valid23 = _errs257 === errors;}else {var valid23 = true;}if(valid23){if(data.sizeUnits !== undefined){let data109 = data.sizeUnits;const _errs259 = errors;if(typeof data109 !== "string"){const err156 = {instancePath:instancePath+"/sizeUnits",schemaPath:"#/oneOf/2/oneOf/4/properties/sizeUnits/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(!((data109 === "px") || (data109 === "em"))){const err157 = {instancePath:instancePath+"/sizeUnits",schemaPath:"#/oneOf/2/oneOf/4/properties/sizeUnits/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.sizeUnits.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var valid23 = _errs259 === errors;}else {var valid23 = true;}}}}}}}}}}}}}}}}}}}}}else {const err158 = {instancePath,schemaPath:"#/oneOf/2/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}var _valid1 = _errs218 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 4];}else {if(_valid1){valid2 = true;passing1 = 4;}const _errs261 = errors;if(errors === _errs261){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((data.tag === undefined) && (missing5 = "tag")) || ((data.href === undefined) && (missing5 = "href"))){const err159 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {const _errs263 = errors;for(const key12 in data){if(!((((key12 === "tag") || (key12 === "content")) || (key12 === "href")) || (key12 === "lang"))){const err160 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;break;}}if(_errs263 === errors){if(data.tag !== undefined){let data110 = data.tag;const _errs264 = errors;if(typeof data110 !== "string"){const err161 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/5/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if("a" !== data110){const err162 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/5/properties/tag/const",keyword:"const",params:{allowedValue: "a"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var valid26 = _errs264 === errors;}else {var valid26 = true;}if(valid26){if(data.content !== undefined){const _errs266 = errors;if(!(wrapper0.validate(data.content, {instancePath:instancePath+"/content",parentData:data,parentDataProperty:"content",rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid26 = _errs266 === errors;}else {var valid26 = true;}if(valid26){if(data.href !== undefined){let data112 = data.href;const _errs267 = errors;if(errors === _errs267){if(typeof data112 === "string"){if(!pattern2.test(data112)){const err163 = {instancePath:instancePath+"/href",schemaPath:"#/oneOf/2/oneOf/5/properties/href/pattern",keyword:"pattern",params:{pattern: "^(?:https?:|\\?)[\\w\\W]*"},message:"must match pattern \""+"^(?:https?:|\\?)[\\w\\W]*"+"\""};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {instancePath:instancePath+"/href",schemaPath:"#/oneOf/2/oneOf/5/properties/href/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}var valid26 = _errs267 === errors;}else {var valid26 = true;}if(valid26){if(data.lang !== undefined){const _errs269 = errors;if(typeof data.lang !== "string"){const err165 = {instancePath:instancePath+"/lang",schemaPath:"#/oneOf/2/oneOf/5/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}var valid26 = _errs269 === errors;}else {var valid26 = true;}}}}}}}else {const err166 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}var _valid1 = _errs261 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 5];}else {if(_valid1){valid2 = true;passing1 = 5;}}}}}}if(!valid2){const err167 = {instancePath,schemaPath:"#/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var _valid0 = _errs6 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;}}}if(!valid0){const err168 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;validate18.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate18.errors = vErrors;return errors === 0;}function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTermBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0 8){validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 8},message:"must NOT have more than 8 items"}];return false;}else {if(data0.length < 8){validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 8},message:"must NOT have fewer than 8 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 8)){validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 8},message:"must NOT have more than 8 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){const _errs3 = errors;if(typeof data0[0] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){const _errs5 = errors;if(typeof data0[1] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){let data3 = data0[2];const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate17.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: schema21.items.items[2].type},message:"must be string,null"}];return false;}var valid1 = _errs7 === errors;}if(valid1){if(len2 > 3){const _errs9 = errors;if(typeof data0[3] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}if(valid1){if(len2 > 4){let data5 = data0[4];const _errs11 = errors;if(!((typeof data5 == "number") && (isFinite(data5)))){validate17.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs11 === errors;}if(valid1){if(len2 > 5){let data6 = data0[5];const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data6)){var valid2 = true;const len3 = data6.length;for(let i1=0; i1=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}var valid7 = _errs39 === errors;}else {var valid7 = true;}if(valid7){if(data7.height !== undefined){let data15 = data7.height;const _errs41 = errors;if(!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))){const err17 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/height",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/height/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors === _errs41){if((typeof data15 == "number") && (isFinite(data15))){if(data15 < 1 || isNaN(data15)){const err18 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/height",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}var valid7 = _errs41 === errors;}else {var valid7 = true;}if(valid7){if(data7.title !== undefined){const _errs43 = errors;if(typeof data7.title !== "string"){const err19 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/title",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid7 = _errs43 === errors;}else {var valid7 = true;}if(valid7){if(data7.alt !== undefined){const _errs45 = errors;if(typeof data7.alt !== "string"){const err20 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/alt",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/alt/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid7 = _errs45 === errors;}else {var valid7 = true;}if(valid7){if(data7.description !== undefined){const _errs47 = errors;if(typeof data7.description !== "string"){const err21 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/description",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid7 = _errs47 === errors;}else {var valid7 = true;}if(valid7){if(data7.pixelated !== undefined){const _errs49 = errors;if(typeof data7.pixelated !== "boolean"){const err22 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/pixelated",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/pixelated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid7 = _errs49 === errors;}else {var valid7 = true;}if(valid7){if(data7.imageRendering !== undefined){let data20 = data7.imageRendering;const _errs51 = errors;if(typeof data20 !== "string"){const err23 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/imageRendering",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/imageRendering/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!(((data20 === "auto") || (data20 === "pixelated")) || (data20 === "crisp-edges"))){const err24 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/imageRendering",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/imageRendering/enum",keyword:"enum",params:{allowedValues: schema21.items.items[5].items.oneOf[1].oneOf[2].properties.imageRendering.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid7 = _errs51 === errors;}else {var valid7 = true;}if(valid7){if(data7.appearance !== undefined){let data21 = data7.appearance;const _errs53 = errors;if(typeof data21 !== "string"){const err25 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/appearance",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/appearance/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(!((data21 === "auto") || (data21 === "monochrome"))){const err26 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/appearance",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/appearance/enum",keyword:"enum",params:{allowedValues: schema21.items.items[5].items.oneOf[1].oneOf[2].properties.appearance.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid7 = _errs53 === errors;}else {var valid7 = true;}if(valid7){if(data7.background !== undefined){const _errs55 = errors;if(typeof data7.background !== "boolean"){const err27 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/background",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/background/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid7 = _errs55 === errors;}else {var valid7 = true;}if(valid7){if(data7.collapsed !== undefined){const _errs57 = errors;if(typeof data7.collapsed !== "boolean"){const err28 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/collapsed",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/collapsed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid7 = _errs57 === errors;}else {var valid7 = true;}if(valid7){if(data7.collapsible !== undefined){const _errs59 = errors;if(typeof data7.collapsible !== "boolean"){const err29 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/collapsible",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/collapsible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid7 = _errs59 === errors;}else {var valid7 = true;}}}}}}}}}}}}}}}}var _valid1 = _errs33 === errors;if(_valid1 && valid4){valid4 = false;passing1 = [passing1, 2];}else {if(_valid1){valid4 = true;passing1 = 2;}}}if(!valid4){const err30 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}if(errors === _errs19){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing3;if((data7.type === undefined) && (missing3 = "type")){const err31 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data7.type !== undefined){let data25 = data7.type;if(typeof data25 !== "string"){const err32 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(!(((data25 === "text") || (data25 === "image")) || (data25 === "structured-content"))){const err33 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema21.items.items[5].items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}}else {const err34 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var _valid0 = _errs19 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 1];}else {if(_valid0){valid3 = true;passing0 = 1;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data7)){if(data7.length > 2){const err35 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data7.length < 2){const err36 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {const len4 = data7.length;if(len4 > 0){const _errs65 = errors;if(typeof data7[0] !== "string"){const err37 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/0",schemaPath:"#/items/items/5/items/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid9 = _errs65 === errors;}if(valid9){if(len4 > 1){let data27 = data7[1];const _errs67 = errors;if(errors === _errs67){if(Array.isArray(data27)){var valid10 = true;const len5 = data27.length;for(let i2=0; i2 6){let data29 = data0[6];const _errs71 = errors;if(!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))){validate17.errors = [{instancePath:instancePath+"/" + i0+"/6",schemaPath:"#/items/items/6/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs71 === errors;}if(valid1){if(len2 > 7){const _errs73 = errors;if(typeof data0[7] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/7",schemaPath:"#/items/items/7/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs73 === errors;}}}}}}}}}}}}else {validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate17.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate17.errors = vErrors;return errors === 0;}export const dictionaryTermMetaBankV3 = validate20;const schema30 = {"$id":"dictionaryTermMetaBankV3","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"frequency":{"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]}},"type":"array","description":"Custom metadata for terms.","items":{"type":"array","description":"Metadata about a single term.","minItems":3,"maxItems":3,"additionalItems":false,"items":[{"type":"string","description":"The text for the term."},{"type":"string","enum":["freq","pitch","ipa"],"description":"Type of data. \"freq\" corresponds to frequency information; \"pitch\" corresponds to pitch information. \"ipa\" corresponds to IPA transcription."},{"description":"Data for the term."}],"oneOf":[{"minItems":3,"maxItems":3,"items":[{},{"const":"freq"},{"oneOf":[{"$ref":"#/definitions/frequency","description":"Frequency information for the term."},{"type":"object","required":["reading","frequency"],"additionalProperties":false,"properties":{"reading":{"type":"string","description":"Reading for the term."},"frequency":{"$ref":"#/definitions/frequency","description":"Frequency information for the term."}}}]}]},{"minItems":3,"maxItems":3,"items":[{},{"const":"pitch"},{"type":"object","description":"Pitch accent information for the term.","required":["reading","pitches"],"additionalProperties":false,"properties":{"reading":{"type":"string","description":"Reading for the term."},"pitches":{"type":"array","description":"List of different pitch accent information for the term and reading combination.","items":{"type":"object","required":["position"],"additionalProperties":false,"properties":{"position":{"oneOf":[{"type":"integer","description":"Mora position of the pitch accent downstep. A value of 0 indicates that the word does not have a downstep (heiban).","minimum":0},{"type":"string","description":"Pitch level of each mora with H representing high and L representing low. For example: HHLL for a 4 mora word.","pattern":"^[HL]+$"}]},"nasal":{"oneOf":[{"type":"integer","description":"Position of a mora with nasal sound.","minimum":0},{"type":"array","description":"Positions of morae with nasal sound.","items":{"type":"integer","minimum":0}}]},"devoice":{"oneOf":[{"type":"integer","description":"Position of a mora with devoiced sound.","minimum":0},{"type":"array","description":"Positions of morae with devoiced sound.","items":{"type":"integer","minimum":0}}]},"tags":{"type":"array","description":"List of tags for this pitch accent.","items":{"type":"string","description":"Tag for this pitch accent. This typically corresponds to a certain type of part of speech."}}}}}}}]},{"minItems":3,"maxItems":3,"items":[{},{"const":"ipa"},{"type":["object"],"description":"IPA transcription information for the term.","required":["reading","transcriptions"],"additionalProperties":false,"properties":{"reading":{"type":"string","description":"Reading for the term."},"transcriptions":{"type":"array","description":"List of different IPA transcription information for the term and reading combination.","items":{"type":"object","required":["ipa"],"additionalProperties":false,"properties":{"ipa":{"type":"string","description":"IPA transcription for the term."},"tags":{"type":"array","description":"List of tags for this IPA transcription.","items":{"type":"string","description":"Tag for this IPA transcription."}}}}}}}]}]}};const schema31 = {"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]};const pattern3 = new RegExp("^[HL]+$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTermMetaBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0 3){const err0 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.length < 3){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len1 = data0.length;if(len1 > 1){const _errs5 = errors;if("freq" !== data0[1]){const err2 = {instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/oneOf/0/items/1/const",keyword:"const",params:{allowedValue: "freq"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs5 === errors;}if(valid2){if(len1 > 2){let data2 = data0[2];const _errs6 = errors;const _errs7 = errors;let valid3 = false;let passing1 = null;const _errs8 = errors;const _errs10 = errors;let valid5 = false;let passing2 = null;const _errs11 = errors;if((typeof data2 !== "string") && (!((typeof data2 == "number") && (isFinite(data2))))){const err3 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/0/type",keyword:"type",params:{type: schema31.oneOf[0].type},message:"must be string,number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing2 = 0;}const _errs13 = errors;if(errors === _errs13){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.value === undefined) && (missing0 = "value")){const err4 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {const _errs15 = errors;for(const key0 in data2){if(!((key0 === "value") || (key0 === "displayValue"))){const err5 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;break;}}if(_errs15 === errors){if(data2.value !== undefined){let data3 = data2.value;const _errs16 = errors;if(!((typeof data3 == "number") && (isFinite(data3)))){const err6 = {instancePath:instancePath+"/" + i0+"/2/value",schemaPath:"#/definitions/frequency/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid6 = _errs16 === errors;}else {var valid6 = true;}if(valid6){if(data2.displayValue !== undefined){const _errs18 = errors;if(typeof data2.displayValue !== "string"){const err7 = {instancePath:instancePath+"/" + i0+"/2/displayValue",schemaPath:"#/definitions/frequency/oneOf/1/properties/displayValue/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs18 === errors;}else {var valid6 = true;}}}}}else {const err8 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing2 = [passing2, 1];}else {if(_valid2){valid5 = true;passing2 = 1;}}if(!valid5){const err9 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var _valid1 = _errs8 === errors;if(_valid1){valid3 = true;passing1 = 0;}const _errs20 = errors;if(errors === _errs20){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if(((data2.reading === undefined) && (missing1 = "reading")) || ((data2.frequency === undefined) && (missing1 = "frequency"))){const err10 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {const _errs22 = errors;for(const key1 in data2){if(!((key1 === "reading") || (key1 === "frequency"))){const err11 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;break;}}if(_errs22 === errors){if(data2.reading !== undefined){const _errs23 = errors;if(typeof data2.reading !== "string"){const err12 = {instancePath:instancePath+"/" + i0+"/2/reading",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/properties/reading/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid7 = _errs23 === errors;}else {var valid7 = true;}if(valid7){if(data2.frequency !== undefined){let data6 = data2.frequency;const _errs25 = errors;const _errs27 = errors;let valid9 = false;let passing3 = null;const _errs28 = errors;if((typeof data6 !== "string") && (!((typeof data6 == "number") && (isFinite(data6))))){const err13 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/0/type",keyword:"type",params:{type: schema31.oneOf[0].type},message:"must be string,number"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid3 = _errs28 === errors;if(_valid3){valid9 = true;passing3 = 0;}const _errs30 = errors;if(errors === _errs30){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((data6.value === undefined) && (missing2 = "value")){const err14 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {const _errs32 = errors;for(const key2 in data6){if(!((key2 === "value") || (key2 === "displayValue"))){const err15 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;break;}}if(_errs32 === errors){if(data6.value !== undefined){let data7 = data6.value;const _errs33 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){const err16 = {instancePath:instancePath+"/" + i0+"/2/frequency/value",schemaPath:"#/definitions/frequency/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid10 = _errs33 === errors;}else {var valid10 = true;}if(valid10){if(data6.displayValue !== undefined){const _errs35 = errors;if(typeof data6.displayValue !== "string"){const err17 = {instancePath:instancePath+"/" + i0+"/2/frequency/displayValue",schemaPath:"#/definitions/frequency/oneOf/1/properties/displayValue/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid10 = _errs35 === errors;}else {var valid10 = true;}}}}}else {const err18 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs30 === errors;if(_valid3 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid3){valid9 = true;passing3 = 1;}}if(!valid9){const err19 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};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 valid7 = _errs25 === errors;}else {var valid7 = true;}}}}}else {const err20 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var _valid1 = _errs20 === errors;if(_valid1 && valid3){valid3 = false;passing1 = [passing1, 1];}else {if(_valid1){valid3 = true;passing1 = 1;}}if(!valid3){const err21 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid2 = _errs6 === errors;}}}}}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs37 = errors;if(Array.isArray(data0)){if(data0.length > 3){const err22 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data0.length < 3){const err23 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/1/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data0.length;if(len2 > 1){const _errs38 = errors;if("pitch" !== data0[1]){const err24 = {instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "pitch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid11 = _errs38 === errors;}if(valid11){if(len2 > 2){let data10 = data0[2];const _errs39 = errors;if(errors === _errs39){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){let missing3;if(((data10.reading === undefined) && (missing3 = "reading")) || ((data10.pitches === undefined) && (missing3 = "pitches"))){const err25 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/1/items/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {const _errs41 = errors;for(const key3 in data10){if(!((key3 === "reading") || (key3 === "pitches"))){const err26 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/1/items/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;break;}}if(_errs41 === errors){if(data10.reading !== undefined){const _errs42 = errors;if(typeof data10.reading !== "string"){const err27 = {instancePath:instancePath+"/" + i0+"/2/reading",schemaPath:"#/items/oneOf/1/items/2/properties/reading/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid12 = _errs42 === errors;}else {var valid12 = true;}if(valid12){if(data10.pitches !== undefined){let data12 = data10.pitches;const _errs44 = errors;if(errors === _errs44){if(Array.isArray(data12)){var valid13 = true;const len3 = data12.length;for(let i1=0; i1=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid15 = true;passing4 = 0;}const _errs53 = errors;if(errors === _errs53){if(typeof data14 === "string"){if(!pattern3.test(data14)){const err32 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf/1/pattern",keyword:"pattern",params:{pattern: "^[HL]+$"},message:"must match pattern \""+"^[HL]+$"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid4 = _errs53 === errors;if(_valid4 && valid15){valid15 = false;passing4 = [passing4, 1];}else {if(_valid4){valid15 = true;passing4 = 1;}}if(!valid15){const err34 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var valid14 = _errs49 === errors;}else {var valid14 = true;}if(valid14){if(data13.nasal !== undefined){let data15 = data13.nasal;const _errs55 = errors;const _errs56 = errors;let valid16 = false;let passing5 = null;const _errs57 = errors;if(!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))){const err35 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors === _errs57){if((typeof data15 == "number") && (isFinite(data15))){if(data15 < 0 || isNaN(data15)){const err36 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid5 = _errs57 === errors;if(_valid5){valid16 = true;passing5 = 0;}const _errs59 = errors;if(errors === _errs59){if(Array.isArray(data15)){var valid17 = true;const len4 = data15.length;for(let i2=0; i2=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}var valid17 = _errs61 === errors;if(!valid17){break;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var _valid5 = _errs59 === errors;if(_valid5 && valid16){valid16 = false;passing5 = [passing5, 1];}else {if(_valid5){valid16 = true;passing5 = 1;}}if(!valid16){const err40 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}var valid14 = _errs55 === errors;}else {var valid14 = true;}if(valid14){if(data13.devoice !== undefined){let data17 = data13.devoice;const _errs63 = errors;const _errs64 = errors;let valid18 = false;let passing6 = null;const _errs65 = errors;if(!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))){const err41 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors === _errs65){if((typeof data17 == "number") && (isFinite(data17))){if(data17 < 0 || isNaN(data17)){const err42 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}var _valid6 = _errs65 === errors;if(_valid6){valid18 = true;passing6 = 0;}const _errs67 = errors;if(errors === _errs67){if(Array.isArray(data17)){var valid19 = true;const len5 = data17.length;for(let i3=0; i3=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var valid19 = _errs69 === errors;if(!valid19){break;}}}else {const err45 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var _valid6 = _errs67 === errors;if(_valid6 && valid18){valid18 = false;passing6 = [passing6, 1];}else {if(_valid6){valid18 = true;passing6 = 1;}}if(!valid18){const err46 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {errors = _errs64;if(vErrors !== null){if(_errs64){vErrors.length = _errs64;}else {vErrors = null;}}}var valid14 = _errs63 === errors;}else {var valid14 = true;}if(valid14){if(data13.tags !== undefined){let data19 = data13.tags;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data19)){var valid20 = true;const len6 = data19.length;for(let i4=0; i4 3){const err52 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.length < 3){const err53 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/2/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {const len7 = data0.length;if(len7 > 1){const _errs76 = errors;if("ipa" !== data0[1]){const err54 = {instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/oneOf/2/items/1/const",keyword:"const",params:{allowedValue: "ipa"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid21 = _errs76 === errors;}if(valid21){if(len7 > 2){let data22 = data0[2];const _errs77 = errors;if(errors === _errs77){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){let missing5;if(((data22.reading === undefined) && (missing5 = "reading")) || ((data22.transcriptions === undefined) && (missing5 = "transcriptions"))){const err55 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/2/items/2/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {const _errs79 = errors;for(const key5 in data22){if(!((key5 === "reading") || (key5 === "transcriptions"))){const err56 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/2/items/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;break;}}if(_errs79 === errors){if(data22.reading !== undefined){const _errs80 = errors;if(typeof data22.reading !== "string"){const err57 = {instancePath:instancePath+"/" + i0+"/2/reading",schemaPath:"#/items/oneOf/2/items/2/properties/reading/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid22 = _errs80 === errors;}else {var valid22 = true;}if(valid22){if(data22.transcriptions !== undefined){let data24 = data22.transcriptions;const _errs82 = errors;if(errors === _errs82){if(Array.isArray(data24)){var valid23 = true;const len8 = data24.length;for(let i5=0; i5 3){validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {if(data0.length < 3){validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"}];return false;}else {const len10 = data0.length;if(!(len10 <= 3)){validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {const len11 = data0.length;if(len11 > 0){const _errs93 = errors;if(typeof data0[0] !== "string"){validate20.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs93 === errors;}if(valid26){if(len11 > 1){let data30 = data0[1];const _errs95 = errors;if(typeof data30 !== "string"){validate20.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data30 === "freq") || (data30 === "pitch")) || (data30 === "ipa"))){validate20.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/enum",keyword:"enum",params:{allowedValues: schema30.items.items[1].enum},message:"must be equal to one of the allowed values"}];return false;}var valid26 = _errs95 === errors;}}}}}}else {validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate20.errors = vErrors;return errors === 0;}export const options = validate21;const schema33 = {"$id":"options","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["version","profiles","profileCurrent","global"],"properties":{"version":{"type":"integer","minimum":0,"default":0},"profiles":{"type":"array","minItems":1,"items":{"type":"object","required":["name","conditionGroups","options"],"properties":{"name":{"type":"string","default":"Default"},"conditionGroups":{"type":"array","items":{"type":"object","required":["conditions"],"properties":{"conditions":{"type":"array","items":{"type":"object","required":["type","operator","value"],"properties":{"type":{"type":"string"},"operator":{"type":"string"},"value":{}}}}}}},"options":{"type":"object","required":["general","popupWindow","audio","scanning","translation","dictionaries","parsing","anki","sentenceParsing","inputs","clipboard","accessibility"],"properties":{"general":{"type":"object","required":["enable","language","resultOutputMode","debugInfo","maxResults","showAdvanced","showDebug","popupDisplayMode","popupWidth","popupHeight","popupHorizontalOffset","popupVerticalOffset","popupHorizontalOffset2","popupVerticalOffset2","popupHorizontalTextPosition","popupVerticalTextPosition","popupScalingFactor","popupScaleRelativeToPageZoom","popupScaleRelativeToVisualViewport","showGuide","enableContextMenuScanSelected","compactTags","averageFrequency","glossaryLayoutMode","mainDictionary","popupTheme","popupOuterTheme","customPopupCss","customPopupOuterCss","enableWanakana","showPitchAccentDownstepNotation","showPitchAccentPositionNotation","showPitchAccentGraph","showIframePopupsInRootFrame","useSecurePopupFrameUrl","usePopupShadowDom","usePopupWindow","popupCurrentIndicatorMode","popupActionBarVisibility","popupActionBarLocation","frequencyDisplayMode","termDisplayMode","sortFrequencyDictionary","sortFrequencyDictionaryOrder","stickySearchHeader","fontFamily","fontSize","lineHeight","enableYomitanApi","yomitanApiServer","yomitanApiAllowCssSanitizationBypass"],"properties":{"enable":{"type":"boolean","default":true},"language":{"type":"string","default":"ja"},"resultOutputMode":{"type":"string","enum":["group","merge","split","term"],"default":"group"},"fontFamily":{"type":"string","default":""},"fontSize":{"type":"number","default":14},"lineHeight":{"type":"string","default":"1.5"},"debugInfo":{"type":"boolean","default":false},"maxResults":{"type":"integer","minimum":1,"default":32},"showAdvanced":{"type":"boolean","default":false},"showDebug":{"type":"boolean","default":false},"popupDisplayMode":{"type":"string","enum":["default","full-width"],"default":"default"},"popupWidth":{"type":"number","minimum":0,"default":400},"popupHeight":{"type":"number","minimum":0,"default":250},"popupHorizontalOffset":{"type":"number","default":0},"popupVerticalOffset":{"type":"number","default":10},"popupHorizontalOffset2":{"type":"number","default":10},"popupVerticalOffset2":{"type":"number","default":0},"popupHorizontalTextPosition":{"type":"string","enum":["below","above"],"default":"below"},"popupVerticalTextPosition":{"type":"string","enum":["default","before","after","left","right"],"default":"before"},"popupScalingFactor":{"type":"number","default":1},"popupScaleRelativeToPageZoom":{"type":"boolean","default":false},"popupScaleRelativeToVisualViewport":{"type":"boolean","default":true},"showGuide":{"type":"boolean","default":true},"enableContextMenuScanSelected":{"type":"boolean","default":true},"compactTags":{"type":"boolean","default":false},"averageFrequency":{"type":"boolean","default":false},"glossaryLayoutMode":{"type":"string","enum":["default","compact","compact-popup-anki"],"default":"default"},"mainDictionary":{"type":"string"},"popupTheme":{"type":"string","enum":["light","dark","browser","site"],"default":"site"},"popupOuterTheme":{"type":"string","enum":["light","dark","browser","site","none"],"default":"site"},"customPopupCss":{"type":"string","default":""},"customPopupOuterCss":{"type":"string","default":""},"enableWanakana":{"type":"boolean","default":true},"showPitchAccentDownstepNotation":{"type":"boolean","default":true},"showPitchAccentPositionNotation":{"type":"boolean","default":true},"showPitchAccentGraph":{"type":"boolean","default":false},"showIframePopupsInRootFrame":{"type":"boolean","default":true},"useSecurePopupFrameUrl":{"type":"boolean","default":true},"usePopupShadowDom":{"type":"boolean","default":true},"usePopupWindow":{"type":"boolean","default":false},"popupCurrentIndicatorMode":{"type":"string","enum":["none","asterisk","triangle","bar-left","bar-right","dot-left","dot-right"],"default":"triangle"},"popupActionBarVisibility":{"type":"string","enum":["auto","always"],"default":"auto"},"popupActionBarLocation":{"type":"string","enum":["left","right","top","bottom"],"default":"top"},"frequencyDisplayMode":{"type":"string","enum":["tags","tags-grouped","split-tags","split-tags-grouped","inline-list","list"],"default":"split-tags-grouped"},"termDisplayMode":{"type":"string","enum":["ruby","ruby-and-reading","term-and-reading","term-only"],"default":"ruby"},"sortFrequencyDictionary":{"type":["string","null"],"default":null},"sortFrequencyDictionaryOrder":{"type":"string","enum":["ascending","descending"],"default":"descending"},"stickySearchHeader":{"type":"boolean","default":false},"enableYomitanApi":{"type":"boolean","default":false},"yomitanApiServer":{"type":"string","default":"http://127.0.0.1:19633"},"yomitanApiAllowCssSanitizationBypass":{"type":"boolean","default":false}}},"popupWindow":{"type":"object","required":["width","height","left","top","useLeft","useTop","windowType","windowState"],"properties":{"width":{"type":"integer","minimum":0,"default":400},"height":{"type":"integer","minimum":0,"default":250},"left":{"type":"integer","default":0},"top":{"type":"integer","default":0},"useLeft":{"type":"boolean","default":false},"useTop":{"type":"boolean","default":false},"windowType":{"type":"string","enum":["normal","popup"],"default":"popup"},"windowState":{"type":"string","enum":["normal","maximized","fullscreen"],"default":"normal"}}},"audio":{"type":"object","required":["enabled","volume","autoPlay","fallbackSoundType","sources","enableDefaultAudioSources"],"properties":{"enabled":{"type":"boolean","default":true},"volume":{"type":"number","minimum":0,"maximum":100,"default":100},"autoPlay":{"type":"boolean","default":false},"fallbackSoundType":{"type":"string","enum":["none","click","bloop"],"default":"click"},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["type","url","voice"],"properties":{"type":{"type":"string","enum":["jpod101","language-pod-101","jisho","lingua-libre","wiktionary","text-to-speech","text-to-speech-reading","custom","custom-json"],"default":"jpod101"},"url":{"type":"string","default":""},"voice":{"type":"string","default":""}}},"default":[]},"enableDefaultAudioSources":{"type":"boolean","default":true}}},"scanning":{"type":"object","required":["inputs","preventMiddleMouse","preventBackForward","selectText","alphanumeric","autoHideResults","delay","hideDelay","length","deepDomScan","popupNestingMaxDepth","enablePopupSearch","enableOnPopupExpressions","enableOnSearchPage","enableSearchTags","layoutAwareScan","matchTypePrefix","hidePopupOnCursorExit","hidePopupOnCursorExitDelay","reducedMotionScrolling","reducedMotionScrollingScale","reducedMotionScrollingSwipeThreshold","normalizeCssZoom","scanWithoutMousemove","scanResolution"],"properties":{"inputs":{"type":"array","default":[{"include":"shift","exclude":"mouse0","types":{"mouse":true,"touch":false,"pen":false},"options":{"showAdvanced":false,"searchTerms":true,"searchKanji":true,"scanOnTouchTap":true,"scanOnTouchMove":false,"scanOnTouchPress":false,"scanOnTouchRelease":false,"scanOnPenMove":true,"scanOnPenHover":false,"scanOnPenReleaseHover":false,"scanOnPenPress":true,"scanOnPenRelease":false,"preventTouchScrolling":false,"preventPenScrolling":false,"minimumTouchTime":0}},{"include":"","exclude":"","types":{"mouse":false,"touch":true,"pen":true},"options":{"showAdvanced":false,"searchTerms":true,"searchKanji":true,"scanOnTouchTap":true,"scanOnTouchMove":false,"scanOnTouchPress":false,"scanOnTouchRelease":false,"scanOnPenMove":true,"scanOnPenHover":false,"scanOnPenReleaseHover":false,"scanOnPenPress":true,"scanOnPenRelease":false,"preventTouchScrolling":true,"preventPenScrolling":true,"minimumTouchTime":0}}],"items":{"type":"object","required":["include","exclude","types","options"],"properties":{"include":{"type":"string","default":"shift"},"exclude":{"type":"string","default":""},"types":{"type":"object","required":["mouse","touch","pen"],"properties":{"mouse":{"type":"boolean","default":true},"touch":{"type":"boolean","default":true},"pen":{"type":"boolean","default":true}}},"options":{"type":"object","required":["showAdvanced","searchTerms","searchKanji","scanOnTouchTap","scanOnTouchMove","scanOnTouchPress","scanOnTouchRelease","scanOnPenMove","scanOnPenHover","scanOnPenReleaseHover","scanOnPenPress","scanOnPenRelease","preventTouchScrolling","preventPenScrolling","minimumTouchTime"],"properties":{"showAdvanced":{"type":"boolean","default":false},"searchTerms":{"type":"boolean","default":true},"searchKanji":{"type":"boolean","default":true},"scanOnTouchTap":{"type":"boolean","default":true},"scanOnTouchMove":{"type":"boolean","default":false},"scanOnTouchPress":{"type":"boolean","default":false},"scanOnTouchRelease":{"type":"boolean","default":false},"scanOnPenMove":{"type":"boolean","default":true},"scanOnPenHover":{"type":"boolean","default":false},"scanOnPenReleaseHover":{"type":"boolean","default":false},"scanOnPenPress":{"type":"boolean","default":true},"scanOnPenRelease":{"type":"boolean","default":false},"preventTouchScrolling":{"type":"boolean","default":true},"preventPenScrolling":{"type":"boolean","default":true},"minimumTouchTime":{"type":"number","default":0}}}}}},"preventMiddleMouse":{"type":"object","required":["onTextHover","onWebPages","onPopupPages","onSearchPages","onSearchQuery"],"properties":{"onWebPages":{"type":"boolean","default":false},"onPopupPages":{"type":"boolean","default":false},"onSearchPages":{"type":"boolean","default":false},"onSearchQuery":{"type":"boolean","default":false}}},"preventBackForward":{"type":"object","required":["onTextHover","onWebPages","onPopupPages","onSearchPages","onSearchQuery"],"properties":{"onWebPages":{"type":"boolean","default":false},"onPopupPages":{"type":"boolean","default":false},"onSearchPages":{"type":"boolean","default":false},"onSearchQuery":{"type":"boolean","default":false}}},"selectText":{"type":"boolean","default":true},"alphanumeric":{"type":"boolean","default":true},"autoHideResults":{"type":"boolean","default":false},"delay":{"type":"number","minimum":0,"default":20},"hideDelay":{"type":"number","minimum":0,"default":0},"length":{"type":"integer","minimum":1,"default":16},"deepDomScan":{"type":"boolean","default":false},"popupNestingMaxDepth":{"type":"integer","minimum":0,"default":10},"enablePopupSearch":{"type":"boolean","default":false},"enableOnPopupExpressions":{"type":"boolean","default":false},"enableOnSearchPage":{"type":"boolean","default":true},"enableSearchTags":{"type":"boolean","default":false},"layoutAwareScan":{"type":"boolean","default":true},"matchTypePrefix":{"type":"boolean","default":false},"hidePopupOnCursorExit":{"type":"boolean","default":false},"hidePopupOnCursorExitDelay":{"type":"number","minimum":0,"default":0},"reducedMotionScrolling":{"type":"boolean","default":false},"reducedMotionScrollingScale":{"type":"number","default":1},"reducedMotionScrollingSwipeThreshold":{"type":"number","minimum":0,"default":40},"normalizeCssZoom":{"type":"boolean","default":true},"scanWithoutMousemove":{"type":"boolean","default":true},"scanResolution":{"type":"string","enum":["character","word"],"default":"character"}}},"translation":{"type":"object","required":["textReplacements","searchResolution"],"properties":{"searchResolution":{"type":"string","enum":["letter","word"],"default":"letter"},"textReplacements":{"type":"object","required":["searchOriginal","groups"],"properties":{"searchOriginal":{"type":"boolean","default":true},"groups":{"type":"array","items":{"type":"array","items":{"type":"object","required":["pattern","ignoreCase","replacement"],"properties":{"pattern":{"type":"string","default":""},"ignoreCase":{"type":"boolean","default":false},"replacement":{"type":"string","default":""}}}}}}}}},"dictionaries":{"type":"array","items":{"type":"object","required":["name","alias","enabled","allowSecondarySearches","definitionsCollapsible","partsOfSpeechFilter","useDeinflections"],"properties":{"name":{"type":"string","default":""},"alias":{"type":"string","default":""},"enabled":{"type":"boolean","default":true},"allowSecondarySearches":{"type":"boolean","default":false},"definitionsCollapsible":{"type":"string","enum":["not-collapsible","expanded","collapsed","force-collapsed","force-expanded"],"default":"not-collapsible"},"partsOfSpeechFilter":{"type":"boolean","default":true},"useDeinflections":{"type":"boolean","default":true}}}},"parsing":{"type":"object","required":["enableScanningParser","enableMecabParser","selectedParser","termSpacing","readingMode"],"properties":{"enableScanningParser":{"type":"boolean","default":true},"enableMecabParser":{"type":"boolean","default":false},"selectedParser":{"type":["string","null"],"default":null},"termSpacing":{"type":"boolean","default":true},"readingMode":{"type":"string","enum":["hiragana","katakana","romaji","dictionary-reading","none"],"default":"hiragana"}}},"anki":{"type":"object","required":["enable","server","tags","screenshot","cardFormats","duplicateScope","duplicateScopeCheckAllModels","checkForDuplicates","duplicateBehavior","fieldTemplates","suspendNewCards","displayTagsAndFlags","targetTags","noteGuiMode","apiKey","downloadTimeout","forceSync"],"properties":{"enable":{"type":"boolean","default":false},"server":{"type":"string","default":"http://127.0.0.1:8765"},"tags":{"type":"array","items":{"type":"string"},"default":["yomitan"]},"screenshot":{"type":"object","required":["format","quality"],"properties":{"format":{"type":"string","enum":["png","jpeg"],"default":"png"},"quality":{"type":"integer","minimum":0,"maximum":100,"default":92}}},"cardFormats":{"type":"array","items":{"type":"object","required":["name","icon","deck","model","fields","type"],"properties":{"name":{"type":"string","default":""},"icon":{"type":"string","enum":["big-circle","small-circle","big-square","big-diamond"],"default":"big-circle"},"deck":{"type":"string","default":""},"model":{"type":"string","default":""},"type":{"type":"string","enum":["term","kanji"],"default":"term"},"fields":{"type":"object","additionalProperties":{"type":"object","properties":{"value":{"type":"string","default":""},"overwriteMode":{"type":"string","enum":["coalesce","coalesce-new","skip","append","prepend","overwrite"],"default":"coalesce"}}}}}},"default":[{"name":"Expression","icon":"big-circle","deck":"","model":"","fields":{},"type":"term"},{"name":"Reading","icon":"small-circle","deck":"","model":"","fields":{},"type":"term"},{"name":"Kanji","icon":"big-circle","deck":"","model":"","fields":{},"type":"kanji"}]},"duplicateScope":{"type":"string","default":"collection","enum":["collection","deck","deck-root"]},"duplicateScopeCheckAllModels":{"type":"boolean","default":false},"checkForDuplicates":{"type":"boolean","default":true},"duplicateBehavior":{"type":"string","enum":["prevent","overwrite","new"],"default":"new"},"fieldTemplates":{"type":["string","null"],"default":null},"suspendNewCards":{"type":"boolean","default":false},"displayTagsAndFlags":{"type":"string","enum":["never","always","non-standard","custom"],"default":"never"},"targetTags":{"type":"array","items":{"type":"string"},"default":[]},"noteGuiMode":{"type":"string","enum":["browse","edit"],"default":"browse"},"apiKey":{"type":"string","default":""},"downloadTimeout":{"type":"number","default":0,"minimum":0},"forceSync":{"type":"boolean","default":false}}},"sentenceParsing":{"type":"object","required":["scanExtent","terminationCharacterMode","terminationCharacters"],"properties":{"scanExtent":{"type":"integer","minimum":0,"default":200},"terminationCharacterMode":{"type":"string","enum":["custom","custom-no-newlines","newlines","none"],"default":"custom"},"terminationCharacters":{"type":"array","items":{"type":"object","required":["enabled","character1","character2","includeCharacterAtStart","includeCharacterAtEnd"],"properties":{"enabled":{"type":"boolean","default":true},"character1":{"type":"string","default":"\"","minLength":1,"maxLength":1},"character2":{"type":["string","null"],"default":"\"","minLength":1,"maxLength":1},"includeCharacterAtStart":{"type":"boolean","default":false},"includeCharacterAtEnd":{"type":"boolean","default":false}}},"default":[{"enabled":true,"character1":"「","character2":"」","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":"『","character2":"』","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":"\"","character2":"\"","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":"'","character2":"'","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":".","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"!","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"?","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":".","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"。","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"!","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"?","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"…","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︒","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︕","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︖","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︙","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true}]}}},"inputs":{"type":"object","required":["hotkeys"],"properties":{"hotkeys":{"type":"array","items":{"type":"object","required":["action","argument","key","modifiers","scopes","enabled"],"properties":{"action":{"type":"string","default":""},"argument":{"type":"string","default":""},"key":{"type":["string","null"],"default":null},"modifiers":{"type":"array","items":{"type":"string","enum":["alt","ctrl","shift","meta"],"default":"alt"}},"scopes":{"type":"array","items":{"type":"string","enum":["popup","search","web"],"default":"popup"},"default":["popup","search"]},"enabled":{"type":"boolean","default":true}}},"default":[{"action":"close","argument":"","key":"Escape","modifiers":[],"scopes":["popup"],"enabled":true},{"action":"focusSearchBox","argument":"","key":"Escape","modifiers":[],"scopes":["search"],"enabled":true},{"action":"previousEntry","argument":"3","key":"PageUp","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"nextEntry","argument":"3","key":"PageDown","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"lastEntry","argument":"","key":"End","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"firstEntry","argument":"","key":"Home","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"previousEntry","argument":"1","key":"ArrowUp","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"nextEntry","argument":"1","key":"ArrowDown","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"historyBackward","argument":"","key":"KeyB","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"historyForward","argument":"","key":"KeyF","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"profilePrevious","argument":"","key":"Minus","modifiers":["alt"],"scopes":["popup","search","web"],"enabled":true},{"action":"profileNext","argument":"","key":"Equal","modifiers":["alt"],"scopes":["popup","search","web"],"enabled":true},{"action":"addNote","argument":"0","key":"KeyE","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"addNote","argument":"1","key":"KeyR","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"addNote","argument":"2","key":"KeyK","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"playAudio","argument":"","key":"KeyP","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"viewNotes","argument":"0","key":"KeyV","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"copyHostSelection","argument":"","key":"KeyC","modifiers":["ctrl"],"scopes":["popup"],"enabled":true}]}}},"clipboard":{"type":"object","required":["enableBackgroundMonitor","enableSearchPageMonitor","autoSearchContent","maximumSearchLength"],"properties":{"enableBackgroundMonitor":{"type":"boolean","default":false},"enableSearchPageMonitor":{"type":"boolean","default":false},"autoSearchContent":{"type":"boolean","default":true},"maximumSearchLength":{"type":"integer","default":1000,"minimum":0}}},"accessibility":{"type":"object","required":["forceGoogleDocsHtmlRendering"],"properties":{"forceGoogleDocsHtmlRendering":{"type":"boolean","default":false}}}}}}}},"profileCurrent":{"type":"integer","minimum":0,"default":0},"global":{"type":"object","required":["database","dataTransmissionConsentShown"],"properties":{"database":{"type":"object","required":["prefixWildcardsSupported"],"properties":{"prefixWildcardsSupported":{"type":"boolean","default":false}}},"dataTransmissionConsentShown":{"type":"boolean","default":false}}}}};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="options" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.version === undefined) && (missing0 = "version")) || ((data.profiles === undefined) && (missing0 = "profiles"))) || ((data.profileCurrent === undefined) && (missing0 = "profileCurrent"))) || ((data.global === undefined) && (missing0 = "global"))){validate21.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.version !== undefined){let data0 = data.version;const _errs1 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){validate21.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate21.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.profiles !== undefined){let data1 = data.profiles;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length < 1){validate21.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0=", limit: 1},message:"must be >= 1"}];return false;}}}var valid8 = _errs39 === errors;}else {var valid8 = true;}if(valid8){if(data11.showAdvanced !== undefined){const _errs41 = errors;if(typeof data11.showAdvanced !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showAdvanced",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showAdvanced/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data11.showDebug !== undefined){const _errs43 = errors;if(typeof data11.showDebug !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showDebug",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showDebug/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs43 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupDisplayMode !== undefined){let data22 = data11.popupDisplayMode;const _errs45 = errors;if(typeof data22 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupDisplayMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data22 === "default") || (data22 === "full-width"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupDisplayMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupDisplayMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs45 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupWidth !== undefined){let data23 = data11.popupWidth;const _errs47 = errors;if(errors === _errs47){if((typeof data23 == "number") && (isFinite(data23))){if(data23 < 0 || isNaN(data23)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupWidth",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupWidth",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupWidth/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid8 = _errs47 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHeight !== undefined){let data24 = data11.popupHeight;const _errs49 = errors;if(errors === _errs49){if((typeof data24 == "number") && (isFinite(data24))){if(data24 < 0 || isNaN(data24)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHeight",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHeight/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHeight",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHeight/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid8 = _errs49 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHorizontalOffset !== undefined){let data25 = data11.popupHorizontalOffset;const _errs51 = errors;if(!((typeof data25 == "number") && (isFinite(data25)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalOffset",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalOffset/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs51 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupVerticalOffset !== undefined){let data26 = data11.popupVerticalOffset;const _errs53 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalOffset",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalOffset/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs53 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHorizontalOffset2 !== undefined){let data27 = data11.popupHorizontalOffset2;const _errs55 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalOffset2",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalOffset2/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs55 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupVerticalOffset2 !== undefined){let data28 = data11.popupVerticalOffset2;const _errs57 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalOffset2",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalOffset2/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs57 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHorizontalTextPosition !== undefined){let data29 = data11.popupHorizontalTextPosition;const _errs59 = errors;if(typeof data29 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalTextPosition/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data29 === "below") || (data29 === "above"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalTextPosition/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupHorizontalTextPosition.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs59 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupVerticalTextPosition !== undefined){let data30 = data11.popupVerticalTextPosition;const _errs61 = errors;if(typeof data30 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalTextPosition/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data30 === "default") || (data30 === "before")) || (data30 === "after")) || (data30 === "left")) || (data30 === "right"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalTextPosition/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupVerticalTextPosition.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs61 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupScalingFactor !== undefined){let data31 = data11.popupScalingFactor;const _errs63 = errors;if(!((typeof data31 == "number") && (isFinite(data31)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupScalingFactor",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupScalingFactor/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs63 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupScaleRelativeToPageZoom !== undefined){const _errs65 = errors;if(typeof data11.popupScaleRelativeToPageZoom !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupScaleRelativeToPageZoom",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupScaleRelativeToPageZoom/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs65 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupScaleRelativeToVisualViewport !== undefined){const _errs67 = errors;if(typeof data11.popupScaleRelativeToVisualViewport !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupScaleRelativeToVisualViewport",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupScaleRelativeToVisualViewport/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs67 === errors;}else {var valid8 = true;}if(valid8){if(data11.showGuide !== undefined){const _errs69 = errors;if(typeof data11.showGuide !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showGuide",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showGuide/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs69 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableContextMenuScanSelected !== undefined){const _errs71 = errors;if(typeof data11.enableContextMenuScanSelected !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enableContextMenuScanSelected",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enableContextMenuScanSelected/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs71 === errors;}else {var valid8 = true;}if(valid8){if(data11.compactTags !== undefined){const _errs73 = errors;if(typeof data11.compactTags !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/compactTags",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/compactTags/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs73 === errors;}else {var valid8 = true;}if(valid8){if(data11.averageFrequency !== undefined){const _errs75 = errors;if(typeof data11.averageFrequency !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/averageFrequency",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/averageFrequency/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs75 === errors;}else {var valid8 = true;}if(valid8){if(data11.glossaryLayoutMode !== undefined){let data38 = data11.glossaryLayoutMode;const _errs77 = errors;if(typeof data38 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/glossaryLayoutMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/glossaryLayoutMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data38 === "default") || (data38 === "compact")) || (data38 === "compact-popup-anki"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/glossaryLayoutMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/glossaryLayoutMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.glossaryLayoutMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs77 === errors;}else {var valid8 = true;}if(valid8){if(data11.mainDictionary !== undefined){const _errs79 = errors;if(typeof data11.mainDictionary !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/mainDictionary",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/mainDictionary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs79 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupTheme !== undefined){let data40 = data11.popupTheme;const _errs81 = errors;if(typeof data40 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupTheme/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data40 === "light") || (data40 === "dark")) || (data40 === "browser")) || (data40 === "site"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupTheme/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupTheme.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs81 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupOuterTheme !== undefined){let data41 = data11.popupOuterTheme;const _errs83 = errors;if(typeof data41 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupOuterTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupOuterTheme/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data41 === "light") || (data41 === "dark")) || (data41 === "browser")) || (data41 === "site")) || (data41 === "none"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupOuterTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupOuterTheme/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupOuterTheme.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs83 === errors;}else {var valid8 = true;}if(valid8){if(data11.customPopupCss !== undefined){const _errs85 = errors;if(typeof data11.customPopupCss !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/customPopupCss",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/customPopupCss/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs85 === errors;}else {var valid8 = true;}if(valid8){if(data11.customPopupOuterCss !== undefined){const _errs87 = errors;if(typeof data11.customPopupOuterCss !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/customPopupOuterCss",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/customPopupOuterCss/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs87 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableWanakana !== undefined){const _errs89 = errors;if(typeof data11.enableWanakana !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enableWanakana",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enableWanakana/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs89 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentDownstepNotation !== undefined){const _errs91 = errors;if(typeof data11.showPitchAccentDownstepNotation !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showPitchAccentDownstepNotation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showPitchAccentDownstepNotation/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs91 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentPositionNotation !== undefined){const _errs93 = errors;if(typeof data11.showPitchAccentPositionNotation !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showPitchAccentPositionNotation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showPitchAccentPositionNotation/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs93 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentGraph !== undefined){const _errs95 = errors;if(typeof data11.showPitchAccentGraph !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showPitchAccentGraph",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showPitchAccentGraph/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs95 === errors;}else {var valid8 = true;}if(valid8){if(data11.showIframePopupsInRootFrame !== undefined){const _errs97 = errors;if(typeof data11.showIframePopupsInRootFrame !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showIframePopupsInRootFrame",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showIframePopupsInRootFrame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs97 === errors;}else {var valid8 = true;}if(valid8){if(data11.useSecurePopupFrameUrl !== undefined){const _errs99 = errors;if(typeof data11.useSecurePopupFrameUrl !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/useSecurePopupFrameUrl",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/useSecurePopupFrameUrl/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs99 === errors;}else {var valid8 = true;}if(valid8){if(data11.usePopupShadowDom !== undefined){const _errs101 = errors;if(typeof data11.usePopupShadowDom !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/usePopupShadowDom",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/usePopupShadowDom/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs101 === errors;}else {var valid8 = true;}if(valid8){if(data11.usePopupWindow !== undefined){const _errs103 = errors;if(typeof data11.usePopupWindow !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/usePopupWindow",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/usePopupWindow/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs103 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupCurrentIndicatorMode !== undefined){let data52 = data11.popupCurrentIndicatorMode;const _errs105 = errors;if(typeof data52 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupCurrentIndicatorMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupCurrentIndicatorMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data52 === "none") || (data52 === "asterisk")) || (data52 === "triangle")) || (data52 === "bar-left")) || (data52 === "bar-right")) || (data52 === "dot-left")) || (data52 === "dot-right"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupCurrentIndicatorMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupCurrentIndicatorMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupCurrentIndicatorMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs105 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupActionBarVisibility !== undefined){let data53 = data11.popupActionBarVisibility;const _errs107 = errors;if(typeof data53 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarVisibility",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarVisibility/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data53 === "auto") || (data53 === "always"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarVisibility",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarVisibility/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupActionBarVisibility.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs107 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupActionBarLocation !== undefined){let data54 = data11.popupActionBarLocation;const _errs109 = errors;if(typeof data54 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarLocation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarLocation/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data54 === "left") || (data54 === "right")) || (data54 === "top")) || (data54 === "bottom"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarLocation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarLocation/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupActionBarLocation.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs109 === errors;}else {var valid8 = true;}if(valid8){if(data11.frequencyDisplayMode !== undefined){let data55 = data11.frequencyDisplayMode;const _errs111 = errors;if(typeof data55 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/frequencyDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/frequencyDisplayMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data55 === "tags") || (data55 === "tags-grouped")) || (data55 === "split-tags")) || (data55 === "split-tags-grouped")) || (data55 === "inline-list")) || (data55 === "list"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/frequencyDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/frequencyDisplayMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.frequencyDisplayMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs111 === errors;}else {var valid8 = true;}if(valid8){if(data11.termDisplayMode !== undefined){let data56 = data11.termDisplayMode;const _errs113 = errors;if(typeof data56 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/termDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/termDisplayMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data56 === "ruby") || (data56 === "ruby-and-reading")) || (data56 === "term-and-reading")) || (data56 === "term-only"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/termDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/termDisplayMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.termDisplayMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs113 === errors;}else {var valid8 = true;}if(valid8){if(data11.sortFrequencyDictionary !== undefined){let data57 = data11.sortFrequencyDictionary;const _errs115 = errors;if((typeof data57 !== "string") && (data57 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/sortFrequencyDictionary",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/sortFrequencyDictionary/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.general.properties.sortFrequencyDictionary.type},message:"must be string,null"}];return false;}var valid8 = _errs115 === errors;}else {var valid8 = true;}if(valid8){if(data11.sortFrequencyDictionaryOrder !== undefined){let data58 = data11.sortFrequencyDictionaryOrder;const _errs117 = errors;if(typeof data58 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/sortFrequencyDictionaryOrder",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/sortFrequencyDictionaryOrder/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data58 === "ascending") || (data58 === "descending"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/sortFrequencyDictionaryOrder",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/sortFrequencyDictionaryOrder/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.sortFrequencyDictionaryOrder.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs117 === errors;}else {var valid8 = true;}if(valid8){if(data11.stickySearchHeader !== undefined){const _errs119 = errors;if(typeof data11.stickySearchHeader !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/stickySearchHeader",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/stickySearchHeader/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs119 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableYomitanApi !== undefined){const _errs121 = errors;if(typeof data11.enableYomitanApi !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enableYomitanApi",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enableYomitanApi/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs121 === errors;}else {var valid8 = true;}if(valid8){if(data11.yomitanApiServer !== undefined){const _errs123 = errors;if(typeof data11.yomitanApiServer !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/yomitanApiServer",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/yomitanApiServer/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs123 === errors;}else {var valid8 = true;}if(valid8){if(data11.yomitanApiAllowCssSanitizationBypass !== undefined){const _errs125 = errors;if(typeof data11.yomitanApiAllowCssSanitizationBypass !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/yomitanApiAllowCssSanitizationBypass",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/yomitanApiAllowCssSanitizationBypass/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs125 === errors;}else {var valid8 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general",schemaPath:"#/properties/profiles/items/properties/options/properties/general/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs23 === errors;}else {var valid7 = true;}if(valid7){if(data10.popupWindow !== undefined){let data63 = data10.popupWindow;const _errs127 = errors;if(errors === _errs127){if(data63 && typeof data63 == "object" && !Array.isArray(data63)){let missing6;if(((((((((data63.width === undefined) && (missing6 = "width")) || ((data63.height === undefined) && (missing6 = "height"))) || ((data63.left === undefined) && (missing6 = "left"))) || ((data63.top === undefined) && (missing6 = "top"))) || ((data63.useLeft === undefined) && (missing6 = "useLeft"))) || ((data63.useTop === undefined) && (missing6 = "useTop"))) || ((data63.windowType === undefined) && (missing6 = "windowType"))) || ((data63.windowState === undefined) && (missing6 = "windowState"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"}];return false;}else {if(data63.width !== undefined){let data64 = data63.width;const _errs129 = errors;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/width",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/width/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs129){if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 0 || isNaN(data64)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/width",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid9 = _errs129 === errors;}else {var valid9 = true;}if(valid9){if(data63.height !== undefined){let data65 = data63.height;const _errs131 = errors;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/height",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/height/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs131){if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 0 || isNaN(data65)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/height",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid9 = _errs131 === errors;}else {var valid9 = true;}if(valid9){if(data63.left !== undefined){let data66 = data63.left;const _errs133 = errors;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/left",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/left/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid9 = _errs133 === errors;}else {var valid9 = true;}if(valid9){if(data63.top !== undefined){let data67 = data63.top;const _errs135 = errors;if(!(((typeof data67 == "number") && (!(data67 % 1) && !isNaN(data67))) && (isFinite(data67)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/top",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/top/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid9 = _errs135 === errors;}else {var valid9 = true;}if(valid9){if(data63.useLeft !== undefined){const _errs137 = errors;if(typeof data63.useLeft !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/useLeft",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/useLeft/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs137 === errors;}else {var valid9 = true;}if(valid9){if(data63.useTop !== undefined){const _errs139 = errors;if(typeof data63.useTop !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/useTop",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/useTop/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs139 === errors;}else {var valid9 = true;}if(valid9){if(data63.windowType !== undefined){let data70 = data63.windowType;const _errs141 = errors;if(typeof data70 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowType",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowType/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data70 === "normal") || (data70 === "popup"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowType",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowType/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.popupWindow.properties.windowType.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs141 === errors;}else {var valid9 = true;}if(valid9){if(data63.windowState !== undefined){let data71 = data63.windowState;const _errs143 = errors;if(typeof data71 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowState",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data71 === "normal") || (data71 === "maximized")) || (data71 === "fullscreen"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowState",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowState/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.popupWindow.properties.windowState.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs143 === errors;}else {var valid9 = true;}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs127 === errors;}else {var valid7 = true;}if(valid7){if(data10.audio !== undefined){let data72 = data10.audio;const _errs145 = errors;if(errors === _errs145){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing7;if(((((((data72.enabled === undefined) && (missing7 = "enabled")) || ((data72.volume === undefined) && (missing7 = "volume"))) || ((data72.autoPlay === undefined) && (missing7 = "autoPlay"))) || ((data72.fallbackSoundType === undefined) && (missing7 = "fallbackSoundType"))) || ((data72.sources === undefined) && (missing7 = "sources"))) || ((data72.enableDefaultAudioSources === undefined) && (missing7 = "enableDefaultAudioSources"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"}];return false;}else {if(data72.enabled !== undefined){const _errs147 = errors;if(typeof data72.enabled !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/enabled",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid10 = _errs147 === errors;}else {var valid10 = true;}if(valid10){if(data72.volume !== undefined){let data74 = data72.volume;const _errs149 = errors;if(errors === _errs149){if((typeof data74 == "number") && (isFinite(data74))){if(data74 > 100 || isNaN(data74)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/volume",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/volume/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"}];return false;}else {if(data74 < 0 || isNaN(data74)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/volume",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/volume/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/volume",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/volume/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid10 = _errs149 === errors;}else {var valid10 = true;}if(valid10){if(data72.autoPlay !== undefined){const _errs151 = errors;if(typeof data72.autoPlay !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/autoPlay",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/autoPlay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid10 = _errs151 === errors;}else {var valid10 = true;}if(valid10){if(data72.fallbackSoundType !== undefined){let data76 = data72.fallbackSoundType;const _errs153 = errors;if(typeof data76 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/fallbackSoundType",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/fallbackSoundType/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data76 === "none") || (data76 === "click")) || (data76 === "bloop"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/fallbackSoundType",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/fallbackSoundType/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.audio.properties.fallbackSoundType.enum},message:"must be equal to one of the allowed values"}];return false;}var valid10 = _errs153 === errors;}else {var valid10 = true;}if(valid10){if(data72.sources !== undefined){let data77 = data72.sources;const _errs155 = errors;if(errors === _errs155){if(Array.isArray(data77)){var valid11 = true;const len3 = data77.length;for(let i3=0; i3=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/delay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/delay/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs244 === errors;}else {var valid13 = true;}if(valid13){if(data83.hideDelay !== undefined){let data122 = data83.hideDelay;const _errs246 = errors;if(errors === _errs246){if((typeof data122 == "number") && (isFinite(data122))){if(data122 < 0 || isNaN(data122)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hideDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hideDelay/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hideDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hideDelay/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs246 === errors;}else {var valid13 = true;}if(valid13){if(data83.length !== undefined){let data123 = data83.length;const _errs248 = errors;if(!(((typeof data123 == "number") && (!(data123 % 1) && !isNaN(data123))) && (isFinite(data123)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/length",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/length/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs248){if((typeof data123 == "number") && (isFinite(data123))){if(data123 < 1 || isNaN(data123)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/length",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/length/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid13 = _errs248 === errors;}else {var valid13 = true;}if(valid13){if(data83.deepDomScan !== undefined){const _errs250 = errors;if(typeof data83.deepDomScan !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/deepDomScan",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/deepDomScan/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs250 === errors;}else {var valid13 = true;}if(valid13){if(data83.popupNestingMaxDepth !== undefined){let data125 = data83.popupNestingMaxDepth;const _errs252 = errors;if(!(((typeof data125 == "number") && (!(data125 % 1) && !isNaN(data125))) && (isFinite(data125)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/popupNestingMaxDepth",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/popupNestingMaxDepth/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs252){if((typeof data125 == "number") && (isFinite(data125))){if(data125 < 0 || isNaN(data125)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/popupNestingMaxDepth",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/popupNestingMaxDepth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid13 = _errs252 === errors;}else {var valid13 = true;}if(valid13){if(data83.enablePopupSearch !== undefined){const _errs254 = errors;if(typeof data83.enablePopupSearch !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enablePopupSearch",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enablePopupSearch/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs254 === errors;}else {var valid13 = true;}if(valid13){if(data83.enableOnPopupExpressions !== undefined){const _errs256 = errors;if(typeof data83.enableOnPopupExpressions !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enableOnPopupExpressions",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enableOnPopupExpressions/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs256 === errors;}else {var valid13 = true;}if(valid13){if(data83.enableOnSearchPage !== undefined){const _errs258 = errors;if(typeof data83.enableOnSearchPage !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enableOnSearchPage",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enableOnSearchPage/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs258 === errors;}else {var valid13 = true;}if(valid13){if(data83.enableSearchTags !== undefined){const _errs260 = errors;if(typeof data83.enableSearchTags !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enableSearchTags",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enableSearchTags/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs260 === errors;}else {var valid13 = true;}if(valid13){if(data83.layoutAwareScan !== undefined){const _errs262 = errors;if(typeof data83.layoutAwareScan !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/layoutAwareScan",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/layoutAwareScan/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs262 === errors;}else {var valid13 = true;}if(valid13){if(data83.matchTypePrefix !== undefined){const _errs264 = errors;if(typeof data83.matchTypePrefix !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/matchTypePrefix",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/matchTypePrefix/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs264 === errors;}else {var valid13 = true;}if(valid13){if(data83.hidePopupOnCursorExit !== undefined){const _errs266 = errors;if(typeof data83.hidePopupOnCursorExit !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hidePopupOnCursorExit",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hidePopupOnCursorExit/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs266 === errors;}else {var valid13 = true;}if(valid13){if(data83.hidePopupOnCursorExitDelay !== undefined){let data133 = data83.hidePopupOnCursorExitDelay;const _errs268 = errors;if(errors === _errs268){if((typeof data133 == "number") && (isFinite(data133))){if(data133 < 0 || isNaN(data133)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hidePopupOnCursorExitDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hidePopupOnCursorExitDelay/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hidePopupOnCursorExitDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hidePopupOnCursorExitDelay/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs268 === errors;}else {var valid13 = true;}if(valid13){if(data83.reducedMotionScrolling !== undefined){const _errs270 = errors;if(typeof data83.reducedMotionScrolling !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrolling",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrolling/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs270 === errors;}else {var valid13 = true;}if(valid13){if(data83.reducedMotionScrollingScale !== undefined){let data135 = data83.reducedMotionScrollingScale;const _errs272 = errors;if(!((typeof data135 == "number") && (isFinite(data135)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrollingScale",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrollingScale/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid13 = _errs272 === errors;}else {var valid13 = true;}if(valid13){if(data83.reducedMotionScrollingSwipeThreshold !== undefined){let data136 = data83.reducedMotionScrollingSwipeThreshold;const _errs274 = errors;if(errors === _errs274){if((typeof data136 == "number") && (isFinite(data136))){if(data136 < 0 || isNaN(data136)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrollingSwipeThreshold",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrollingSwipeThreshold/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrollingSwipeThreshold",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrollingSwipeThreshold/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs274 === errors;}else {var valid13 = true;}if(valid13){if(data83.normalizeCssZoom !== undefined){const _errs276 = errors;if(typeof data83.normalizeCssZoom !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/normalizeCssZoom",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/normalizeCssZoom/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs276 === errors;}else {var valid13 = true;}if(valid13){if(data83.scanWithoutMousemove !== undefined){const _errs278 = errors;if(typeof data83.scanWithoutMousemove !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanWithoutMousemove",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanWithoutMousemove/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs278 === errors;}else {var valid13 = true;}if(valid13){if(data83.scanResolution !== undefined){let data139 = data83.scanResolution;const _errs280 = errors;if(typeof data139 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanResolution/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data139 === "character") || (data139 === "word"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanResolution/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.scanning.properties.scanResolution.enum},message:"must be equal to one of the allowed values"}];return false;}var valid13 = _errs280 === errors;}else {var valid13 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs168 === errors;}else {var valid7 = true;}if(valid7){if(data10.translation !== undefined){let data140 = data10.translation;const _errs282 = errors;if(errors === _errs282){if(data140 && typeof data140 == "object" && !Array.isArray(data140)){let missing15;if(((data140.textReplacements === undefined) && (missing15 = "textReplacements")) || ((data140.searchResolution === undefined) && (missing15 = "searchResolution"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/required",keyword:"required",params:{missingProperty: missing15},message:"must have required property '"+missing15+"'"}];return false;}else {if(data140.searchResolution !== undefined){let data141 = data140.searchResolution;const _errs284 = errors;if(typeof data141 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/searchResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/searchResolution/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data141 === "letter") || (data141 === "word"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/searchResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/searchResolution/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.translation.properties.searchResolution.enum},message:"must be equal to one of the allowed values"}];return false;}var valid20 = _errs284 === errors;}else {var valid20 = true;}if(valid20){if(data140.textReplacements !== undefined){let data142 = data140.textReplacements;const _errs286 = errors;if(errors === _errs286){if(data142 && typeof data142 == "object" && !Array.isArray(data142)){let missing16;if(((data142.searchOriginal === undefined) && (missing16 = "searchOriginal")) || ((data142.groups === undefined) && (missing16 = "groups"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/required",keyword:"required",params:{missingProperty: missing16},message:"must have required property '"+missing16+"'"}];return false;}else {if(data142.searchOriginal !== undefined){const _errs288 = errors;if(typeof data142.searchOriginal !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/searchOriginal",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/searchOriginal/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid21 = _errs288 === errors;}else {var valid21 = true;}if(valid21){if(data142.groups !== undefined){let data144 = data142.groups;const _errs290 = errors;if(errors === _errs290){if(Array.isArray(data144)){var valid22 = true;const len5 = data144.length;for(let i5=0; i5 100 || isNaN(data172)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/quality",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/quality/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"}];return false;}else {if(data172 < 0 || isNaN(data172)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/quality",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/quality/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid30 = _errs346 === errors;}else {var valid30 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid28 = _errs342 === errors;}else {var valid28 = true;}if(valid28){if(data165.cardFormats !== undefined){let data173 = data165.cardFormats;const _errs348 = errors;if(errors === _errs348){if(Array.isArray(data173)){var valid31 = true;const len9 = data173.length;for(let i9=0; i9=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/downloadTimeout",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/downloadTimeout/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid28 = _errs393 === errors;}else {var valid28 = true;}if(valid28){if(data165.forceSync !== undefined){const _errs395 = errors;if(typeof data165.forceSync !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/forceSync",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/forceSync/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid28 = _errs395 === errors;}else {var valid28 = true;}}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs332 === errors;}else {var valid7 = true;}if(valid7){if(data10.sentenceParsing !== undefined){let data197 = data10.sentenceParsing;const _errs397 = errors;if(errors === _errs397){if(data197 && typeof data197 == "object" && !Array.isArray(data197)){let missing23;if((((data197.scanExtent === undefined) && (missing23 = "scanExtent")) || ((data197.terminationCharacterMode === undefined) && (missing23 = "terminationCharacterMode"))) || ((data197.terminationCharacters === undefined) && (missing23 = "terminationCharacters"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"}];return false;}else {if(data197.scanExtent !== undefined){let data198 = data197.scanExtent;const _errs399 = errors;if(!(((typeof data198 == "number") && (!(data198 % 1) && !isNaN(data198))) && (isFinite(data198)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/scanExtent",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/scanExtent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs399){if((typeof data198 == "number") && (isFinite(data198))){if(data198 < 0 || isNaN(data198)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/scanExtent",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/scanExtent/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid36 = _errs399 === errors;}else {var valid36 = true;}if(valid36){if(data197.terminationCharacterMode !== undefined){let data199 = data197.terminationCharacterMode;const _errs401 = errors;if(typeof data199 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacterMode",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacterMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data199 === "custom") || (data199 === "custom-no-newlines")) || (data199 === "newlines")) || (data199 === "none"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacterMode",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacterMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.sentenceParsing.properties.terminationCharacterMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid36 = _errs401 === errors;}else {var valid36 = true;}if(valid36){if(data197.terminationCharacters !== undefined){let data200 = data197.terminationCharacters;const _errs403 = errors;if(errors === _errs403){if(Array.isArray(data200)){var valid37 = true;const len11 = data200.length;for(let i11=0; i11 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character1",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character1/maxLength",keyword:"maxLength",params:{limit: 1},message:"must NOT have more than 1 characters"}];return false;}else {if(func2(data203) < 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character1",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character1/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character1",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid38 = _errs409 === errors;}else {var valid38 = true;}if(valid38){if(data201.character2 !== undefined){let data204 = data201.character2;const _errs411 = errors;if((typeof data204 !== "string") && (data204 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character2",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character2/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.sentenceParsing.properties.terminationCharacters.items.properties.character2.type},message:"must be string,null"}];return false;}if(errors === _errs411){if(typeof data204 === "string"){if(func2(data204) > 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character2",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character2/maxLength",keyword:"maxLength",params:{limit: 1},message:"must NOT have more than 1 characters"}];return false;}else {if(func2(data204) < 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character2",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character2/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid38 = _errs411 === errors;}else {var valid38 = true;}if(valid38){if(data201.includeCharacterAtStart !== undefined){const _errs413 = errors;if(typeof data201.includeCharacterAtStart !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/includeCharacterAtStart",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/includeCharacterAtStart/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid38 = _errs413 === errors;}else {var valid38 = true;}if(valid38){if(data201.includeCharacterAtEnd !== undefined){const _errs415 = errors;if(typeof data201.includeCharacterAtEnd !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/includeCharacterAtEnd",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/includeCharacterAtEnd/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid38 = _errs415 === errors;}else {var valid38 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11,schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid37 = _errs405 === errors;if(!valid37){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid36 = _errs403 === errors;}else {var valid36 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs397 === errors;}else {var valid7 = true;}if(valid7){if(data10.inputs !== undefined){let data207 = data10.inputs;const _errs417 = errors;if(errors === _errs417){if(data207 && typeof data207 == "object" && !Array.isArray(data207)){let missing25;if((data207.hotkeys === undefined) && (missing25 = "hotkeys")){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"}];return false;}else {if(data207.hotkeys !== undefined){let data208 = data207.hotkeys;const _errs419 = errors;if(errors === _errs419){if(Array.isArray(data208)){var valid40 = true;const len12 = data208.length;for(let i12=0; i12=", limit: 0},message:"must be >= 0"}];return false;}}}var valid44 = _errs447 === errors;}else {var valid44 = true;}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs439 === errors;}else {var valid7 = true;}if(valid7){if(data10.accessibility !== undefined){let data223 = data10.accessibility;const _errs449 = errors;if(errors === _errs449){if(data223 && typeof data223 == "object" && !Array.isArray(data223)){let missing28;if((data223.forceGoogleDocsHtmlRendering === undefined) && (missing28 = "forceGoogleDocsHtmlRendering")){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/accessibility",schemaPath:"#/properties/profiles/items/properties/options/properties/accessibility/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"}];return false;}else {if(data223.forceGoogleDocsHtmlRendering !== undefined){if(typeof data223.forceGoogleDocsHtmlRendering !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/accessibility/forceGoogleDocsHtmlRendering",schemaPath:"#/properties/profiles/items/properties/options/properties/accessibility/properties/forceGoogleDocsHtmlRendering/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/accessibility",schemaPath:"#/properties/profiles/items/properties/options/properties/accessibility/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs449 === errors;}else {var valid7 = true;}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options",schemaPath:"#/properties/profiles/items/properties/options/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0,schemaPath:"#/properties/profiles/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.profileCurrent !== undefined){let data225 = data.profileCurrent;const _errs453 = errors;if(!(((typeof data225 == "number") && (!(data225 % 1) && !isNaN(data225))) && (isFinite(data225)))){validate21.errors = [{instancePath:instancePath+"/profileCurrent",schemaPath:"#/properties/profileCurrent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs453){if((typeof data225 == "number") && (isFinite(data225))){if(data225 < 0 || isNaN(data225)){validate21.errors = [{instancePath:instancePath+"/profileCurrent",schemaPath:"#/properties/profileCurrent/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs453 === errors;}else {var valid0 = true;}if(valid0){if(data.global !== undefined){let data226 = data.global;const _errs455 = errors;if(errors === _errs455){if(data226 && typeof data226 == "object" && !Array.isArray(data226)){let missing29;if(((data226.database === undefined) && (missing29 = "database")) || ((data226.dataTransmissionConsentShown === undefined) && (missing29 = "dataTransmissionConsentShown"))){validate21.errors = [{instancePath:instancePath+"/global",schemaPath:"#/properties/global/required",keyword:"required",params:{missingProperty: missing29},message:"must have required property '"+missing29+"'"}];return false;}else {if(data226.database !== undefined){let data227 = data226.database;const _errs457 = errors;if(errors === _errs457){if(data227 && typeof data227 == "object" && !Array.isArray(data227)){let missing30;if((data227.prefixWildcardsSupported === undefined) && (missing30 = "prefixWildcardsSupported")){validate21.errors = [{instancePath:instancePath+"/global/database",schemaPath:"#/properties/global/properties/database/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"}];return false;}else {if(data227.prefixWildcardsSupported !== undefined){if(typeof data227.prefixWildcardsSupported !== "boolean"){validate21.errors = [{instancePath:instancePath+"/global/database/prefixWildcardsSupported",schemaPath:"#/properties/global/properties/database/properties/prefixWildcardsSupported/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}}else {validate21.errors = [{instancePath:instancePath+"/global/database",schemaPath:"#/properties/global/properties/database/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid46 = _errs457 === errors;}else {var valid46 = true;}if(valid46){if(data226.dataTransmissionConsentShown !== undefined){const _errs461 = errors;if(typeof data226.dataTransmissionConsentShown !== "boolean"){validate21.errors = [{instancePath:instancePath+"/global/dataTransmissionConsentShown",schemaPath:"#/properties/global/properties/dataTransmissionConsentShown/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid46 = _errs461 === errors;}else {var valid46 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/global",schemaPath:"#/properties/global/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs455 === errors;}else {var valid0 = true;}}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}export const recommendedDictionaries = validate22;const schema34 = {"$id":"recommendedDictionaries","$schema":"http://json-schema.org/draft-07/schema#","description":"Contains data for recommended dictionaries on welcome page.","type":"object","patternProperties":{"^.{2,}$":{"type":"object","properties":{"terms":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"kanji":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"frequency":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"grammar":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"pronunciation":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}}},"required":["terms","kanji","frequency","grammar"],"additionalProperties":false}},"definitions":{"Dictionary":{"type":"object","required":["name","downloadUrl","description"],"properties":{"name":{"type":"string","minLength":2},"downloadUrl":{"type":"string","minLength":2},"description":{"type":"string","minLength":2},"homepage":{"type":"string","minLength":2}}}}};const schema35 = {"type":"object","required":["name","downloadUrl","description"],"properties":{"name":{"type":"string","minLength":2},"downloadUrl":{"type":"string","minLength":2},"description":{"type":"string","minLength":2},"homepage":{"type":"string","minLength":2}}};const pattern4 = new RegExp("^.{2,}$", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="recommendedDictionaries" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){var valid0 = true;for(const key0 in data){if(pattern4.test(key0)){let data0 = data[key0];const _errs1 = errors;if(errors === _errs1){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing0;if(((((data0.terms === undefined) && (missing0 = "terms")) || ((data0.kanji === undefined) && (missing0 = "kanji"))) || ((data0.frequency === undefined) && (missing0 = "frequency"))) || ((data0.grammar === undefined) && (missing0 = "grammar"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs3 = errors;for(const key1 in data0){if(!(((((key1 === "terms") || (key1 === "kanji")) || (key1 === "frequency")) || (key1 === "grammar")) || (key1 === "pronunciation"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs3 === errors){if(data0.terms !== undefined){let data1 = data0.terms;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){var valid2 = true;const len0 = data1.length;for(let i0=0; i0