diff --git a/antlr/src/main/antlr/FSH.g4 b/antlr/src/main/antlr/FSH.g4 index 512481d39..02b036efe 100644 --- a/antlr/src/main/antlr/FSH.g4 +++ b/antlr/src/main/antlr/FSH.g4 @@ -26,7 +26,7 @@ invariantRule: fixedValueRule | insertRule | pathRule; valueSet: KW_VALUESET name vsMetadata* vsRule*; vsMetadata: id | title | description; -vsRule: vsComponent | caretValueRule | insertRule; +vsRule: vsComponent | caretValueRule | codeCaretValueRule | insertRule | codeInsertRule; codeSystem: KW_CODESYSTEM name csMetadata* csRule*; csMetadata: id | title | description; csRule: concept | codeCaretValueRule | codeInsertRule; @@ -90,8 +90,7 @@ pathRule: STAR path; // VALUESET COMPONENTS vsComponent: STAR ( KW_INCLUDE | KW_EXCLUDE )? ( vsConceptComponent | vsFilterComponent ); -vsConceptComponent: code vsComponentFrom? - | (code KW_AND)+ code vsComponentFrom; +vsConceptComponent: code vsComponentFrom?; vsFilterComponent: KW_CODES vsComponentFrom (KW_WHERE vsFilterList)?; vsComponentFrom: KW_FROM (vsFromSystem (KW_AND vsFromValueset)? | vsFromValueset (KW_AND vsFromSystem)?); vsFromSystem: KW_SYSTEM name; diff --git a/src/export/ValueSetExporter.ts b/src/export/ValueSetExporter.ts index 3b6980b36..435526cba 100644 --- a/src/export/ValueSetExporter.ts +++ b/src/export/ValueSetExporter.ts @@ -19,7 +19,7 @@ import { assignInstanceFromRawValue } from '../fhirtypes/common'; import { isUri } from 'valid-url'; -import { flatMap } from 'lodash'; +import { flatMap, partition } from 'lodash'; export class ValueSetExporter { constructor(private readonly tank: FSHTank, private pkg: Package, private fisher: MasterFisher) {} @@ -210,6 +210,65 @@ export class ValueSetExporter { } } + private setConceptCaretRules(vs: ValueSet, rules: CaretValueRule[]) { + resolveSoftIndexing(rules); + for (const rule of rules) { + const splitConcept = rule.pathArray[0].split('#'); + const system = splitConcept[0]; + const code = splitConcept.slice(1).join('#'); + const systemMeta = this.fisher.fishForMetadata(system, Type.CodeSystem); + let composeIndex = + vs.compose?.include?.findIndex(composeElement => { + return composeElement.system === system || composeElement.system === systemMeta?.url; + }) ?? -1; + let composeArray: string; + let composeElement: ValueSetComposeIncludeOrExclude; + let conceptIndex = -1; + if (composeIndex !== -1) { + composeArray = 'include'; + composeElement = vs.compose.include[composeIndex]; + conceptIndex = composeElement?.concept?.findIndex(concept => { + return concept.code === code; + }); + } + if (conceptIndex === -1) { + composeIndex = + vs.compose?.exclude?.findIndex(composeElement => { + return composeElement.system === system; + }) ?? -1; + if (composeIndex !== -1) { + composeArray = 'exclude'; + composeElement = vs.compose.exclude[composeIndex]; + conceptIndex = composeElement?.concept?.findIndex(concept => { + return concept.code === code; + }); + } + } + + if (conceptIndex !== -1) { + if (rule.isInstance) { + const instanceExporter = new InstanceExporter(this.tank, this.pkg, this.fisher); + const instance = instanceExporter.fishForFHIR(rule.value as string); + if (instance == null) { + logger.error( + `Cannot find definition for Instance: ${rule.value}. Skipping rule.`, + rule.sourceInfo + ); + continue; + } + rule.value = instance; + } + const fullPath = `compose.${composeArray}[${composeIndex}].concept[${conceptIndex}].${rule.caretPath}`; + setPropertyOnDefinitionInstance(vs, fullPath, rule.value, this.fisher); + } else { + logger.error( + `Could not find concept ${rule.pathArray[0]}, skipping rule.`, + rule.sourceInfo + ); + } + } + } + private filterValueToString(value: ValueSetFilterValue): string { if (value instanceof RegExp) { return value.source; @@ -248,16 +307,20 @@ export class ValueSetExporter { } const vs = new ValueSet(); this.setMetadata(vs, fshDefinition); - this.setCaretRules( - vs, - fshDefinition.rules.filter(rule => rule instanceof CaretValueRule) as CaretValueRule[] + const [conceptCaretRules, otherCaretRules] = partition( + fshDefinition.rules.filter(rule => rule instanceof CaretValueRule) as CaretValueRule[], + caretRule => { + return caretRule.pathArray.length > 0; + } ); + this.setCaretRules(vs, otherCaretRules); this.setCompose( vs, fshDefinition.rules.filter( rule => rule instanceof ValueSetComponentRule ) as ValueSetComponentRule[] ); + this.setConceptCaretRules(vs, conceptCaretRules); if (vs.compose && vs.compose.include.length == 0) { throw new ValueSetComposeError(fshDefinition.name); } diff --git a/src/import/FSHErrorListener.ts b/src/import/FSHErrorListener.ts index 2a8eb99f0..7024ee3a6 100644 --- a/src/import/FSHErrorListener.ts +++ b/src/import/FSHErrorListener.ts @@ -235,13 +235,17 @@ export class FSHErrorListener extends ErrorListener { // * onset[x], abatement[x] MS // > extraneous input 'abatement[x]' expecting {, KW_ALIAS, KW_PROFILE, KW_EXTENSION, // > KW_INSTANCE, KW_INVARIANT, KW_VALUESET, KW_CODESYSTEM, KW_RULESET, KW_MAPPING, KW_LOGICAL, KW_RESOURCE} - // * #hippo, #crocodile , #emu from system ZOO - // > extraneous input '#crocodile' expecting {, KW_ALIAS, KW_PROFILE, KW_EXTENSION, - // > KW_INSTANCE, KW_INVARIANT, KW_VALUESET, KW_CODESYSTEM, KW_RULESET, KW_MAPPING, KW_LOGICAL, KW_RESOURCE} // * codes from valueset FirstZooVS, SecondZooVS // > extraneous input 'SecondZooVS' expecting {, KW_ALIAS, KW_PROFILE, KW_EXTENSION, // > KW_INSTANCE, KW_INVARIANT, KW_VALUESET, KW_CODESYSTEM, KW_RULESET, KW_MAPPING, KW_LOGICAL, KW_RESOURCE} - else if (/^extraneous input/.test(msg) && /,$/.test(oneTokenBack?.text)) { + // * #hippo, #crocodile , #emu from system ZOO + // > no viable alternative at input '\n* #hippo, #crocodile ,' + // * #hippo, #crocodile, #emu from system ZOO + // > no viable alternative at input '\n* #hippo, #crocodile, #emu from' + else if ( + (/^extraneous input/.test(msg) || /^no viable alternative at input '/.test(msg)) && + (/,$/.test(oneTokenBack?.text) || /,$/.test(twoTokensBack?.text)) + ) { message = "Using ',' to list items is no longer supported. Use 'and' to list multiple items."; } diff --git a/src/import/FSHImporter.ts b/src/import/FSHImporter.ts index 7d5786489..da607adfe 100644 --- a/src/import/FSHImporter.ts +++ b/src/import/FSHImporter.ts @@ -1171,16 +1171,42 @@ export class FSHImporter extends FSHVisitor { } if (ctx.caretValueRule()) { const rule = this.visitCaretValueRule(ctx.caretValueRule()); - if (rule.path) { + if (ctx.caretValueRule().path()) { logger.error( 'Caret rule on ValueSet cannot contain path before ^, skipping rule.', rule.sourceInfo ); } else { - return this.visitCaretValueRule(ctx.caretValueRule()); + // if this rule is indented, it may have a concept context + // but it never needs a regular path. + rule.path = ''; + return rule; + } + } else if (ctx.codeCaretValueRule()) { + const rule = this.visitCodeCaretValueRule(ctx.codeCaretValueRule(), true); + // the rule needs to have a caretPath, a value, and a pathArray with one element. + // various syntax errors may lead to some of these values being missing. + // the appropriate error has already been logged by FSHErrorHandler. + if (rule.pathArray.length > 1) { + logger.error( + 'Only one concept may be listed before a caret rule on a ValueSet.', + rule.sourceInfo + ); + } else if (rule.caretPath != null && rule.value != null) { + return rule; } } else if (ctx.insertRule()) { - return this.visitInsertRule(ctx.insertRule()); + return this.visitInsertRule(ctx.insertRule(), true); + } else if (ctx.codeInsertRule()) { + const rule = this.visitCodeInsertRule(ctx.codeInsertRule(), true); + if (rule.pathArray.length > 1) { + logger.error( + 'Only one concept may be listed before an insert rule on a ValueSet.', + rule.sourceInfo + ); + } else { + return rule; + } } } @@ -1240,9 +1266,10 @@ export class FSHImporter extends FSHVisitor { pathArray: string[], parentCtx: ParserRuleContext, isPathRule = false, - isInstanceRule = false + isInstanceRule = false, + suppressError = false ): string[] { - return this.prependPathContext(pathArray, parentCtx, isPathRule, isInstanceRule); + return this.prependPathContext(pathArray, parentCtx, isPathRule, isInstanceRule, suppressError); } visitPath(ctx: pc.PathContext): string { @@ -1711,10 +1738,17 @@ export class FSHImporter extends FSHVisitor { return caretValueRule; } - visitCodeCaretValueRule(ctx: pc.CodeCaretValueRuleContext): CaretValueRule { + // when parsing a ValueSet, we need to keep the system. + // in all other cases, the system is not needed. + visitCodeCaretValueRule(ctx: pc.CodeCaretValueRuleContext, keepSystem = false): CaretValueRule { const localCodePath = ctx.CODE() ? ctx.CODE().map(code => { - return this.parseCodeLexeme(code.getText(), ctx).code; + const parsedCode = this.parseCodeLexeme(code.getText(), ctx); + if (keepSystem) { + return `${parsedCode.system ?? ''}#${parsedCode.code}`; + } else { + return parsedCode.code; + } }) : []; const fullCodePath = this.getArrayPathWithContext(localCodePath, ctx); @@ -1724,13 +1758,13 @@ export class FSHImporter extends FSHVisitor { .withFile(this.currentFile); caretRule.pathArray = fullCodePath; // Get the caret path, but slice off the starting ^ - caretRule.caretPath = this.visitCaretPath(ctx.caretPath()).slice(1); + caretRule.caretPath = this.visitCaretPath(ctx.caretPath())?.slice(1); caretRule.value = this.visitValue(ctx.value()); // for numbers and booleans, keep the raw value to handle cases where an Instance id looks like a number - if (ctx.value().NUMBER()) { + if (ctx.value()?.NUMBER()) { caretRule.rawValue = ctx.value().NUMBER().getText(); } - if (ctx.value().bool()) { + if (ctx.value()?.bool()) { caretRule.rawValue = ctx.value().bool().getText(); } caretRule.isInstance = @@ -1760,22 +1794,34 @@ export class FSHImporter extends FSHVisitor { return pathRule; } - visitCodeInsertRule(ctx: pc.CodeInsertRuleContext): InsertRule { + // when parsing a ValueSet, we need to keep the system. + // in all other cases, the system is not needed. + visitCodeInsertRule(ctx: pc.CodeInsertRuleContext, keepSystem = false): InsertRule { const insertRule = new InsertRule('') .withLocation(this.extractStartStop(ctx)) .withFile(this.currentFile); const localCodePath = ctx.CODE().map(code => { - return this.parseCodeLexeme(code.getText(), ctx).code; + const parsedCode = this.parseCodeLexeme(code.getText(), ctx); + if (keepSystem) { + return `${parsedCode.system ?? ''}#${parsedCode.code}`; + } else { + return parsedCode.code; + } }); const fullCodePath = this.getArrayPathWithContext(localCodePath, ctx); insertRule.pathArray = fullCodePath; return this.applyRuleSetParams(ctx, insertRule); } - visitInsertRule(ctx: pc.InsertRuleContext): InsertRule { - const insertRule = new InsertRule(this.getPathWithContext(this.visitPath(ctx.path()), ctx)) + visitInsertRule(ctx: pc.InsertRuleContext, withPathArray = false): InsertRule { + const localPath = this.visitPath(ctx.path()); + const fullPathArray = this.getArrayPathWithContext(localPath === '' ? [] : [localPath], ctx); + const insertRule = new InsertRule(fullPathArray.join('.')) .withLocation(this.extractStartStop(ctx)) .withFile(this.currentFile); + if (withPathArray) { + insertRule.pathArray = fullPathArray; + } return this.applyRuleSetParams(ctx, insertRule); } @@ -1990,6 +2036,20 @@ export class FSHImporter extends FSHVisitor { [vsComponent.concepts, vsComponent.from] = this.visitVsConceptComponent( ctx.vsConceptComponent() ); + if (vsComponent.concepts.length === 1) { + // set context... but if this is indented, this will produce the "don't indent me" error a second time + // so, we set a flag to tell it to not produce that error. + this.getArrayPathWithContext( + [`${vsComponent.concepts[0].system}#${vsComponent.concepts[0].code}`], + ctx, + false, + false, + true + ); + } else { + // reset the context + this.getArrayPathWithContext([], ctx, false, false, true); + } } else if (ctx.vsFilterComponent()) { vsComponent = new ValueSetFilterComponentRule(inclusion) .withLocation(this.extractStartStop(ctx)) @@ -1997,6 +2057,8 @@ export class FSHImporter extends FSHVisitor { [vsComponent.filters, vsComponent.from] = this.visitVsFilterComponent( ctx.vsFilterComponent() ); + // reset the context + this.getArrayPathWithContext([], ctx, false, false, true); } return vsComponent; } @@ -2006,41 +2068,26 @@ export class FSHImporter extends FSHVisitor { const from: ValueSetComponentFrom = ctx.vsComponentFrom() ? this.visitVsComponentFrom(ctx.vsComponentFrom()) : {}; - if (ctx.code().length === 1) { - const singleCode = this.visitCode(ctx.code()[0]); - if (singleCode.system && from.system) { - logger.error(`Concept ${singleCode.code} specifies system multiple times`, { - file: this.currentFile, - location: this.extractStartStop(ctx) - }); - } else if (singleCode.system) { - from.system = singleCode.system; - concepts.push(singleCode); - } else if (from.system) { - singleCode.system = from.system; - concepts.push(singleCode); - } else { - logger.error( - `Concept ${singleCode.code} must include system as "SYSTEM#CONCEPT" or "#CONCEPT from system SYSTEM"`, - { - file: this.currentFile, - location: this.extractStartStop(ctx) - } - ); - } - } else if (ctx.code().length > 1) { - if (from.system) { - ctx.code().forEach(code => { - const newCode = this.visitCode(code); - newCode.system = from.system; - concepts.push(newCode); - }); - } else { - logger.error('System is required when listing concepts in a value set component', { + const singleCode = this.visitCode(ctx.code()); + if (singleCode.system && from.system) { + logger.error(`Concept ${singleCode.code} specifies system multiple times`, { + file: this.currentFile, + location: this.extractStartStop(ctx) + }); + } else if (singleCode.system) { + from.system = singleCode.system; + concepts.push(singleCode); + } else if (from.system) { + singleCode.system = from.system; + concepts.push(singleCode); + } else { + logger.error( + `Concept ${singleCode.code} must include system as "SYSTEM#CONCEPT" or "#CONCEPT from system SYSTEM"`, + { file: this.currentFile, location: this.extractStartStop(ctx) - }); - } + } + ); } return [concepts, from]; } @@ -2194,10 +2241,11 @@ export class FSHImporter extends FSHVisitor { path: string[], parentCtx: ParserRuleContext, isPathRule: boolean, - isInstanceRule: boolean + isInstanceRule: boolean, + suppressError: boolean ): string[] { try { - const location = this.extractStartStop(parentCtx); + const location = this.extractStartStop(parentCtx, suppressError); const currentIndent = location.startColumn - DEFAULT_START_COLUMN; const contextIndex = currentIndent / INDENT_WIDTH; @@ -2241,7 +2289,7 @@ export class FSHImporter extends FSHVisitor { // Otherwise, get the context based on the indent level. const currentContext = this.pathContext[contextIndex - 1]; - if (currentContext.length === 0) { + if (currentContext.length === 0 && !suppressError) { logger.error( 'Rule cannot be indented below rule which has no path. The rule will be processed as if it is not indented.', { location, file: this.currentFile } @@ -2416,7 +2464,7 @@ export class FSHImporter extends FSHVisitor { } } - private extractStartStop(ctx: ParserRuleContext): TextLocation { + private extractStartStop(ctx: ParserRuleContext, suppressError = false): TextLocation { if (pc.isStarContext(ctx)) { const location = { startLine: ctx.STAR().symbol.line + 1, @@ -2425,6 +2473,7 @@ export class FSHImporter extends FSHVisitor { endColumn: ctx.stop.stop - ctx.stop.start + ctx.stop.column + 1 }; if ( + !suppressError && !(pc.containsPathContext(ctx) || pc.containsCodePathContext(ctx)) && location.startColumn - DEFAULT_START_COLUMN > 0 ) { diff --git a/src/import/generated/FSH.interp b/src/import/generated/FSH.interp index e0903286d..85a699d21 100644 --- a/src/import/generated/FSH.interp +++ b/src/import/generated/FSH.interp @@ -277,4 +277,4 @@ mostAlphaKeywords atn: -[4, 1, 89, 838, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 1, 0, 5, 0, 184, 8, 0, 10, 0, 12, 0, 187, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 203, 8, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 4, 3, 213, 8, 3, 11, 3, 12, 3, 214, 1, 3, 5, 3, 218, 8, 3, 10, 3, 12, 3, 221, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 227, 8, 4, 10, 4, 12, 4, 230, 9, 4, 1, 4, 5, 4, 233, 8, 4, 10, 4, 12, 4, 236, 9, 4, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 242, 8, 5, 10, 5, 12, 5, 245, 9, 5, 1, 5, 5, 5, 248, 8, 5, 10, 5, 12, 5, 251, 9, 5, 1, 6, 1, 6, 1, 6, 5, 6, 256, 8, 6, 10, 6, 12, 6, 259, 9, 6, 1, 6, 5, 6, 262, 8, 6, 10, 6, 12, 6, 265, 9, 6, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 271, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 283, 8, 8, 1, 9, 1, 9, 1, 9, 3, 9, 288, 8, 9, 1, 10, 1, 10, 1, 10, 5, 10, 293, 8, 10, 10, 10, 12, 10, 296, 9, 10, 1, 10, 5, 10, 299, 8, 10, 10, 10, 12, 10, 302, 9, 10, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 308, 8, 11, 1, 12, 1, 12, 1, 12, 3, 12, 313, 8, 12, 1, 13, 1, 13, 1, 13, 5, 13, 318, 8, 13, 10, 13, 12, 13, 321, 9, 13, 1, 13, 5, 13, 324, 8, 13, 10, 13, 12, 13, 327, 9, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 333, 8, 14, 1, 15, 1, 15, 1, 15, 3, 15, 338, 8, 15, 1, 16, 1, 16, 1, 16, 5, 16, 343, 8, 16, 10, 16, 12, 16, 346, 9, 16, 1, 16, 5, 16, 349, 8, 16, 10, 16, 12, 16, 352, 9, 16, 1, 17, 1, 17, 1, 17, 3, 17, 357, 8, 17, 1, 18, 1, 18, 1, 18, 3, 18, 362, 8, 18, 1, 19, 1, 19, 1, 19, 5, 19, 367, 8, 19, 10, 19, 12, 19, 370, 9, 19, 1, 19, 5, 19, 373, 8, 19, 10, 19, 12, 19, 376, 9, 19, 1, 20, 1, 20, 1, 20, 3, 20, 381, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 386, 8, 21, 1, 22, 1, 22, 1, 22, 4, 22, 391, 8, 22, 11, 22, 12, 22, 392, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 403, 8, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 5, 25, 411, 8, 25, 10, 25, 12, 25, 414, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 5, 28, 424, 8, 28, 10, 28, 12, 28, 427, 9, 28, 1, 29, 1, 29, 1, 29, 5, 29, 432, 8, 29, 10, 29, 12, 29, 435, 9, 29, 1, 29, 5, 29, 438, 8, 29, 10, 29, 12, 29, 441, 9, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 448, 8, 30, 1, 31, 1, 31, 1, 31, 3, 31, 453, 8, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 5, 43, 490, 8, 43, 10, 43, 12, 43, 493, 9, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 5, 46, 503, 8, 46, 10, 46, 12, 46, 506, 9, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 514, 8, 47, 10, 47, 12, 47, 517, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 523, 8, 48, 10, 48, 12, 48, 526, 9, 48, 1, 48, 4, 48, 529, 8, 48, 11, 48, 12, 48, 530, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 538, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 545, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 5, 51, 553, 8, 51, 10, 51, 12, 51, 556, 9, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 564, 8, 52, 10, 52, 12, 52, 567, 9, 52, 1, 53, 1, 53, 3, 53, 571, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 577, 8, 53, 10, 53, 12, 53, 580, 9, 53, 1, 54, 1, 54, 3, 54, 584, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 5, 55, 592, 8, 55, 10, 55, 12, 55, 595, 9, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 3, 56, 603, 8, 56, 1, 56, 1, 56, 1, 56, 3, 56, 608, 8, 56, 1, 56, 3, 56, 611, 8, 56, 1, 57, 1, 57, 3, 57, 615, 8, 57, 1, 57, 1, 57, 1, 57, 3, 57, 620, 8, 57, 1, 58, 1, 58, 5, 58, 624, 8, 58, 10, 58, 12, 58, 627, 9, 58, 1, 58, 1, 58, 1, 58, 3, 58, 632, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 638, 8, 59, 10, 59, 12, 59, 641, 9, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 647, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 5, 60, 653, 8, 60, 10, 60, 12, 60, 656, 9, 60, 1, 60, 1, 60, 1, 60, 5, 60, 661, 8, 60, 10, 60, 12, 60, 664, 9, 60, 1, 60, 1, 60, 3, 60, 668, 8, 60, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 3, 62, 675, 8, 62, 1, 62, 1, 62, 3, 62, 679, 8, 62, 1, 63, 1, 63, 3, 63, 683, 8, 63, 1, 63, 1, 63, 1, 63, 4, 63, 688, 8, 63, 11, 63, 12, 63, 689, 1, 63, 1, 63, 1, 63, 3, 63, 695, 8, 63, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 701, 8, 64, 1, 65, 1, 65, 1, 65, 1, 65, 3, 65, 707, 8, 65, 1, 65, 1, 65, 1, 65, 3, 65, 712, 8, 65, 3, 65, 714, 8, 65, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 5, 67, 723, 8, 67, 10, 67, 12, 67, 726, 9, 67, 1, 68, 1, 68, 1, 68, 5, 68, 731, 8, 68, 10, 68, 12, 68, 734, 9, 68, 1, 69, 1, 69, 1, 69, 3, 69, 739, 8, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 748, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 3, 73, 755, 8, 73, 1, 74, 1, 74, 1, 75, 1, 75, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 775, 8, 77, 1, 78, 1, 78, 1, 78, 3, 78, 780, 8, 78, 1, 78, 1, 78, 5, 78, 784, 8, 78, 10, 78, 12, 78, 787, 9, 78, 1, 79, 1, 79, 3, 79, 791, 8, 79, 1, 80, 1, 80, 4, 80, 795, 8, 80, 11, 80, 12, 80, 796, 1, 80, 3, 80, 800, 8, 80, 1, 80, 3, 80, 803, 8, 80, 1, 81, 1, 81, 1, 81, 3, 81, 808, 8, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 3, 83, 816, 8, 83, 1, 84, 1, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 3, 87, 826, 8, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 3, 89, 834, 8, 89, 1, 90, 1, 90, 1, 90, 0, 0, 91, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 0, 15, 2, 0, 62, 62, 73, 73, 2, 0, 78, 78, 80, 80, 2, 0, 79, 79, 81, 81, 2, 0, 1, 4, 6, 10, 1, 0, 58, 59, 2, 0, 82, 82, 84, 84, 2, 0, 83, 83, 85, 85, 1, 0, 44, 45, 2, 0, 53, 53, 73, 73, 5, 0, 26, 30, 46, 46, 48, 49, 60, 60, 73, 73, 1, 0, 25, 30, 1, 0, 32, 35, 1, 0, 61, 62, 1, 0, 42, 43, 3, 0, 26, 31, 36, 49, 52, 52, 892, 0, 185, 1, 0, 0, 0, 2, 202, 1, 0, 0, 0, 4, 204, 1, 0, 0, 0, 6, 209, 1, 0, 0, 0, 8, 222, 1, 0, 0, 0, 10, 237, 1, 0, 0, 0, 12, 252, 1, 0, 0, 0, 14, 270, 1, 0, 0, 0, 16, 282, 1, 0, 0, 0, 18, 287, 1, 0, 0, 0, 20, 289, 1, 0, 0, 0, 22, 307, 1, 0, 0, 0, 24, 312, 1, 0, 0, 0, 26, 314, 1, 0, 0, 0, 28, 332, 1, 0, 0, 0, 30, 337, 1, 0, 0, 0, 32, 339, 1, 0, 0, 0, 34, 356, 1, 0, 0, 0, 36, 361, 1, 0, 0, 0, 38, 363, 1, 0, 0, 0, 40, 380, 1, 0, 0, 0, 42, 385, 1, 0, 0, 0, 44, 387, 1, 0, 0, 0, 46, 402, 1, 0, 0, 0, 48, 404, 1, 0, 0, 0, 50, 408, 1, 0, 0, 0, 52, 417, 1, 0, 0, 0, 54, 419, 1, 0, 0, 0, 56, 421, 1, 0, 0, 0, 58, 428, 1, 0, 0, 0, 60, 447, 1, 0, 0, 0, 62, 452, 1, 0, 0, 0, 64, 454, 1, 0, 0, 0, 66, 457, 1, 0, 0, 0, 68, 460, 1, 0, 0, 0, 70, 463, 1, 0, 0, 0, 72, 466, 1, 0, 0, 0, 74, 469, 1, 0, 0, 0, 76, 472, 1, 0, 0, 0, 78, 475, 1, 0, 0, 0, 80, 478, 1, 0, 0, 0, 82, 481, 1, 0, 0, 0, 84, 484, 1, 0, 0, 0, 86, 487, 1, 0, 0, 0, 88, 496, 1, 0, 0, 0, 90, 498, 1, 0, 0, 0, 92, 500, 1, 0, 0, 0, 94, 509, 1, 0, 0, 0, 96, 518, 1, 0, 0, 0, 98, 532, 1, 0, 0, 0, 100, 539, 1, 0, 0, 0, 102, 546, 1, 0, 0, 0, 104, 557, 1, 0, 0, 0, 106, 568, 1, 0, 0, 0, 108, 581, 1, 0, 0, 0, 110, 589, 1, 0, 0, 0, 112, 600, 1, 0, 0, 0, 114, 612, 1, 0, 0, 0, 116, 621, 1, 0, 0, 0, 118, 633, 1, 0, 0, 0, 120, 648, 1, 0, 0, 0, 122, 669, 1, 0, 0, 0, 124, 672, 1, 0, 0, 0, 126, 694, 1, 0, 0, 0, 128, 696, 1, 0, 0, 0, 130, 702, 1, 0, 0, 0, 132, 715, 1, 0, 0, 0, 134, 718, 1, 0, 0, 0, 136, 727, 1, 0, 0, 0, 138, 735, 1, 0, 0, 0, 140, 740, 1, 0, 0, 0, 142, 747, 1, 0, 0, 0, 144, 749, 1, 0, 0, 0, 146, 754, 1, 0, 0, 0, 148, 756, 1, 0, 0, 0, 150, 758, 1, 0, 0, 0, 152, 760, 1, 0, 0, 0, 154, 774, 1, 0, 0, 0, 156, 776, 1, 0, 0, 0, 158, 788, 1, 0, 0, 0, 160, 792, 1, 0, 0, 0, 162, 804, 1, 0, 0, 0, 164, 809, 1, 0, 0, 0, 166, 813, 1, 0, 0, 0, 168, 817, 1, 0, 0, 0, 170, 819, 1, 0, 0, 0, 172, 821, 1, 0, 0, 0, 174, 825, 1, 0, 0, 0, 176, 827, 1, 0, 0, 0, 178, 833, 1, 0, 0, 0, 180, 835, 1, 0, 0, 0, 182, 184, 3, 2, 1, 0, 183, 182, 1, 0, 0, 0, 184, 187, 1, 0, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 188, 189, 5, 0, 0, 1, 189, 1, 1, 0, 0, 0, 190, 203, 3, 4, 2, 0, 191, 203, 3, 6, 3, 0, 192, 203, 3, 8, 4, 0, 193, 203, 3, 26, 13, 0, 194, 203, 3, 20, 10, 0, 195, 203, 3, 32, 16, 0, 196, 203, 3, 38, 19, 0, 197, 203, 3, 44, 22, 0, 198, 203, 3, 48, 24, 0, 199, 203, 3, 58, 29, 0, 200, 203, 3, 10, 5, 0, 201, 203, 3, 12, 6, 0, 202, 190, 1, 0, 0, 0, 202, 191, 1, 0, 0, 0, 202, 192, 1, 0, 0, 0, 202, 193, 1, 0, 0, 0, 202, 194, 1, 0, 0, 0, 202, 195, 1, 0, 0, 0, 202, 196, 1, 0, 0, 0, 202, 197, 1, 0, 0, 0, 202, 198, 1, 0, 0, 0, 202, 199, 1, 0, 0, 0, 202, 200, 1, 0, 0, 0, 202, 201, 1, 0, 0, 0, 203, 3, 1, 0, 0, 0, 204, 205, 5, 1, 0, 0, 205, 206, 5, 73, 0, 0, 206, 207, 5, 53, 0, 0, 207, 208, 7, 0, 0, 0, 208, 5, 1, 0, 0, 0, 209, 210, 5, 2, 0, 0, 210, 212, 3, 144, 72, 0, 211, 213, 3, 14, 7, 0, 212, 211, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 212, 1, 0, 0, 0, 214, 215, 1, 0, 0, 0, 215, 219, 1, 0, 0, 0, 216, 218, 3, 16, 8, 0, 217, 216, 1, 0, 0, 0, 218, 221, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 7, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 223, 5, 3, 0, 0, 223, 228, 3, 144, 72, 0, 224, 227, 3, 14, 7, 0, 225, 227, 3, 86, 43, 0, 226, 224, 1, 0, 0, 0, 226, 225, 1, 0, 0, 0, 227, 230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 234, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 231, 233, 3, 16, 8, 0, 232, 231, 1, 0, 0, 0, 233, 236, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 234, 235, 1, 0, 0, 0, 235, 9, 1, 0, 0, 0, 236, 234, 1, 0, 0, 0, 237, 238, 5, 11, 0, 0, 238, 243, 3, 144, 72, 0, 239, 242, 3, 14, 7, 0, 240, 242, 3, 92, 46, 0, 241, 239, 1, 0, 0, 0, 241, 240, 1, 0, 0, 0, 242, 245, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 243, 244, 1, 0, 0, 0, 244, 249, 1, 0, 0, 0, 245, 243, 1, 0, 0, 0, 246, 248, 3, 18, 9, 0, 247, 246, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 11, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 252, 253, 5, 12, 0, 0, 253, 257, 3, 144, 72, 0, 254, 256, 3, 14, 7, 0, 255, 254, 1, 0, 0, 0, 256, 259, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 257, 258, 1, 0, 0, 0, 258, 263, 1, 0, 0, 0, 259, 257, 1, 0, 0, 0, 260, 262, 3, 18, 9, 0, 261, 260, 1, 0, 0, 0, 262, 265, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 13, 1, 0, 0, 0, 265, 263, 1, 0, 0, 0, 266, 271, 3, 64, 32, 0, 267, 271, 3, 66, 33, 0, 268, 271, 3, 68, 34, 0, 269, 271, 3, 70, 35, 0, 270, 266, 1, 0, 0, 0, 270, 267, 1, 0, 0, 0, 270, 268, 1, 0, 0, 0, 270, 269, 1, 0, 0, 0, 271, 15, 1, 0, 0, 0, 272, 283, 3, 94, 47, 0, 273, 283, 3, 96, 48, 0, 274, 283, 3, 98, 49, 0, 275, 283, 3, 100, 50, 0, 276, 283, 3, 102, 51, 0, 277, 283, 3, 104, 52, 0, 278, 283, 3, 106, 53, 0, 279, 283, 3, 108, 54, 0, 280, 283, 3, 114, 57, 0, 281, 283, 3, 122, 61, 0, 282, 272, 1, 0, 0, 0, 282, 273, 1, 0, 0, 0, 282, 274, 1, 0, 0, 0, 282, 275, 1, 0, 0, 0, 282, 276, 1, 0, 0, 0, 282, 277, 1, 0, 0, 0, 282, 278, 1, 0, 0, 0, 282, 279, 1, 0, 0, 0, 282, 280, 1, 0, 0, 0, 282, 281, 1, 0, 0, 0, 283, 17, 1, 0, 0, 0, 284, 288, 3, 16, 8, 0, 285, 288, 3, 120, 60, 0, 286, 288, 3, 118, 59, 0, 287, 284, 1, 0, 0, 0, 287, 285, 1, 0, 0, 0, 287, 286, 1, 0, 0, 0, 288, 19, 1, 0, 0, 0, 289, 290, 5, 4, 0, 0, 290, 294, 3, 144, 72, 0, 291, 293, 3, 22, 11, 0, 292, 291, 1, 0, 0, 0, 293, 296, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 300, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 297, 299, 3, 24, 12, 0, 298, 297, 1, 0, 0, 0, 299, 302, 1, 0, 0, 0, 300, 298, 1, 0, 0, 0, 300, 301, 1, 0, 0, 0, 301, 21, 1, 0, 0, 0, 302, 300, 1, 0, 0, 0, 303, 308, 3, 78, 39, 0, 304, 308, 3, 68, 34, 0, 305, 308, 3, 70, 35, 0, 306, 308, 3, 80, 40, 0, 307, 303, 1, 0, 0, 0, 307, 304, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 307, 306, 1, 0, 0, 0, 308, 23, 1, 0, 0, 0, 309, 313, 3, 100, 50, 0, 310, 313, 3, 114, 57, 0, 311, 313, 3, 122, 61, 0, 312, 309, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 311, 1, 0, 0, 0, 313, 25, 1, 0, 0, 0, 314, 315, 5, 6, 0, 0, 315, 319, 3, 144, 72, 0, 316, 318, 3, 28, 14, 0, 317, 316, 1, 0, 0, 0, 318, 321, 1, 0, 0, 0, 319, 317, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 325, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 322, 324, 3, 30, 15, 0, 323, 322, 1, 0, 0, 0, 324, 327, 1, 0, 0, 0, 325, 323, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 27, 1, 0, 0, 0, 327, 325, 1, 0, 0, 0, 328, 333, 3, 70, 35, 0, 329, 333, 3, 72, 36, 0, 330, 333, 3, 74, 37, 0, 331, 333, 3, 76, 38, 0, 332, 328, 1, 0, 0, 0, 332, 329, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 331, 1, 0, 0, 0, 333, 29, 1, 0, 0, 0, 334, 338, 3, 100, 50, 0, 335, 338, 3, 114, 57, 0, 336, 338, 3, 122, 61, 0, 337, 334, 1, 0, 0, 0, 337, 335, 1, 0, 0, 0, 337, 336, 1, 0, 0, 0, 338, 31, 1, 0, 0, 0, 339, 340, 5, 7, 0, 0, 340, 344, 3, 144, 72, 0, 341, 343, 3, 34, 17, 0, 342, 341, 1, 0, 0, 0, 343, 346, 1, 0, 0, 0, 344, 342, 1, 0, 0, 0, 344, 345, 1, 0, 0, 0, 345, 350, 1, 0, 0, 0, 346, 344, 1, 0, 0, 0, 347, 349, 3, 36, 18, 0, 348, 347, 1, 0, 0, 0, 349, 352, 1, 0, 0, 0, 350, 348, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 33, 1, 0, 0, 0, 352, 350, 1, 0, 0, 0, 353, 357, 3, 66, 33, 0, 354, 357, 3, 68, 34, 0, 355, 357, 3, 70, 35, 0, 356, 353, 1, 0, 0, 0, 356, 354, 1, 0, 0, 0, 356, 355, 1, 0, 0, 0, 357, 35, 1, 0, 0, 0, 358, 362, 3, 124, 62, 0, 359, 362, 3, 108, 54, 0, 360, 362, 3, 114, 57, 0, 361, 358, 1, 0, 0, 0, 361, 359, 1, 0, 0, 0, 361, 360, 1, 0, 0, 0, 362, 37, 1, 0, 0, 0, 363, 364, 5, 8, 0, 0, 364, 368, 3, 144, 72, 0, 365, 367, 3, 40, 20, 0, 366, 365, 1, 0, 0, 0, 367, 370, 1, 0, 0, 0, 368, 366, 1, 0, 0, 0, 368, 369, 1, 0, 0, 0, 369, 374, 1, 0, 0, 0, 370, 368, 1, 0, 0, 0, 371, 373, 3, 42, 21, 0, 372, 371, 1, 0, 0, 0, 373, 376, 1, 0, 0, 0, 374, 372, 1, 0, 0, 0, 374, 375, 1, 0, 0, 0, 375, 39, 1, 0, 0, 0, 376, 374, 1, 0, 0, 0, 377, 381, 3, 66, 33, 0, 378, 381, 3, 68, 34, 0, 379, 381, 3, 70, 35, 0, 380, 377, 1, 0, 0, 0, 380, 378, 1, 0, 0, 0, 380, 379, 1, 0, 0, 0, 381, 41, 1, 0, 0, 0, 382, 386, 3, 160, 80, 0, 383, 386, 3, 110, 55, 0, 384, 386, 3, 116, 58, 0, 385, 382, 1, 0, 0, 0, 385, 383, 1, 0, 0, 0, 385, 384, 1, 0, 0, 0, 386, 43, 1, 0, 0, 0, 387, 388, 5, 9, 0, 0, 388, 390, 5, 77, 0, 0, 389, 391, 3, 46, 23, 0, 390, 389, 1, 0, 0, 0, 391, 392, 1, 0, 0, 0, 392, 390, 1, 0, 0, 0, 392, 393, 1, 0, 0, 0, 393, 45, 1, 0, 0, 0, 394, 403, 3, 16, 8, 0, 395, 403, 3, 120, 60, 0, 396, 403, 3, 118, 59, 0, 397, 403, 3, 160, 80, 0, 398, 403, 3, 110, 55, 0, 399, 403, 3, 116, 58, 0, 400, 403, 3, 124, 62, 0, 401, 403, 3, 112, 56, 0, 402, 394, 1, 0, 0, 0, 402, 395, 1, 0, 0, 0, 402, 396, 1, 0, 0, 0, 402, 397, 1, 0, 0, 0, 402, 398, 1, 0, 0, 0, 402, 399, 1, 0, 0, 0, 402, 400, 1, 0, 0, 0, 402, 401, 1, 0, 0, 0, 403, 47, 1, 0, 0, 0, 404, 405, 5, 9, 0, 0, 405, 406, 3, 50, 25, 0, 406, 407, 3, 56, 28, 0, 407, 49, 1, 0, 0, 0, 408, 412, 5, 76, 0, 0, 409, 411, 3, 52, 26, 0, 410, 409, 1, 0, 0, 0, 411, 414, 1, 0, 0, 0, 412, 410, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 415, 1, 0, 0, 0, 414, 412, 1, 0, 0, 0, 415, 416, 3, 54, 27, 0, 416, 51, 1, 0, 0, 0, 417, 418, 7, 1, 0, 0, 418, 53, 1, 0, 0, 0, 419, 420, 7, 2, 0, 0, 420, 55, 1, 0, 0, 0, 421, 425, 5, 54, 0, 0, 422, 424, 8, 3, 0, 0, 423, 422, 1, 0, 0, 0, 424, 427, 1, 0, 0, 0, 425, 423, 1, 0, 0, 0, 425, 426, 1, 0, 0, 0, 426, 57, 1, 0, 0, 0, 427, 425, 1, 0, 0, 0, 428, 429, 5, 10, 0, 0, 429, 433, 3, 144, 72, 0, 430, 432, 3, 60, 30, 0, 431, 430, 1, 0, 0, 0, 432, 435, 1, 0, 0, 0, 433, 431, 1, 0, 0, 0, 433, 434, 1, 0, 0, 0, 434, 439, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 436, 438, 3, 62, 31, 0, 437, 436, 1, 0, 0, 0, 438, 441, 1, 0, 0, 0, 439, 437, 1, 0, 0, 0, 439, 440, 1, 0, 0, 0, 440, 59, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 442, 448, 3, 66, 33, 0, 443, 448, 3, 82, 41, 0, 444, 448, 3, 84, 42, 0, 445, 448, 3, 70, 35, 0, 446, 448, 3, 68, 34, 0, 447, 442, 1, 0, 0, 0, 447, 443, 1, 0, 0, 0, 447, 444, 1, 0, 0, 0, 447, 445, 1, 0, 0, 0, 447, 446, 1, 0, 0, 0, 448, 61, 1, 0, 0, 0, 449, 453, 3, 112, 56, 0, 450, 453, 3, 114, 57, 0, 451, 453, 3, 122, 61, 0, 452, 449, 1, 0, 0, 0, 452, 450, 1, 0, 0, 0, 452, 451, 1, 0, 0, 0, 453, 63, 1, 0, 0, 0, 454, 455, 5, 13, 0, 0, 455, 456, 3, 144, 72, 0, 456, 65, 1, 0, 0, 0, 457, 458, 5, 14, 0, 0, 458, 459, 3, 144, 72, 0, 459, 67, 1, 0, 0, 0, 460, 461, 5, 15, 0, 0, 461, 462, 5, 58, 0, 0, 462, 69, 1, 0, 0, 0, 463, 464, 5, 16, 0, 0, 464, 465, 7, 4, 0, 0, 465, 71, 1, 0, 0, 0, 466, 467, 5, 17, 0, 0, 467, 468, 5, 58, 0, 0, 468, 73, 1, 0, 0, 0, 469, 470, 5, 18, 0, 0, 470, 471, 5, 58, 0, 0, 471, 75, 1, 0, 0, 0, 472, 473, 5, 19, 0, 0, 473, 474, 5, 62, 0, 0, 474, 77, 1, 0, 0, 0, 475, 476, 5, 5, 0, 0, 476, 477, 3, 144, 72, 0, 477, 79, 1, 0, 0, 0, 478, 479, 5, 20, 0, 0, 479, 480, 5, 62, 0, 0, 480, 81, 1, 0, 0, 0, 481, 482, 5, 21, 0, 0, 482, 483, 3, 144, 72, 0, 483, 83, 1, 0, 0, 0, 484, 485, 5, 22, 0, 0, 485, 486, 5, 58, 0, 0, 486, 85, 1, 0, 0, 0, 487, 491, 5, 23, 0, 0, 488, 490, 3, 88, 44, 0, 489, 488, 1, 0, 0, 0, 490, 493, 1, 0, 0, 0, 491, 489, 1, 0, 0, 0, 491, 492, 1, 0, 0, 0, 492, 494, 1, 0, 0, 0, 493, 491, 1, 0, 0, 0, 494, 495, 3, 90, 45, 0, 495, 87, 1, 0, 0, 0, 496, 497, 7, 5, 0, 0, 497, 89, 1, 0, 0, 0, 498, 499, 7, 6, 0, 0, 499, 91, 1, 0, 0, 0, 500, 504, 5, 24, 0, 0, 501, 503, 5, 87, 0, 0, 502, 501, 1, 0, 0, 0, 503, 506, 1, 0, 0, 0, 504, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 507, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 507, 508, 5, 88, 0, 0, 508, 93, 1, 0, 0, 0, 509, 510, 5, 54, 0, 0, 510, 511, 3, 146, 73, 0, 511, 515, 5, 66, 0, 0, 512, 514, 3, 150, 75, 0, 513, 512, 1, 0, 0, 0, 514, 517, 1, 0, 0, 0, 515, 513, 1, 0, 0, 0, 515, 516, 1, 0, 0, 0, 516, 95, 1, 0, 0, 0, 517, 515, 1, 0, 0, 0, 518, 519, 5, 54, 0, 0, 519, 524, 3, 146, 73, 0, 520, 521, 5, 38, 0, 0, 521, 523, 3, 146, 73, 0, 522, 520, 1, 0, 0, 0, 523, 526, 1, 0, 0, 0, 524, 522, 1, 0, 0, 0, 524, 525, 1, 0, 0, 0, 525, 528, 1, 0, 0, 0, 526, 524, 1, 0, 0, 0, 527, 529, 3, 150, 75, 0, 528, 527, 1, 0, 0, 0, 529, 530, 1, 0, 0, 0, 530, 528, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 97, 1, 0, 0, 0, 532, 533, 5, 54, 0, 0, 533, 534, 3, 146, 73, 0, 534, 535, 5, 31, 0, 0, 535, 537, 3, 144, 72, 0, 536, 538, 3, 152, 76, 0, 537, 536, 1, 0, 0, 0, 537, 538, 1, 0, 0, 0, 538, 99, 1, 0, 0, 0, 539, 540, 5, 54, 0, 0, 540, 541, 3, 146, 73, 0, 541, 542, 5, 53, 0, 0, 542, 544, 3, 154, 77, 0, 543, 545, 5, 50, 0, 0, 544, 543, 1, 0, 0, 0, 544, 545, 1, 0, 0, 0, 545, 101, 1, 0, 0, 0, 546, 547, 5, 54, 0, 0, 547, 548, 3, 146, 73, 0, 548, 549, 5, 36, 0, 0, 549, 554, 3, 156, 78, 0, 550, 551, 5, 38, 0, 0, 551, 553, 3, 156, 78, 0, 552, 550, 1, 0, 0, 0, 553, 556, 1, 0, 0, 0, 554, 552, 1, 0, 0, 0, 554, 555, 1, 0, 0, 0, 555, 103, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 557, 558, 5, 54, 0, 0, 558, 559, 3, 146, 73, 0, 559, 560, 5, 39, 0, 0, 560, 565, 3, 178, 89, 0, 561, 562, 5, 40, 0, 0, 562, 564, 3, 178, 89, 0, 563, 561, 1, 0, 0, 0, 564, 567, 1, 0, 0, 0, 565, 563, 1, 0, 0, 0, 565, 566, 1, 0, 0, 0, 566, 105, 1, 0, 0, 0, 567, 565, 1, 0, 0, 0, 568, 570, 5, 54, 0, 0, 569, 571, 3, 146, 73, 0, 570, 569, 1, 0, 0, 0, 570, 571, 1, 0, 0, 0, 571, 572, 1, 0, 0, 0, 572, 573, 5, 41, 0, 0, 573, 578, 3, 144, 72, 0, 574, 575, 5, 38, 0, 0, 575, 577, 3, 144, 72, 0, 576, 574, 1, 0, 0, 0, 577, 580, 1, 0, 0, 0, 578, 576, 1, 0, 0, 0, 578, 579, 1, 0, 0, 0, 579, 107, 1, 0, 0, 0, 580, 578, 1, 0, 0, 0, 581, 583, 5, 54, 0, 0, 582, 584, 3, 146, 73, 0, 583, 582, 1, 0, 0, 0, 583, 584, 1, 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 586, 3, 148, 74, 0, 586, 587, 5, 53, 0, 0, 587, 588, 3, 154, 77, 0, 588, 109, 1, 0, 0, 0, 589, 593, 5, 54, 0, 0, 590, 592, 5, 62, 0, 0, 591, 590, 1, 0, 0, 0, 592, 595, 1, 0, 0, 0, 593, 591, 1, 0, 0, 0, 593, 594, 1, 0, 0, 0, 594, 596, 1, 0, 0, 0, 595, 593, 1, 0, 0, 0, 596, 597, 3, 148, 74, 0, 597, 598, 5, 53, 0, 0, 598, 599, 3, 154, 77, 0, 599, 111, 1, 0, 0, 0, 600, 602, 5, 54, 0, 0, 601, 603, 3, 146, 73, 0, 602, 601, 1, 0, 0, 0, 602, 603, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 5, 57, 0, 0, 605, 607, 5, 58, 0, 0, 606, 608, 5, 58, 0, 0, 607, 606, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 610, 1, 0, 0, 0, 609, 611, 5, 62, 0, 0, 610, 609, 1, 0, 0, 0, 610, 611, 1, 0, 0, 0, 611, 113, 1, 0, 0, 0, 612, 614, 5, 54, 0, 0, 613, 615, 3, 146, 73, 0, 614, 613, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 619, 5, 51, 0, 0, 617, 620, 5, 77, 0, 0, 618, 620, 3, 50, 25, 0, 619, 617, 1, 0, 0, 0, 619, 618, 1, 0, 0, 0, 620, 115, 1, 0, 0, 0, 621, 625, 5, 54, 0, 0, 622, 624, 5, 62, 0, 0, 623, 622, 1, 0, 0, 0, 624, 627, 1, 0, 0, 0, 625, 623, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 628, 1, 0, 0, 0, 627, 625, 1, 0, 0, 0, 628, 631, 5, 51, 0, 0, 629, 632, 5, 77, 0, 0, 630, 632, 3, 50, 25, 0, 631, 629, 1, 0, 0, 0, 631, 630, 1, 0, 0, 0, 632, 117, 1, 0, 0, 0, 633, 634, 5, 54, 0, 0, 634, 635, 3, 146, 73, 0, 635, 639, 5, 66, 0, 0, 636, 638, 3, 150, 75, 0, 637, 636, 1, 0, 0, 0, 638, 641, 1, 0, 0, 0, 639, 637, 1, 0, 0, 0, 639, 640, 1, 0, 0, 0, 640, 642, 1, 0, 0, 0, 641, 639, 1, 0, 0, 0, 642, 643, 5, 52, 0, 0, 643, 644, 7, 0, 0, 0, 644, 646, 5, 58, 0, 0, 645, 647, 7, 4, 0, 0, 646, 645, 1, 0, 0, 0, 646, 647, 1, 0, 0, 0, 647, 119, 1, 0, 0, 0, 648, 649, 5, 54, 0, 0, 649, 650, 3, 146, 73, 0, 650, 654, 5, 66, 0, 0, 651, 653, 3, 150, 75, 0, 652, 651, 1, 0, 0, 0, 653, 656, 1, 0, 0, 0, 654, 652, 1, 0, 0, 0, 654, 655, 1, 0, 0, 0, 655, 657, 1, 0, 0, 0, 656, 654, 1, 0, 0, 0, 657, 662, 3, 178, 89, 0, 658, 659, 5, 40, 0, 0, 659, 661, 3, 178, 89, 0, 660, 658, 1, 0, 0, 0, 661, 664, 1, 0, 0, 0, 662, 660, 1, 0, 0, 0, 662, 663, 1, 0, 0, 0, 663, 665, 1, 0, 0, 0, 664, 662, 1, 0, 0, 0, 665, 667, 5, 58, 0, 0, 666, 668, 7, 4, 0, 0, 667, 666, 1, 0, 0, 0, 667, 668, 1, 0, 0, 0, 668, 121, 1, 0, 0, 0, 669, 670, 5, 54, 0, 0, 670, 671, 3, 146, 73, 0, 671, 123, 1, 0, 0, 0, 672, 674, 5, 54, 0, 0, 673, 675, 7, 7, 0, 0, 674, 673, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 678, 1, 0, 0, 0, 676, 679, 3, 126, 63, 0, 677, 679, 3, 128, 64, 0, 678, 676, 1, 0, 0, 0, 678, 677, 1, 0, 0, 0, 679, 125, 1, 0, 0, 0, 680, 682, 3, 158, 79, 0, 681, 683, 3, 130, 65, 0, 682, 681, 1, 0, 0, 0, 682, 683, 1, 0, 0, 0, 683, 695, 1, 0, 0, 0, 684, 685, 3, 158, 79, 0, 685, 686, 5, 38, 0, 0, 686, 688, 1, 0, 0, 0, 687, 684, 1, 0, 0, 0, 688, 689, 1, 0, 0, 0, 689, 687, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 692, 3, 158, 79, 0, 692, 693, 3, 130, 65, 0, 693, 695, 1, 0, 0, 0, 694, 680, 1, 0, 0, 0, 694, 687, 1, 0, 0, 0, 695, 127, 1, 0, 0, 0, 696, 697, 5, 46, 0, 0, 697, 700, 3, 130, 65, 0, 698, 699, 5, 47, 0, 0, 699, 701, 3, 136, 68, 0, 700, 698, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 129, 1, 0, 0, 0, 702, 713, 5, 31, 0, 0, 703, 706, 3, 132, 66, 0, 704, 705, 5, 38, 0, 0, 705, 707, 3, 134, 67, 0, 706, 704, 1, 0, 0, 0, 706, 707, 1, 0, 0, 0, 707, 714, 1, 0, 0, 0, 708, 711, 3, 134, 67, 0, 709, 710, 5, 38, 0, 0, 710, 712, 3, 132, 66, 0, 711, 709, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 714, 1, 0, 0, 0, 713, 703, 1, 0, 0, 0, 713, 708, 1, 0, 0, 0, 714, 131, 1, 0, 0, 0, 715, 716, 5, 49, 0, 0, 716, 717, 3, 144, 72, 0, 717, 133, 1, 0, 0, 0, 718, 719, 5, 48, 0, 0, 719, 724, 3, 144, 72, 0, 720, 721, 5, 38, 0, 0, 721, 723, 3, 144, 72, 0, 722, 720, 1, 0, 0, 0, 723, 726, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 724, 725, 1, 0, 0, 0, 725, 135, 1, 0, 0, 0, 726, 724, 1, 0, 0, 0, 727, 732, 3, 138, 69, 0, 728, 729, 5, 38, 0, 0, 729, 731, 3, 138, 69, 0, 730, 728, 1, 0, 0, 0, 731, 734, 1, 0, 0, 0, 732, 730, 1, 0, 0, 0, 732, 733, 1, 0, 0, 0, 733, 137, 1, 0, 0, 0, 734, 732, 1, 0, 0, 0, 735, 736, 3, 144, 72, 0, 736, 738, 3, 140, 70, 0, 737, 739, 3, 142, 71, 0, 738, 737, 1, 0, 0, 0, 738, 739, 1, 0, 0, 0, 739, 139, 1, 0, 0, 0, 740, 741, 7, 8, 0, 0, 741, 141, 1, 0, 0, 0, 742, 748, 3, 158, 79, 0, 743, 748, 5, 42, 0, 0, 744, 748, 5, 43, 0, 0, 745, 748, 5, 71, 0, 0, 746, 748, 5, 58, 0, 0, 747, 742, 1, 0, 0, 0, 747, 743, 1, 0, 0, 0, 747, 744, 1, 0, 0, 0, 747, 745, 1, 0, 0, 0, 747, 746, 1, 0, 0, 0, 748, 143, 1, 0, 0, 0, 749, 750, 7, 9, 0, 0, 750, 145, 1, 0, 0, 0, 751, 755, 5, 73, 0, 0, 752, 755, 5, 60, 0, 0, 753, 755, 3, 180, 90, 0, 754, 751, 1, 0, 0, 0, 754, 752, 1, 0, 0, 0, 754, 753, 1, 0, 0, 0, 755, 147, 1, 0, 0, 0, 756, 757, 5, 70, 0, 0, 757, 149, 1, 0, 0, 0, 758, 759, 7, 10, 0, 0, 759, 151, 1, 0, 0, 0, 760, 761, 7, 11, 0, 0, 761, 153, 1, 0, 0, 0, 762, 775, 5, 58, 0, 0, 763, 775, 5, 59, 0, 0, 764, 775, 5, 60, 0, 0, 765, 775, 5, 64, 0, 0, 766, 775, 5, 65, 0, 0, 767, 775, 3, 166, 83, 0, 768, 775, 3, 172, 86, 0, 769, 775, 3, 158, 79, 0, 770, 775, 3, 162, 81, 0, 771, 775, 3, 164, 82, 0, 772, 775, 3, 176, 88, 0, 773, 775, 3, 144, 72, 0, 774, 762, 1, 0, 0, 0, 774, 763, 1, 0, 0, 0, 774, 764, 1, 0, 0, 0, 774, 765, 1, 0, 0, 0, 774, 766, 1, 0, 0, 0, 774, 767, 1, 0, 0, 0, 774, 768, 1, 0, 0, 0, 774, 769, 1, 0, 0, 0, 774, 770, 1, 0, 0, 0, 774, 771, 1, 0, 0, 0, 774, 772, 1, 0, 0, 0, 774, 773, 1, 0, 0, 0, 775, 155, 1, 0, 0, 0, 776, 779, 3, 144, 72, 0, 777, 778, 5, 37, 0, 0, 778, 780, 3, 144, 72, 0, 779, 777, 1, 0, 0, 0, 779, 780, 1, 0, 0, 0, 780, 781, 1, 0, 0, 0, 781, 785, 5, 66, 0, 0, 782, 784, 3, 150, 75, 0, 783, 782, 1, 0, 0, 0, 784, 787, 1, 0, 0, 0, 785, 783, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 157, 1, 0, 0, 0, 787, 785, 1, 0, 0, 0, 788, 790, 5, 62, 0, 0, 789, 791, 5, 58, 0, 0, 790, 789, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, 791, 159, 1, 0, 0, 0, 792, 794, 5, 54, 0, 0, 793, 795, 5, 62, 0, 0, 794, 793, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 794, 1, 0, 0, 0, 796, 797, 1, 0, 0, 0, 797, 799, 1, 0, 0, 0, 798, 800, 5, 58, 0, 0, 799, 798, 1, 0, 0, 0, 799, 800, 1, 0, 0, 0, 800, 802, 1, 0, 0, 0, 801, 803, 7, 4, 0, 0, 802, 801, 1, 0, 0, 0, 802, 803, 1, 0, 0, 0, 803, 161, 1, 0, 0, 0, 804, 805, 5, 60, 0, 0, 805, 807, 7, 12, 0, 0, 806, 808, 5, 58, 0, 0, 807, 806, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 163, 1, 0, 0, 0, 809, 810, 3, 174, 87, 0, 810, 811, 5, 55, 0, 0, 811, 812, 3, 174, 87, 0, 812, 165, 1, 0, 0, 0, 813, 815, 5, 67, 0, 0, 814, 816, 5, 58, 0, 0, 815, 814, 1, 0, 0, 0, 815, 816, 1, 0, 0, 0, 816, 167, 1, 0, 0, 0, 817, 818, 5, 67, 0, 0, 818, 169, 1, 0, 0, 0, 819, 820, 5, 68, 0, 0, 820, 171, 1, 0, 0, 0, 821, 822, 5, 69, 0, 0, 822, 173, 1, 0, 0, 0, 823, 826, 5, 60, 0, 0, 824, 826, 3, 162, 81, 0, 825, 823, 1, 0, 0, 0, 825, 824, 1, 0, 0, 0, 826, 175, 1, 0, 0, 0, 827, 828, 7, 13, 0, 0, 828, 177, 1, 0, 0, 0, 829, 834, 3, 144, 72, 0, 830, 834, 3, 168, 84, 0, 831, 834, 3, 172, 86, 0, 832, 834, 3, 170, 85, 0, 833, 829, 1, 0, 0, 0, 833, 830, 1, 0, 0, 0, 833, 831, 1, 0, 0, 0, 833, 832, 1, 0, 0, 0, 834, 179, 1, 0, 0, 0, 835, 836, 7, 14, 0, 0, 836, 181, 1, 0, 0, 0, 89, 185, 202, 214, 219, 226, 228, 234, 241, 243, 249, 257, 263, 270, 282, 287, 294, 300, 307, 312, 319, 325, 332, 337, 344, 350, 356, 361, 368, 374, 380, 385, 392, 402, 412, 425, 433, 439, 447, 452, 491, 504, 515, 524, 530, 537, 544, 554, 565, 570, 578, 583, 593, 602, 607, 610, 614, 619, 625, 631, 639, 646, 654, 662, 667, 674, 678, 682, 689, 694, 700, 706, 711, 713, 724, 732, 738, 747, 754, 774, 779, 785, 790, 796, 799, 802, 807, 815, 825, 833] \ No newline at end of file +[4, 1, 89, 828, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 1, 0, 5, 0, 184, 8, 0, 10, 0, 12, 0, 187, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 203, 8, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 4, 3, 213, 8, 3, 11, 3, 12, 3, 214, 1, 3, 5, 3, 218, 8, 3, 10, 3, 12, 3, 221, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 227, 8, 4, 10, 4, 12, 4, 230, 9, 4, 1, 4, 5, 4, 233, 8, 4, 10, 4, 12, 4, 236, 9, 4, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 242, 8, 5, 10, 5, 12, 5, 245, 9, 5, 1, 5, 5, 5, 248, 8, 5, 10, 5, 12, 5, 251, 9, 5, 1, 6, 1, 6, 1, 6, 5, 6, 256, 8, 6, 10, 6, 12, 6, 259, 9, 6, 1, 6, 5, 6, 262, 8, 6, 10, 6, 12, 6, 265, 9, 6, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 271, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 283, 8, 8, 1, 9, 1, 9, 1, 9, 3, 9, 288, 8, 9, 1, 10, 1, 10, 1, 10, 5, 10, 293, 8, 10, 10, 10, 12, 10, 296, 9, 10, 1, 10, 5, 10, 299, 8, 10, 10, 10, 12, 10, 302, 9, 10, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 308, 8, 11, 1, 12, 1, 12, 1, 12, 3, 12, 313, 8, 12, 1, 13, 1, 13, 1, 13, 5, 13, 318, 8, 13, 10, 13, 12, 13, 321, 9, 13, 1, 13, 5, 13, 324, 8, 13, 10, 13, 12, 13, 327, 9, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 333, 8, 14, 1, 15, 1, 15, 1, 15, 3, 15, 338, 8, 15, 1, 16, 1, 16, 1, 16, 5, 16, 343, 8, 16, 10, 16, 12, 16, 346, 9, 16, 1, 16, 5, 16, 349, 8, 16, 10, 16, 12, 16, 352, 9, 16, 1, 17, 1, 17, 1, 17, 3, 17, 357, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 364, 8, 18, 1, 19, 1, 19, 1, 19, 5, 19, 369, 8, 19, 10, 19, 12, 19, 372, 9, 19, 1, 19, 5, 19, 375, 8, 19, 10, 19, 12, 19, 378, 9, 19, 1, 20, 1, 20, 1, 20, 3, 20, 383, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 388, 8, 21, 1, 22, 1, 22, 1, 22, 4, 22, 393, 8, 22, 11, 22, 12, 22, 394, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 405, 8, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 5, 25, 413, 8, 25, 10, 25, 12, 25, 416, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 5, 28, 426, 8, 28, 10, 28, 12, 28, 429, 9, 28, 1, 29, 1, 29, 1, 29, 5, 29, 434, 8, 29, 10, 29, 12, 29, 437, 9, 29, 1, 29, 5, 29, 440, 8, 29, 10, 29, 12, 29, 443, 9, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 450, 8, 30, 1, 31, 1, 31, 1, 31, 3, 31, 455, 8, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 5, 43, 492, 8, 43, 10, 43, 12, 43, 495, 9, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 5, 46, 505, 8, 46, 10, 46, 12, 46, 508, 9, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 516, 8, 47, 10, 47, 12, 47, 519, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 525, 8, 48, 10, 48, 12, 48, 528, 9, 48, 1, 48, 4, 48, 531, 8, 48, 11, 48, 12, 48, 532, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 540, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 547, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 5, 51, 555, 8, 51, 10, 51, 12, 51, 558, 9, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 566, 8, 52, 10, 52, 12, 52, 569, 9, 52, 1, 53, 1, 53, 3, 53, 573, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 579, 8, 53, 10, 53, 12, 53, 582, 9, 53, 1, 54, 1, 54, 3, 54, 586, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 5, 55, 594, 8, 55, 10, 55, 12, 55, 597, 9, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 3, 56, 605, 8, 56, 1, 56, 1, 56, 1, 56, 3, 56, 610, 8, 56, 1, 56, 3, 56, 613, 8, 56, 1, 57, 1, 57, 3, 57, 617, 8, 57, 1, 57, 1, 57, 1, 57, 3, 57, 622, 8, 57, 1, 58, 1, 58, 5, 58, 626, 8, 58, 10, 58, 12, 58, 629, 9, 58, 1, 58, 1, 58, 1, 58, 3, 58, 634, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 640, 8, 59, 10, 59, 12, 59, 643, 9, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 649, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 5, 60, 655, 8, 60, 10, 60, 12, 60, 658, 9, 60, 1, 60, 1, 60, 1, 60, 5, 60, 663, 8, 60, 10, 60, 12, 60, 666, 9, 60, 1, 60, 1, 60, 3, 60, 670, 8, 60, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 3, 62, 677, 8, 62, 1, 62, 1, 62, 3, 62, 681, 8, 62, 1, 63, 1, 63, 3, 63, 685, 8, 63, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 691, 8, 64, 1, 65, 1, 65, 1, 65, 1, 65, 3, 65, 697, 8, 65, 1, 65, 1, 65, 1, 65, 3, 65, 702, 8, 65, 3, 65, 704, 8, 65, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 5, 67, 713, 8, 67, 10, 67, 12, 67, 716, 9, 67, 1, 68, 1, 68, 1, 68, 5, 68, 721, 8, 68, 10, 68, 12, 68, 724, 9, 68, 1, 69, 1, 69, 1, 69, 3, 69, 729, 8, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 738, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 3, 73, 745, 8, 73, 1, 74, 1, 74, 1, 75, 1, 75, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 765, 8, 77, 1, 78, 1, 78, 1, 78, 3, 78, 770, 8, 78, 1, 78, 1, 78, 5, 78, 774, 8, 78, 10, 78, 12, 78, 777, 9, 78, 1, 79, 1, 79, 3, 79, 781, 8, 79, 1, 80, 1, 80, 4, 80, 785, 8, 80, 11, 80, 12, 80, 786, 1, 80, 3, 80, 790, 8, 80, 1, 80, 3, 80, 793, 8, 80, 1, 81, 1, 81, 1, 81, 3, 81, 798, 8, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 3, 83, 806, 8, 83, 1, 84, 1, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 3, 87, 816, 8, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 3, 89, 824, 8, 89, 1, 90, 1, 90, 1, 90, 0, 0, 91, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 0, 15, 2, 0, 62, 62, 73, 73, 2, 0, 78, 78, 80, 80, 2, 0, 79, 79, 81, 81, 2, 0, 1, 4, 6, 10, 1, 0, 58, 59, 2, 0, 82, 82, 84, 84, 2, 0, 83, 83, 85, 85, 1, 0, 44, 45, 2, 0, 53, 53, 73, 73, 5, 0, 26, 30, 46, 46, 48, 49, 60, 60, 73, 73, 1, 0, 25, 30, 1, 0, 32, 35, 1, 0, 61, 62, 1, 0, 42, 43, 3, 0, 26, 31, 36, 49, 52, 52, 882, 0, 185, 1, 0, 0, 0, 2, 202, 1, 0, 0, 0, 4, 204, 1, 0, 0, 0, 6, 209, 1, 0, 0, 0, 8, 222, 1, 0, 0, 0, 10, 237, 1, 0, 0, 0, 12, 252, 1, 0, 0, 0, 14, 270, 1, 0, 0, 0, 16, 282, 1, 0, 0, 0, 18, 287, 1, 0, 0, 0, 20, 289, 1, 0, 0, 0, 22, 307, 1, 0, 0, 0, 24, 312, 1, 0, 0, 0, 26, 314, 1, 0, 0, 0, 28, 332, 1, 0, 0, 0, 30, 337, 1, 0, 0, 0, 32, 339, 1, 0, 0, 0, 34, 356, 1, 0, 0, 0, 36, 363, 1, 0, 0, 0, 38, 365, 1, 0, 0, 0, 40, 382, 1, 0, 0, 0, 42, 387, 1, 0, 0, 0, 44, 389, 1, 0, 0, 0, 46, 404, 1, 0, 0, 0, 48, 406, 1, 0, 0, 0, 50, 410, 1, 0, 0, 0, 52, 419, 1, 0, 0, 0, 54, 421, 1, 0, 0, 0, 56, 423, 1, 0, 0, 0, 58, 430, 1, 0, 0, 0, 60, 449, 1, 0, 0, 0, 62, 454, 1, 0, 0, 0, 64, 456, 1, 0, 0, 0, 66, 459, 1, 0, 0, 0, 68, 462, 1, 0, 0, 0, 70, 465, 1, 0, 0, 0, 72, 468, 1, 0, 0, 0, 74, 471, 1, 0, 0, 0, 76, 474, 1, 0, 0, 0, 78, 477, 1, 0, 0, 0, 80, 480, 1, 0, 0, 0, 82, 483, 1, 0, 0, 0, 84, 486, 1, 0, 0, 0, 86, 489, 1, 0, 0, 0, 88, 498, 1, 0, 0, 0, 90, 500, 1, 0, 0, 0, 92, 502, 1, 0, 0, 0, 94, 511, 1, 0, 0, 0, 96, 520, 1, 0, 0, 0, 98, 534, 1, 0, 0, 0, 100, 541, 1, 0, 0, 0, 102, 548, 1, 0, 0, 0, 104, 559, 1, 0, 0, 0, 106, 570, 1, 0, 0, 0, 108, 583, 1, 0, 0, 0, 110, 591, 1, 0, 0, 0, 112, 602, 1, 0, 0, 0, 114, 614, 1, 0, 0, 0, 116, 623, 1, 0, 0, 0, 118, 635, 1, 0, 0, 0, 120, 650, 1, 0, 0, 0, 122, 671, 1, 0, 0, 0, 124, 674, 1, 0, 0, 0, 126, 682, 1, 0, 0, 0, 128, 686, 1, 0, 0, 0, 130, 692, 1, 0, 0, 0, 132, 705, 1, 0, 0, 0, 134, 708, 1, 0, 0, 0, 136, 717, 1, 0, 0, 0, 138, 725, 1, 0, 0, 0, 140, 730, 1, 0, 0, 0, 142, 737, 1, 0, 0, 0, 144, 739, 1, 0, 0, 0, 146, 744, 1, 0, 0, 0, 148, 746, 1, 0, 0, 0, 150, 748, 1, 0, 0, 0, 152, 750, 1, 0, 0, 0, 154, 764, 1, 0, 0, 0, 156, 766, 1, 0, 0, 0, 158, 778, 1, 0, 0, 0, 160, 782, 1, 0, 0, 0, 162, 794, 1, 0, 0, 0, 164, 799, 1, 0, 0, 0, 166, 803, 1, 0, 0, 0, 168, 807, 1, 0, 0, 0, 170, 809, 1, 0, 0, 0, 172, 811, 1, 0, 0, 0, 174, 815, 1, 0, 0, 0, 176, 817, 1, 0, 0, 0, 178, 823, 1, 0, 0, 0, 180, 825, 1, 0, 0, 0, 182, 184, 3, 2, 1, 0, 183, 182, 1, 0, 0, 0, 184, 187, 1, 0, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 188, 189, 5, 0, 0, 1, 189, 1, 1, 0, 0, 0, 190, 203, 3, 4, 2, 0, 191, 203, 3, 6, 3, 0, 192, 203, 3, 8, 4, 0, 193, 203, 3, 26, 13, 0, 194, 203, 3, 20, 10, 0, 195, 203, 3, 32, 16, 0, 196, 203, 3, 38, 19, 0, 197, 203, 3, 44, 22, 0, 198, 203, 3, 48, 24, 0, 199, 203, 3, 58, 29, 0, 200, 203, 3, 10, 5, 0, 201, 203, 3, 12, 6, 0, 202, 190, 1, 0, 0, 0, 202, 191, 1, 0, 0, 0, 202, 192, 1, 0, 0, 0, 202, 193, 1, 0, 0, 0, 202, 194, 1, 0, 0, 0, 202, 195, 1, 0, 0, 0, 202, 196, 1, 0, 0, 0, 202, 197, 1, 0, 0, 0, 202, 198, 1, 0, 0, 0, 202, 199, 1, 0, 0, 0, 202, 200, 1, 0, 0, 0, 202, 201, 1, 0, 0, 0, 203, 3, 1, 0, 0, 0, 204, 205, 5, 1, 0, 0, 205, 206, 5, 73, 0, 0, 206, 207, 5, 53, 0, 0, 207, 208, 7, 0, 0, 0, 208, 5, 1, 0, 0, 0, 209, 210, 5, 2, 0, 0, 210, 212, 3, 144, 72, 0, 211, 213, 3, 14, 7, 0, 212, 211, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 212, 1, 0, 0, 0, 214, 215, 1, 0, 0, 0, 215, 219, 1, 0, 0, 0, 216, 218, 3, 16, 8, 0, 217, 216, 1, 0, 0, 0, 218, 221, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 7, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 223, 5, 3, 0, 0, 223, 228, 3, 144, 72, 0, 224, 227, 3, 14, 7, 0, 225, 227, 3, 86, 43, 0, 226, 224, 1, 0, 0, 0, 226, 225, 1, 0, 0, 0, 227, 230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 234, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 231, 233, 3, 16, 8, 0, 232, 231, 1, 0, 0, 0, 233, 236, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 234, 235, 1, 0, 0, 0, 235, 9, 1, 0, 0, 0, 236, 234, 1, 0, 0, 0, 237, 238, 5, 11, 0, 0, 238, 243, 3, 144, 72, 0, 239, 242, 3, 14, 7, 0, 240, 242, 3, 92, 46, 0, 241, 239, 1, 0, 0, 0, 241, 240, 1, 0, 0, 0, 242, 245, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 243, 244, 1, 0, 0, 0, 244, 249, 1, 0, 0, 0, 245, 243, 1, 0, 0, 0, 246, 248, 3, 18, 9, 0, 247, 246, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 11, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 252, 253, 5, 12, 0, 0, 253, 257, 3, 144, 72, 0, 254, 256, 3, 14, 7, 0, 255, 254, 1, 0, 0, 0, 256, 259, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 257, 258, 1, 0, 0, 0, 258, 263, 1, 0, 0, 0, 259, 257, 1, 0, 0, 0, 260, 262, 3, 18, 9, 0, 261, 260, 1, 0, 0, 0, 262, 265, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 13, 1, 0, 0, 0, 265, 263, 1, 0, 0, 0, 266, 271, 3, 64, 32, 0, 267, 271, 3, 66, 33, 0, 268, 271, 3, 68, 34, 0, 269, 271, 3, 70, 35, 0, 270, 266, 1, 0, 0, 0, 270, 267, 1, 0, 0, 0, 270, 268, 1, 0, 0, 0, 270, 269, 1, 0, 0, 0, 271, 15, 1, 0, 0, 0, 272, 283, 3, 94, 47, 0, 273, 283, 3, 96, 48, 0, 274, 283, 3, 98, 49, 0, 275, 283, 3, 100, 50, 0, 276, 283, 3, 102, 51, 0, 277, 283, 3, 104, 52, 0, 278, 283, 3, 106, 53, 0, 279, 283, 3, 108, 54, 0, 280, 283, 3, 114, 57, 0, 281, 283, 3, 122, 61, 0, 282, 272, 1, 0, 0, 0, 282, 273, 1, 0, 0, 0, 282, 274, 1, 0, 0, 0, 282, 275, 1, 0, 0, 0, 282, 276, 1, 0, 0, 0, 282, 277, 1, 0, 0, 0, 282, 278, 1, 0, 0, 0, 282, 279, 1, 0, 0, 0, 282, 280, 1, 0, 0, 0, 282, 281, 1, 0, 0, 0, 283, 17, 1, 0, 0, 0, 284, 288, 3, 16, 8, 0, 285, 288, 3, 120, 60, 0, 286, 288, 3, 118, 59, 0, 287, 284, 1, 0, 0, 0, 287, 285, 1, 0, 0, 0, 287, 286, 1, 0, 0, 0, 288, 19, 1, 0, 0, 0, 289, 290, 5, 4, 0, 0, 290, 294, 3, 144, 72, 0, 291, 293, 3, 22, 11, 0, 292, 291, 1, 0, 0, 0, 293, 296, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 300, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 297, 299, 3, 24, 12, 0, 298, 297, 1, 0, 0, 0, 299, 302, 1, 0, 0, 0, 300, 298, 1, 0, 0, 0, 300, 301, 1, 0, 0, 0, 301, 21, 1, 0, 0, 0, 302, 300, 1, 0, 0, 0, 303, 308, 3, 78, 39, 0, 304, 308, 3, 68, 34, 0, 305, 308, 3, 70, 35, 0, 306, 308, 3, 80, 40, 0, 307, 303, 1, 0, 0, 0, 307, 304, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 307, 306, 1, 0, 0, 0, 308, 23, 1, 0, 0, 0, 309, 313, 3, 100, 50, 0, 310, 313, 3, 114, 57, 0, 311, 313, 3, 122, 61, 0, 312, 309, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 311, 1, 0, 0, 0, 313, 25, 1, 0, 0, 0, 314, 315, 5, 6, 0, 0, 315, 319, 3, 144, 72, 0, 316, 318, 3, 28, 14, 0, 317, 316, 1, 0, 0, 0, 318, 321, 1, 0, 0, 0, 319, 317, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 325, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 322, 324, 3, 30, 15, 0, 323, 322, 1, 0, 0, 0, 324, 327, 1, 0, 0, 0, 325, 323, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 27, 1, 0, 0, 0, 327, 325, 1, 0, 0, 0, 328, 333, 3, 70, 35, 0, 329, 333, 3, 72, 36, 0, 330, 333, 3, 74, 37, 0, 331, 333, 3, 76, 38, 0, 332, 328, 1, 0, 0, 0, 332, 329, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 331, 1, 0, 0, 0, 333, 29, 1, 0, 0, 0, 334, 338, 3, 100, 50, 0, 335, 338, 3, 114, 57, 0, 336, 338, 3, 122, 61, 0, 337, 334, 1, 0, 0, 0, 337, 335, 1, 0, 0, 0, 337, 336, 1, 0, 0, 0, 338, 31, 1, 0, 0, 0, 339, 340, 5, 7, 0, 0, 340, 344, 3, 144, 72, 0, 341, 343, 3, 34, 17, 0, 342, 341, 1, 0, 0, 0, 343, 346, 1, 0, 0, 0, 344, 342, 1, 0, 0, 0, 344, 345, 1, 0, 0, 0, 345, 350, 1, 0, 0, 0, 346, 344, 1, 0, 0, 0, 347, 349, 3, 36, 18, 0, 348, 347, 1, 0, 0, 0, 349, 352, 1, 0, 0, 0, 350, 348, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 33, 1, 0, 0, 0, 352, 350, 1, 0, 0, 0, 353, 357, 3, 66, 33, 0, 354, 357, 3, 68, 34, 0, 355, 357, 3, 70, 35, 0, 356, 353, 1, 0, 0, 0, 356, 354, 1, 0, 0, 0, 356, 355, 1, 0, 0, 0, 357, 35, 1, 0, 0, 0, 358, 364, 3, 124, 62, 0, 359, 364, 3, 108, 54, 0, 360, 364, 3, 110, 55, 0, 361, 364, 3, 114, 57, 0, 362, 364, 3, 116, 58, 0, 363, 358, 1, 0, 0, 0, 363, 359, 1, 0, 0, 0, 363, 360, 1, 0, 0, 0, 363, 361, 1, 0, 0, 0, 363, 362, 1, 0, 0, 0, 364, 37, 1, 0, 0, 0, 365, 366, 5, 8, 0, 0, 366, 370, 3, 144, 72, 0, 367, 369, 3, 40, 20, 0, 368, 367, 1, 0, 0, 0, 369, 372, 1, 0, 0, 0, 370, 368, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 376, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 373, 375, 3, 42, 21, 0, 374, 373, 1, 0, 0, 0, 375, 378, 1, 0, 0, 0, 376, 374, 1, 0, 0, 0, 376, 377, 1, 0, 0, 0, 377, 39, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 379, 383, 3, 66, 33, 0, 380, 383, 3, 68, 34, 0, 381, 383, 3, 70, 35, 0, 382, 379, 1, 0, 0, 0, 382, 380, 1, 0, 0, 0, 382, 381, 1, 0, 0, 0, 383, 41, 1, 0, 0, 0, 384, 388, 3, 160, 80, 0, 385, 388, 3, 110, 55, 0, 386, 388, 3, 116, 58, 0, 387, 384, 1, 0, 0, 0, 387, 385, 1, 0, 0, 0, 387, 386, 1, 0, 0, 0, 388, 43, 1, 0, 0, 0, 389, 390, 5, 9, 0, 0, 390, 392, 5, 77, 0, 0, 391, 393, 3, 46, 23, 0, 392, 391, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 392, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 405, 3, 16, 8, 0, 397, 405, 3, 120, 60, 0, 398, 405, 3, 118, 59, 0, 399, 405, 3, 160, 80, 0, 400, 405, 3, 110, 55, 0, 401, 405, 3, 116, 58, 0, 402, 405, 3, 124, 62, 0, 403, 405, 3, 112, 56, 0, 404, 396, 1, 0, 0, 0, 404, 397, 1, 0, 0, 0, 404, 398, 1, 0, 0, 0, 404, 399, 1, 0, 0, 0, 404, 400, 1, 0, 0, 0, 404, 401, 1, 0, 0, 0, 404, 402, 1, 0, 0, 0, 404, 403, 1, 0, 0, 0, 405, 47, 1, 0, 0, 0, 406, 407, 5, 9, 0, 0, 407, 408, 3, 50, 25, 0, 408, 409, 3, 56, 28, 0, 409, 49, 1, 0, 0, 0, 410, 414, 5, 76, 0, 0, 411, 413, 3, 52, 26, 0, 412, 411, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 412, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 417, 1, 0, 0, 0, 416, 414, 1, 0, 0, 0, 417, 418, 3, 54, 27, 0, 418, 51, 1, 0, 0, 0, 419, 420, 7, 1, 0, 0, 420, 53, 1, 0, 0, 0, 421, 422, 7, 2, 0, 0, 422, 55, 1, 0, 0, 0, 423, 427, 5, 54, 0, 0, 424, 426, 8, 3, 0, 0, 425, 424, 1, 0, 0, 0, 426, 429, 1, 0, 0, 0, 427, 425, 1, 0, 0, 0, 427, 428, 1, 0, 0, 0, 428, 57, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 430, 431, 5, 10, 0, 0, 431, 435, 3, 144, 72, 0, 432, 434, 3, 60, 30, 0, 433, 432, 1, 0, 0, 0, 434, 437, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 441, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 438, 440, 3, 62, 31, 0, 439, 438, 1, 0, 0, 0, 440, 443, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 441, 442, 1, 0, 0, 0, 442, 59, 1, 0, 0, 0, 443, 441, 1, 0, 0, 0, 444, 450, 3, 66, 33, 0, 445, 450, 3, 82, 41, 0, 446, 450, 3, 84, 42, 0, 447, 450, 3, 70, 35, 0, 448, 450, 3, 68, 34, 0, 449, 444, 1, 0, 0, 0, 449, 445, 1, 0, 0, 0, 449, 446, 1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 449, 448, 1, 0, 0, 0, 450, 61, 1, 0, 0, 0, 451, 455, 3, 112, 56, 0, 452, 455, 3, 114, 57, 0, 453, 455, 3, 122, 61, 0, 454, 451, 1, 0, 0, 0, 454, 452, 1, 0, 0, 0, 454, 453, 1, 0, 0, 0, 455, 63, 1, 0, 0, 0, 456, 457, 5, 13, 0, 0, 457, 458, 3, 144, 72, 0, 458, 65, 1, 0, 0, 0, 459, 460, 5, 14, 0, 0, 460, 461, 3, 144, 72, 0, 461, 67, 1, 0, 0, 0, 462, 463, 5, 15, 0, 0, 463, 464, 5, 58, 0, 0, 464, 69, 1, 0, 0, 0, 465, 466, 5, 16, 0, 0, 466, 467, 7, 4, 0, 0, 467, 71, 1, 0, 0, 0, 468, 469, 5, 17, 0, 0, 469, 470, 5, 58, 0, 0, 470, 73, 1, 0, 0, 0, 471, 472, 5, 18, 0, 0, 472, 473, 5, 58, 0, 0, 473, 75, 1, 0, 0, 0, 474, 475, 5, 19, 0, 0, 475, 476, 5, 62, 0, 0, 476, 77, 1, 0, 0, 0, 477, 478, 5, 5, 0, 0, 478, 479, 3, 144, 72, 0, 479, 79, 1, 0, 0, 0, 480, 481, 5, 20, 0, 0, 481, 482, 5, 62, 0, 0, 482, 81, 1, 0, 0, 0, 483, 484, 5, 21, 0, 0, 484, 485, 3, 144, 72, 0, 485, 83, 1, 0, 0, 0, 486, 487, 5, 22, 0, 0, 487, 488, 5, 58, 0, 0, 488, 85, 1, 0, 0, 0, 489, 493, 5, 23, 0, 0, 490, 492, 3, 88, 44, 0, 491, 490, 1, 0, 0, 0, 492, 495, 1, 0, 0, 0, 493, 491, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 496, 1, 0, 0, 0, 495, 493, 1, 0, 0, 0, 496, 497, 3, 90, 45, 0, 497, 87, 1, 0, 0, 0, 498, 499, 7, 5, 0, 0, 499, 89, 1, 0, 0, 0, 500, 501, 7, 6, 0, 0, 501, 91, 1, 0, 0, 0, 502, 506, 5, 24, 0, 0, 503, 505, 5, 87, 0, 0, 504, 503, 1, 0, 0, 0, 505, 508, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 506, 507, 1, 0, 0, 0, 507, 509, 1, 0, 0, 0, 508, 506, 1, 0, 0, 0, 509, 510, 5, 88, 0, 0, 510, 93, 1, 0, 0, 0, 511, 512, 5, 54, 0, 0, 512, 513, 3, 146, 73, 0, 513, 517, 5, 66, 0, 0, 514, 516, 3, 150, 75, 0, 515, 514, 1, 0, 0, 0, 516, 519, 1, 0, 0, 0, 517, 515, 1, 0, 0, 0, 517, 518, 1, 0, 0, 0, 518, 95, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 520, 521, 5, 54, 0, 0, 521, 526, 3, 146, 73, 0, 522, 523, 5, 38, 0, 0, 523, 525, 3, 146, 73, 0, 524, 522, 1, 0, 0, 0, 525, 528, 1, 0, 0, 0, 526, 524, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 530, 1, 0, 0, 0, 528, 526, 1, 0, 0, 0, 529, 531, 3, 150, 75, 0, 530, 529, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 530, 1, 0, 0, 0, 532, 533, 1, 0, 0, 0, 533, 97, 1, 0, 0, 0, 534, 535, 5, 54, 0, 0, 535, 536, 3, 146, 73, 0, 536, 537, 5, 31, 0, 0, 537, 539, 3, 144, 72, 0, 538, 540, 3, 152, 76, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 99, 1, 0, 0, 0, 541, 542, 5, 54, 0, 0, 542, 543, 3, 146, 73, 0, 543, 544, 5, 53, 0, 0, 544, 546, 3, 154, 77, 0, 545, 547, 5, 50, 0, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 101, 1, 0, 0, 0, 548, 549, 5, 54, 0, 0, 549, 550, 3, 146, 73, 0, 550, 551, 5, 36, 0, 0, 551, 556, 3, 156, 78, 0, 552, 553, 5, 38, 0, 0, 553, 555, 3, 156, 78, 0, 554, 552, 1, 0, 0, 0, 555, 558, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 103, 1, 0, 0, 0, 558, 556, 1, 0, 0, 0, 559, 560, 5, 54, 0, 0, 560, 561, 3, 146, 73, 0, 561, 562, 5, 39, 0, 0, 562, 567, 3, 178, 89, 0, 563, 564, 5, 40, 0, 0, 564, 566, 3, 178, 89, 0, 565, 563, 1, 0, 0, 0, 566, 569, 1, 0, 0, 0, 567, 565, 1, 0, 0, 0, 567, 568, 1, 0, 0, 0, 568, 105, 1, 0, 0, 0, 569, 567, 1, 0, 0, 0, 570, 572, 5, 54, 0, 0, 571, 573, 3, 146, 73, 0, 572, 571, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 574, 1, 0, 0, 0, 574, 575, 5, 41, 0, 0, 575, 580, 3, 144, 72, 0, 576, 577, 5, 38, 0, 0, 577, 579, 3, 144, 72, 0, 578, 576, 1, 0, 0, 0, 579, 582, 1, 0, 0, 0, 580, 578, 1, 0, 0, 0, 580, 581, 1, 0, 0, 0, 581, 107, 1, 0, 0, 0, 582, 580, 1, 0, 0, 0, 583, 585, 5, 54, 0, 0, 584, 586, 3, 146, 73, 0, 585, 584, 1, 0, 0, 0, 585, 586, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 3, 148, 74, 0, 588, 589, 5, 53, 0, 0, 589, 590, 3, 154, 77, 0, 590, 109, 1, 0, 0, 0, 591, 595, 5, 54, 0, 0, 592, 594, 5, 62, 0, 0, 593, 592, 1, 0, 0, 0, 594, 597, 1, 0, 0, 0, 595, 593, 1, 0, 0, 0, 595, 596, 1, 0, 0, 0, 596, 598, 1, 0, 0, 0, 597, 595, 1, 0, 0, 0, 598, 599, 3, 148, 74, 0, 599, 600, 5, 53, 0, 0, 600, 601, 3, 154, 77, 0, 601, 111, 1, 0, 0, 0, 602, 604, 5, 54, 0, 0, 603, 605, 3, 146, 73, 0, 604, 603, 1, 0, 0, 0, 604, 605, 1, 0, 0, 0, 605, 606, 1, 0, 0, 0, 606, 607, 5, 57, 0, 0, 607, 609, 5, 58, 0, 0, 608, 610, 5, 58, 0, 0, 609, 608, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 612, 1, 0, 0, 0, 611, 613, 5, 62, 0, 0, 612, 611, 1, 0, 0, 0, 612, 613, 1, 0, 0, 0, 613, 113, 1, 0, 0, 0, 614, 616, 5, 54, 0, 0, 615, 617, 3, 146, 73, 0, 616, 615, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 1, 0, 0, 0, 618, 621, 5, 51, 0, 0, 619, 622, 5, 77, 0, 0, 620, 622, 3, 50, 25, 0, 621, 619, 1, 0, 0, 0, 621, 620, 1, 0, 0, 0, 622, 115, 1, 0, 0, 0, 623, 627, 5, 54, 0, 0, 624, 626, 5, 62, 0, 0, 625, 624, 1, 0, 0, 0, 626, 629, 1, 0, 0, 0, 627, 625, 1, 0, 0, 0, 627, 628, 1, 0, 0, 0, 628, 630, 1, 0, 0, 0, 629, 627, 1, 0, 0, 0, 630, 633, 5, 51, 0, 0, 631, 634, 5, 77, 0, 0, 632, 634, 3, 50, 25, 0, 633, 631, 1, 0, 0, 0, 633, 632, 1, 0, 0, 0, 634, 117, 1, 0, 0, 0, 635, 636, 5, 54, 0, 0, 636, 637, 3, 146, 73, 0, 637, 641, 5, 66, 0, 0, 638, 640, 3, 150, 75, 0, 639, 638, 1, 0, 0, 0, 640, 643, 1, 0, 0, 0, 641, 639, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 644, 1, 0, 0, 0, 643, 641, 1, 0, 0, 0, 644, 645, 5, 52, 0, 0, 645, 646, 7, 0, 0, 0, 646, 648, 5, 58, 0, 0, 647, 649, 7, 4, 0, 0, 648, 647, 1, 0, 0, 0, 648, 649, 1, 0, 0, 0, 649, 119, 1, 0, 0, 0, 650, 651, 5, 54, 0, 0, 651, 652, 3, 146, 73, 0, 652, 656, 5, 66, 0, 0, 653, 655, 3, 150, 75, 0, 654, 653, 1, 0, 0, 0, 655, 658, 1, 0, 0, 0, 656, 654, 1, 0, 0, 0, 656, 657, 1, 0, 0, 0, 657, 659, 1, 0, 0, 0, 658, 656, 1, 0, 0, 0, 659, 664, 3, 178, 89, 0, 660, 661, 5, 40, 0, 0, 661, 663, 3, 178, 89, 0, 662, 660, 1, 0, 0, 0, 663, 666, 1, 0, 0, 0, 664, 662, 1, 0, 0, 0, 664, 665, 1, 0, 0, 0, 665, 667, 1, 0, 0, 0, 666, 664, 1, 0, 0, 0, 667, 669, 5, 58, 0, 0, 668, 670, 7, 4, 0, 0, 669, 668, 1, 0, 0, 0, 669, 670, 1, 0, 0, 0, 670, 121, 1, 0, 0, 0, 671, 672, 5, 54, 0, 0, 672, 673, 3, 146, 73, 0, 673, 123, 1, 0, 0, 0, 674, 676, 5, 54, 0, 0, 675, 677, 7, 7, 0, 0, 676, 675, 1, 0, 0, 0, 676, 677, 1, 0, 0, 0, 677, 680, 1, 0, 0, 0, 678, 681, 3, 126, 63, 0, 679, 681, 3, 128, 64, 0, 680, 678, 1, 0, 0, 0, 680, 679, 1, 0, 0, 0, 681, 125, 1, 0, 0, 0, 682, 684, 3, 158, 79, 0, 683, 685, 3, 130, 65, 0, 684, 683, 1, 0, 0, 0, 684, 685, 1, 0, 0, 0, 685, 127, 1, 0, 0, 0, 686, 687, 5, 46, 0, 0, 687, 690, 3, 130, 65, 0, 688, 689, 5, 47, 0, 0, 689, 691, 3, 136, 68, 0, 690, 688, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 129, 1, 0, 0, 0, 692, 703, 5, 31, 0, 0, 693, 696, 3, 132, 66, 0, 694, 695, 5, 38, 0, 0, 695, 697, 3, 134, 67, 0, 696, 694, 1, 0, 0, 0, 696, 697, 1, 0, 0, 0, 697, 704, 1, 0, 0, 0, 698, 701, 3, 134, 67, 0, 699, 700, 5, 38, 0, 0, 700, 702, 3, 132, 66, 0, 701, 699, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 704, 1, 0, 0, 0, 703, 693, 1, 0, 0, 0, 703, 698, 1, 0, 0, 0, 704, 131, 1, 0, 0, 0, 705, 706, 5, 49, 0, 0, 706, 707, 3, 144, 72, 0, 707, 133, 1, 0, 0, 0, 708, 709, 5, 48, 0, 0, 709, 714, 3, 144, 72, 0, 710, 711, 5, 38, 0, 0, 711, 713, 3, 144, 72, 0, 712, 710, 1, 0, 0, 0, 713, 716, 1, 0, 0, 0, 714, 712, 1, 0, 0, 0, 714, 715, 1, 0, 0, 0, 715, 135, 1, 0, 0, 0, 716, 714, 1, 0, 0, 0, 717, 722, 3, 138, 69, 0, 718, 719, 5, 38, 0, 0, 719, 721, 3, 138, 69, 0, 720, 718, 1, 0, 0, 0, 721, 724, 1, 0, 0, 0, 722, 720, 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 137, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 725, 726, 3, 144, 72, 0, 726, 728, 3, 140, 70, 0, 727, 729, 3, 142, 71, 0, 728, 727, 1, 0, 0, 0, 728, 729, 1, 0, 0, 0, 729, 139, 1, 0, 0, 0, 730, 731, 7, 8, 0, 0, 731, 141, 1, 0, 0, 0, 732, 738, 3, 158, 79, 0, 733, 738, 5, 42, 0, 0, 734, 738, 5, 43, 0, 0, 735, 738, 5, 71, 0, 0, 736, 738, 5, 58, 0, 0, 737, 732, 1, 0, 0, 0, 737, 733, 1, 0, 0, 0, 737, 734, 1, 0, 0, 0, 737, 735, 1, 0, 0, 0, 737, 736, 1, 0, 0, 0, 738, 143, 1, 0, 0, 0, 739, 740, 7, 9, 0, 0, 740, 145, 1, 0, 0, 0, 741, 745, 5, 73, 0, 0, 742, 745, 5, 60, 0, 0, 743, 745, 3, 180, 90, 0, 744, 741, 1, 0, 0, 0, 744, 742, 1, 0, 0, 0, 744, 743, 1, 0, 0, 0, 745, 147, 1, 0, 0, 0, 746, 747, 5, 70, 0, 0, 747, 149, 1, 0, 0, 0, 748, 749, 7, 10, 0, 0, 749, 151, 1, 0, 0, 0, 750, 751, 7, 11, 0, 0, 751, 153, 1, 0, 0, 0, 752, 765, 5, 58, 0, 0, 753, 765, 5, 59, 0, 0, 754, 765, 5, 60, 0, 0, 755, 765, 5, 64, 0, 0, 756, 765, 5, 65, 0, 0, 757, 765, 3, 166, 83, 0, 758, 765, 3, 172, 86, 0, 759, 765, 3, 158, 79, 0, 760, 765, 3, 162, 81, 0, 761, 765, 3, 164, 82, 0, 762, 765, 3, 176, 88, 0, 763, 765, 3, 144, 72, 0, 764, 752, 1, 0, 0, 0, 764, 753, 1, 0, 0, 0, 764, 754, 1, 0, 0, 0, 764, 755, 1, 0, 0, 0, 764, 756, 1, 0, 0, 0, 764, 757, 1, 0, 0, 0, 764, 758, 1, 0, 0, 0, 764, 759, 1, 0, 0, 0, 764, 760, 1, 0, 0, 0, 764, 761, 1, 0, 0, 0, 764, 762, 1, 0, 0, 0, 764, 763, 1, 0, 0, 0, 765, 155, 1, 0, 0, 0, 766, 769, 3, 144, 72, 0, 767, 768, 5, 37, 0, 0, 768, 770, 3, 144, 72, 0, 769, 767, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 771, 1, 0, 0, 0, 771, 775, 5, 66, 0, 0, 772, 774, 3, 150, 75, 0, 773, 772, 1, 0, 0, 0, 774, 777, 1, 0, 0, 0, 775, 773, 1, 0, 0, 0, 775, 776, 1, 0, 0, 0, 776, 157, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 778, 780, 5, 62, 0, 0, 779, 781, 5, 58, 0, 0, 780, 779, 1, 0, 0, 0, 780, 781, 1, 0, 0, 0, 781, 159, 1, 0, 0, 0, 782, 784, 5, 54, 0, 0, 783, 785, 5, 62, 0, 0, 784, 783, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 784, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 789, 1, 0, 0, 0, 788, 790, 5, 58, 0, 0, 789, 788, 1, 0, 0, 0, 789, 790, 1, 0, 0, 0, 790, 792, 1, 0, 0, 0, 791, 793, 7, 4, 0, 0, 792, 791, 1, 0, 0, 0, 792, 793, 1, 0, 0, 0, 793, 161, 1, 0, 0, 0, 794, 795, 5, 60, 0, 0, 795, 797, 7, 12, 0, 0, 796, 798, 5, 58, 0, 0, 797, 796, 1, 0, 0, 0, 797, 798, 1, 0, 0, 0, 798, 163, 1, 0, 0, 0, 799, 800, 3, 174, 87, 0, 800, 801, 5, 55, 0, 0, 801, 802, 3, 174, 87, 0, 802, 165, 1, 0, 0, 0, 803, 805, 5, 67, 0, 0, 804, 806, 5, 58, 0, 0, 805, 804, 1, 0, 0, 0, 805, 806, 1, 0, 0, 0, 806, 167, 1, 0, 0, 0, 807, 808, 5, 67, 0, 0, 808, 169, 1, 0, 0, 0, 809, 810, 5, 68, 0, 0, 810, 171, 1, 0, 0, 0, 811, 812, 5, 69, 0, 0, 812, 173, 1, 0, 0, 0, 813, 816, 5, 60, 0, 0, 814, 816, 3, 162, 81, 0, 815, 813, 1, 0, 0, 0, 815, 814, 1, 0, 0, 0, 816, 175, 1, 0, 0, 0, 817, 818, 7, 13, 0, 0, 818, 177, 1, 0, 0, 0, 819, 824, 3, 144, 72, 0, 820, 824, 3, 168, 84, 0, 821, 824, 3, 172, 86, 0, 822, 824, 3, 170, 85, 0, 823, 819, 1, 0, 0, 0, 823, 820, 1, 0, 0, 0, 823, 821, 1, 0, 0, 0, 823, 822, 1, 0, 0, 0, 824, 179, 1, 0, 0, 0, 825, 826, 7, 14, 0, 0, 826, 181, 1, 0, 0, 0, 87, 185, 202, 214, 219, 226, 228, 234, 241, 243, 249, 257, 263, 270, 282, 287, 294, 300, 307, 312, 319, 325, 332, 337, 344, 350, 356, 363, 370, 376, 382, 387, 394, 404, 414, 427, 435, 441, 449, 454, 493, 506, 517, 526, 532, 539, 546, 556, 567, 572, 580, 585, 595, 604, 609, 612, 616, 621, 627, 633, 641, 648, 656, 664, 669, 676, 680, 684, 690, 696, 701, 703, 714, 722, 728, 737, 744, 764, 769, 775, 780, 786, 789, 792, 797, 805, 815, 823] \ No newline at end of file diff --git a/src/import/generated/FSHParser.js b/src/import/generated/FSHParser.js index f739b6048..c41677f54 100644 --- a/src/import/generated/FSHParser.js +++ b/src/import/generated/FSHParser.js @@ -4,7 +4,7 @@ import antlr4 from 'antlr4'; import FSHListener from './FSHListener.js'; import FSHVisitor from './FSHVisitor.js'; -const serializedATN = [4,1,89,838,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7, +const serializedATN = [4,1,89,828,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7, 4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12, 2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2, 20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27, @@ -30,260 +30,256 @@ const serializedATN = [4,1,89,838,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7, 324,8,13,10,13,12,13,327,9,13,1,14,1,14,1,14,1,14,3,14,333,8,14,1,15,1,15, 1,15,3,15,338,8,15,1,16,1,16,1,16,5,16,343,8,16,10,16,12,16,346,9,16,1,16, 5,16,349,8,16,10,16,12,16,352,9,16,1,17,1,17,1,17,3,17,357,8,17,1,18,1,18, -1,18,3,18,362,8,18,1,19,1,19,1,19,5,19,367,8,19,10,19,12,19,370,9,19,1,19, -5,19,373,8,19,10,19,12,19,376,9,19,1,20,1,20,1,20,3,20,381,8,20,1,21,1,21, -1,21,3,21,386,8,21,1,22,1,22,1,22,4,22,391,8,22,11,22,12,22,392,1,23,1,23, -1,23,1,23,1,23,1,23,1,23,1,23,3,23,403,8,23,1,24,1,24,1,24,1,24,1,25,1,25, -5,25,411,8,25,10,25,12,25,414,9,25,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1, -28,5,28,424,8,28,10,28,12,28,427,9,28,1,29,1,29,1,29,5,29,432,8,29,10,29, -12,29,435,9,29,1,29,5,29,438,8,29,10,29,12,29,441,9,29,1,30,1,30,1,30,1, -30,1,30,3,30,448,8,30,1,31,1,31,1,31,3,31,453,8,31,1,32,1,32,1,32,1,33,1, -33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,38, -1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,42,1, -43,1,43,5,43,490,8,43,10,43,12,43,493,9,43,1,43,1,43,1,44,1,44,1,45,1,45, -1,46,1,46,5,46,503,8,46,10,46,12,46,506,9,46,1,46,1,46,1,47,1,47,1,47,1, -47,5,47,514,8,47,10,47,12,47,517,9,47,1,48,1,48,1,48,1,48,5,48,523,8,48, -10,48,12,48,526,9,48,1,48,4,48,529,8,48,11,48,12,48,530,1,49,1,49,1,49,1, -49,1,49,3,49,538,8,49,1,50,1,50,1,50,1,50,1,50,3,50,545,8,50,1,51,1,51,1, -51,1,51,1,51,1,51,5,51,553,8,51,10,51,12,51,556,9,51,1,52,1,52,1,52,1,52, -1,52,1,52,5,52,564,8,52,10,52,12,52,567,9,52,1,53,1,53,3,53,571,8,53,1,53, -1,53,1,53,1,53,5,53,577,8,53,10,53,12,53,580,9,53,1,54,1,54,3,54,584,8,54, -1,54,1,54,1,54,1,54,1,55,1,55,5,55,592,8,55,10,55,12,55,595,9,55,1,55,1, -55,1,55,1,55,1,56,1,56,3,56,603,8,56,1,56,1,56,1,56,3,56,608,8,56,1,56,3, -56,611,8,56,1,57,1,57,3,57,615,8,57,1,57,1,57,1,57,3,57,620,8,57,1,58,1, -58,5,58,624,8,58,10,58,12,58,627,9,58,1,58,1,58,1,58,3,58,632,8,58,1,59, -1,59,1,59,1,59,5,59,638,8,59,10,59,12,59,641,9,59,1,59,1,59,1,59,1,59,3, -59,647,8,59,1,60,1,60,1,60,1,60,5,60,653,8,60,10,60,12,60,656,9,60,1,60, -1,60,1,60,5,60,661,8,60,10,60,12,60,664,9,60,1,60,1,60,3,60,668,8,60,1,61, -1,61,1,61,1,62,1,62,3,62,675,8,62,1,62,1,62,3,62,679,8,62,1,63,1,63,3,63, -683,8,63,1,63,1,63,1,63,4,63,688,8,63,11,63,12,63,689,1,63,1,63,1,63,3,63, -695,8,63,1,64,1,64,1,64,1,64,3,64,701,8,64,1,65,1,65,1,65,1,65,3,65,707, -8,65,1,65,1,65,1,65,3,65,712,8,65,3,65,714,8,65,1,66,1,66,1,66,1,67,1,67, -1,67,1,67,5,67,723,8,67,10,67,12,67,726,9,67,1,68,1,68,1,68,5,68,731,8,68, -10,68,12,68,734,9,68,1,69,1,69,1,69,3,69,739,8,69,1,70,1,70,1,71,1,71,1, -71,1,71,1,71,3,71,748,8,71,1,72,1,72,1,73,1,73,1,73,3,73,755,8,73,1,74,1, -74,1,75,1,75,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77, -1,77,1,77,3,77,775,8,77,1,78,1,78,1,78,3,78,780,8,78,1,78,1,78,5,78,784, -8,78,10,78,12,78,787,9,78,1,79,1,79,3,79,791,8,79,1,80,1,80,4,80,795,8,80, -11,80,12,80,796,1,80,3,80,800,8,80,1,80,3,80,803,8,80,1,81,1,81,1,81,3,81, -808,8,81,1,82,1,82,1,82,1,82,1,83,1,83,3,83,816,8,83,1,84,1,84,1,85,1,85, -1,86,1,86,1,87,1,87,3,87,826,8,87,1,88,1,88,1,89,1,89,1,89,1,89,3,89,834, -8,89,1,90,1,90,1,90,0,0,91,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32, -34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80, -82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122, -124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158, -160,162,164,166,168,170,172,174,176,178,180,0,15,2,0,62,62,73,73,2,0,78, -78,80,80,2,0,79,79,81,81,2,0,1,4,6,10,1,0,58,59,2,0,82,82,84,84,2,0,83,83, -85,85,1,0,44,45,2,0,53,53,73,73,5,0,26,30,46,46,48,49,60,60,73,73,1,0,25, -30,1,0,32,35,1,0,61,62,1,0,42,43,3,0,26,31,36,49,52,52,892,0,185,1,0,0,0, -2,202,1,0,0,0,4,204,1,0,0,0,6,209,1,0,0,0,8,222,1,0,0,0,10,237,1,0,0,0,12, -252,1,0,0,0,14,270,1,0,0,0,16,282,1,0,0,0,18,287,1,0,0,0,20,289,1,0,0,0, -22,307,1,0,0,0,24,312,1,0,0,0,26,314,1,0,0,0,28,332,1,0,0,0,30,337,1,0,0, -0,32,339,1,0,0,0,34,356,1,0,0,0,36,361,1,0,0,0,38,363,1,0,0,0,40,380,1,0, -0,0,42,385,1,0,0,0,44,387,1,0,0,0,46,402,1,0,0,0,48,404,1,0,0,0,50,408,1, -0,0,0,52,417,1,0,0,0,54,419,1,0,0,0,56,421,1,0,0,0,58,428,1,0,0,0,60,447, -1,0,0,0,62,452,1,0,0,0,64,454,1,0,0,0,66,457,1,0,0,0,68,460,1,0,0,0,70,463, -1,0,0,0,72,466,1,0,0,0,74,469,1,0,0,0,76,472,1,0,0,0,78,475,1,0,0,0,80,478, -1,0,0,0,82,481,1,0,0,0,84,484,1,0,0,0,86,487,1,0,0,0,88,496,1,0,0,0,90,498, -1,0,0,0,92,500,1,0,0,0,94,509,1,0,0,0,96,518,1,0,0,0,98,532,1,0,0,0,100, -539,1,0,0,0,102,546,1,0,0,0,104,557,1,0,0,0,106,568,1,0,0,0,108,581,1,0, -0,0,110,589,1,0,0,0,112,600,1,0,0,0,114,612,1,0,0,0,116,621,1,0,0,0,118, -633,1,0,0,0,120,648,1,0,0,0,122,669,1,0,0,0,124,672,1,0,0,0,126,694,1,0, -0,0,128,696,1,0,0,0,130,702,1,0,0,0,132,715,1,0,0,0,134,718,1,0,0,0,136, -727,1,0,0,0,138,735,1,0,0,0,140,740,1,0,0,0,142,747,1,0,0,0,144,749,1,0, -0,0,146,754,1,0,0,0,148,756,1,0,0,0,150,758,1,0,0,0,152,760,1,0,0,0,154, -774,1,0,0,0,156,776,1,0,0,0,158,788,1,0,0,0,160,792,1,0,0,0,162,804,1,0, -0,0,164,809,1,0,0,0,166,813,1,0,0,0,168,817,1,0,0,0,170,819,1,0,0,0,172, -821,1,0,0,0,174,825,1,0,0,0,176,827,1,0,0,0,178,833,1,0,0,0,180,835,1,0, -0,0,182,184,3,2,1,0,183,182,1,0,0,0,184,187,1,0,0,0,185,183,1,0,0,0,185, -186,1,0,0,0,186,188,1,0,0,0,187,185,1,0,0,0,188,189,5,0,0,1,189,1,1,0,0, -0,190,203,3,4,2,0,191,203,3,6,3,0,192,203,3,8,4,0,193,203,3,26,13,0,194, -203,3,20,10,0,195,203,3,32,16,0,196,203,3,38,19,0,197,203,3,44,22,0,198, -203,3,48,24,0,199,203,3,58,29,0,200,203,3,10,5,0,201,203,3,12,6,0,202,190, -1,0,0,0,202,191,1,0,0,0,202,192,1,0,0,0,202,193,1,0,0,0,202,194,1,0,0,0, -202,195,1,0,0,0,202,196,1,0,0,0,202,197,1,0,0,0,202,198,1,0,0,0,202,199, -1,0,0,0,202,200,1,0,0,0,202,201,1,0,0,0,203,3,1,0,0,0,204,205,5,1,0,0,205, -206,5,73,0,0,206,207,5,53,0,0,207,208,7,0,0,0,208,5,1,0,0,0,209,210,5,2, -0,0,210,212,3,144,72,0,211,213,3,14,7,0,212,211,1,0,0,0,213,214,1,0,0,0, -214,212,1,0,0,0,214,215,1,0,0,0,215,219,1,0,0,0,216,218,3,16,8,0,217,216, -1,0,0,0,218,221,1,0,0,0,219,217,1,0,0,0,219,220,1,0,0,0,220,7,1,0,0,0,221, -219,1,0,0,0,222,223,5,3,0,0,223,228,3,144,72,0,224,227,3,14,7,0,225,227, -3,86,43,0,226,224,1,0,0,0,226,225,1,0,0,0,227,230,1,0,0,0,228,226,1,0,0, -0,228,229,1,0,0,0,229,234,1,0,0,0,230,228,1,0,0,0,231,233,3,16,8,0,232,231, -1,0,0,0,233,236,1,0,0,0,234,232,1,0,0,0,234,235,1,0,0,0,235,9,1,0,0,0,236, -234,1,0,0,0,237,238,5,11,0,0,238,243,3,144,72,0,239,242,3,14,7,0,240,242, -3,92,46,0,241,239,1,0,0,0,241,240,1,0,0,0,242,245,1,0,0,0,243,241,1,0,0, -0,243,244,1,0,0,0,244,249,1,0,0,0,245,243,1,0,0,0,246,248,3,18,9,0,247,246, -1,0,0,0,248,251,1,0,0,0,249,247,1,0,0,0,249,250,1,0,0,0,250,11,1,0,0,0,251, -249,1,0,0,0,252,253,5,12,0,0,253,257,3,144,72,0,254,256,3,14,7,0,255,254, -1,0,0,0,256,259,1,0,0,0,257,255,1,0,0,0,257,258,1,0,0,0,258,263,1,0,0,0, -259,257,1,0,0,0,260,262,3,18,9,0,261,260,1,0,0,0,262,265,1,0,0,0,263,261, -1,0,0,0,263,264,1,0,0,0,264,13,1,0,0,0,265,263,1,0,0,0,266,271,3,64,32,0, -267,271,3,66,33,0,268,271,3,68,34,0,269,271,3,70,35,0,270,266,1,0,0,0,270, -267,1,0,0,0,270,268,1,0,0,0,270,269,1,0,0,0,271,15,1,0,0,0,272,283,3,94, -47,0,273,283,3,96,48,0,274,283,3,98,49,0,275,283,3,100,50,0,276,283,3,102, -51,0,277,283,3,104,52,0,278,283,3,106,53,0,279,283,3,108,54,0,280,283,3, -114,57,0,281,283,3,122,61,0,282,272,1,0,0,0,282,273,1,0,0,0,282,274,1,0, -0,0,282,275,1,0,0,0,282,276,1,0,0,0,282,277,1,0,0,0,282,278,1,0,0,0,282, -279,1,0,0,0,282,280,1,0,0,0,282,281,1,0,0,0,283,17,1,0,0,0,284,288,3,16, -8,0,285,288,3,120,60,0,286,288,3,118,59,0,287,284,1,0,0,0,287,285,1,0,0, -0,287,286,1,0,0,0,288,19,1,0,0,0,289,290,5,4,0,0,290,294,3,144,72,0,291, -293,3,22,11,0,292,291,1,0,0,0,293,296,1,0,0,0,294,292,1,0,0,0,294,295,1, -0,0,0,295,300,1,0,0,0,296,294,1,0,0,0,297,299,3,24,12,0,298,297,1,0,0,0, -299,302,1,0,0,0,300,298,1,0,0,0,300,301,1,0,0,0,301,21,1,0,0,0,302,300,1, -0,0,0,303,308,3,78,39,0,304,308,3,68,34,0,305,308,3,70,35,0,306,308,3,80, -40,0,307,303,1,0,0,0,307,304,1,0,0,0,307,305,1,0,0,0,307,306,1,0,0,0,308, -23,1,0,0,0,309,313,3,100,50,0,310,313,3,114,57,0,311,313,3,122,61,0,312, -309,1,0,0,0,312,310,1,0,0,0,312,311,1,0,0,0,313,25,1,0,0,0,314,315,5,6,0, -0,315,319,3,144,72,0,316,318,3,28,14,0,317,316,1,0,0,0,318,321,1,0,0,0,319, -317,1,0,0,0,319,320,1,0,0,0,320,325,1,0,0,0,321,319,1,0,0,0,322,324,3,30, -15,0,323,322,1,0,0,0,324,327,1,0,0,0,325,323,1,0,0,0,325,326,1,0,0,0,326, -27,1,0,0,0,327,325,1,0,0,0,328,333,3,70,35,0,329,333,3,72,36,0,330,333,3, -74,37,0,331,333,3,76,38,0,332,328,1,0,0,0,332,329,1,0,0,0,332,330,1,0,0, -0,332,331,1,0,0,0,333,29,1,0,0,0,334,338,3,100,50,0,335,338,3,114,57,0,336, -338,3,122,61,0,337,334,1,0,0,0,337,335,1,0,0,0,337,336,1,0,0,0,338,31,1, -0,0,0,339,340,5,7,0,0,340,344,3,144,72,0,341,343,3,34,17,0,342,341,1,0,0, -0,343,346,1,0,0,0,344,342,1,0,0,0,344,345,1,0,0,0,345,350,1,0,0,0,346,344, -1,0,0,0,347,349,3,36,18,0,348,347,1,0,0,0,349,352,1,0,0,0,350,348,1,0,0, -0,350,351,1,0,0,0,351,33,1,0,0,0,352,350,1,0,0,0,353,357,3,66,33,0,354,357, -3,68,34,0,355,357,3,70,35,0,356,353,1,0,0,0,356,354,1,0,0,0,356,355,1,0, -0,0,357,35,1,0,0,0,358,362,3,124,62,0,359,362,3,108,54,0,360,362,3,114,57, -0,361,358,1,0,0,0,361,359,1,0,0,0,361,360,1,0,0,0,362,37,1,0,0,0,363,364, -5,8,0,0,364,368,3,144,72,0,365,367,3,40,20,0,366,365,1,0,0,0,367,370,1,0, -0,0,368,366,1,0,0,0,368,369,1,0,0,0,369,374,1,0,0,0,370,368,1,0,0,0,371, -373,3,42,21,0,372,371,1,0,0,0,373,376,1,0,0,0,374,372,1,0,0,0,374,375,1, -0,0,0,375,39,1,0,0,0,376,374,1,0,0,0,377,381,3,66,33,0,378,381,3,68,34,0, -379,381,3,70,35,0,380,377,1,0,0,0,380,378,1,0,0,0,380,379,1,0,0,0,381,41, -1,0,0,0,382,386,3,160,80,0,383,386,3,110,55,0,384,386,3,116,58,0,385,382, -1,0,0,0,385,383,1,0,0,0,385,384,1,0,0,0,386,43,1,0,0,0,387,388,5,9,0,0,388, -390,5,77,0,0,389,391,3,46,23,0,390,389,1,0,0,0,391,392,1,0,0,0,392,390,1, -0,0,0,392,393,1,0,0,0,393,45,1,0,0,0,394,403,3,16,8,0,395,403,3,120,60,0, -396,403,3,118,59,0,397,403,3,160,80,0,398,403,3,110,55,0,399,403,3,116,58, -0,400,403,3,124,62,0,401,403,3,112,56,0,402,394,1,0,0,0,402,395,1,0,0,0, -402,396,1,0,0,0,402,397,1,0,0,0,402,398,1,0,0,0,402,399,1,0,0,0,402,400, -1,0,0,0,402,401,1,0,0,0,403,47,1,0,0,0,404,405,5,9,0,0,405,406,3,50,25,0, -406,407,3,56,28,0,407,49,1,0,0,0,408,412,5,76,0,0,409,411,3,52,26,0,410, -409,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0, -0,0,414,412,1,0,0,0,415,416,3,54,27,0,416,51,1,0,0,0,417,418,7,1,0,0,418, -53,1,0,0,0,419,420,7,2,0,0,420,55,1,0,0,0,421,425,5,54,0,0,422,424,8,3,0, -0,423,422,1,0,0,0,424,427,1,0,0,0,425,423,1,0,0,0,425,426,1,0,0,0,426,57, -1,0,0,0,427,425,1,0,0,0,428,429,5,10,0,0,429,433,3,144,72,0,430,432,3,60, -30,0,431,430,1,0,0,0,432,435,1,0,0,0,433,431,1,0,0,0,433,434,1,0,0,0,434, -439,1,0,0,0,435,433,1,0,0,0,436,438,3,62,31,0,437,436,1,0,0,0,438,441,1, -0,0,0,439,437,1,0,0,0,439,440,1,0,0,0,440,59,1,0,0,0,441,439,1,0,0,0,442, -448,3,66,33,0,443,448,3,82,41,0,444,448,3,84,42,0,445,448,3,70,35,0,446, -448,3,68,34,0,447,442,1,0,0,0,447,443,1,0,0,0,447,444,1,0,0,0,447,445,1, -0,0,0,447,446,1,0,0,0,448,61,1,0,0,0,449,453,3,112,56,0,450,453,3,114,57, -0,451,453,3,122,61,0,452,449,1,0,0,0,452,450,1,0,0,0,452,451,1,0,0,0,453, -63,1,0,0,0,454,455,5,13,0,0,455,456,3,144,72,0,456,65,1,0,0,0,457,458,5, -14,0,0,458,459,3,144,72,0,459,67,1,0,0,0,460,461,5,15,0,0,461,462,5,58,0, -0,462,69,1,0,0,0,463,464,5,16,0,0,464,465,7,4,0,0,465,71,1,0,0,0,466,467, -5,17,0,0,467,468,5,58,0,0,468,73,1,0,0,0,469,470,5,18,0,0,470,471,5,58,0, -0,471,75,1,0,0,0,472,473,5,19,0,0,473,474,5,62,0,0,474,77,1,0,0,0,475,476, -5,5,0,0,476,477,3,144,72,0,477,79,1,0,0,0,478,479,5,20,0,0,479,480,5,62, -0,0,480,81,1,0,0,0,481,482,5,21,0,0,482,483,3,144,72,0,483,83,1,0,0,0,484, -485,5,22,0,0,485,486,5,58,0,0,486,85,1,0,0,0,487,491,5,23,0,0,488,490,3, -88,44,0,489,488,1,0,0,0,490,493,1,0,0,0,491,489,1,0,0,0,491,492,1,0,0,0, -492,494,1,0,0,0,493,491,1,0,0,0,494,495,3,90,45,0,495,87,1,0,0,0,496,497, -7,5,0,0,497,89,1,0,0,0,498,499,7,6,0,0,499,91,1,0,0,0,500,504,5,24,0,0,501, -503,5,87,0,0,502,501,1,0,0,0,503,506,1,0,0,0,504,502,1,0,0,0,504,505,1,0, -0,0,505,507,1,0,0,0,506,504,1,0,0,0,507,508,5,88,0,0,508,93,1,0,0,0,509, -510,5,54,0,0,510,511,3,146,73,0,511,515,5,66,0,0,512,514,3,150,75,0,513, -512,1,0,0,0,514,517,1,0,0,0,515,513,1,0,0,0,515,516,1,0,0,0,516,95,1,0,0, -0,517,515,1,0,0,0,518,519,5,54,0,0,519,524,3,146,73,0,520,521,5,38,0,0,521, -523,3,146,73,0,522,520,1,0,0,0,523,526,1,0,0,0,524,522,1,0,0,0,524,525,1, -0,0,0,525,528,1,0,0,0,526,524,1,0,0,0,527,529,3,150,75,0,528,527,1,0,0,0, -529,530,1,0,0,0,530,528,1,0,0,0,530,531,1,0,0,0,531,97,1,0,0,0,532,533,5, -54,0,0,533,534,3,146,73,0,534,535,5,31,0,0,535,537,3,144,72,0,536,538,3, -152,76,0,537,536,1,0,0,0,537,538,1,0,0,0,538,99,1,0,0,0,539,540,5,54,0,0, -540,541,3,146,73,0,541,542,5,53,0,0,542,544,3,154,77,0,543,545,5,50,0,0, -544,543,1,0,0,0,544,545,1,0,0,0,545,101,1,0,0,0,546,547,5,54,0,0,547,548, -3,146,73,0,548,549,5,36,0,0,549,554,3,156,78,0,550,551,5,38,0,0,551,553, -3,156,78,0,552,550,1,0,0,0,553,556,1,0,0,0,554,552,1,0,0,0,554,555,1,0,0, -0,555,103,1,0,0,0,556,554,1,0,0,0,557,558,5,54,0,0,558,559,3,146,73,0,559, -560,5,39,0,0,560,565,3,178,89,0,561,562,5,40,0,0,562,564,3,178,89,0,563, -561,1,0,0,0,564,567,1,0,0,0,565,563,1,0,0,0,565,566,1,0,0,0,566,105,1,0, -0,0,567,565,1,0,0,0,568,570,5,54,0,0,569,571,3,146,73,0,570,569,1,0,0,0, -570,571,1,0,0,0,571,572,1,0,0,0,572,573,5,41,0,0,573,578,3,144,72,0,574, -575,5,38,0,0,575,577,3,144,72,0,576,574,1,0,0,0,577,580,1,0,0,0,578,576, -1,0,0,0,578,579,1,0,0,0,579,107,1,0,0,0,580,578,1,0,0,0,581,583,5,54,0,0, -582,584,3,146,73,0,583,582,1,0,0,0,583,584,1,0,0,0,584,585,1,0,0,0,585,586, -3,148,74,0,586,587,5,53,0,0,587,588,3,154,77,0,588,109,1,0,0,0,589,593,5, -54,0,0,590,592,5,62,0,0,591,590,1,0,0,0,592,595,1,0,0,0,593,591,1,0,0,0, -593,594,1,0,0,0,594,596,1,0,0,0,595,593,1,0,0,0,596,597,3,148,74,0,597,598, -5,53,0,0,598,599,3,154,77,0,599,111,1,0,0,0,600,602,5,54,0,0,601,603,3,146, -73,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,605,5,57,0,0,605, -607,5,58,0,0,606,608,5,58,0,0,607,606,1,0,0,0,607,608,1,0,0,0,608,610,1, -0,0,0,609,611,5,62,0,0,610,609,1,0,0,0,610,611,1,0,0,0,611,113,1,0,0,0,612, -614,5,54,0,0,613,615,3,146,73,0,614,613,1,0,0,0,614,615,1,0,0,0,615,616, -1,0,0,0,616,619,5,51,0,0,617,620,5,77,0,0,618,620,3,50,25,0,619,617,1,0, -0,0,619,618,1,0,0,0,620,115,1,0,0,0,621,625,5,54,0,0,622,624,5,62,0,0,623, -622,1,0,0,0,624,627,1,0,0,0,625,623,1,0,0,0,625,626,1,0,0,0,626,628,1,0, -0,0,627,625,1,0,0,0,628,631,5,51,0,0,629,632,5,77,0,0,630,632,3,50,25,0, -631,629,1,0,0,0,631,630,1,0,0,0,632,117,1,0,0,0,633,634,5,54,0,0,634,635, -3,146,73,0,635,639,5,66,0,0,636,638,3,150,75,0,637,636,1,0,0,0,638,641,1, -0,0,0,639,637,1,0,0,0,639,640,1,0,0,0,640,642,1,0,0,0,641,639,1,0,0,0,642, -643,5,52,0,0,643,644,7,0,0,0,644,646,5,58,0,0,645,647,7,4,0,0,646,645,1, -0,0,0,646,647,1,0,0,0,647,119,1,0,0,0,648,649,5,54,0,0,649,650,3,146,73, -0,650,654,5,66,0,0,651,653,3,150,75,0,652,651,1,0,0,0,653,656,1,0,0,0,654, -652,1,0,0,0,654,655,1,0,0,0,655,657,1,0,0,0,656,654,1,0,0,0,657,662,3,178, -89,0,658,659,5,40,0,0,659,661,3,178,89,0,660,658,1,0,0,0,661,664,1,0,0,0, -662,660,1,0,0,0,662,663,1,0,0,0,663,665,1,0,0,0,664,662,1,0,0,0,665,667, -5,58,0,0,666,668,7,4,0,0,667,666,1,0,0,0,667,668,1,0,0,0,668,121,1,0,0,0, -669,670,5,54,0,0,670,671,3,146,73,0,671,123,1,0,0,0,672,674,5,54,0,0,673, -675,7,7,0,0,674,673,1,0,0,0,674,675,1,0,0,0,675,678,1,0,0,0,676,679,3,126, -63,0,677,679,3,128,64,0,678,676,1,0,0,0,678,677,1,0,0,0,679,125,1,0,0,0, -680,682,3,158,79,0,681,683,3,130,65,0,682,681,1,0,0,0,682,683,1,0,0,0,683, -695,1,0,0,0,684,685,3,158,79,0,685,686,5,38,0,0,686,688,1,0,0,0,687,684, -1,0,0,0,688,689,1,0,0,0,689,687,1,0,0,0,689,690,1,0,0,0,690,691,1,0,0,0, -691,692,3,158,79,0,692,693,3,130,65,0,693,695,1,0,0,0,694,680,1,0,0,0,694, -687,1,0,0,0,695,127,1,0,0,0,696,697,5,46,0,0,697,700,3,130,65,0,698,699, -5,47,0,0,699,701,3,136,68,0,700,698,1,0,0,0,700,701,1,0,0,0,701,129,1,0, -0,0,702,713,5,31,0,0,703,706,3,132,66,0,704,705,5,38,0,0,705,707,3,134,67, -0,706,704,1,0,0,0,706,707,1,0,0,0,707,714,1,0,0,0,708,711,3,134,67,0,709, -710,5,38,0,0,710,712,3,132,66,0,711,709,1,0,0,0,711,712,1,0,0,0,712,714, -1,0,0,0,713,703,1,0,0,0,713,708,1,0,0,0,714,131,1,0,0,0,715,716,5,49,0,0, -716,717,3,144,72,0,717,133,1,0,0,0,718,719,5,48,0,0,719,724,3,144,72,0,720, -721,5,38,0,0,721,723,3,144,72,0,722,720,1,0,0,0,723,726,1,0,0,0,724,722, -1,0,0,0,724,725,1,0,0,0,725,135,1,0,0,0,726,724,1,0,0,0,727,732,3,138,69, -0,728,729,5,38,0,0,729,731,3,138,69,0,730,728,1,0,0,0,731,734,1,0,0,0,732, -730,1,0,0,0,732,733,1,0,0,0,733,137,1,0,0,0,734,732,1,0,0,0,735,736,3,144, -72,0,736,738,3,140,70,0,737,739,3,142,71,0,738,737,1,0,0,0,738,739,1,0,0, -0,739,139,1,0,0,0,740,741,7,8,0,0,741,141,1,0,0,0,742,748,3,158,79,0,743, -748,5,42,0,0,744,748,5,43,0,0,745,748,5,71,0,0,746,748,5,58,0,0,747,742, -1,0,0,0,747,743,1,0,0,0,747,744,1,0,0,0,747,745,1,0,0,0,747,746,1,0,0,0, -748,143,1,0,0,0,749,750,7,9,0,0,750,145,1,0,0,0,751,755,5,73,0,0,752,755, -5,60,0,0,753,755,3,180,90,0,754,751,1,0,0,0,754,752,1,0,0,0,754,753,1,0, -0,0,755,147,1,0,0,0,756,757,5,70,0,0,757,149,1,0,0,0,758,759,7,10,0,0,759, -151,1,0,0,0,760,761,7,11,0,0,761,153,1,0,0,0,762,775,5,58,0,0,763,775,5, -59,0,0,764,775,5,60,0,0,765,775,5,64,0,0,766,775,5,65,0,0,767,775,3,166, -83,0,768,775,3,172,86,0,769,775,3,158,79,0,770,775,3,162,81,0,771,775,3, -164,82,0,772,775,3,176,88,0,773,775,3,144,72,0,774,762,1,0,0,0,774,763,1, -0,0,0,774,764,1,0,0,0,774,765,1,0,0,0,774,766,1,0,0,0,774,767,1,0,0,0,774, -768,1,0,0,0,774,769,1,0,0,0,774,770,1,0,0,0,774,771,1,0,0,0,774,772,1,0, -0,0,774,773,1,0,0,0,775,155,1,0,0,0,776,779,3,144,72,0,777,778,5,37,0,0, -778,780,3,144,72,0,779,777,1,0,0,0,779,780,1,0,0,0,780,781,1,0,0,0,781,785, -5,66,0,0,782,784,3,150,75,0,783,782,1,0,0,0,784,787,1,0,0,0,785,783,1,0, -0,0,785,786,1,0,0,0,786,157,1,0,0,0,787,785,1,0,0,0,788,790,5,62,0,0,789, -791,5,58,0,0,790,789,1,0,0,0,790,791,1,0,0,0,791,159,1,0,0,0,792,794,5,54, -0,0,793,795,5,62,0,0,794,793,1,0,0,0,795,796,1,0,0,0,796,794,1,0,0,0,796, -797,1,0,0,0,797,799,1,0,0,0,798,800,5,58,0,0,799,798,1,0,0,0,799,800,1,0, -0,0,800,802,1,0,0,0,801,803,7,4,0,0,802,801,1,0,0,0,802,803,1,0,0,0,803, -161,1,0,0,0,804,805,5,60,0,0,805,807,7,12,0,0,806,808,5,58,0,0,807,806,1, -0,0,0,807,808,1,0,0,0,808,163,1,0,0,0,809,810,3,174,87,0,810,811,5,55,0, -0,811,812,3,174,87,0,812,165,1,0,0,0,813,815,5,67,0,0,814,816,5,58,0,0,815, -814,1,0,0,0,815,816,1,0,0,0,816,167,1,0,0,0,817,818,5,67,0,0,818,169,1,0, -0,0,819,820,5,68,0,0,820,171,1,0,0,0,821,822,5,69,0,0,822,173,1,0,0,0,823, -826,5,60,0,0,824,826,3,162,81,0,825,823,1,0,0,0,825,824,1,0,0,0,826,175, -1,0,0,0,827,828,7,13,0,0,828,177,1,0,0,0,829,834,3,144,72,0,830,834,3,168, -84,0,831,834,3,172,86,0,832,834,3,170,85,0,833,829,1,0,0,0,833,830,1,0,0, -0,833,831,1,0,0,0,833,832,1,0,0,0,834,179,1,0,0,0,835,836,7,14,0,0,836,181, -1,0,0,0,89,185,202,214,219,226,228,234,241,243,249,257,263,270,282,287,294, -300,307,312,319,325,332,337,344,350,356,361,368,374,380,385,392,402,412, -425,433,439,447,452,491,504,515,524,530,537,544,554,565,570,578,583,593, -602,607,610,614,619,625,631,639,646,654,662,667,674,678,682,689,694,700, -706,711,713,724,732,738,747,754,774,779,785,790,796,799,802,807,815,825, -833]; +1,18,1,18,1,18,3,18,364,8,18,1,19,1,19,1,19,5,19,369,8,19,10,19,12,19,372, +9,19,1,19,5,19,375,8,19,10,19,12,19,378,9,19,1,20,1,20,1,20,3,20,383,8,20, +1,21,1,21,1,21,3,21,388,8,21,1,22,1,22,1,22,4,22,393,8,22,11,22,12,22,394, +1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,3,23,405,8,23,1,24,1,24,1,24,1,24, +1,25,1,25,5,25,413,8,25,10,25,12,25,416,9,25,1,25,1,25,1,26,1,26,1,27,1, +27,1,28,1,28,5,28,426,8,28,10,28,12,28,429,9,28,1,29,1,29,1,29,5,29,434, +8,29,10,29,12,29,437,9,29,1,29,5,29,440,8,29,10,29,12,29,443,9,29,1,30,1, +30,1,30,1,30,1,30,3,30,450,8,30,1,31,1,31,1,31,3,31,455,8,31,1,32,1,32,1, +32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37, +1,37,1,38,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1, +42,1,42,1,43,1,43,5,43,492,8,43,10,43,12,43,495,9,43,1,43,1,43,1,44,1,44, +1,45,1,45,1,46,1,46,5,46,505,8,46,10,46,12,46,508,9,46,1,46,1,46,1,47,1, +47,1,47,1,47,5,47,516,8,47,10,47,12,47,519,9,47,1,48,1,48,1,48,1,48,5,48, +525,8,48,10,48,12,48,528,9,48,1,48,4,48,531,8,48,11,48,12,48,532,1,49,1, +49,1,49,1,49,1,49,3,49,540,8,49,1,50,1,50,1,50,1,50,1,50,3,50,547,8,50,1, +51,1,51,1,51,1,51,1,51,1,51,5,51,555,8,51,10,51,12,51,558,9,51,1,52,1,52, +1,52,1,52,1,52,1,52,5,52,566,8,52,10,52,12,52,569,9,52,1,53,1,53,3,53,573, +8,53,1,53,1,53,1,53,1,53,5,53,579,8,53,10,53,12,53,582,9,53,1,54,1,54,3, +54,586,8,54,1,54,1,54,1,54,1,54,1,55,1,55,5,55,594,8,55,10,55,12,55,597, +9,55,1,55,1,55,1,55,1,55,1,56,1,56,3,56,605,8,56,1,56,1,56,1,56,3,56,610, +8,56,1,56,3,56,613,8,56,1,57,1,57,3,57,617,8,57,1,57,1,57,1,57,3,57,622, +8,57,1,58,1,58,5,58,626,8,58,10,58,12,58,629,9,58,1,58,1,58,1,58,3,58,634, +8,58,1,59,1,59,1,59,1,59,5,59,640,8,59,10,59,12,59,643,9,59,1,59,1,59,1, +59,1,59,3,59,649,8,59,1,60,1,60,1,60,1,60,5,60,655,8,60,10,60,12,60,658, +9,60,1,60,1,60,1,60,5,60,663,8,60,10,60,12,60,666,9,60,1,60,1,60,3,60,670, +8,60,1,61,1,61,1,61,1,62,1,62,3,62,677,8,62,1,62,1,62,3,62,681,8,62,1,63, +1,63,3,63,685,8,63,1,64,1,64,1,64,1,64,3,64,691,8,64,1,65,1,65,1,65,1,65, +3,65,697,8,65,1,65,1,65,1,65,3,65,702,8,65,3,65,704,8,65,1,66,1,66,1,66, +1,67,1,67,1,67,1,67,5,67,713,8,67,10,67,12,67,716,9,67,1,68,1,68,1,68,5, +68,721,8,68,10,68,12,68,724,9,68,1,69,1,69,1,69,3,69,729,8,69,1,70,1,70, +1,71,1,71,1,71,1,71,1,71,3,71,738,8,71,1,72,1,72,1,73,1,73,1,73,3,73,745, +8,73,1,74,1,74,1,75,1,75,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1, +77,1,77,1,77,1,77,1,77,3,77,765,8,77,1,78,1,78,1,78,3,78,770,8,78,1,78,1, +78,5,78,774,8,78,10,78,12,78,777,9,78,1,79,1,79,3,79,781,8,79,1,80,1,80, +4,80,785,8,80,11,80,12,80,786,1,80,3,80,790,8,80,1,80,3,80,793,8,80,1,81, +1,81,1,81,3,81,798,8,81,1,82,1,82,1,82,1,82,1,83,1,83,3,83,806,8,83,1,84, +1,84,1,85,1,85,1,86,1,86,1,87,1,87,3,87,816,8,87,1,88,1,88,1,89,1,89,1,89, +1,89,3,89,824,8,89,1,90,1,90,1,90,0,0,91,0,2,4,6,8,10,12,14,16,18,20,22, +24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70, +72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114, +116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150, +152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,0,15,2,0,62, +62,73,73,2,0,78,78,80,80,2,0,79,79,81,81,2,0,1,4,6,10,1,0,58,59,2,0,82,82, +84,84,2,0,83,83,85,85,1,0,44,45,2,0,53,53,73,73,5,0,26,30,46,46,48,49,60, +60,73,73,1,0,25,30,1,0,32,35,1,0,61,62,1,0,42,43,3,0,26,31,36,49,52,52,882, +0,185,1,0,0,0,2,202,1,0,0,0,4,204,1,0,0,0,6,209,1,0,0,0,8,222,1,0,0,0,10, +237,1,0,0,0,12,252,1,0,0,0,14,270,1,0,0,0,16,282,1,0,0,0,18,287,1,0,0,0, +20,289,1,0,0,0,22,307,1,0,0,0,24,312,1,0,0,0,26,314,1,0,0,0,28,332,1,0,0, +0,30,337,1,0,0,0,32,339,1,0,0,0,34,356,1,0,0,0,36,363,1,0,0,0,38,365,1,0, +0,0,40,382,1,0,0,0,42,387,1,0,0,0,44,389,1,0,0,0,46,404,1,0,0,0,48,406,1, +0,0,0,50,410,1,0,0,0,52,419,1,0,0,0,54,421,1,0,0,0,56,423,1,0,0,0,58,430, +1,0,0,0,60,449,1,0,0,0,62,454,1,0,0,0,64,456,1,0,0,0,66,459,1,0,0,0,68,462, +1,0,0,0,70,465,1,0,0,0,72,468,1,0,0,0,74,471,1,0,0,0,76,474,1,0,0,0,78,477, +1,0,0,0,80,480,1,0,0,0,82,483,1,0,0,0,84,486,1,0,0,0,86,489,1,0,0,0,88,498, +1,0,0,0,90,500,1,0,0,0,92,502,1,0,0,0,94,511,1,0,0,0,96,520,1,0,0,0,98,534, +1,0,0,0,100,541,1,0,0,0,102,548,1,0,0,0,104,559,1,0,0,0,106,570,1,0,0,0, +108,583,1,0,0,0,110,591,1,0,0,0,112,602,1,0,0,0,114,614,1,0,0,0,116,623, +1,0,0,0,118,635,1,0,0,0,120,650,1,0,0,0,122,671,1,0,0,0,124,674,1,0,0,0, +126,682,1,0,0,0,128,686,1,0,0,0,130,692,1,0,0,0,132,705,1,0,0,0,134,708, +1,0,0,0,136,717,1,0,0,0,138,725,1,0,0,0,140,730,1,0,0,0,142,737,1,0,0,0, +144,739,1,0,0,0,146,744,1,0,0,0,148,746,1,0,0,0,150,748,1,0,0,0,152,750, +1,0,0,0,154,764,1,0,0,0,156,766,1,0,0,0,158,778,1,0,0,0,160,782,1,0,0,0, +162,794,1,0,0,0,164,799,1,0,0,0,166,803,1,0,0,0,168,807,1,0,0,0,170,809, +1,0,0,0,172,811,1,0,0,0,174,815,1,0,0,0,176,817,1,0,0,0,178,823,1,0,0,0, +180,825,1,0,0,0,182,184,3,2,1,0,183,182,1,0,0,0,184,187,1,0,0,0,185,183, +1,0,0,0,185,186,1,0,0,0,186,188,1,0,0,0,187,185,1,0,0,0,188,189,5,0,0,1, +189,1,1,0,0,0,190,203,3,4,2,0,191,203,3,6,3,0,192,203,3,8,4,0,193,203,3, +26,13,0,194,203,3,20,10,0,195,203,3,32,16,0,196,203,3,38,19,0,197,203,3, +44,22,0,198,203,3,48,24,0,199,203,3,58,29,0,200,203,3,10,5,0,201,203,3,12, +6,0,202,190,1,0,0,0,202,191,1,0,0,0,202,192,1,0,0,0,202,193,1,0,0,0,202, +194,1,0,0,0,202,195,1,0,0,0,202,196,1,0,0,0,202,197,1,0,0,0,202,198,1,0, +0,0,202,199,1,0,0,0,202,200,1,0,0,0,202,201,1,0,0,0,203,3,1,0,0,0,204,205, +5,1,0,0,205,206,5,73,0,0,206,207,5,53,0,0,207,208,7,0,0,0,208,5,1,0,0,0, +209,210,5,2,0,0,210,212,3,144,72,0,211,213,3,14,7,0,212,211,1,0,0,0,213, +214,1,0,0,0,214,212,1,0,0,0,214,215,1,0,0,0,215,219,1,0,0,0,216,218,3,16, +8,0,217,216,1,0,0,0,218,221,1,0,0,0,219,217,1,0,0,0,219,220,1,0,0,0,220, +7,1,0,0,0,221,219,1,0,0,0,222,223,5,3,0,0,223,228,3,144,72,0,224,227,3,14, +7,0,225,227,3,86,43,0,226,224,1,0,0,0,226,225,1,0,0,0,227,230,1,0,0,0,228, +226,1,0,0,0,228,229,1,0,0,0,229,234,1,0,0,0,230,228,1,0,0,0,231,233,3,16, +8,0,232,231,1,0,0,0,233,236,1,0,0,0,234,232,1,0,0,0,234,235,1,0,0,0,235, +9,1,0,0,0,236,234,1,0,0,0,237,238,5,11,0,0,238,243,3,144,72,0,239,242,3, +14,7,0,240,242,3,92,46,0,241,239,1,0,0,0,241,240,1,0,0,0,242,245,1,0,0,0, +243,241,1,0,0,0,243,244,1,0,0,0,244,249,1,0,0,0,245,243,1,0,0,0,246,248, +3,18,9,0,247,246,1,0,0,0,248,251,1,0,0,0,249,247,1,0,0,0,249,250,1,0,0,0, +250,11,1,0,0,0,251,249,1,0,0,0,252,253,5,12,0,0,253,257,3,144,72,0,254,256, +3,14,7,0,255,254,1,0,0,0,256,259,1,0,0,0,257,255,1,0,0,0,257,258,1,0,0,0, +258,263,1,0,0,0,259,257,1,0,0,0,260,262,3,18,9,0,261,260,1,0,0,0,262,265, +1,0,0,0,263,261,1,0,0,0,263,264,1,0,0,0,264,13,1,0,0,0,265,263,1,0,0,0,266, +271,3,64,32,0,267,271,3,66,33,0,268,271,3,68,34,0,269,271,3,70,35,0,270, +266,1,0,0,0,270,267,1,0,0,0,270,268,1,0,0,0,270,269,1,0,0,0,271,15,1,0,0, +0,272,283,3,94,47,0,273,283,3,96,48,0,274,283,3,98,49,0,275,283,3,100,50, +0,276,283,3,102,51,0,277,283,3,104,52,0,278,283,3,106,53,0,279,283,3,108, +54,0,280,283,3,114,57,0,281,283,3,122,61,0,282,272,1,0,0,0,282,273,1,0,0, +0,282,274,1,0,0,0,282,275,1,0,0,0,282,276,1,0,0,0,282,277,1,0,0,0,282,278, +1,0,0,0,282,279,1,0,0,0,282,280,1,0,0,0,282,281,1,0,0,0,283,17,1,0,0,0,284, +288,3,16,8,0,285,288,3,120,60,0,286,288,3,118,59,0,287,284,1,0,0,0,287,285, +1,0,0,0,287,286,1,0,0,0,288,19,1,0,0,0,289,290,5,4,0,0,290,294,3,144,72, +0,291,293,3,22,11,0,292,291,1,0,0,0,293,296,1,0,0,0,294,292,1,0,0,0,294, +295,1,0,0,0,295,300,1,0,0,0,296,294,1,0,0,0,297,299,3,24,12,0,298,297,1, +0,0,0,299,302,1,0,0,0,300,298,1,0,0,0,300,301,1,0,0,0,301,21,1,0,0,0,302, +300,1,0,0,0,303,308,3,78,39,0,304,308,3,68,34,0,305,308,3,70,35,0,306,308, +3,80,40,0,307,303,1,0,0,0,307,304,1,0,0,0,307,305,1,0,0,0,307,306,1,0,0, +0,308,23,1,0,0,0,309,313,3,100,50,0,310,313,3,114,57,0,311,313,3,122,61, +0,312,309,1,0,0,0,312,310,1,0,0,0,312,311,1,0,0,0,313,25,1,0,0,0,314,315, +5,6,0,0,315,319,3,144,72,0,316,318,3,28,14,0,317,316,1,0,0,0,318,321,1,0, +0,0,319,317,1,0,0,0,319,320,1,0,0,0,320,325,1,0,0,0,321,319,1,0,0,0,322, +324,3,30,15,0,323,322,1,0,0,0,324,327,1,0,0,0,325,323,1,0,0,0,325,326,1, +0,0,0,326,27,1,0,0,0,327,325,1,0,0,0,328,333,3,70,35,0,329,333,3,72,36,0, +330,333,3,74,37,0,331,333,3,76,38,0,332,328,1,0,0,0,332,329,1,0,0,0,332, +330,1,0,0,0,332,331,1,0,0,0,333,29,1,0,0,0,334,338,3,100,50,0,335,338,3, +114,57,0,336,338,3,122,61,0,337,334,1,0,0,0,337,335,1,0,0,0,337,336,1,0, +0,0,338,31,1,0,0,0,339,340,5,7,0,0,340,344,3,144,72,0,341,343,3,34,17,0, +342,341,1,0,0,0,343,346,1,0,0,0,344,342,1,0,0,0,344,345,1,0,0,0,345,350, +1,0,0,0,346,344,1,0,0,0,347,349,3,36,18,0,348,347,1,0,0,0,349,352,1,0,0, +0,350,348,1,0,0,0,350,351,1,0,0,0,351,33,1,0,0,0,352,350,1,0,0,0,353,357, +3,66,33,0,354,357,3,68,34,0,355,357,3,70,35,0,356,353,1,0,0,0,356,354,1, +0,0,0,356,355,1,0,0,0,357,35,1,0,0,0,358,364,3,124,62,0,359,364,3,108,54, +0,360,364,3,110,55,0,361,364,3,114,57,0,362,364,3,116,58,0,363,358,1,0,0, +0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363,362,1,0,0,0,364,37, +1,0,0,0,365,366,5,8,0,0,366,370,3,144,72,0,367,369,3,40,20,0,368,367,1,0, +0,0,369,372,1,0,0,0,370,368,1,0,0,0,370,371,1,0,0,0,371,376,1,0,0,0,372, +370,1,0,0,0,373,375,3,42,21,0,374,373,1,0,0,0,375,378,1,0,0,0,376,374,1, +0,0,0,376,377,1,0,0,0,377,39,1,0,0,0,378,376,1,0,0,0,379,383,3,66,33,0,380, +383,3,68,34,0,381,383,3,70,35,0,382,379,1,0,0,0,382,380,1,0,0,0,382,381, +1,0,0,0,383,41,1,0,0,0,384,388,3,160,80,0,385,388,3,110,55,0,386,388,3,116, +58,0,387,384,1,0,0,0,387,385,1,0,0,0,387,386,1,0,0,0,388,43,1,0,0,0,389, +390,5,9,0,0,390,392,5,77,0,0,391,393,3,46,23,0,392,391,1,0,0,0,393,394,1, +0,0,0,394,392,1,0,0,0,394,395,1,0,0,0,395,45,1,0,0,0,396,405,3,16,8,0,397, +405,3,120,60,0,398,405,3,118,59,0,399,405,3,160,80,0,400,405,3,110,55,0, +401,405,3,116,58,0,402,405,3,124,62,0,403,405,3,112,56,0,404,396,1,0,0,0, +404,397,1,0,0,0,404,398,1,0,0,0,404,399,1,0,0,0,404,400,1,0,0,0,404,401, +1,0,0,0,404,402,1,0,0,0,404,403,1,0,0,0,405,47,1,0,0,0,406,407,5,9,0,0,407, +408,3,50,25,0,408,409,3,56,28,0,409,49,1,0,0,0,410,414,5,76,0,0,411,413, +3,52,26,0,412,411,1,0,0,0,413,416,1,0,0,0,414,412,1,0,0,0,414,415,1,0,0, +0,415,417,1,0,0,0,416,414,1,0,0,0,417,418,3,54,27,0,418,51,1,0,0,0,419,420, +7,1,0,0,420,53,1,0,0,0,421,422,7,2,0,0,422,55,1,0,0,0,423,427,5,54,0,0,424, +426,8,3,0,0,425,424,1,0,0,0,426,429,1,0,0,0,427,425,1,0,0,0,427,428,1,0, +0,0,428,57,1,0,0,0,429,427,1,0,0,0,430,431,5,10,0,0,431,435,3,144,72,0,432, +434,3,60,30,0,433,432,1,0,0,0,434,437,1,0,0,0,435,433,1,0,0,0,435,436,1, +0,0,0,436,441,1,0,0,0,437,435,1,0,0,0,438,440,3,62,31,0,439,438,1,0,0,0, +440,443,1,0,0,0,441,439,1,0,0,0,441,442,1,0,0,0,442,59,1,0,0,0,443,441,1, +0,0,0,444,450,3,66,33,0,445,450,3,82,41,0,446,450,3,84,42,0,447,450,3,70, +35,0,448,450,3,68,34,0,449,444,1,0,0,0,449,445,1,0,0,0,449,446,1,0,0,0,449, +447,1,0,0,0,449,448,1,0,0,0,450,61,1,0,0,0,451,455,3,112,56,0,452,455,3, +114,57,0,453,455,3,122,61,0,454,451,1,0,0,0,454,452,1,0,0,0,454,453,1,0, +0,0,455,63,1,0,0,0,456,457,5,13,0,0,457,458,3,144,72,0,458,65,1,0,0,0,459, +460,5,14,0,0,460,461,3,144,72,0,461,67,1,0,0,0,462,463,5,15,0,0,463,464, +5,58,0,0,464,69,1,0,0,0,465,466,5,16,0,0,466,467,7,4,0,0,467,71,1,0,0,0, +468,469,5,17,0,0,469,470,5,58,0,0,470,73,1,0,0,0,471,472,5,18,0,0,472,473, +5,58,0,0,473,75,1,0,0,0,474,475,5,19,0,0,475,476,5,62,0,0,476,77,1,0,0,0, +477,478,5,5,0,0,478,479,3,144,72,0,479,79,1,0,0,0,480,481,5,20,0,0,481,482, +5,62,0,0,482,81,1,0,0,0,483,484,5,21,0,0,484,485,3,144,72,0,485,83,1,0,0, +0,486,487,5,22,0,0,487,488,5,58,0,0,488,85,1,0,0,0,489,493,5,23,0,0,490, +492,3,88,44,0,491,490,1,0,0,0,492,495,1,0,0,0,493,491,1,0,0,0,493,494,1, +0,0,0,494,496,1,0,0,0,495,493,1,0,0,0,496,497,3,90,45,0,497,87,1,0,0,0,498, +499,7,5,0,0,499,89,1,0,0,0,500,501,7,6,0,0,501,91,1,0,0,0,502,506,5,24,0, +0,503,505,5,87,0,0,504,503,1,0,0,0,505,508,1,0,0,0,506,504,1,0,0,0,506,507, +1,0,0,0,507,509,1,0,0,0,508,506,1,0,0,0,509,510,5,88,0,0,510,93,1,0,0,0, +511,512,5,54,0,0,512,513,3,146,73,0,513,517,5,66,0,0,514,516,3,150,75,0, +515,514,1,0,0,0,516,519,1,0,0,0,517,515,1,0,0,0,517,518,1,0,0,0,518,95,1, +0,0,0,519,517,1,0,0,0,520,521,5,54,0,0,521,526,3,146,73,0,522,523,5,38,0, +0,523,525,3,146,73,0,524,522,1,0,0,0,525,528,1,0,0,0,526,524,1,0,0,0,526, +527,1,0,0,0,527,530,1,0,0,0,528,526,1,0,0,0,529,531,3,150,75,0,530,529,1, +0,0,0,531,532,1,0,0,0,532,530,1,0,0,0,532,533,1,0,0,0,533,97,1,0,0,0,534, +535,5,54,0,0,535,536,3,146,73,0,536,537,5,31,0,0,537,539,3,144,72,0,538, +540,3,152,76,0,539,538,1,0,0,0,539,540,1,0,0,0,540,99,1,0,0,0,541,542,5, +54,0,0,542,543,3,146,73,0,543,544,5,53,0,0,544,546,3,154,77,0,545,547,5, +50,0,0,546,545,1,0,0,0,546,547,1,0,0,0,547,101,1,0,0,0,548,549,5,54,0,0, +549,550,3,146,73,0,550,551,5,36,0,0,551,556,3,156,78,0,552,553,5,38,0,0, +553,555,3,156,78,0,554,552,1,0,0,0,555,558,1,0,0,0,556,554,1,0,0,0,556,557, +1,0,0,0,557,103,1,0,0,0,558,556,1,0,0,0,559,560,5,54,0,0,560,561,3,146,73, +0,561,562,5,39,0,0,562,567,3,178,89,0,563,564,5,40,0,0,564,566,3,178,89, +0,565,563,1,0,0,0,566,569,1,0,0,0,567,565,1,0,0,0,567,568,1,0,0,0,568,105, +1,0,0,0,569,567,1,0,0,0,570,572,5,54,0,0,571,573,3,146,73,0,572,571,1,0, +0,0,572,573,1,0,0,0,573,574,1,0,0,0,574,575,5,41,0,0,575,580,3,144,72,0, +576,577,5,38,0,0,577,579,3,144,72,0,578,576,1,0,0,0,579,582,1,0,0,0,580, +578,1,0,0,0,580,581,1,0,0,0,581,107,1,0,0,0,582,580,1,0,0,0,583,585,5,54, +0,0,584,586,3,146,73,0,585,584,1,0,0,0,585,586,1,0,0,0,586,587,1,0,0,0,587, +588,3,148,74,0,588,589,5,53,0,0,589,590,3,154,77,0,590,109,1,0,0,0,591,595, +5,54,0,0,592,594,5,62,0,0,593,592,1,0,0,0,594,597,1,0,0,0,595,593,1,0,0, +0,595,596,1,0,0,0,596,598,1,0,0,0,597,595,1,0,0,0,598,599,3,148,74,0,599, +600,5,53,0,0,600,601,3,154,77,0,601,111,1,0,0,0,602,604,5,54,0,0,603,605, +3,146,73,0,604,603,1,0,0,0,604,605,1,0,0,0,605,606,1,0,0,0,606,607,5,57, +0,0,607,609,5,58,0,0,608,610,5,58,0,0,609,608,1,0,0,0,609,610,1,0,0,0,610, +612,1,0,0,0,611,613,5,62,0,0,612,611,1,0,0,0,612,613,1,0,0,0,613,113,1,0, +0,0,614,616,5,54,0,0,615,617,3,146,73,0,616,615,1,0,0,0,616,617,1,0,0,0, +617,618,1,0,0,0,618,621,5,51,0,0,619,622,5,77,0,0,620,622,3,50,25,0,621, +619,1,0,0,0,621,620,1,0,0,0,622,115,1,0,0,0,623,627,5,54,0,0,624,626,5,62, +0,0,625,624,1,0,0,0,626,629,1,0,0,0,627,625,1,0,0,0,627,628,1,0,0,0,628, +630,1,0,0,0,629,627,1,0,0,0,630,633,5,51,0,0,631,634,5,77,0,0,632,634,3, +50,25,0,633,631,1,0,0,0,633,632,1,0,0,0,634,117,1,0,0,0,635,636,5,54,0,0, +636,637,3,146,73,0,637,641,5,66,0,0,638,640,3,150,75,0,639,638,1,0,0,0,640, +643,1,0,0,0,641,639,1,0,0,0,641,642,1,0,0,0,642,644,1,0,0,0,643,641,1,0, +0,0,644,645,5,52,0,0,645,646,7,0,0,0,646,648,5,58,0,0,647,649,7,4,0,0,648, +647,1,0,0,0,648,649,1,0,0,0,649,119,1,0,0,0,650,651,5,54,0,0,651,652,3,146, +73,0,652,656,5,66,0,0,653,655,3,150,75,0,654,653,1,0,0,0,655,658,1,0,0,0, +656,654,1,0,0,0,656,657,1,0,0,0,657,659,1,0,0,0,658,656,1,0,0,0,659,664, +3,178,89,0,660,661,5,40,0,0,661,663,3,178,89,0,662,660,1,0,0,0,663,666,1, +0,0,0,664,662,1,0,0,0,664,665,1,0,0,0,665,667,1,0,0,0,666,664,1,0,0,0,667, +669,5,58,0,0,668,670,7,4,0,0,669,668,1,0,0,0,669,670,1,0,0,0,670,121,1,0, +0,0,671,672,5,54,0,0,672,673,3,146,73,0,673,123,1,0,0,0,674,676,5,54,0,0, +675,677,7,7,0,0,676,675,1,0,0,0,676,677,1,0,0,0,677,680,1,0,0,0,678,681, +3,126,63,0,679,681,3,128,64,0,680,678,1,0,0,0,680,679,1,0,0,0,681,125,1, +0,0,0,682,684,3,158,79,0,683,685,3,130,65,0,684,683,1,0,0,0,684,685,1,0, +0,0,685,127,1,0,0,0,686,687,5,46,0,0,687,690,3,130,65,0,688,689,5,47,0,0, +689,691,3,136,68,0,690,688,1,0,0,0,690,691,1,0,0,0,691,129,1,0,0,0,692,703, +5,31,0,0,693,696,3,132,66,0,694,695,5,38,0,0,695,697,3,134,67,0,696,694, +1,0,0,0,696,697,1,0,0,0,697,704,1,0,0,0,698,701,3,134,67,0,699,700,5,38, +0,0,700,702,3,132,66,0,701,699,1,0,0,0,701,702,1,0,0,0,702,704,1,0,0,0,703, +693,1,0,0,0,703,698,1,0,0,0,704,131,1,0,0,0,705,706,5,49,0,0,706,707,3,144, +72,0,707,133,1,0,0,0,708,709,5,48,0,0,709,714,3,144,72,0,710,711,5,38,0, +0,711,713,3,144,72,0,712,710,1,0,0,0,713,716,1,0,0,0,714,712,1,0,0,0,714, +715,1,0,0,0,715,135,1,0,0,0,716,714,1,0,0,0,717,722,3,138,69,0,718,719,5, +38,0,0,719,721,3,138,69,0,720,718,1,0,0,0,721,724,1,0,0,0,722,720,1,0,0, +0,722,723,1,0,0,0,723,137,1,0,0,0,724,722,1,0,0,0,725,726,3,144,72,0,726, +728,3,140,70,0,727,729,3,142,71,0,728,727,1,0,0,0,728,729,1,0,0,0,729,139, +1,0,0,0,730,731,7,8,0,0,731,141,1,0,0,0,732,738,3,158,79,0,733,738,5,42, +0,0,734,738,5,43,0,0,735,738,5,71,0,0,736,738,5,58,0,0,737,732,1,0,0,0,737, +733,1,0,0,0,737,734,1,0,0,0,737,735,1,0,0,0,737,736,1,0,0,0,738,143,1,0, +0,0,739,740,7,9,0,0,740,145,1,0,0,0,741,745,5,73,0,0,742,745,5,60,0,0,743, +745,3,180,90,0,744,741,1,0,0,0,744,742,1,0,0,0,744,743,1,0,0,0,745,147,1, +0,0,0,746,747,5,70,0,0,747,149,1,0,0,0,748,749,7,10,0,0,749,151,1,0,0,0, +750,751,7,11,0,0,751,153,1,0,0,0,752,765,5,58,0,0,753,765,5,59,0,0,754,765, +5,60,0,0,755,765,5,64,0,0,756,765,5,65,0,0,757,765,3,166,83,0,758,765,3, +172,86,0,759,765,3,158,79,0,760,765,3,162,81,0,761,765,3,164,82,0,762,765, +3,176,88,0,763,765,3,144,72,0,764,752,1,0,0,0,764,753,1,0,0,0,764,754,1, +0,0,0,764,755,1,0,0,0,764,756,1,0,0,0,764,757,1,0,0,0,764,758,1,0,0,0,764, +759,1,0,0,0,764,760,1,0,0,0,764,761,1,0,0,0,764,762,1,0,0,0,764,763,1,0, +0,0,765,155,1,0,0,0,766,769,3,144,72,0,767,768,5,37,0,0,768,770,3,144,72, +0,769,767,1,0,0,0,769,770,1,0,0,0,770,771,1,0,0,0,771,775,5,66,0,0,772,774, +3,150,75,0,773,772,1,0,0,0,774,777,1,0,0,0,775,773,1,0,0,0,775,776,1,0,0, +0,776,157,1,0,0,0,777,775,1,0,0,0,778,780,5,62,0,0,779,781,5,58,0,0,780, +779,1,0,0,0,780,781,1,0,0,0,781,159,1,0,0,0,782,784,5,54,0,0,783,785,5,62, +0,0,784,783,1,0,0,0,785,786,1,0,0,0,786,784,1,0,0,0,786,787,1,0,0,0,787, +789,1,0,0,0,788,790,5,58,0,0,789,788,1,0,0,0,789,790,1,0,0,0,790,792,1,0, +0,0,791,793,7,4,0,0,792,791,1,0,0,0,792,793,1,0,0,0,793,161,1,0,0,0,794, +795,5,60,0,0,795,797,7,12,0,0,796,798,5,58,0,0,797,796,1,0,0,0,797,798,1, +0,0,0,798,163,1,0,0,0,799,800,3,174,87,0,800,801,5,55,0,0,801,802,3,174, +87,0,802,165,1,0,0,0,803,805,5,67,0,0,804,806,5,58,0,0,805,804,1,0,0,0,805, +806,1,0,0,0,806,167,1,0,0,0,807,808,5,67,0,0,808,169,1,0,0,0,809,810,5,68, +0,0,810,171,1,0,0,0,811,812,5,69,0,0,812,173,1,0,0,0,813,816,5,60,0,0,814, +816,3,162,81,0,815,813,1,0,0,0,815,814,1,0,0,0,816,175,1,0,0,0,817,818,7, +13,0,0,818,177,1,0,0,0,819,824,3,144,72,0,820,824,3,168,84,0,821,824,3,172, +86,0,822,824,3,170,85,0,823,819,1,0,0,0,823,820,1,0,0,0,823,821,1,0,0,0, +823,822,1,0,0,0,824,179,1,0,0,0,825,826,7,14,0,0,826,181,1,0,0,0,87,185, +202,214,219,226,228,234,241,243,249,257,263,270,282,287,294,300,307,312, +319,325,332,337,344,350,356,363,370,376,382,387,394,404,414,427,435,441, +449,454,493,506,517,526,532,539,546,556,567,572,580,585,595,604,609,612, +616,621,627,633,641,648,656,664,669,676,680,684,690,696,701,703,714,722, +728,737,744,764,769,775,780,786,789,792,797,805,815,823]; const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN); @@ -1283,7 +1279,7 @@ export default class FSHParser extends antlr4.Parser { let localctx = new VsRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 36, FSHParser.RULE_vsRule); try { - this.state = 361; + this.state = 363; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,26,this._ctx); switch(la_) { @@ -1302,9 +1298,21 @@ export default class FSHParser extends antlr4.Parser { case 3: this.enterOuterAlt(localctx, 3); this.state = 360; + this.codeCaretValueRule(); + break; + + case 4: + this.enterOuterAlt(localctx, 4); + this.state = 361; this.insertRule(); break; + case 5: + this.enterOuterAlt(localctx, 5); + this.state = 362; + this.codeInsertRule(); + break; + } } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1328,27 +1336,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 363; + this.state = 365; this.match(FSHParser.KW_CODESYSTEM); - this.state = 364; + this.state = 366; this.name(); - this.state = 368; + this.state = 370; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 114688) !== 0)) { - this.state = 365; + this.state = 367; this.csMetadata(); - this.state = 370; + this.state = 372; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 374; + this.state = 376; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 371; + this.state = 373; this.csRule(); - this.state = 376; + this.state = 378; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1372,22 +1380,22 @@ export default class FSHParser extends antlr4.Parser { let localctx = new CsMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 40, FSHParser.RULE_csMetadata); try { - this.state = 380; + this.state = 382; this._errHandler.sync(this); switch(this._input.LA(1)) { case 14: this.enterOuterAlt(localctx, 1); - this.state = 377; + this.state = 379; this.id(); break; case 15: this.enterOuterAlt(localctx, 2); - this.state = 378; + this.state = 380; this.title(); break; case 16: this.enterOuterAlt(localctx, 3); - this.state = 379; + this.state = 381; this.description(); break; default: @@ -1413,25 +1421,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new CsRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 42, FSHParser.RULE_csRule); try { - this.state = 385; + this.state = 387; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,30,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 382; + this.state = 384; this.concept(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 383; + this.state = 385; this.codeCaretValueRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 384; + this.state = 386; this.codeInsertRule(); break; @@ -1458,17 +1466,17 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 387; + this.state = 389; this.match(FSHParser.KW_RULESET); - this.state = 388; + this.state = 390; this.match(FSHParser.RULESET_REFERENCE); - this.state = 390; + this.state = 392; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 389; + this.state = 391; this.ruleSetRule(); - this.state = 392; + this.state = 394; this._errHandler.sync(this); _la = this._input.LA(1); } while(_la===54); @@ -1492,55 +1500,55 @@ export default class FSHParser extends antlr4.Parser { let localctx = new RuleSetRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 46, FSHParser.RULE_ruleSetRule); try { - this.state = 402; + this.state = 404; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,32,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 394; + this.state = 396; this.sdRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 395; + this.state = 397; this.addElementRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 396; + this.state = 398; this.addCRElementRule(); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 397; + this.state = 399; this.concept(); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 398; + this.state = 400; this.codeCaretValueRule(); break; case 6: this.enterOuterAlt(localctx, 6); - this.state = 399; + this.state = 401; this.codeInsertRule(); break; case 7: this.enterOuterAlt(localctx, 7); - this.state = 400; + this.state = 402; this.vsComponent(); break; case 8: this.enterOuterAlt(localctx, 8); - this.state = 401; + this.state = 403; this.mappingRule(); break; @@ -1566,11 +1574,11 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 48, FSHParser.RULE_paramRuleSet); try { this.enterOuterAlt(localctx, 1); - this.state = 404; + this.state = 406; this.match(FSHParser.KW_RULESET); - this.state = 405; + this.state = 407; this.paramRuleSetRef(); - this.state = 406; + this.state = 408; this.paramRuleSetContent(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1594,19 +1602,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 408; + this.state = 410; this.match(FSHParser.PARAM_RULESET_REFERENCE); - this.state = 412; + this.state = 414; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===78 || _la===80) { - this.state = 409; + this.state = 411; this.parameter(); - this.state = 414; + this.state = 416; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 415; + this.state = 417; this.lastParameter(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1630,7 +1638,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 417; + this.state = 419; _la = this._input.LA(1); if(!(_la===78 || _la===80)) { this._errHandler.recoverInline(this); @@ -1661,7 +1669,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 419; + this.state = 421; _la = this._input.LA(1); if(!(_la===79 || _la===81)) { this._errHandler.recoverInline(this); @@ -1692,14 +1700,14 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 421; + this.state = 423; this.match(FSHParser.STAR); - this.state = 425; + this.state = 427; this._errHandler.sync(this); var _alt = this._interp.adaptivePredict(this._input,34,this._ctx) while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) { if(_alt===1) { - this.state = 422; + this.state = 424; _la = this._input.LA(1); if(_la<=0 || (((_la) & ~0x1f) === 0 && ((1 << _la) & 2014) !== 0)) { this._errHandler.recoverInline(this); @@ -1709,7 +1717,7 @@ export default class FSHParser extends antlr4.Parser { this.consume(); } } - this.state = 427; + this.state = 429; this._errHandler.sync(this); _alt = this._interp.adaptivePredict(this._input,34,this._ctx); } @@ -1736,27 +1744,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 428; + this.state = 430; this.match(FSHParser.KW_MAPPING); - this.state = 429; + this.state = 431; this.name(); - this.state = 433; + this.state = 435; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 6406144) !== 0)) { - this.state = 430; + this.state = 432; this.mappingMetadata(); - this.state = 435; + this.state = 437; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 439; + this.state = 441; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 436; + this.state = 438; this.mappingEntityRule(); - this.state = 441; + this.state = 443; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1780,32 +1788,32 @@ export default class FSHParser extends antlr4.Parser { let localctx = new MappingMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 60, FSHParser.RULE_mappingMetadata); try { - this.state = 447; + this.state = 449; this._errHandler.sync(this); switch(this._input.LA(1)) { case 14: this.enterOuterAlt(localctx, 1); - this.state = 442; + this.state = 444; this.id(); break; case 21: this.enterOuterAlt(localctx, 2); - this.state = 443; + this.state = 445; this.source(); break; case 22: this.enterOuterAlt(localctx, 3); - this.state = 444; + this.state = 446; this.target(); break; case 16: this.enterOuterAlt(localctx, 4); - this.state = 445; + this.state = 447; this.description(); break; case 15: this.enterOuterAlt(localctx, 5); - this.state = 446; + this.state = 448; this.title(); break; default: @@ -1831,25 +1839,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new MappingEntityRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 62, FSHParser.RULE_mappingEntityRule); try { - this.state = 452; + this.state = 454; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,38,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 449; + this.state = 451; this.mappingRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 450; + this.state = 452; this.insertRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 451; + this.state = 453; this.pathRule(); break; @@ -1875,9 +1883,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 64, FSHParser.RULE_parent); try { this.enterOuterAlt(localctx, 1); - this.state = 454; + this.state = 456; this.match(FSHParser.KW_PARENT); - this.state = 455; + this.state = 457; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1900,9 +1908,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 66, FSHParser.RULE_id); try { this.enterOuterAlt(localctx, 1); - this.state = 457; + this.state = 459; this.match(FSHParser.KW_ID); - this.state = 458; + this.state = 460; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1925,9 +1933,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 68, FSHParser.RULE_title); try { this.enterOuterAlt(localctx, 1); - this.state = 460; + this.state = 462; this.match(FSHParser.KW_TITLE); - this.state = 461; + this.state = 463; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1951,9 +1959,9 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 463; + this.state = 465; this.match(FSHParser.KW_DESCRIPTION); - this.state = 464; + this.state = 466; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -1983,9 +1991,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 72, FSHParser.RULE_expression); try { this.enterOuterAlt(localctx, 1); - this.state = 466; + this.state = 468; this.match(FSHParser.KW_EXPRESSION); - this.state = 467; + this.state = 469; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2008,9 +2016,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 74, FSHParser.RULE_xpath); try { this.enterOuterAlt(localctx, 1); - this.state = 469; + this.state = 471; this.match(FSHParser.KW_XPATH); - this.state = 470; + this.state = 472; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2033,9 +2041,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 76, FSHParser.RULE_severity); try { this.enterOuterAlt(localctx, 1); - this.state = 472; + this.state = 474; this.match(FSHParser.KW_SEVERITY); - this.state = 473; + this.state = 475; this.match(FSHParser.CODE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2058,9 +2066,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 78, FSHParser.RULE_instanceOf); try { this.enterOuterAlt(localctx, 1); - this.state = 475; + this.state = 477; this.match(FSHParser.KW_INSTANCEOF); - this.state = 476; + this.state = 478; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2083,9 +2091,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 80, FSHParser.RULE_usage); try { this.enterOuterAlt(localctx, 1); - this.state = 478; + this.state = 480; this.match(FSHParser.KW_USAGE); - this.state = 479; + this.state = 481; this.match(FSHParser.CODE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2108,9 +2116,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 82, FSHParser.RULE_source); try { this.enterOuterAlt(localctx, 1); - this.state = 481; + this.state = 483; this.match(FSHParser.KW_SOURCE); - this.state = 482; + this.state = 484; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2133,9 +2141,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 84, FSHParser.RULE_target); try { this.enterOuterAlt(localctx, 1); - this.state = 484; + this.state = 486; this.match(FSHParser.KW_TARGET); - this.state = 485; + this.state = 487; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2159,19 +2167,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 487; + this.state = 489; this.match(FSHParser.KW_CONTEXT); - this.state = 491; + this.state = 493; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===82 || _la===84) { - this.state = 488; + this.state = 490; this.contextItem(); - this.state = 493; + this.state = 495; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 494; + this.state = 496; this.lastContextItem(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2195,7 +2203,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 496; + this.state = 498; _la = this._input.LA(1); if(!(_la===82 || _la===84)) { this._errHandler.recoverInline(this); @@ -2226,7 +2234,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 498; + this.state = 500; _la = this._input.LA(1); if(!(_la===83 || _la===85)) { this._errHandler.recoverInline(this); @@ -2257,19 +2265,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 500; + this.state = 502; this.match(FSHParser.KW_CHARACTERISTICS); - this.state = 504; + this.state = 506; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===87) { - this.state = 501; + this.state = 503; this.match(FSHParser.CODE_ITEM); - this.state = 506; + this.state = 508; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 507; + this.state = 509; this.match(FSHParser.LAST_CODE_ITEM); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2293,19 +2301,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 509; + this.state = 511; this.match(FSHParser.STAR); - this.state = 510; + this.state = 512; this.path(); - this.state = 511; + this.state = 513; this.match(FSHParser.CARD); - this.state = 515; + this.state = 517; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)) { - this.state = 512; + this.state = 514; this.flag(); - this.state = 517; + this.state = 519; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2331,29 +2339,29 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 518; + this.state = 520; this.match(FSHParser.STAR); - this.state = 519; + this.state = 521; this.path(); - this.state = 524; + this.state = 526; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 520; + this.state = 522; this.match(FSHParser.KW_AND); - this.state = 521; + this.state = 523; this.path(); - this.state = 526; + this.state = 528; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 528; + this.state = 530; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 527; + this.state = 529; this.flag(); - this.state = 530; + this.state = 532; this._errHandler.sync(this); _la = this._input.LA(1); } while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)); @@ -2379,19 +2387,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 532; + this.state = 534; this.match(FSHParser.STAR); - this.state = 533; + this.state = 535; this.path(); - this.state = 534; + this.state = 536; this.match(FSHParser.KW_FROM); - this.state = 535; - this.name(); this.state = 537; + this.name(); + this.state = 539; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 32)) & ~0x1f) === 0 && ((1 << (_la - 32)) & 15) !== 0)) { - this.state = 536; + this.state = 538; this.strength(); } @@ -2417,19 +2425,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 539; + this.state = 541; this.match(FSHParser.STAR); - this.state = 540; + this.state = 542; this.path(); - this.state = 541; + this.state = 543; this.match(FSHParser.EQUAL); - this.state = 542; - this.value(); this.state = 544; + this.value(); + this.state = 546; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===50) { - this.state = 543; + this.state = 545; this.match(FSHParser.KW_EXACTLY); } @@ -2455,23 +2463,23 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 546; + this.state = 548; this.match(FSHParser.STAR); - this.state = 547; + this.state = 549; this.path(); - this.state = 548; + this.state = 550; this.match(FSHParser.KW_CONTAINS); - this.state = 549; + this.state = 551; this.item(); - this.state = 554; + this.state = 556; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 550; + this.state = 552; this.match(FSHParser.KW_AND); - this.state = 551; + this.state = 553; this.item(); - this.state = 556; + this.state = 558; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2497,23 +2505,23 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 557; + this.state = 559; this.match(FSHParser.STAR); - this.state = 558; + this.state = 560; this.path(); - this.state = 559; + this.state = 561; this.match(FSHParser.KW_ONLY); - this.state = 560; + this.state = 562; this.targetType(); - this.state = 565; + this.state = 567; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===40) { - this.state = 561; + this.state = 563; this.match(FSHParser.KW_OR); - this.state = 562; + this.state = 564; this.targetType(); - this.state = 567; + this.state = 569; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2539,29 +2547,29 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 568; - this.match(FSHParser.STAR); this.state = 570; + this.match(FSHParser.STAR); + this.state = 572; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,48,this._ctx); if(la_===1) { - this.state = 569; + this.state = 571; this.path(); } - this.state = 572; + this.state = 574; this.match(FSHParser.KW_OBEYS); - this.state = 573; + this.state = 575; this.name(); - this.state = 578; + this.state = 580; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 574; + this.state = 576; this.match(FSHParser.KW_AND); - this.state = 575; + this.state = 577; this.name(); - this.state = 580; + this.state = 582; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2587,21 +2595,21 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 581; - this.match(FSHParser.STAR); this.state = 583; + this.match(FSHParser.STAR); + this.state = 585; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0) || _la===60 || _la===73) { - this.state = 582; + this.state = 584; this.path(); } - this.state = 585; + this.state = 587; this.caretPath(); - this.state = 586; + this.state = 588; this.match(FSHParser.EQUAL); - this.state = 587; + this.state = 589; this.value(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2625,23 +2633,23 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 589; + this.state = 591; this.match(FSHParser.STAR); - this.state = 593; + this.state = 595; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===62) { - this.state = 590; + this.state = 592; this.match(FSHParser.CODE); - this.state = 595; + this.state = 597; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 596; + this.state = 598; this.caretPath(); - this.state = 597; + this.state = 599; this.match(FSHParser.EQUAL); - this.state = 598; + this.state = 600; this.value(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2665,33 +2673,33 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 600; - this.match(FSHParser.STAR); this.state = 602; + this.match(FSHParser.STAR); + this.state = 604; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0) || _la===60 || _la===73) { - this.state = 601; + this.state = 603; this.path(); } - this.state = 604; + this.state = 606; this.match(FSHParser.ARROW); - this.state = 605; - this.match(FSHParser.STRING); this.state = 607; + this.match(FSHParser.STRING); + this.state = 609; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 606; + this.state = 608; this.match(FSHParser.STRING); } - this.state = 610; + this.state = 612; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===62) { - this.state = 609; + this.state = 611; this.match(FSHParser.CODE); } @@ -2717,27 +2725,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 612; - this.match(FSHParser.STAR); this.state = 614; + this.match(FSHParser.STAR); + this.state = 616; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0) || _la===60 || _la===73) { - this.state = 613; + this.state = 615; this.path(); } - this.state = 616; + this.state = 618; this.match(FSHParser.KW_INSERT); - this.state = 619; + this.state = 621; this._errHandler.sync(this); switch(this._input.LA(1)) { case 77: - this.state = 617; + this.state = 619; this.match(FSHParser.RULESET_REFERENCE); break; case 76: - this.state = 618; + this.state = 620; this.paramRuleSetRef(); break; default: @@ -2765,29 +2773,29 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 621; + this.state = 623; this.match(FSHParser.STAR); - this.state = 625; + this.state = 627; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===62) { - this.state = 622; + this.state = 624; this.match(FSHParser.CODE); - this.state = 627; + this.state = 629; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 628; + this.state = 630; this.match(FSHParser.KW_INSERT); - this.state = 631; + this.state = 633; this._errHandler.sync(this); switch(this._input.LA(1)) { case 77: - this.state = 629; + this.state = 631; this.match(FSHParser.RULESET_REFERENCE); break; case 76: - this.state = 630; + this.state = 632; this.paramRuleSetRef(); break; default: @@ -2815,25 +2823,25 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 633; + this.state = 635; this.match(FSHParser.STAR); - this.state = 634; + this.state = 636; this.path(); - this.state = 635; + this.state = 637; this.match(FSHParser.CARD); - this.state = 639; + this.state = 641; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)) { - this.state = 636; + this.state = 638; this.flag(); - this.state = 641; + this.state = 643; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 642; + this.state = 644; this.match(FSHParser.KW_CONTENTREFERENCE); - this.state = 643; + this.state = 645; _la = this._input.LA(1); if(!(_la===62 || _la===73)) { this._errHandler.recoverInline(this); @@ -2842,13 +2850,13 @@ export default class FSHParser extends antlr4.Parser { this._errHandler.reportMatch(this); this.consume(); } - this.state = 644; - this.match(FSHParser.STRING); this.state = 646; + this.match(FSHParser.STRING); + this.state = 648; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58 || _la===59) { - this.state = 645; + this.state = 647; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -2881,46 +2889,46 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 648; + this.state = 650; this.match(FSHParser.STAR); - this.state = 649; + this.state = 651; this.path(); - this.state = 650; + this.state = 652; this.match(FSHParser.CARD); - this.state = 654; + this.state = 656; this._errHandler.sync(this); var _alt = this._interp.adaptivePredict(this._input,61,this._ctx) while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) { if(_alt===1) { - this.state = 651; + this.state = 653; this.flag(); } - this.state = 656; + this.state = 658; this._errHandler.sync(this); _alt = this._interp.adaptivePredict(this._input,61,this._ctx); } - this.state = 657; + this.state = 659; this.targetType(); - this.state = 662; + this.state = 664; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===40) { - this.state = 658; + this.state = 660; this.match(FSHParser.KW_OR); - this.state = 659; + this.state = 661; this.targetType(); - this.state = 664; + this.state = 666; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 665; - this.match(FSHParser.STRING); this.state = 667; + this.match(FSHParser.STRING); + this.state = 669; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58 || _la===59) { - this.state = 666; + this.state = 668; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -2952,9 +2960,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 122, FSHParser.RULE_pathRule); try { this.enterOuterAlt(localctx, 1); - this.state = 669; + this.state = 671; this.match(FSHParser.STAR); - this.state = 670; + this.state = 672; this.path(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2978,13 +2986,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 672; - this.match(FSHParser.STAR); this.state = 674; + this.match(FSHParser.STAR); + this.state = 676; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===44 || _la===45) { - this.state = 673; + this.state = 675; _la = this._input.LA(1); if(!(_la===44 || _la===45)) { this._errHandler.recoverInline(this); @@ -2995,15 +3003,15 @@ export default class FSHParser extends antlr4.Parser { } } - this.state = 678; + this.state = 680; this._errHandler.sync(this); switch(this._input.LA(1)) { case 62: - this.state = 676; + this.state = 678; this.vsConceptComponent(); break; case 46: - this.state = 677; + this.state = 679; this.vsFilterComponent(); break; default: @@ -3030,51 +3038,17 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 126, FSHParser.RULE_vsConceptComponent); var _la = 0; try { - this.state = 694; + this.enterOuterAlt(localctx, 1); + this.state = 682; + this.code(); + this.state = 684; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,68,this._ctx); - switch(la_) { - case 1: - this.enterOuterAlt(localctx, 1); - this.state = 680; - this.code(); - this.state = 682; - this._errHandler.sync(this); - _la = this._input.LA(1); - if(_la===31) { - this.state = 681; - this.vsComponentFrom(); - } - - break; - - case 2: - this.enterOuterAlt(localctx, 2); - this.state = 687; - this._errHandler.sync(this); - var _alt = 1; - do { - switch (_alt) { - case 1: - this.state = 684; - this.code(); - this.state = 685; - this.match(FSHParser.KW_AND); - break; - default: - throw new antlr4.error.NoViableAltException(this); - } - this.state = 689; - this._errHandler.sync(this); - _alt = this._interp.adaptivePredict(this._input,67, this._ctx); - } while ( _alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER ); - this.state = 691; - this.code(); - this.state = 692; + _la = this._input.LA(1); + if(_la===31) { + this.state = 683; this.vsComponentFrom(); - break; - } + } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; @@ -3097,17 +3071,17 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 696; + this.state = 686; this.match(FSHParser.KW_CODES); - this.state = 697; + this.state = 687; this.vsComponentFrom(); - this.state = 700; + this.state = 690; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===47) { - this.state = 698; + this.state = 688; this.match(FSHParser.KW_WHERE); - this.state = 699; + this.state = 689; this.vsFilterList(); } @@ -3133,35 +3107,35 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 702; + this.state = 692; this.match(FSHParser.KW_FROM); - this.state = 713; + this.state = 703; this._errHandler.sync(this); switch(this._input.LA(1)) { case 49: - this.state = 703; + this.state = 693; this.vsFromSystem(); - this.state = 706; + this.state = 696; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===38) { - this.state = 704; + this.state = 694; this.match(FSHParser.KW_AND); - this.state = 705; + this.state = 695; this.vsFromValueset(); } break; case 48: - this.state = 708; + this.state = 698; this.vsFromValueset(); - this.state = 711; + this.state = 701; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===38) { - this.state = 709; + this.state = 699; this.match(FSHParser.KW_AND); - this.state = 710; + this.state = 700; this.vsFromSystem(); } @@ -3190,9 +3164,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 132, FSHParser.RULE_vsFromSystem); try { this.enterOuterAlt(localctx, 1); - this.state = 715; + this.state = 705; this.match(FSHParser.KW_SYSTEM); - this.state = 716; + this.state = 706; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3215,23 +3189,23 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 134, FSHParser.RULE_vsFromValueset); try { this.enterOuterAlt(localctx, 1); - this.state = 718; + this.state = 708; this.match(FSHParser.KW_VSREFERENCE); - this.state = 719; + this.state = 709; this.name(); - this.state = 724; + this.state = 714; this._errHandler.sync(this); - var _alt = this._interp.adaptivePredict(this._input,73,this._ctx) + var _alt = this._interp.adaptivePredict(this._input,71,this._ctx) while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) { if(_alt===1) { - this.state = 720; + this.state = 710; this.match(FSHParser.KW_AND); - this.state = 721; + this.state = 711; this.name(); } - this.state = 726; + this.state = 716; this._errHandler.sync(this); - _alt = this._interp.adaptivePredict(this._input,73,this._ctx); + _alt = this._interp.adaptivePredict(this._input,71,this._ctx); } } catch (re) { @@ -3256,17 +3230,17 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 727; + this.state = 717; this.vsFilterDefinition(); - this.state = 732; + this.state = 722; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 728; + this.state = 718; this.match(FSHParser.KW_AND); - this.state = 729; + this.state = 719; this.vsFilterDefinition(); - this.state = 734; + this.state = 724; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -3292,15 +3266,15 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 735; + this.state = 725; this.name(); - this.state = 736; + this.state = 726; this.vsFilterOperator(); - this.state = 738; + this.state = 728; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 42)) & ~0x1f) === 0 && ((1 << (_la - 42)) & 537985027) !== 0)) { - this.state = 737; + this.state = 727; this.vsFilterValue(); } @@ -3326,7 +3300,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 740; + this.state = 730; _la = this._input.LA(1); if(!(_la===53 || _la===73)) { this._errHandler.recoverInline(this); @@ -3355,32 +3329,32 @@ export default class FSHParser extends antlr4.Parser { let localctx = new VsFilterValueContext(this, this._ctx, this.state); this.enterRule(localctx, 142, FSHParser.RULE_vsFilterValue); try { - this.state = 747; + this.state = 737; this._errHandler.sync(this); switch(this._input.LA(1)) { case 62: this.enterOuterAlt(localctx, 1); - this.state = 742; + this.state = 732; this.code(); break; case 42: this.enterOuterAlt(localctx, 2); - this.state = 743; + this.state = 733; this.match(FSHParser.KW_TRUE); break; case 43: this.enterOuterAlt(localctx, 3); - this.state = 744; + this.state = 734; this.match(FSHParser.KW_FALSE); break; case 71: this.enterOuterAlt(localctx, 4); - this.state = 745; + this.state = 735; this.match(FSHParser.REGEX); break; case 58: this.enterOuterAlt(localctx, 5); - this.state = 746; + this.state = 736; this.match(FSHParser.STRING); break; default: @@ -3408,7 +3382,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 749; + this.state = 739; _la = this._input.LA(1); if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 2080374784) !== 0) || ((((_la - 46)) & ~0x1f) === 0 && ((1 << (_la - 46)) & 134234125) !== 0))) { this._errHandler.recoverInline(this); @@ -3437,17 +3411,17 @@ export default class FSHParser extends antlr4.Parser { let localctx = new PathContext(this, this._ctx, this.state); this.enterRule(localctx, 146, FSHParser.RULE_path); try { - this.state = 754; + this.state = 744; this._errHandler.sync(this); switch(this._input.LA(1)) { case 73: this.enterOuterAlt(localctx, 1); - this.state = 751; + this.state = 741; this.match(FSHParser.SEQUENCE); break; case 60: this.enterOuterAlt(localctx, 2); - this.state = 752; + this.state = 742; this.match(FSHParser.NUMBER); break; case 26: @@ -3472,7 +3446,7 @@ export default class FSHParser extends antlr4.Parser { case 49: case 52: this.enterOuterAlt(localctx, 3); - this.state = 753; + this.state = 743; this.mostAlphaKeywords(); break; default: @@ -3499,7 +3473,7 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 148, FSHParser.RULE_caretPath); try { this.enterOuterAlt(localctx, 1); - this.state = 756; + this.state = 746; this.match(FSHParser.CARET_SEQUENCE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3523,7 +3497,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 758; + this.state = 748; _la = this._input.LA(1); if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0))) { this._errHandler.recoverInline(this); @@ -3554,7 +3528,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 760; + this.state = 750; _la = this._input.LA(1); if(!(((((_la - 32)) & ~0x1f) === 0 && ((1 << (_la - 32)) & 15) !== 0))) { this._errHandler.recoverInline(this); @@ -3583,79 +3557,79 @@ export default class FSHParser extends antlr4.Parser { let localctx = new ValueContext(this, this._ctx, this.state); this.enterRule(localctx, 154, FSHParser.RULE_value); try { - this.state = 774; + this.state = 764; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,78,this._ctx); + var la_ = this._interp.adaptivePredict(this._input,76,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 762; + this.state = 752; this.match(FSHParser.STRING); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 763; + this.state = 753; this.match(FSHParser.MULTILINE_STRING); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 764; + this.state = 754; this.match(FSHParser.NUMBER); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 765; + this.state = 755; this.match(FSHParser.DATETIME); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 766; + this.state = 756; this.match(FSHParser.TIME); break; case 6: this.enterOuterAlt(localctx, 6); - this.state = 767; + this.state = 757; this.reference(); break; case 7: this.enterOuterAlt(localctx, 7); - this.state = 768; + this.state = 758; this.canonical(); break; case 8: this.enterOuterAlt(localctx, 8); - this.state = 769; + this.state = 759; this.code(); break; case 9: this.enterOuterAlt(localctx, 9); - this.state = 770; + this.state = 760; this.quantity(); break; case 10: this.enterOuterAlt(localctx, 10); - this.state = 771; + this.state = 761; this.ratio(); break; case 11: this.enterOuterAlt(localctx, 11); - this.state = 772; + this.state = 762; this.bool(); break; case 12: this.enterOuterAlt(localctx, 12); - this.state = 773; + this.state = 763; this.name(); break; @@ -3682,27 +3656,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 776; + this.state = 766; this.name(); - this.state = 779; + this.state = 769; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===37) { - this.state = 777; + this.state = 767; this.match(FSHParser.KW_NAMED); - this.state = 778; + this.state = 768; this.name(); } - this.state = 781; + this.state = 771; this.match(FSHParser.CARD); - this.state = 785; + this.state = 775; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)) { - this.state = 782; + this.state = 772; this.flag(); - this.state = 787; + this.state = 777; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -3728,13 +3702,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 788; + this.state = 778; this.match(FSHParser.CODE); - this.state = 790; + this.state = 780; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 789; + this.state = 779; this.match(FSHParser.STRING); } @@ -3760,31 +3734,31 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 792; + this.state = 782; this.match(FSHParser.STAR); - this.state = 794; + this.state = 784; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 793; + this.state = 783; this.match(FSHParser.CODE); - this.state = 796; + this.state = 786; this._errHandler.sync(this); _la = this._input.LA(1); } while(_la===62); - this.state = 799; + this.state = 789; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,83,this._ctx); + var la_ = this._interp.adaptivePredict(this._input,81,this._ctx); if(la_===1) { - this.state = 798; + this.state = 788; this.match(FSHParser.STRING); } - this.state = 802; + this.state = 792; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58 || _la===59) { - this.state = 801; + this.state = 791; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -3817,9 +3791,9 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 804; + this.state = 794; this.match(FSHParser.NUMBER); - this.state = 805; + this.state = 795; _la = this._input.LA(1); if(!(_la===61 || _la===62)) { this._errHandler.recoverInline(this); @@ -3828,11 +3802,11 @@ export default class FSHParser extends antlr4.Parser { this._errHandler.reportMatch(this); this.consume(); } - this.state = 807; + this.state = 797; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 806; + this.state = 796; this.match(FSHParser.STRING); } @@ -3857,11 +3831,11 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 164, FSHParser.RULE_ratio); try { this.enterOuterAlt(localctx, 1); - this.state = 809; + this.state = 799; this.ratioPart(); - this.state = 810; + this.state = 800; this.match(FSHParser.COLON); - this.state = 811; + this.state = 801; this.ratioPart(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3885,13 +3859,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 813; + this.state = 803; this.match(FSHParser.REFERENCE); - this.state = 815; + this.state = 805; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 814; + this.state = 804; this.match(FSHParser.STRING); } @@ -3916,7 +3890,7 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 168, FSHParser.RULE_referenceType); try { this.enterOuterAlt(localctx, 1); - this.state = 817; + this.state = 807; this.match(FSHParser.REFERENCE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3939,7 +3913,7 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 170, FSHParser.RULE_codeableReferenceType); try { this.enterOuterAlt(localctx, 1); - this.state = 819; + this.state = 809; this.match(FSHParser.CODEABLE_REFERENCE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3962,7 +3936,7 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 172, FSHParser.RULE_canonical); try { this.enterOuterAlt(localctx, 1); - this.state = 821; + this.state = 811; this.match(FSHParser.CANONICAL); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3984,19 +3958,19 @@ export default class FSHParser extends antlr4.Parser { let localctx = new RatioPartContext(this, this._ctx, this.state); this.enterRule(localctx, 174, FSHParser.RULE_ratioPart); try { - this.state = 825; + this.state = 815; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,87,this._ctx); + var la_ = this._interp.adaptivePredict(this._input,85,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 823; + this.state = 813; this.match(FSHParser.NUMBER); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 824; + this.state = 814; this.quantity(); break; @@ -4023,7 +3997,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 827; + this.state = 817; _la = this._input.LA(1); if(!(_la===42 || _la===43)) { this._errHandler.recoverInline(this); @@ -4052,7 +4026,7 @@ export default class FSHParser extends antlr4.Parser { let localctx = new TargetTypeContext(this, this._ctx, this.state); this.enterRule(localctx, 178, FSHParser.RULE_targetType); try { - this.state = 833; + this.state = 823; this._errHandler.sync(this); switch(this._input.LA(1)) { case 26: @@ -4066,22 +4040,22 @@ export default class FSHParser extends antlr4.Parser { case 60: case 73: this.enterOuterAlt(localctx, 1); - this.state = 829; + this.state = 819; this.name(); break; case 67: this.enterOuterAlt(localctx, 2); - this.state = 830; + this.state = 820; this.referenceType(); break; case 69: this.enterOuterAlt(localctx, 3); - this.state = 831; + this.state = 821; this.canonical(); break; case 68: this.enterOuterAlt(localctx, 4); - this.state = 832; + this.state = 822; this.codeableReferenceType(); break; default: @@ -4109,7 +4083,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 835; + this.state = 825; _la = this._input.LA(1); if(!(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0))) { this._errHandler.recoverInline(this); @@ -5497,10 +5471,18 @@ class VsRuleContext extends antlr4.ParserRuleContext { return this.getTypedRuleContext(CaretValueRuleContext,0); }; + codeCaretValueRule() { + return this.getTypedRuleContext(CodeCaretValueRuleContext,0); + }; + insertRule() { return this.getTypedRuleContext(InsertRuleContext,0); }; + codeInsertRule() { + return this.getTypedRuleContext(CodeInsertRuleContext,0); + }; + enterRule(listener) { if(listener instanceof FSHListener ) { listener.enterVsRule(this); @@ -8200,33 +8182,14 @@ class VsConceptComponentContext extends antlr4.ParserRuleContext { this.ruleIndex = FSHParser.RULE_vsConceptComponent; } - code = function(i) { - if(i===undefined) { - i = null; - } - if(i===null) { - return this.getTypedRuleContexts(CodeContext); - } else { - return this.getTypedRuleContext(CodeContext,i); - } + code() { + return this.getTypedRuleContext(CodeContext,0); }; vsComponentFrom() { return this.getTypedRuleContext(VsComponentFromContext,0); }; - KW_AND = function(i) { - if(i===undefined) { - i = null; - } - if(i===null) { - return this.getTokens(FSHParser.KW_AND); - } else { - return this.getToken(FSHParser.KW_AND, i); - } - }; - - enterRule(listener) { if(listener instanceof FSHListener ) { listener.enterVsConceptComponent(this); diff --git a/src/import/parserContexts.ts b/src/import/parserContexts.ts index b315f4f12..c38018854 100644 --- a/src/import/parserContexts.ts +++ b/src/import/parserContexts.ts @@ -78,7 +78,9 @@ export interface VsMetadataContext extends ParserRuleContext { export interface VsRuleContext extends ParserRuleContext { vsComponent(): VsComponentContext; caretValueRule(): CaretValueRuleContext; + codeCaretValueRule(): CodeCaretValueRuleContext; insertRule(): InsertRuleContext; + codeInsertRule(): CodeInsertRuleContext; } export interface CodeSystemContext extends ParserRuleContext { @@ -505,7 +507,7 @@ export interface VsComponentContext extends ParserRuleContext { } export interface VsConceptComponentContext extends ParserRuleContext { - code(): CodeContext[]; + code(): CodeContext; vsComponentFrom(): VsComponentFromContext; } diff --git a/test/export/ValueSetExporter.test.ts b/test/export/ValueSetExporter.test.ts index ec532a2ff..12098cd86 100644 --- a/test/export/ValueSetExporter.test.ts +++ b/test/export/ValueSetExporter.test.ts @@ -1871,6 +1871,335 @@ describe('ValueSetExporter', () => { expect(exported[0].compose.include[0].system).toBe('http://food.net/CodeSystem/FoodCS'); }); + it('should apply a CaretValueRule at an included concept', () => { + const valueSet = new FshValueSet('DinnerVS'); + const component = new ValueSetConceptComponentRule(true); + component.from = { system: 'http://food.org/food' }; + component.concepts.push( + new FshCode('Pizza', 'http://food.org/food', 'Delicious pizza to share.') + ); + component.concepts.push( + new FshCode('Salad', 'http://food.org/food', 'Plenty of fresh vegetables.') + ); + component.concepts.push(new FshCode('Mulch', 'http://food.org/food')); + const designation = new CaretValueRule(''); + designation.caretPath = 'designation.value'; + designation.pathArray = ['http://food.org/food#Salad']; + designation.value = 'ensalada'; + valueSet.rules.push(component, designation); + doc.valueSets.set(valueSet.name, valueSet); + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + id: 'DinnerVS', + name: 'DinnerVS', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/DinnerVS', + status: 'draft', + compose: { + include: [ + { + system: 'http://food.org/food', + concept: [ + { + code: 'Pizza', + display: 'Delicious pizza to share.' + }, + { + code: 'Salad', + display: 'Plenty of fresh vegetables.', + designation: [{ value: 'ensalada' }] + }, + { code: 'Mulch' } + ] + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should apply a CaretValueRule at a concept from a code system defined in FSH identified by name', () => { + const foodCS = new FshCodeSystem('FoodCS'); + foodCS.id = 'food'; + foodCS.rules.push(new ConceptRule('Pizza', 'Delicious pizza to share.')); + foodCS.rules.push(new ConceptRule('Salad', 'Plenty of fresh vegetables.')); + doc.codeSystems.set(foodCS.name, foodCS); + + const valueSet = new FshValueSet('DinnerVS'); + const component = new ValueSetConceptComponentRule(true); + component.from = { system: 'FoodCS' }; + component.concepts.push(new FshCode('Pizza', 'FoodCS', 'Delicious pizza to share.')); + component.concepts.push(new FshCode('Salad', 'FoodCS', 'Plenty of fresh vegetables.')); + const designation = new CaretValueRule(''); + designation.caretPath = 'designation.value'; + designation.pathArray = ['FoodCS#Salad']; + designation.value = 'ensalada'; + valueSet.rules.push(component, designation); + doc.valueSets.set(valueSet.name, valueSet); + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + id: 'DinnerVS', + name: 'DinnerVS', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/DinnerVS', + status: 'draft', + compose: { + include: [ + { + system: 'http://hl7.org/fhir/us/minimal/CodeSystem/food', + concept: [ + { + code: 'Pizza', + display: 'Delicious pizza to share.' + }, + { + code: 'Salad', + display: 'Plenty of fresh vegetables.', + designation: [{ value: 'ensalada' }] + } + ] + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should apply a CaretValueRule at a concept from a code system defined in FSH identified by id', () => { + const foodCS = new FshCodeSystem('FoodCS'); + foodCS.id = 'food'; + foodCS.rules.push(new ConceptRule('Pizza', 'Delicious pizza to share.')); + foodCS.rules.push(new ConceptRule('Salad', 'Plenty of fresh vegetables.')); + doc.codeSystems.set(foodCS.name, foodCS); + + const valueSet = new FshValueSet('DinnerVS'); + const component = new ValueSetConceptComponentRule(true); + component.from = { system: 'FoodCS' }; + component.concepts.push(new FshCode('Pizza', 'FoodCS', 'Delicious pizza to share.')); + component.concepts.push(new FshCode('Salad', 'FoodCS', 'Plenty of fresh vegetables.')); + const designation = new CaretValueRule(''); + designation.caretPath = 'designation.value'; + designation.pathArray = ['food#Salad']; + designation.value = 'ensalada'; + valueSet.rules.push(component, designation); + doc.valueSets.set(valueSet.name, valueSet); + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + id: 'DinnerVS', + name: 'DinnerVS', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/DinnerVS', + status: 'draft', + compose: { + include: [ + { + system: 'http://hl7.org/fhir/us/minimal/CodeSystem/food', + concept: [ + { + code: 'Pizza', + display: 'Delicious pizza to share.' + }, + { + code: 'Salad', + display: 'Plenty of fresh vegetables.', + designation: [{ value: 'ensalada' }] + } + ] + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should apply a CaretValueRule at an excluded concept', () => { + const valueSet = new FshValueSet('DinnerVS'); + const included = new ValueSetConceptComponentRule(true); + included.from = { system: 'http://food.org/food' }; + included.concepts.push( + new FshCode('Pizza', 'http://food.org/food', 'Delicious pizza to share.') + ); + included.concepts.push( + new FshCode('Salad', 'http://food.org/food', 'Plenty of fresh vegetables.') + ); + const excluded = new ValueSetConceptComponentRule(false); + excluded.from = { system: 'http://food.org/food' }; + excluded.concepts.push(new FshCode('Mulch', 'http://food.org/food')); + const designation = new CaretValueRule(''); + designation.caretPath = 'designation.value'; + designation.pathArray = ['http://food.org/food#Mulch']; + designation.value = 'mantillo'; + valueSet.rules.push(included, excluded, designation); + doc.valueSets.set(valueSet.name, valueSet); + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + id: 'DinnerVS', + name: 'DinnerVS', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/DinnerVS', + status: 'draft', + compose: { + include: [ + { + system: 'http://food.org/food', + concept: [ + { + code: 'Pizza', + display: 'Delicious pizza to share.' + }, + { + code: 'Salad', + display: 'Plenty of fresh vegetables.' + } + ] + } + ], + exclude: [ + { + system: 'http://food.org/food', + concept: [ + { + code: 'Mulch', + designation: [{ value: 'mantillo' }] + } + ] + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should apply a CaretValueRule that assigns an instance at a concept', () => { + const valueSet = new FshValueSet('DinnerVS'); + const component = new ValueSetConceptComponentRule(true); + component.from = { system: 'http://food.org/food' }; + component.concepts.push( + new FshCode('Pizza', 'http://food.org/food', 'Delicious pizza to share.') + ); + component.concepts.push( + new FshCode('Salad', 'http://food.org/food', 'Plenty of fresh vegetables.') + ); + component.concepts.push(new FshCode('Mulch', 'http://food.org/food')); + const designationValue = new CaretValueRule(''); + designationValue.caretPath = 'designation.value'; + designationValue.pathArray = ['http://food.org/food#Salad']; + designationValue.value = 'ensalada'; + const designationExtension = new CaretValueRule(''); + designationExtension.caretPath = 'designation.extension'; + designationExtension.pathArray = ['http://food.org/food#Salad']; + designationExtension.value = 'SomeDesignation'; + designationExtension.isInstance = true; + valueSet.rules.push(component, designationValue, designationExtension); + doc.valueSets.set(valueSet.name, valueSet); + // Instance: SomeDesignation + // InstanceOf: data-absent-reason + // Usage: #inline + // * valueCode = #as-text + const designationInstance = new Instance('SomeDesignation'); + designationInstance.instanceOf = 'data-absent-reason'; + designationInstance.usage = 'Inline'; + const extensionCode = new AssignmentRule('valueCode'); + extensionCode.value = new FshCode('as-text'); + designationInstance.rules.push(extensionCode); + doc.instances.set(designationInstance.name, designationInstance); + + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + id: 'DinnerVS', + name: 'DinnerVS', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/DinnerVS', + status: 'draft', + compose: { + include: [ + { + system: 'http://food.org/food', + concept: [ + { + code: 'Pizza', + display: 'Delicious pizza to share.' + }, + { + code: 'Salad', + display: 'Plenty of fresh vegetables.', + designation: [ + { + value: 'ensalada', + extension: [ + { + url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', + valueCode: 'as-text' + } + ] + } + ] + }, + { code: 'Mulch' } + ] + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should log an error when a CaretValueRule is applied at a concept that is neither included nor excluded', () => { + const valueSet = new FshValueSet('DinnerVS'); + const component = new ValueSetConceptComponentRule(true); + component.from = { system: 'http://food.org/food' }; + component.concepts.push( + new FshCode('Pizza', 'http://food.org/food', 'Delicious pizza to share.') + ); + component.concepts.push( + new FshCode('Salad', 'http://food.org/food', 'Plenty of fresh vegetables.') + ); + component.concepts.push(new FshCode('Mulch', 'http://food.org/food')); + const designation = new CaretValueRule('').withFile('ValueSet.fsh').withLocation([4, 3, 4, 29]); + designation.caretPath = 'designation.value'; + designation.pathArray = ['http://food.org/food#Bread']; + designation.value = 'pan'; + valueSet.rules.push(component, designation); + doc.valueSets.set(valueSet.name, valueSet); + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + id: 'DinnerVS', + name: 'DinnerVS', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/DinnerVS', + status: 'draft', + compose: { + include: [ + { + system: 'http://food.org/food', + concept: [ + { + code: 'Pizza', + display: 'Delicious pizza to share.' + }, + { + code: 'Salad', + display: 'Plenty of fresh vegetables.' + }, + { code: 'Mulch' } + ] + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + 'Could not find concept http://food.org/food#Bread, skipping rule.' + ); + expect(loggerSpy.getLastMessage('error')).toMatch(/File: ValueSet\.fsh.*Line: 4\D*/s); + }); + describe('#insertRules', () => { let vs: FshValueSet; let ruleSet: RuleSet; diff --git a/test/import/FSHImporter.ValueSet.test.ts b/test/import/FSHImporter.ValueSet.test.ts index 2c3934ff0..b424f8101 100644 --- a/test/import/FSHImporter.ValueSet.test.ts +++ b/test/import/FSHImporter.ValueSet.test.ts @@ -251,38 +251,11 @@ describe('FSHImporter', () => { ]); }); - it('should parse a value set with a list of concepts', () => { - const input = leftAlign(` - ValueSet: ZooVS - * #hippo "Hippopotamus" and #crocodile "Crocodile" from system ZOO - `); - - const result = importSingleText(input, 'Zoo.fsh'); - expect(result.valueSets.size).toBe(1); - const valueSet = result.valueSets.get('ZooVS'); - expect(valueSet.rules.length).toBe(1); - assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ - new FshCode('hippo', 'ZOO', 'Hippopotamus') - .withLocation([3, 3, 3, 23]) - .withFile('Zoo.fsh'), - new FshCode('crocodile', 'ZOO', 'Crocodile') - .withLocation([3, 29, 3, 50]) - .withFile('Zoo.fsh') - ]); - expect(valueSet.sourceInfo.location).toEqual({ - startLine: 2, - startColumn: 1, - endLine: 3, - endColumn: 66 - }); - expect(valueSet.sourceInfo.file).toBe('Zoo.fsh'); - }); - it('should merge concept rules when possible', () => { const input = leftAlign(` ValueSet: ZooVS * ZOO#hippo "Hippopotamus" - * #crocodile "Crocodile" and #emu "Emu" from system ZOO + * #crocodile "Crocodile" from system ZOO * ZOO#alligator "Alligator" from valueset ReptileVS * CRYPTID#jackalope "Jackalope" * exclude ZOO#lion "Lion" @@ -299,8 +272,7 @@ describe('FSHImporter', () => { .withFile('Zoo.fsh'), new FshCode('crocodile', 'ZOO', 'Crocodile') .withLocation([4, 3, 4, 24]) - .withFile('Zoo.fsh'), - new FshCode('emu', 'ZOO', 'Emu').withLocation([4, 30, 4, 39]).withFile('Zoo.fsh') + .withFile('Zoo.fsh') ]); assertValueSetConceptComponent( valueSet.rules[1], @@ -353,20 +325,6 @@ describe('FSHImporter', () => { expect(loggerSpy.getLastMessage('error')).toMatch(/File: Zoo\.fsh.*Line: 3\D*/s); }); - it('should log an error when a concept component with a list of concepts does not have a system', () => { - const input = leftAlign(` - ValueSet: ZooVS - * #hippo "Hippopotamus" and #crocodile "Crocodile" - `); - - const result = importSingleText(input, 'Zoo.fsh'); - expect(result.valueSets.size).toBe(1); - const valueSet = result.valueSets.get('ZooVS'); - expect(valueSet.rules.length).toBe(1); - assertValueSetConceptComponent(valueSet.rules[0], undefined, undefined, []); - expect(loggerSpy.getLastMessage('error')).toMatch(/File: Zoo\.fsh.*Line: 3\D*/s); - }); - it('should log an error when a concept component has a system specified more than once', () => { const input = leftAlign(` ValueSet: ZooVS @@ -389,22 +347,6 @@ describe('FSHImporter', () => { expect(loggerSpy.getLastMessage('error')).toMatch(/no viable alternative/s); expect(loggerSpy.getLastMessage('error')).toMatch(/File: Zoo\.fsh.*Line: 3\D*/s); }); - - it('should log an error when concepts are listed with commas', () => { - const input = leftAlign(` - ValueSet: ZooVS - * #hippo, #crocodile , #emu from system ZOO - `); - - const result = importSingleText(input, 'Deprecated.fsh'); - expect(result.valueSets.size).toBe(1); - const valueSet = result.valueSets.get('ZooVS'); - expect(valueSet).toBeDefined(); - expect(loggerSpy.getFirstMessage('error')).toMatch( - /Using ',' to list items is no longer supported/s - ); - expect(loggerSpy.getFirstMessage('error')).toMatch(/File: Deprecated\.fsh.*Line: 3\D*/s); - }); }); describe('#ValueSetFilterComponent', () => { @@ -1235,6 +1177,56 @@ describe('FSHImporter', () => { }); }); + describe('#ValueSetCodeCaretRule', () => { + it('should parse a value set with a code caret rule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * ZOO#hippo ^designation.value = "hipopótamo" + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(2); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus') + .withLocation([3, 3, 3, 26]) + .withFile('Zoo.fsh') + ]); + assertCaretValueRule(valueSet.rules[1], '', 'designation.value', 'hipopótamo', false, [ + 'ZOO#hippo' + ]); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should log an error when a caret rule has more than one concept', () => { + // ValueSet: ZooVS + // * ZOO#hippo "Hippopotamus" + // * ZOO#rhino "Rhinoceros" + // * ZOO#hippo ZOO#rhino ^designation.value = "hipopótamo" + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * ZOO#rhino "Rhinoceros" + * ZOO#hippo ZOO#rhino ^designation.value = "hipopótamo" + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(1); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus') + .withLocation([3, 3, 3, 26]) + .withFile('Zoo.fsh'), + new FshCode('rhino', 'ZOO', 'Rhinoceros').withLocation([4, 3, 4, 24]).withFile('Zoo.fsh') + ]); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + /Only one concept may be listed before a caret rule on a ValueSet\..*File: Zoo\.fsh.*Line: 5\D*/s + ); + }); + }); + describe('#insertRule', () => { it('should parse an insert rule with a single RuleSet', () => { const input = leftAlign(` @@ -1244,7 +1236,37 @@ describe('FSHImporter', () => { const result = importSingleText(input, 'Insert.fsh'); const vs = result.valueSets.get('MyVS'); expect(vs.rules).toHaveLength(1); - assertInsertRule(vs.rules[0] as Rule, '', 'MyRuleSet'); + assertInsertRule(vs.rules[0], '', 'MyRuleSet'); + }); + + it('should parse an insert rule at a concept', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo + * ZOO#hippo insert DesignationRules + `); + const result = importSingleText(input, 'Insert.fsh'); + const vs = result.valueSets.get('ZooVS'); + expect(vs.rules).toHaveLength(2); + assertValueSetConceptComponent(vs.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO').withFile('Insert.fsh').withLocation([3, 3, 3, 11]) + ]); + assertInsertRule(vs.rules[1], '', 'DesignationRules', [], ['ZOO#hippo']); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should log an error when an insert rule has more than one concept', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo ZOO#big-hippo insert DesignationRules + `); + const result = importSingleText(input, 'Insert.fsh'); + const vs = result.valueSets.get('ZooVS'); + expect(vs.rules).toHaveLength(0); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + /Only one concept may be listed before an insert rule on a ValueSet\..*File: Insert\.fsh.*Line: 3\D*/s + ); }); }); }); diff --git a/test/import/FSHImporter.context.test.ts b/test/import/FSHImporter.context.test.ts index eb7f8d5e7..06dbe08e1 100644 --- a/test/import/FSHImporter.context.test.ts +++ b/test/import/FSHImporter.context.test.ts @@ -1027,5 +1027,239 @@ describe('FSHImporter', () => { expect(codeSystem.rules[1].sourceInfo.file).toBe('Zoo.fsh'); expect(loggerSpy.getAllMessages('error')).toHaveLength(0); }); + + it('should parse a value set that uses an indented CaretValueRule after a ValueSetConceptComponentRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * ^designation.value = "hipopótamo" + * ^designation.language = "es" + * include ZOO#anteater "Anteater" + * ^designation.value = "fourmilier" + * ^designation.language = "fr" + * exclude ZOO#bear "Bear" + * ^designation.value = "oso" + * ^designation.language = "es" + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(8); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus').withLocation([3, 3, 3, 26]).withFile('Zoo.fsh'), + new FshCode('anteater', 'ZOO', 'Anteater').withLocation([6, 11, 6, 33]).withFile('Zoo.fsh') + ]); + assertCaretValueRule(valueSet.rules[1], '', 'designation.value', 'hipopótamo', false, [ + 'ZOO#hippo' + ]); + assertCaretValueRule(valueSet.rules[2], '', 'designation.language', 'es', false, [ + 'ZOO#hippo' + ]); + assertCaretValueRule(valueSet.rules[3], '', 'designation.value', 'fourmilier', false, [ + 'ZOO#anteater' + ]); + assertCaretValueRule(valueSet.rules[4], '', 'designation.language', 'fr', false, [ + 'ZOO#anteater' + ]); + assertCaretValueRule(valueSet.rules[6], '', 'designation.value', 'oso', false, ['ZOO#bear']); + assertCaretValueRule(valueSet.rules[7], '', 'designation.language', 'es', false, [ + 'ZOO#bear' + ]); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should parse a value set that uses an indented CaretValueRule after a ValueSetConceptComponentRule with the from keyword', () => { + const input = leftAlign(` + ValueSet: ZooVS + * #hippo "Hippopotamus" from system ZOO + * ^designation.value = "hipopótamo" + * ^designation.language = "es" + * include #anteater "Anteater" from system ZOO + * ^designation.value = "fourmilier" + * ^designation.language = "fr" + * exclude #bear "Bear" from system ZOO + * ^designation.value = "oso" + * ^designation.language = "es" + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(8); + assertCaretValueRule(valueSet.rules[1], '', 'designation.value', 'hipopótamo', false, [ + 'ZOO#hippo' + ]); + assertCaretValueRule(valueSet.rules[2], '', 'designation.language', 'es', false, [ + 'ZOO#hippo' + ]); + assertCaretValueRule(valueSet.rules[3], '', 'designation.value', 'fourmilier', false, [ + 'ZOO#anteater' + ]); + assertCaretValueRule(valueSet.rules[4], '', 'designation.language', 'fr', false, [ + 'ZOO#anteater' + ]); + assertCaretValueRule(valueSet.rules[6], '', 'designation.value', 'oso', false, ['ZOO#bear']); + assertCaretValueRule(valueSet.rules[7], '', 'designation.language', 'es', false, [ + 'ZOO#bear' + ]); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should parse a value set that uses an indented InsertRule after a ValueSetConceptComponentRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * insert MyRuleSet + * include ZOO#anteater "Anteater" + * insert OtherRuleSet + * exclude ZOO#bear "Bear" + * insert ThirdRuleSet + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(5); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus').withLocation([3, 3, 3, 26]).withFile('Zoo.fsh'), + new FshCode('anteater', 'ZOO', 'Anteater').withLocation([5, 11, 5, 33]).withFile('Zoo.fsh') + ]); + assertInsertRule(valueSet.rules[1], 'ZOO#hippo', 'MyRuleSet', [], ['ZOO#hippo']); + assertInsertRule(valueSet.rules[2], 'ZOO#anteater', 'OtherRuleSet', [], ['ZOO#anteater']); + assertValueSetConceptComponent( + valueSet.rules[3], + 'ZOO', + undefined, + [new FshCode('bear', 'ZOO', 'Bear').withFile('Zoo.fsh').withLocation([7, 11, 7, 25])], + false + ); + assertInsertRule(valueSet.rules[4], 'ZOO#bear', 'ThirdRuleSet', [], ['ZOO#bear']); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should parse a value set that uses a root-level CaretValueRule after a ValueSetConceptComponentRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * ^publisher = "foo" + * include ZOO#anteater "Anteater" + * ^immutable = false + * exclude ZOO#bear "Bear" + * ^purpose = "We like animals." + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(5); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus').withFile('Zoo.fsh').withLocation([3, 3, 3, 26]), + new FshCode('anteater', 'ZOO', 'Anteater').withLocation([5, 11, 5, 33]).withFile('Zoo.fsh') + ]); + assertCaretValueRule(valueSet.rules[1], '', 'publisher', 'foo', false, []); + assertCaretValueRule(valueSet.rules[2], '', 'immutable', false, false, []); + assertValueSetConceptComponent( + valueSet.rules[3], + 'ZOO', + undefined, + [new FshCode('bear', 'ZOO', 'Bear').withFile('Zoo.fsh').withLocation([7, 11, 7, 25])], + false + ); + assertCaretValueRule(valueSet.rules[4], '', 'purpose', 'We like animals.', false, []); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should parse a value set that uses a root-level CaretValueRule after a concept-level CaretValueRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * ZOO#hippo ^designation.value = "hipopótamo" + * ^publisher = "foo" + * include ZOO#anteater "Anteater" + * ZOO#anteater ^designation.value = "fourmilier" + * ^immutable = false + * exclude ZOO#bear "Bear" + * ^designation.value = "oso" + * ^purpose = "We like animals." + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(8); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus').withFile('Zoo.fsh').withLocation([3, 3, 3, 26]), + new FshCode('anteater', 'ZOO', 'Anteater').withFile('Zoo.fsh').withLocation([6, 11, 6, 33]) + ]); + assertCaretValueRule(valueSet.rules[1], '', 'designation.value', 'hipopótamo', false, [ + 'ZOO#hippo' + ]); + assertCaretValueRule(valueSet.rules[2], '', 'publisher', 'foo', false, []); + assertCaretValueRule(valueSet.rules[3], '', 'designation.value', 'fourmilier', false, [ + 'ZOO#anteater' + ]); + assertCaretValueRule(valueSet.rules[4], '', 'immutable', false, false, []); + assertValueSetConceptComponent( + valueSet.rules[5], + 'ZOO', + undefined, + [new FshCode('bear', 'ZOO', 'Bear').withFile('Zoo.fsh').withLocation([9, 11, 9, 25])], + false + ); + assertCaretValueRule(valueSet.rules[6], '', 'designation.value', 'oso', false, ['ZOO#bear']); + assertCaretValueRule(valueSet.rules[7], '', 'purpose', 'We like animals.', false, []); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should log an error when parsing a value set that uses an indented CaretValueRule after a ValueSetFilterComponentRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * include codes from system ZOO + * ^inactive = true + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(2); + assertValueSetFilterComponent(valueSet.rules[0], 'ZOO', undefined, []); + assertCaretValueRule(valueSet.rules[1], '', 'inactive', true, false); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + /Rule cannot be indented below rule which has no path.*File: Zoo\.fsh.*Line: 4\D*/s + ); + }); + + it('should log an error when parsing a value set that uses an indented InsertRule after a ValueSetFilterComponentRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * include codes from system ZOO + * insert MyRuleSet + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(2); + assertValueSetFilterComponent(valueSet.rules[0], 'ZOO', undefined, []); + assertInsertRule(valueSet.rules[1], '', 'MyRuleSet'); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + /Rule cannot be indented below rule which has no path.*File: Zoo\.fsh.*Line: 4\D*/s + ); + }); + + it('should log an error when parsing a value set that uses an indented InsertRule with a concept after a ValueSetConceptComponentRule', () => { + const input = leftAlign(` + ValueSet: ZooVS + * ZOO#hippo "Hippopotamus" + * ZOO#big-hippo insert MyRuleSet + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(1); + assertValueSetConceptComponent(valueSet.rules[0], 'ZOO', undefined, [ + new FshCode('hippo', 'ZOO', 'Hippopotamus').withLocation([3, 3, 3, 26]).withFile('Zoo.fsh') + ]); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + /Only one concept may be listed before an insert rule on a ValueSet\..*File: Zoo\.fsh.*Line: 4\D*/s + ); + }); }); });