From 0245540301ece09642557aa495982720f78a80a0 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Fri, 30 Aug 2024 15:58:38 -0700 Subject: [PATCH] [Auto Suggest] PPL autocomplete and interface changes (#7932) * [Autocomplete - SQL] Minor interface change to add suggestion type and move suggestion provider registration location (#7758) * add table/source as prefix to suggested fields Signed-off-by: Eric * add type to column Signed-off-by: Eric * move registeration to osd/monaco Signed-off-by: Eric * add detail Signed-off-by: Eric * Changeset file for PR #7758 created/updated --------- Signed-off-by: Eric Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> * [Autocomplete] PPL Autocomplete (#7810) * add initial ppl autocomplete Signed-off-by: Eric * untrack .antlr files Signed-off-by: Eric * ignore intermediate grammar auto-gen files Signed-off-by: Eric * add rules and related functionalities Signed-off-by: Eric * Changeset file for PR #7810 created/updated * Changeset file for PR #7810 created/updated * minor comment cleanning Signed-off-by: Eric * add ppl generation command Signed-off-by: Eric * add rules Signed-off-by: Eric * correct typo Signed-off-by: Eric * fix inserting text issue Signed-off-by: Eric * remove colon for PPL field Signed-off-by: Eric --------- Signed-off-by: Eric Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> * small interface updates Signed-off-by: Paul Sebastian * small type update Signed-off-by: Paul Sebastian * make inclusion for pipe, comma, and equal tokens Signed-off-by: Paul Sebastian * refactor and generalize field fetcher for dql and ppl, including details Signed-off-by: Paul Sebastian * use field fetching util for sql and update sugg detail for dql Signed-off-by: Paul Sebastian * detail for ppl Signed-off-by: Paul Sebastian * create range parameter to help identify suggestions with whitespace, implemented dql value WS suggs Signed-off-by: Paul Sebastian * single line editor overflow initial override for sugg window Signed-off-by: Paul Sebastian * update dql tests to account for details and value ranges Signed-off-by: Paul Sebastian --------- Signed-off-by: Eric Signed-off-by: Paul Sebastian Co-authored-by: Eric Wei Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- .gitignore | 3 +- changelogs/fragments/7758.yml | 2 + changelogs/fragments/7810.yml | 2 + package.json | 3 +- .../osd-monaco/src/xjson/lexer_rules/index.ts | 4 + .../src/xjson/lexer_rules/opensearchppl.ts | 529 + .../src/xjson/lexer_rules/opensearchsql.ts | 4 + .../public/antlr/dql/code_completion.test.ts | 137 +- .../data/public/antlr/dql/code_completion.ts | 37 +- .../.generated/OpenSearchPPLLexer.interp | 1033 ++ .../.generated/OpenSearchPPLLexer.tokens | 659 + .../.generated/OpenSearchPPLLexer.ts | 1880 +++ .../.generated/OpenSearchPPLParser.interp | 797 + .../.generated/OpenSearchPPLParser.tokens | 659 + .../.generated/OpenSearchPPLParser.ts | 12797 ++++++++++++++++ .../.generated/OpenSearchPPLParserVisitor.ts | 975 ++ .../antlr/opensearch_ppl/code_completion.ts | 72 + .../grammar/OpenSearchPPLLexer.g4 | 406 + .../grammar/OpenSearchPPLParser.g4 | 914 ++ .../opensearch_ppl_autocomplete.ts | 146 + .../antlr/opensearch_sql/code_completion.ts | 139 +- .../data/public/antlr/shared/constants.ts | 12 + .../antlr/shared/general_error_listerner.ts | 47 + src/plugins/data/public/antlr/shared/types.ts | 23 + src/plugins/data/public/antlr/shared/utils.ts | 89 + .../providers/query_suggestion_provider.ts | 17 +- src/plugins/data/public/plugin.ts | 8 +- .../public/ui/query_editor/_query_editor.scss | 1 + .../public/ui/query_editor/query_editor.tsx | 36 +- 29 files changed, 21208 insertions(+), 223 deletions(-) create mode 100644 changelogs/fragments/7758.yml create mode 100644 changelogs/fragments/7810.yml create mode 100644 packages/osd-monaco/src/xjson/lexer_rules/opensearchppl.ts create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.interp create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.tokens create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.ts create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.interp create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.tokens create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.ts create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParserVisitor.ts create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/code_completion.ts create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLLexer.g4 create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4 create mode 100644 src/plugins/data/public/antlr/opensearch_ppl/opensearch_ppl_autocomplete.ts create mode 100644 src/plugins/data/public/antlr/shared/constants.ts create mode 100644 src/plugins/data/public/antlr/shared/general_error_listerner.ts diff --git a/.gitignore b/.gitignore index c530adedb7bb..f62e798ad6a5 100644 --- a/.gitignore +++ b/.gitignore @@ -70,5 +70,4 @@ snapshots.js .yarn-local-mirror # Ignore the generated antlr files -/src/plugins/data/public/antlr/opensearch_sql/grammar/.antlr -/src/plugins/data/public/antlr/dql/grammar/.antlr \ No newline at end of file +/src/plugins/data/public/antlr/**/grammar/.antlr/ \ No newline at end of file diff --git a/changelogs/fragments/7758.yml b/changelogs/fragments/7758.yml new file mode 100644 index 000000000000..ecc1f7b1defa --- /dev/null +++ b/changelogs/fragments/7758.yml @@ -0,0 +1,2 @@ +feat: +- Minor interface change and move suggestion provider registration location ([#7758](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7758)) \ No newline at end of file diff --git a/changelogs/fragments/7810.yml b/changelogs/fragments/7810.yml new file mode 100644 index 000000000000..104d2d23e27c --- /dev/null +++ b/changelogs/fragments/7810.yml @@ -0,0 +1,2 @@ +feat: +- Add OpenSearch PPL autocomplete to discover 2.0 with query enhancements ([#7810](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7810)) \ No newline at end of file diff --git a/package.json b/package.json index 34d987807c51..1ed701790cdf 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,8 @@ "cypress:run-with-security": "env TZ=America/Los_Angeles NO_COLOR=1 cypress run --headless --env SECURITY_ENABLED=true,openSearchUrl=https://localhost:9200,WAIT_FOR_LOADER_BUFFER_MS=500", "osd:ciGroup10": "echo \"dashboard_sanity_test_spec.js\"", "osd:ciGroup11": "echo \"apps/vis_builder/*.js\"", - "generate:opensearchsqlantlr": "./node_modules/antlr4ng-cli/index.js -Dlanguage=TypeScript -o ./src/plugins/data/public/antlr/opensearch_sql/.generated -visitor -no-listener -Xexact-output-dir ./src/plugins/data/public/antlr/opensearch_sql/grammar/OpenSearchSQLLexer.g4 ./src/plugins/data/public/antlr/opensearch_sql/grammar/OpenSearchSQLParser.g4" + "generate:opensearchsqlantlr": "./node_modules/antlr4ng-cli/index.js -Dlanguage=TypeScript -o ./src/plugins/data/public/antlr/opensearch_sql/.generated -visitor -no-listener -Xexact-output-dir ./src/plugins/data/public/antlr/opensearch_sql/grammar/OpenSearchSQLLexer.g4 ./src/plugins/data/public/antlr/opensearch_sql/grammar/OpenSearchSQLParser.g4", + "generate:opensearchpplantlr": "./node_modules/antlr4ng-cli/index.js -Dlanguage=TypeScript -o ./src/plugins/data/public/antlr/opensearch_ppl/.generated -visitor -no-listener -Xexact-output-dir ./src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLLexer.g4 ./src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4" }, "repository": { "type": "git", diff --git a/packages/osd-monaco/src/xjson/lexer_rules/index.ts b/packages/osd-monaco/src/xjson/lexer_rules/index.ts index 496769020e55..1e836eb4fed7 100644 --- a/packages/osd-monaco/src/xjson/lexer_rules/index.ts +++ b/packages/osd-monaco/src/xjson/lexer_rules/index.ts @@ -34,6 +34,7 @@ import * as xJson from './xjson'; import * as opensearchql from './opensearchql'; import * as painless from './painless'; import * as opensearchsql from './opensearchsql'; +import * as opensearchppl from './opensearchppl'; export const registerLexerRules = (m: typeof monaco) => { m.languages.register({ id: xJson.ID }); @@ -44,4 +45,7 @@ export const registerLexerRules = (m: typeof monaco) => { m.languages.setMonarchTokensProvider(opensearchql.ID, opensearchql.lexerRules); m.languages.register({ id: opensearchsql.ID }); m.languages.setMonarchTokensProvider(opensearchsql.ID, opensearchsql.lexerRules); + m.languages.register({ id: opensearchppl.ID }); + m.languages.setMonarchTokensProvider(opensearchppl.ID, opensearchppl.lexerRules); + m.languages.register({ id: 'kuery' }); }; diff --git a/packages/osd-monaco/src/xjson/lexer_rules/opensearchppl.ts b/packages/osd-monaco/src/xjson/lexer_rules/opensearchppl.ts new file mode 100644 index 000000000000..f303c8fa9e77 --- /dev/null +++ b/packages/osd-monaco/src/xjson/lexer_rules/opensearchppl.ts @@ -0,0 +1,529 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { monaco } from '../../monaco'; + +export const ID = 'PPL'; + +const brackets = [ + { open: '[', close: ']', token: 'delimiter.square' }, + { open: '(', close: ')', token: 'delimiter.parenthesis' }, +]; + +const keywords = [ + // COMMAND KEYWORDS + 'SEARCH', + 'DESCRIBE', + 'SHOW', + 'FROM', + 'WHERE', + 'FIELDS', + 'RENAME', + 'STATS', + 'DEDUP', + 'SORT', + 'EVAL', + 'HEAD', + 'TOP', + 'RARE', + 'PARSE', + 'METHOD', + 'REGEX', + 'PUNCT', + 'GROK', + 'PATTERN', + 'PATTERNS', + 'NEW_FIELD', + 'KMEANS', + 'AD', + 'ML', + + // COMMAND ASSIST KEYWORDS + 'AS', + 'BY', + 'SOURCE', + 'INDEX', + 'D', + 'DESC', + 'DATASOURCES', + + // CLAUSE KEYWORDS + 'SORTBY', + + // FIELD KEYWORDS + 'AUTO', + 'STR', + 'IP', + 'NUM', + + // ARGUMENT KEYWORDS + 'KEEPEMPTY', + 'CONSECUTIVE', + 'DEDUP_SPLITVALUES', + 'PARTITIONS', + 'ALLNUM', + 'DELIM', + 'CENTROIDS', + 'ITERATIONS', + 'DISTANCE_TYPE', + 'NUMBER_OF_TREES', + 'SHINGLE_SIZE', + 'SAMPLE_SIZE', + 'OUTPUT_AFTER', + 'TIME_DECAY', + 'ANOMALY_RATE', + 'CATEGORY_FIELD', + 'TIME_FIELD', + 'TIME_ZONE', + 'TRAINING_DATA_SIZE', + 'ANOMALY_SCORE_THRESHOLD', + + // COMPARISON FUNCTION KEYWORDS + 'CASE', + 'IN', + + // LOGICAL KEYWORDS + 'NOT', + 'OR', + 'AND', + 'XOR', + 'TRUE', + 'FALSE', + 'REGEXP', + + // DATETIME, INTERVAL AND UNIT KEYWORDS + 'CONVERT_TZ', + 'DATETIME', + 'DAY', + 'DAY_HOUR', + 'DAY_MICROSECOND', + 'DAY_MINUTE', + 'DAY_OF_YEAR', + 'DAY_SECOND', + 'HOUR', + 'HOUR_MICROSECOND', + 'HOUR_MINUTE', + 'HOUR_OF_DAY', + 'HOUR_SECOND', + 'INTERVAL', + 'MICROSECOND', + 'MILLISECOND', + 'MINUTE', + 'MINUTE_MICROSECOND', + 'MINUTE_OF_DAY', + 'MINUTE_OF_HOUR', + 'MINUTE_SECOND', + 'MONTH', + 'MONTH_OF_YEAR', + 'QUARTER', + 'SECOND', + 'SECOND_MICROSECOND', + 'SECOND_OF_MINUTE', + 'WEEK', + 'WEEK_OF_YEAR', + 'YEAR', + 'YEAR_MONTH', + + // DATASET TYPES + 'DATAMODEL', + 'LOOKUP', + 'SAVEDSEARCH', + + // CONVERTED DATA TYPES + 'INT', + 'INTEGER', + 'DOUBLE', + 'LONG', + 'FLOAT', + 'STRING', + 'BOOLEAN', + + // SPECIAL CHARACTERS AND OPERATORS + 'PIPE', + 'COMMA', + 'DOT', + 'EQUAL', + 'GREATER', + 'LESS', + 'NOT_GREATER', + 'NOT_LESS', + 'NOT_EQUAL', + 'PLUS', + 'MINUS', + 'STAR', + 'DIVIDE', + 'MODULE', + 'EXCLAMATION_SYMBOL', + 'COLON', + 'LT_PRTHS', + 'RT_PRTHS', + 'LT_SQR_PRTHS', + 'RT_SQR_PRTHS', + 'SINGLE_QUOTE', + 'DOUBLE_QUOTE', + 'BACKTICK', + + // AGGREGATIONS + 'AVG', + 'COUNT', + 'DISTINCT_COUNT', + 'ESTDC', + 'ESTDC_ERROR', + 'MAX', + 'MEAN', + 'MEDIAN', + 'MIN', + 'MODE', + 'RANGE', + 'STDEV', + 'STDEVP', + 'SUM', + 'SUMSQ', + 'VAR_SAMP', + 'VAR_POP', + 'STDDEV_SAMP', + 'STDDEV_POP', + 'PERCENTILE', + 'TAKE', + 'FIRST', + 'LAST', + 'LIST', + 'VALUES', + 'EARLIEST', + 'EARLIEST_TIME', + 'LATEST', + 'LATEST_TIME', + 'PER_DAY', + 'PER_HOUR', + 'PER_MINUTE', + 'PER_SECOND', + 'RATE', + 'SPARKLINE', + 'C', + 'DC', + + // BASIC FUNCTIONS + 'ABS', + 'CBRT', + 'CEIL', + 'CEILING', + 'CONV', + 'CRC32', + 'E', + 'EXP', + 'FLOOR', + 'LN', + 'LOG', + 'LOG10', + 'LOG2', + 'MOD', + 'PI', + 'POSITION', + 'POW', + 'POWER', + 'RAND', + 'ROUND', + 'SIGN', + 'SQRT', + 'TRUNCATE', + + // TRIGONOMETRIC FUNCTIONS + 'ACOS', + 'ASIN', + 'ATAN', + 'ATAN2', + 'COS', + 'COT', + 'DEGREES', + 'RADIANS', + 'SIN', + 'TAN', + + // DATE AND TIME FUNCTIONS + 'ADDDATE', + 'ADDTIME', + 'CURDATE', + 'CURRENT_DATE', + 'CURRENT_TIME', + 'CURRENT_TIMESTAMP', + 'CURTIME', + 'DATE', + 'DATEDIFF', + 'DATE_ADD', + 'DATE_FORMAT', + 'DATE_SUB', + 'DAYNAME', + 'DAYOFMONTH', + 'DAYOFWEEK', + 'DAYOFYEAR', + 'DAY_OF_MONTH', + 'DAY_OF_WEEK', + 'DAY_OF_YEAR', + 'EXTRACT', + 'FROM_DAYS', + 'FROM_UNIXTIME', + 'GET_FORMAT', + 'LAST_DAY', + 'LOCALTIME', + 'LOCALTIMESTAMP', + 'MAKEDATE', + 'MAKETIME', + 'MONTHNAME', + 'NOW', + 'PERIOD_ADD', + 'PERIOD_DIFF', + 'SEC_TO_TIME', + 'STR_TO_DATE', + 'SUBDATE', + 'SUBTIME', + 'SYSDATE', + 'TIME', + 'TIMEDIFF', + 'TIMESTAMP', + 'TIMESTAMPADD', + 'TIMESTAMPDIFF', + 'TIME_FORMAT', + 'TIME_TO_SEC', + 'TO_DAYS', + 'TO_SECONDS', + 'UNIX_TIMESTAMP', + 'UTC_DATE', + 'UTC_TIME', + 'UTC_TIMESTAMP', + 'WEEKDAY', + 'YEARWEEK', + + // TEXT FUNCTIONS + 'SUBSTR', + 'SUBSTRING', + 'LTRIM', + 'RTRIM', + 'TRIM', + 'TO', + 'LOWER', + 'UPPER', + 'CONCAT', + 'CONCAT_WS', + 'LENGTH', + 'STRCMP', + 'RIGHT', + 'LEFT', + 'ASCII', + 'LOCATE', + 'REPLACE', + 'REVERSE', + 'CAST', + + // BOOL FUNCTIONS + 'LIKE', + 'ISNULL', + 'ISNOTNULL', + + // FLOWCONTROL FUNCTIONS + 'IFNULL', + 'NULLIF', + 'IF', + 'TYPEOF', + + // RELEVANCE FUNCTIONS AND PARAMETERS + 'MATCH', + 'MATCH_PHRASE', + 'MATCH_PHRASE_PREFIX', + 'MATCH_BOOL_PREFIX', + 'SIMPLE_QUERY_STRING', + 'MULTI_MATCH', + 'QUERY_STRING', + 'ALLOW_LEADING_WILDCARD', + 'ANALYZE_WILDCARD', + 'ANALYZER', + 'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY', + 'BOOST', + 'CUTOFF_FREQUENCY', + 'DEFAULT_FIELD', + 'DEFAULT_OPERATOR', + 'ENABLE_POSITION_INCREMENTS', + 'ESCAPE', + 'FLAGS', + 'FUZZY_MAX_EXPANSIONS', + 'FUZZY_PREFIX_LENGTH', + 'FUZZY_TRANSPOSITIONS', + 'FUZZY_REWRITE', + 'FUZZINESS', + 'LENIENT', + 'LOW_FREQ_OPERATOR', + 'MAX_DETERMINIZED_STATES', + 'MAX_EXPANSIONS', + 'MINIMUM_SHOULD_MATCH', + 'OPERATOR', + 'PHRASE_SLOP', + 'PREFIX_LENGTH', + 'QUOTE_ANALYZER', + 'QUOTE_FIELD_SUFFIX', + 'REWRITE', + 'SLOP', + 'TIE_BREAKER', + 'TYPE', + 'ZERO_TERMS_QUERY', + + // SPAN KEYWORDS + 'SPAN', + 'MS', + 'S', + 'M', + 'H', + 'W', + 'Q', + 'Y', +]; + +const builtinFunctions = [ + 'ABS', + 'CBRT', + 'CEIL', + 'CEILING', + 'CONV', + 'CRC32', + 'E', + 'EXP', + 'FLOOR', + 'LN', + 'LOG', + 'LOG10', + 'LOG2', + 'MOD', + 'PI', + 'POSITION', + 'POW', + 'POWER', + 'RAND', + 'ROUND', + 'SIGN', + 'SQRT', + 'TRUNCATE', + 'ACOS', + 'ASIN', + 'ATAN', + 'ATAN2', + 'COS', + 'COT', + 'DEGREES', + 'RADIANS', + 'SIN', + 'TAN', + 'ADDDATE', + 'ADDTIME', + 'CURDATE', + 'CURRENT_DATE', + 'CURRENT_TIME', + 'CURRENT_TIMESTAMP', + 'CURTIME', + 'DATE', + 'DATEDIFF', + 'DATE_ADD', + 'DATE_FORMAT', + 'DATE_SUB', + 'DAYNAME', + 'DAYOFMONTH', + 'DAYOFWEEK', + 'DAYOFYEAR', + 'DAY_OF_MONTH', + 'DAY_OF_WEEK', + 'DAY_OF_YEAR', + 'EXTRACT', + 'FROM_DAYS', + 'FROM_UNIXTIME', + 'GET_FORMAT', + 'LAST_DAY', + 'LOCALTIME', + 'LOCALTIMESTAMP', + 'MAKEDATE', + 'MAKETIME', + 'MONTHNAME', + 'NOW', + 'PERIOD_ADD', + 'PERIOD_DIFF', + 'SEC_TO_TIME', + 'STR_TO_DATE', + 'SUBDATE', + 'SUBTIME', + 'SYSDATE', + 'TIME', + 'TIMEDIFF', + 'TIMESTAMP', + 'TIMESTAMPADD', + 'TIMESTAMPDIFF', + 'TIME_FORMAT', + 'TIME_TO_SEC', + 'TO_DAYS', + 'TO_SECONDS', + 'UNIX_TIMESTAMP', + 'UTC_DATE', + 'UTC_TIME', + 'UTC_TIMESTAMP', + 'WEEKDAY', + 'YEARWEEK', +]; + +export const lexerRules = { + defaultToken: 'invalid', + ignoreCase: true, + tokenPostfix: '', + keywords, + builtinFunctions, + brackets, + tokenizer: { + root: [ + [ + /[a-zA-Z_$][a-zA-Z0-9_$]*\b/, + { + cases: { + '@keywords': 'keyword', + '@builtinFunctions': 'identifier', + '@default': 'identifier', + }, + }, + ], + [/[()]/, '@brackets'], + [/--.*$/, 'comment'], + [/\/\*/, 'comment', '@comment'], + [/\/.*$/, 'comment'], + + [/".*?"/, 'string'], + [/'.*?'/, 'constant'], + [/`.*?`/, 'string'], + + // whitespace + [/[ \t\r\n]+/, { token: '@whitespace' }], + [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/, 'number'], + [/⇐|<⇒|\*|\.|\:\:|\+|\-|\/|\/\/|%|&|\^|~|<|>|<=|=>|==|!=|<>|=/, 'keyword.operator'], + [/[\(]/, 'paren.lparen'], + [/[\)]/, 'paren.rparen'], + [/\s+/, 'text'], + ], + numbers: [ + [/0[xX][0-9a-fA-F]*/, 'number'], + [/[$][+-]*\d*(\.\d*)?/, 'number'], + [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, 'number'], + ], + strings: [ + [/N'/, { token: 'string', next: '@string' }], + [/'/, { token: 'string', next: '@string' }], + ], + string: [ + [/[^']+/, 'string'], + [/''/, 'string'], + [/'/, { token: 'string', next: '@pop' }], + ], + comment: [ + [/[^\/*]+/, 'comment'], + [/\*\//, 'comment', '@pop'], + [/[\/*]/, 'comment'], + ], + }, +} as monaco.languages.IMonarchLanguage; + +monaco.languages.register({ + id: ID, +}); diff --git a/packages/osd-monaco/src/xjson/lexer_rules/opensearchsql.ts b/packages/osd-monaco/src/xjson/lexer_rules/opensearchsql.ts index b204c63e83c4..0ff29b71c09d 100644 --- a/packages/osd-monaco/src/xjson/lexer_rules/opensearchsql.ts +++ b/packages/osd-monaco/src/xjson/lexer_rules/opensearchsql.ts @@ -155,3 +155,7 @@ export const lexerRules = { ], }, } as monaco.languages.IMonarchLanguage; + +monaco.languages.register({ + id: ID, +}); diff --git a/src/plugins/data/public/antlr/dql/code_completion.test.ts b/src/plugins/data/public/antlr/dql/code_completion.test.ts index 583976126965..7a4efe719cc1 100644 --- a/src/plugins/data/public/antlr/dql/code_completion.test.ts +++ b/src/plugins/data/public/antlr/dql/code_completion.test.ts @@ -174,32 +174,31 @@ const testingIndex = ({ } as unknown) as IndexPattern; const booleanOperatorSuggestions = [ - { end: -1, start: -1, text: 'or', type: 17 }, - { end: -1, start: -1, text: 'and', type: 17 }, + { text: 'or', type: 17, detail: 'Keyword' }, + { text: 'and', type: 17, detail: 'Keyword' }, ]; -const notOperatorSuggestion = { text: 'not', type: 17, end: -1, start: -1 }; +const notOperatorSuggestion = { text: 'not', type: 17, detail: 'Keyword' }; const fieldNameSuggestions: Array<{ text: string; type: number; insertText?: string; - end: number; - start: number; + detail: string; }> = [ - { text: 'Carrier', type: 3, insertText: 'Carrier: ', end: -1, start: -1 }, - { text: 'DestCityName', type: 3, insertText: 'DestCityName: ', end: -1, start: -1 }, - { text: 'DestCountry', type: 3, insertText: 'DestCountry: ', end: -1, start: -1 }, - { text: 'DestWeather', type: 3, insertText: 'DestWeather: ', end: -1, start: -1 }, - { text: 'DistanceMiles', type: 3, insertText: 'DistanceMiles: ', end: -1, start: -1 }, - { text: 'FlightDelay', type: 3, insertText: 'FlightDelay: ', end: -1, start: -1 }, - { text: 'FlightNum', type: 3, insertText: 'FlightNum: ', end: -1, start: -1 }, - { text: 'OriginWeather', type: 3, insertText: 'OriginWeather: ', end: -1, start: -1 }, - { text: '_id', type: 3, insertText: '_id: ', end: -1, start: -1 }, - { text: '_index', type: 3, insertText: '_index: ', end: -1, start: -1 }, - { text: '_score', type: 3, insertText: '_score: ', end: -1, start: -1 }, - { text: '_source', type: 3, insertText: '_source: ', end: -1, start: -1 }, - { text: '_type', type: 3, insertText: '_type: ', end: -1, start: -1 }, + { text: 'Carrier', type: 3, insertText: 'Carrier: ', detail: 'Field: keyword' }, + { text: 'DestCityName', type: 3, insertText: 'DestCityName: ', detail: 'Field: keyword' }, + { text: 'DestCountry', type: 3, insertText: 'DestCountry: ', detail: 'Field: keyword' }, + { text: 'DestWeather', type: 3, insertText: 'DestWeather: ', detail: 'Field: keyword' }, + { text: 'DistanceMiles', type: 3, insertText: 'DistanceMiles: ', detail: 'Field: float' }, + { text: 'FlightDelay', type: 3, insertText: 'FlightDelay: ', detail: 'Field: boolean' }, + { text: 'FlightNum', type: 3, insertText: 'FlightNum: ', detail: 'Field: keyword' }, + { text: 'OriginWeather', type: 3, insertText: 'OriginWeather: ', detail: 'Field: keyword' }, + { text: '_id', type: 3, insertText: '_id: ', detail: 'Field: _id' }, + { text: '_index', type: 3, insertText: '_index: ', detail: 'Field: _index' }, + { text: '_score', type: 3, insertText: '_score: ', detail: 'Field: number' }, + { text: '_source', type: 3, insertText: '_source: ', detail: 'Field: _source' }, + { text: '_type', type: 3, insertText: '_type: ', detail: 'Field: _type' }, ]; const fieldNameWithNotSuggestions = fieldNameSuggestions.concat(notOperatorSuggestion); @@ -212,31 +211,34 @@ const carrierValues = [ ]; const allCarrierValueSuggestions = [ - { text: 'Logstash Airways', type: 13, start: -1, end: -1 }, - { text: 'BeatsWest', type: 13, start: -1, end: -1 }, + { text: 'Logstash Airways', type: 13, detail: 'Value' }, + { text: 'BeatsWest', type: 13, detail: 'Value' }, { text: 'OpenSearch Dashboards Airlines', type: 13, - start: -1, - end: -1, + detail: 'Value', }, - { text: 'OpenSearch-Air', type: 13, start: -1, end: -1 }, + { text: 'OpenSearch-Air', type: 13, detail: 'Value' }, ]; const carrierWithNotSuggestions = allCarrierValueSuggestions.concat(notOperatorSuggestion); -const logCarrierValueSuggestion = [{ text: 'Logstash Airways', type: 13, start: -1, end: -1 }]; +const logCarrierValueSuggestion = [{ text: 'Logstash Airways', type: 13, detail: 'Value' }]; const openCarrierValueSuggestion = [ { text: 'OpenSearch Dashboards Airlines', type: 13, - start: -1, - end: -1, + detail: 'Value', }, - { text: 'OpenSearch-Air', type: 13, start: -1, end: -1 }, + { text: 'OpenSearch-Air', type: 13, detail: 'Value' }, ]; +const addPositionToValue = (vals: any, start: number, end: number) => + vals.map((val: any) => { + return { ...val, replacePosition: new monaco.Range(1, start, 1, end) }; + }); + /** * Actual Tests */ @@ -388,32 +390,40 @@ describe('Test basic value suggestions', () => { }); it('suggest token search value for field', async () => { - expect(await getSuggestionsAtEnd('Carrier: ')).toStrictEqual(allCarrierValueSuggestions); + expect(await getSuggestionsAtEnd('Carrier: ')).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 10, 10) + ); }); it('suggest value for field without surrounding space', async () => { - expect(await getSuggestionsAtEnd('Carrier:')).toStrictEqual(allCarrierValueSuggestions); + expect(await getSuggestionsAtEnd('Carrier:')).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 9, 9) + ); }); it('suggest value from partial value', async () => { - expect(await getSuggestionsAtEnd('Carrier: Log')).toStrictEqual(logCarrierValueSuggestion); + expect(await getSuggestionsAtEnd('Carrier: Log')).toStrictEqual( + addPositionToValue(logCarrierValueSuggestion, 10, 13) + ); }); it('suggest multiple values from partial value', async () => { - expect(await getSuggestionsAtEnd('Carrier: Open')).toStrictEqual(openCarrierValueSuggestion); + expect(await getSuggestionsAtEnd('Carrier: Open')).toStrictEqual( + addPositionToValue(openCarrierValueSuggestion, 10, 14) + ); }); testAroundClosing( 'Carrier: ', ['"', '"'], 'should suggest within phrase', - allCarrierValueSuggestions + addPositionToValue(allCarrierValueSuggestions, 11, 11) ); it('suggest rest of partial value within quotes', async () => { const query = 'Carrier: "OpenSearch"'; expect(await getSuggestionsAtPos(query, query.length)).toStrictEqual( - openCarrierValueSuggestion + addPositionToValue(openCarrierValueSuggestion, 11, 21) ); }); @@ -421,17 +431,22 @@ describe('Test basic value suggestions', () => { }); describe('Test value suggestion with multiple terms', () => { + it('should suggest after one field value expression', async () => { + expect(await getSuggestionsAtEnd('Carrier: BeatsWest or Carrier: ')).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 32, 32) + ); + }); + testAroundClosing( 'Carrier: BeatsWest or Carrier: ', ['"', '"'], 'should suggest after one field value expression', - allCarrierValueSuggestions, - true + addPositionToValue(allCarrierValueSuggestions, 33, 33) ); it('should suggest after field value expression and partial value', async () => { expect(await getSuggestionsAtEnd('Carrier: BeatsWest or Carrier: Open')).toStrictEqual( - openCarrierValueSuggestion + addPositionToValue(openCarrierValueSuggestion, 32, 36) ); }); @@ -439,7 +454,7 @@ describe('Test value suggestion with multiple terms', () => { 'Carrier: BeatsWest or Carrier: "Open', [undefined, '"'], 'should suggest after field value expression in partial value quotes', - openCarrierValueSuggestion, + addPositionToValue(openCarrierValueSuggestion, 33, 37), true ); }); @@ -449,50 +464,64 @@ describe('Test group value suggestions', () => { 'Carrier: ', ['(', ')'], 'should suggest within grouping', - carrierWithNotSuggestions + addPositionToValue(allCarrierValueSuggestions, 11, 11).concat(notOperatorSuggestion) ); testAroundClosing( 'Carrier: (', ['"', '"'], 'should suggest within grouping and phrase', - allCarrierValueSuggestions + addPositionToValue(allCarrierValueSuggestions, 12, 12) ); testAroundClosing( 'Carrier: ("', [undefined, '")'], 'should suggest within closed grouping and phrase', - allCarrierValueSuggestions + addPositionToValue(allCarrierValueSuggestions, 13, 13) ); testAroundClosing( 'Carrier: (BeatsWest or ', [undefined, ')'], 'should suggest after grouping with term', - carrierWithNotSuggestions, + addPositionToValue(allCarrierValueSuggestions, 24, 24).concat(notOperatorSuggestion), true ); - testAroundClosing( - 'Carrier: (BeatsWest or ', - ['"', '")'], - 'should suggest in phrase after grouping with term', - allCarrierValueSuggestions - ); + it('should suggest in phrase after grouping with term - opened', async () => { + const currQuery = 'Carrier: (BeatsWest or "'; + expect(await getSuggestionsAtEnd(currQuery)).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 25, 25) + ); + }); + + it('should suggest in phrase after grouping with term - closed', async () => { + const currQuery = 'Carrier: (BeatsWest or "")'; + expect(await getSuggestionsAtPos(currQuery, 25)).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 25, 25) + ); + }); testAroundClosing( 'Carrier: ("BeatsWest" or ', [undefined, ')'], 'should suggest after grouping with phrase', - carrierWithNotSuggestions, + addPositionToValue(allCarrierValueSuggestions, 26, 26).concat(notOperatorSuggestion), true ); - testAroundClosing( - 'Carrier: ("BeatsWest" or ', - ['"', '")'], - 'should suggest in phrase after grouping with phrase', - allCarrierValueSuggestions - ); + it('should suggest in phrase after grouping with phrase - opened', async () => { + const currQuery = 'Carrier: ("BeatsWest" or "'; + expect(await getSuggestionsAtEnd(currQuery)).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 27, 27) + ); + }); + + it('should suggest in phrase after grouping with phrase - closed', async () => { + const currQuery = 'Carrier: ("BeatsWest" or "")'; + expect(await getSuggestionsAtPos(currQuery, 27)).toStrictEqual( + addPositionToValue(allCarrierValueSuggestions, 27, 27) + ); + }); }); diff --git a/src/plugins/data/public/antlr/dql/code_completion.ts b/src/plugins/data/public/antlr/dql/code_completion.ts index 025c2118fbc7..a14310f56979 100644 --- a/src/plugins/data/public/antlr/dql/code_completion.ts +++ b/src/plugins/data/public/antlr/dql/code_completion.ts @@ -18,7 +18,8 @@ import { IndexPattern, IndexPatternField } from '../../index_patterns'; import { QuerySuggestion, QuerySuggestionGetFnArgs } from '../../autocomplete'; import { DQLParserVisitor } from './.generated/DQLParserVisitor'; import { IDataPluginServices } from '../..'; -import { getQueryService } from '../../services'; +import { fetchFieldSuggestions } from '../shared/utils'; +import { SuggestionItemDetailsTags } from '../shared/constants'; const findCursorIndex = ( tokenStream: TokenStream, @@ -41,26 +42,6 @@ const findCursorIndex = ( return undefined; }; -const findFieldSuggestions = (indexPattern: IndexPattern) => { - const fieldNames: string[] = indexPattern.fields - .filter((idxField: IndexPatternField) => !idxField?.subType) // filter removed .keyword fields - .map((idxField: { name: string }) => { - return idxField.name; - }); - - const fieldSuggestions: QuerySuggestion[] = fieldNames.map((field: string) => { - return { - text: field, - type: monaco.languages.CompletionItemKind.Field, - insertText: `${field}: `, - start: -1, - end: -1, - }; - }); - - return fieldSuggestions; -}; - const findValueSuggestions = async ( index: IndexPattern, field: string, @@ -154,7 +135,7 @@ export const getSuggestions = async ({ // check to see if field rule is a candidate. if so, suggest field names if (candidates.rules.has(DQLParser.RULE_field)) { - completions.push(...findFieldSuggestions(indexPattern)); + completions.push(...fetchFieldSuggestions(indexPattern, (f) => `${f}: `)); } interface FoundLastValue { @@ -259,8 +240,13 @@ export const getSuggestions = async ({ return { text: val, type: monaco.languages.CompletionItemKind.Value, - start: -1, - end: -1, + detail: SuggestionItemDetailsTags.Value, + replacePosition: new monaco.Range( + cursorLine, + cursorColumn - lastValue.length + 1, + cursorLine, + cursorColumn + 1 + ), }; }) ); @@ -279,8 +265,7 @@ export const getSuggestions = async ({ completions.push({ text: tokenSymbolName, type: monaco.languages.CompletionItemKind.Keyword, - start: -1, - end: -1, + detail: SuggestionItemDetailsTags.Keyword, }); } }); diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.interp b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.interp new file mode 100644 index 000000000000..2dded62b3c4c --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.interp @@ -0,0 +1,1033 @@ +token literal names: +null +null +'SEARCH' +'DESCRIBE' +'SHOW' +'FROM' +'WHERE' +'FIELDS' +'RENAME' +'STATS' +'DEDUP' +'SORT' +'EVAL' +'HEAD' +'TOP' +'RARE' +'PARSE' +'METHOD' +'REGEX' +'PUNCT' +'GROK' +'PATTERN' +'PATTERNS' +'NEW_FIELD' +'KMEANS' +'AD' +'ML' +'AS' +'BY' +'SOURCE' +'INDEX' +'D' +'DESC' +'DATASOURCES' +'SORTBY' +'AUTO' +'STR' +'IP' +'NUM' +'KEEPEMPTY' +'CONSECUTIVE' +'DEDUP_SPLITVALUES' +'PARTITIONS' +'ALLNUM' +'DELIM' +'CENTROIDS' +'ITERATIONS' +'DISTANCE_TYPE' +'NUMBER_OF_TREES' +'SHINGLE_SIZE' +'SAMPLE_SIZE' +'OUTPUT_AFTER' +'TIME_DECAY' +'ANOMALY_RATE' +'CATEGORY_FIELD' +'TIME_FIELD' +'TIME_ZONE' +'TRAINING_DATA_SIZE' +'ANOMALY_SCORE_THRESHOLD' +'CASE' +'IN' +'NOT' +'OR' +'AND' +'XOR' +'TRUE' +'FALSE' +'REGEXP' +'CONVERT_TZ' +'DATETIME' +'DAY' +'DAY_HOUR' +'DAY_MICROSECOND' +'DAY_MINUTE' +'DAY_OF_YEAR' +'DAY_SECOND' +'HOUR' +'HOUR_MICROSECOND' +'HOUR_MINUTE' +'HOUR_OF_DAY' +'HOUR_SECOND' +'INTERVAL' +'MICROSECOND' +'MILLISECOND' +'MINUTE' +'MINUTE_MICROSECOND' +'MINUTE_OF_DAY' +'MINUTE_OF_HOUR' +'MINUTE_SECOND' +'MONTH' +'MONTH_OF_YEAR' +'QUARTER' +'SECOND' +'SECOND_MICROSECOND' +'SECOND_OF_MINUTE' +'WEEK' +'WEEK_OF_YEAR' +'YEAR' +'YEAR_MONTH' +'DATAMODEL' +'LOOKUP' +'SAVEDSEARCH' +'INT' +'INTEGER' +'DOUBLE' +'LONG' +'FLOAT' +'STRING' +'BOOLEAN' +'|' +',' +'.' +'=' +'>' +'<' +null +null +null +'+' +'-' +'*' +'/' +'%' +'!' +':' +'(' +')' +'[' +']' +'\'' +'"' +'`' +'~' +'&' +'^' +'AVG' +'COUNT' +'DISTINCT_COUNT' +'ESTDC' +'ESTDC_ERROR' +'MAX' +'MEAN' +'MEDIAN' +'MIN' +'MODE' +'RANGE' +'STDEV' +'STDEVP' +'SUM' +'SUMSQ' +'VAR_SAMP' +'VAR_POP' +'STDDEV_SAMP' +'STDDEV_POP' +'PERCENTILE' +'TAKE' +'FIRST' +'LAST' +'LIST' +'VALUES' +'EARLIEST' +'EARLIEST_TIME' +'LATEST' +'LATEST_TIME' +'PER_DAY' +'PER_HOUR' +'PER_MINUTE' +'PER_SECOND' +'RATE' +'SPARKLINE' +'C' +'DC' +'ABS' +'CBRT' +'CEIL' +'CEILING' +'CONV' +'CRC32' +'E' +'EXP' +'FLOOR' +'LN' +'LOG' +'LOG10' +'LOG2' +'MOD' +'PI' +'POSITION' +'POW' +'POWER' +'RAND' +'ROUND' +'SIGN' +'SQRT' +'TRUNCATE' +'ACOS' +'ASIN' +'ATAN' +'ATAN2' +'COS' +'COT' +'DEGREES' +'RADIANS' +'SIN' +'TAN' +'ADDDATE' +'ADDTIME' +'CURDATE' +'CURRENT_DATE' +'CURRENT_TIME' +'CURRENT_TIMESTAMP' +'CURTIME' +'DATE' +'DATEDIFF' +'DATE_ADD' +'DATE_FORMAT' +'DATE_SUB' +'DAYNAME' +'DAYOFMONTH' +'DAYOFWEEK' +'DAYOFYEAR' +'DAY_OF_MONTH' +'DAY_OF_WEEK' +'EXTRACT' +'FROM_DAYS' +'FROM_UNIXTIME' +'GET_FORMAT' +'LAST_DAY' +'LOCALTIME' +'LOCALTIMESTAMP' +'MAKEDATE' +'MAKETIME' +'MONTHNAME' +'NOW' +'PERIOD_ADD' +'PERIOD_DIFF' +'SEC_TO_TIME' +'STR_TO_DATE' +'SUBDATE' +'SUBTIME' +'SYSDATE' +'TIME' +'TIMEDIFF' +'TIMESTAMP' +'TIMESTAMPADD' +'TIMESTAMPDIFF' +'TIME_FORMAT' +'TIME_TO_SEC' +'TO_DAYS' +'TO_SECONDS' +'UNIX_TIMESTAMP' +'UTC_DATE' +'UTC_TIME' +'UTC_TIMESTAMP' +'WEEKDAY' +'YEARWEEK' +'SUBSTR' +'SUBSTRING' +'LTRIM' +'RTRIM' +'TRIM' +'TO' +'LOWER' +'UPPER' +'CONCAT' +'CONCAT_WS' +'LENGTH' +'STRCMP' +'RIGHT' +'LEFT' +'ASCII' +'LOCATE' +'REPLACE' +'REVERSE' +'CAST' +'LIKE' +'ISNULL' +'ISNOTNULL' +'IFNULL' +'NULLIF' +'IF' +'TYPEOF' +'MATCH' +'MATCH_PHRASE' +'MATCH_PHRASE_PREFIX' +'MATCH_BOOL_PREFIX' +'SIMPLE_QUERY_STRING' +'MULTI_MATCH' +'QUERY_STRING' +'ALLOW_LEADING_WILDCARD' +'ANALYZE_WILDCARD' +'ANALYZER' +'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY' +'BOOST' +'CUTOFF_FREQUENCY' +'DEFAULT_FIELD' +'DEFAULT_OPERATOR' +'ENABLE_POSITION_INCREMENTS' +'ESCAPE' +'FLAGS' +'FUZZY_MAX_EXPANSIONS' +'FUZZY_PREFIX_LENGTH' +'FUZZY_TRANSPOSITIONS' +'FUZZY_REWRITE' +'FUZZINESS' +'LENIENT' +'LOW_FREQ_OPERATOR' +'MAX_DETERMINIZED_STATES' +'MAX_EXPANSIONS' +'MINIMUM_SHOULD_MATCH' +'OPERATOR' +'PHRASE_SLOP' +'PREFIX_LENGTH' +'QUOTE_ANALYZER' +'QUOTE_FIELD_SUFFIX' +'REWRITE' +'SLOP' +'TIE_BREAKER' +'TYPE' +'ZERO_TERMS_QUERY' +'SPAN' +'MS' +'S' +'M' +'H' +'W' +'Q' +'Y' +null +null +null +null +null +null +null +null +null + +token symbolic names: +null +SPACE +SEARCH +DESCRIBE +SHOW +FROM +WHERE +FIELDS +RENAME +STATS +DEDUP +SORT +EVAL +HEAD +TOP +RARE +PARSE +METHOD +REGEX +PUNCT +GROK +PATTERN +PATTERNS +NEW_FIELD +KMEANS +AD +ML +AS +BY +SOURCE +INDEX +D +DESC +DATASOURCES +SORTBY +AUTO +STR +IP +NUM +KEEPEMPTY +CONSECUTIVE +DEDUP_SPLITVALUES +PARTITIONS +ALLNUM +DELIM +CENTROIDS +ITERATIONS +DISTANCE_TYPE +NUMBER_OF_TREES +SHINGLE_SIZE +SAMPLE_SIZE +OUTPUT_AFTER +TIME_DECAY +ANOMALY_RATE +CATEGORY_FIELD +TIME_FIELD +TIME_ZONE +TRAINING_DATA_SIZE +ANOMALY_SCORE_THRESHOLD +CASE +IN +NOT +OR +AND +XOR +TRUE +FALSE +REGEXP +CONVERT_TZ +DATETIME +DAY +DAY_HOUR +DAY_MICROSECOND +DAY_MINUTE +DAY_OF_YEAR +DAY_SECOND +HOUR +HOUR_MICROSECOND +HOUR_MINUTE +HOUR_OF_DAY +HOUR_SECOND +INTERVAL +MICROSECOND +MILLISECOND +MINUTE +MINUTE_MICROSECOND +MINUTE_OF_DAY +MINUTE_OF_HOUR +MINUTE_SECOND +MONTH +MONTH_OF_YEAR +QUARTER +SECOND +SECOND_MICROSECOND +SECOND_OF_MINUTE +WEEK +WEEK_OF_YEAR +YEAR +YEAR_MONTH +DATAMODEL +LOOKUP +SAVEDSEARCH +INT +INTEGER +DOUBLE +LONG +FLOAT +STRING +BOOLEAN +PIPE +COMMA +DOT +EQUAL +GREATER +LESS +NOT_GREATER +NOT_LESS +NOT_EQUAL +PLUS +MINUS +STAR +DIVIDE +MODULE +EXCLAMATION_SYMBOL +COLON +LT_PRTHS +RT_PRTHS +LT_SQR_PRTHS +RT_SQR_PRTHS +SINGLE_QUOTE +DOUBLE_QUOTE +BACKTICK +BIT_NOT_OP +BIT_AND_OP +BIT_XOR_OP +AVG +COUNT +DISTINCT_COUNT +ESTDC +ESTDC_ERROR +MAX +MEAN +MEDIAN +MIN +MODE +RANGE +STDEV +STDEVP +SUM +SUMSQ +VAR_SAMP +VAR_POP +STDDEV_SAMP +STDDEV_POP +PERCENTILE +TAKE +FIRST +LAST +LIST +VALUES +EARLIEST +EARLIEST_TIME +LATEST +LATEST_TIME +PER_DAY +PER_HOUR +PER_MINUTE +PER_SECOND +RATE +SPARKLINE +C +DC +ABS +CBRT +CEIL +CEILING +CONV +CRC32 +E +EXP +FLOOR +LN +LOG +LOG10 +LOG2 +MOD +PI +POSITION +POW +POWER +RAND +ROUND +SIGN +SQRT +TRUNCATE +ACOS +ASIN +ATAN +ATAN2 +COS +COT +DEGREES +RADIANS +SIN +TAN +ADDDATE +ADDTIME +CURDATE +CURRENT_DATE +CURRENT_TIME +CURRENT_TIMESTAMP +CURTIME +DATE +DATEDIFF +DATE_ADD +DATE_FORMAT +DATE_SUB +DAYNAME +DAYOFMONTH +DAYOFWEEK +DAYOFYEAR +DAY_OF_MONTH +DAY_OF_WEEK +EXTRACT +FROM_DAYS +FROM_UNIXTIME +GET_FORMAT +LAST_DAY +LOCALTIME +LOCALTIMESTAMP +MAKEDATE +MAKETIME +MONTHNAME +NOW +PERIOD_ADD +PERIOD_DIFF +SEC_TO_TIME +STR_TO_DATE +SUBDATE +SUBTIME +SYSDATE +TIME +TIMEDIFF +TIMESTAMP +TIMESTAMPADD +TIMESTAMPDIFF +TIME_FORMAT +TIME_TO_SEC +TO_DAYS +TO_SECONDS +UNIX_TIMESTAMP +UTC_DATE +UTC_TIME +UTC_TIMESTAMP +WEEKDAY +YEARWEEK +SUBSTR +SUBSTRING +LTRIM +RTRIM +TRIM +TO +LOWER +UPPER +CONCAT +CONCAT_WS +LENGTH +STRCMP +RIGHT +LEFT +ASCII +LOCATE +REPLACE +REVERSE +CAST +LIKE +ISNULL +ISNOTNULL +IFNULL +NULLIF +IF +TYPEOF +MATCH +MATCH_PHRASE +MATCH_PHRASE_PREFIX +MATCH_BOOL_PREFIX +SIMPLE_QUERY_STRING +MULTI_MATCH +QUERY_STRING +ALLOW_LEADING_WILDCARD +ANALYZE_WILDCARD +ANALYZER +AUTO_GENERATE_SYNONYMS_PHRASE_QUERY +BOOST +CUTOFF_FREQUENCY +DEFAULT_FIELD +DEFAULT_OPERATOR +ENABLE_POSITION_INCREMENTS +ESCAPE +FLAGS +FUZZY_MAX_EXPANSIONS +FUZZY_PREFIX_LENGTH +FUZZY_TRANSPOSITIONS +FUZZY_REWRITE +FUZZINESS +LENIENT +LOW_FREQ_OPERATOR +MAX_DETERMINIZED_STATES +MAX_EXPANSIONS +MINIMUM_SHOULD_MATCH +OPERATOR +PHRASE_SLOP +PREFIX_LENGTH +QUOTE_ANALYZER +QUOTE_FIELD_SUFFIX +REWRITE +SLOP +TIE_BREAKER +TYPE +ZERO_TERMS_QUERY +SPAN +MS +S +M +H +W +Q +Y +ID +CLUSTER +INTEGER_LITERAL +DECIMAL_LITERAL +ID_DATE_SUFFIX +DQUOTA_STRING +SQUOTA_STRING +BQUOTA_STRING +ERROR_RECOGNITION + +rule names: +SPACE +SEARCH +DESCRIBE +SHOW +FROM +WHERE +FIELDS +RENAME +STATS +DEDUP +SORT +EVAL +HEAD +TOP +RARE +PARSE +METHOD +REGEX +PUNCT +GROK +PATTERN +PATTERNS +NEW_FIELD +KMEANS +AD +ML +AS +BY +SOURCE +INDEX +D +DESC +DATASOURCES +SORTBY +AUTO +STR +IP +NUM +KEEPEMPTY +CONSECUTIVE +DEDUP_SPLITVALUES +PARTITIONS +ALLNUM +DELIM +CENTROIDS +ITERATIONS +DISTANCE_TYPE +NUMBER_OF_TREES +SHINGLE_SIZE +SAMPLE_SIZE +OUTPUT_AFTER +TIME_DECAY +ANOMALY_RATE +CATEGORY_FIELD +TIME_FIELD +TIME_ZONE +TRAINING_DATA_SIZE +ANOMALY_SCORE_THRESHOLD +CASE +IN +NOT +OR +AND +XOR +TRUE +FALSE +REGEXP +CONVERT_TZ +DATETIME +DAY +DAY_HOUR +DAY_MICROSECOND +DAY_MINUTE +DAY_OF_YEAR +DAY_SECOND +HOUR +HOUR_MICROSECOND +HOUR_MINUTE +HOUR_OF_DAY +HOUR_SECOND +INTERVAL +MICROSECOND +MILLISECOND +MINUTE +MINUTE_MICROSECOND +MINUTE_OF_DAY +MINUTE_OF_HOUR +MINUTE_SECOND +MONTH +MONTH_OF_YEAR +QUARTER +SECOND +SECOND_MICROSECOND +SECOND_OF_MINUTE +WEEK +WEEK_OF_YEAR +YEAR +YEAR_MONTH +DATAMODEL +LOOKUP +SAVEDSEARCH +INT +INTEGER +DOUBLE +LONG +FLOAT +STRING +BOOLEAN +PIPE +COMMA +DOT +EQUAL +GREATER +LESS +NOT_GREATER +NOT_LESS +NOT_EQUAL +PLUS +MINUS +STAR +DIVIDE +MODULE +EXCLAMATION_SYMBOL +COLON +LT_PRTHS +RT_PRTHS +LT_SQR_PRTHS +RT_SQR_PRTHS +SINGLE_QUOTE +DOUBLE_QUOTE +BACKTICK +BIT_NOT_OP +BIT_AND_OP +BIT_XOR_OP +AVG +COUNT +DISTINCT_COUNT +ESTDC +ESTDC_ERROR +MAX +MEAN +MEDIAN +MIN +MODE +RANGE +STDEV +STDEVP +SUM +SUMSQ +VAR_SAMP +VAR_POP +STDDEV_SAMP +STDDEV_POP +PERCENTILE +TAKE +FIRST +LAST +LIST +VALUES +EARLIEST +EARLIEST_TIME +LATEST +LATEST_TIME +PER_DAY +PER_HOUR +PER_MINUTE +PER_SECOND +RATE +SPARKLINE +C +DC +ABS +CBRT +CEIL +CEILING +CONV +CRC32 +E +EXP +FLOOR +LN +LOG +LOG10 +LOG2 +MOD +PI +POSITION +POW +POWER +RAND +ROUND +SIGN +SQRT +TRUNCATE +ACOS +ASIN +ATAN +ATAN2 +COS +COT +DEGREES +RADIANS +SIN +TAN +ADDDATE +ADDTIME +CURDATE +CURRENT_DATE +CURRENT_TIME +CURRENT_TIMESTAMP +CURTIME +DATE +DATEDIFF +DATE_ADD +DATE_FORMAT +DATE_SUB +DAYNAME +DAYOFMONTH +DAYOFWEEK +DAYOFYEAR +DAY_OF_MONTH +DAY_OF_WEEK +EXTRACT +FROM_DAYS +FROM_UNIXTIME +GET_FORMAT +LAST_DAY +LOCALTIME +LOCALTIMESTAMP +MAKEDATE +MAKETIME +MONTHNAME +NOW +PERIOD_ADD +PERIOD_DIFF +SEC_TO_TIME +STR_TO_DATE +SUBDATE +SUBTIME +SYSDATE +TIME +TIMEDIFF +TIMESTAMP +TIMESTAMPADD +TIMESTAMPDIFF +TIME_FORMAT +TIME_TO_SEC +TO_DAYS +TO_SECONDS +UNIX_TIMESTAMP +UTC_DATE +UTC_TIME +UTC_TIMESTAMP +WEEKDAY +YEARWEEK +SUBSTR +SUBSTRING +LTRIM +RTRIM +TRIM +TO +LOWER +UPPER +CONCAT +CONCAT_WS +LENGTH +STRCMP +RIGHT +LEFT +ASCII +LOCATE +REPLACE +REVERSE +CAST +LIKE +ISNULL +ISNOTNULL +IFNULL +NULLIF +IF +TYPEOF +MATCH +MATCH_PHRASE +MATCH_PHRASE_PREFIX +MATCH_BOOL_PREFIX +SIMPLE_QUERY_STRING +MULTI_MATCH +QUERY_STRING +ALLOW_LEADING_WILDCARD +ANALYZE_WILDCARD +ANALYZER +AUTO_GENERATE_SYNONYMS_PHRASE_QUERY +BOOST +CUTOFF_FREQUENCY +DEFAULT_FIELD +DEFAULT_OPERATOR +ENABLE_POSITION_INCREMENTS +ESCAPE +FLAGS +FUZZY_MAX_EXPANSIONS +FUZZY_PREFIX_LENGTH +FUZZY_TRANSPOSITIONS +FUZZY_REWRITE +FUZZINESS +LENIENT +LOW_FREQ_OPERATOR +MAX_DETERMINIZED_STATES +MAX_EXPANSIONS +MINIMUM_SHOULD_MATCH +OPERATOR +PHRASE_SLOP +PREFIX_LENGTH +QUOTE_ANALYZER +QUOTE_FIELD_SUFFIX +REWRITE +SLOP +TIE_BREAKER +TYPE +ZERO_TERMS_QUERY +SPAN +MS +S +M +H +W +Q +Y +ID +CLUSTER +INTEGER_LITERAL +DECIMAL_LITERAL +DATE_SUFFIX +ID_LITERAL +CLUSTER_PREFIX_LITERAL +ID_DATE_SUFFIX +DQUOTA_STRING +SQUOTA_STRING +BQUOTA_STRING +DEC_DIGIT +ERROR_RECOGNITION + +channel names: +DEFAULT_TOKEN_CHANNEL +HIDDEN +null +null +WHITESPACE +ERRORCHANNEL + +mode names: +DEFAULT_MODE + +atn: +[4, 0, 336, 3509, 6, -1, 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, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7, 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2, 113, 7, 113, 2, 114, 7, 114, 2, 115, 7, 115, 2, 116, 7, 116, 2, 117, 7, 117, 2, 118, 7, 118, 2, 119, 7, 119, 2, 120, 7, 120, 2, 121, 7, 121, 2, 122, 7, 122, 2, 123, 7, 123, 2, 124, 7, 124, 2, 125, 7, 125, 2, 126, 7, 126, 2, 127, 7, 127, 2, 128, 7, 128, 2, 129, 7, 129, 2, 130, 7, 130, 2, 131, 7, 131, 2, 132, 7, 132, 2, 133, 7, 133, 2, 134, 7, 134, 2, 135, 7, 135, 2, 136, 7, 136, 2, 137, 7, 137, 2, 138, 7, 138, 2, 139, 7, 139, 2, 140, 7, 140, 2, 141, 7, 141, 2, 142, 7, 142, 2, 143, 7, 143, 2, 144, 7, 144, 2, 145, 7, 145, 2, 146, 7, 146, 2, 147, 7, 147, 2, 148, 7, 148, 2, 149, 7, 149, 2, 150, 7, 150, 2, 151, 7, 151, 2, 152, 7, 152, 2, 153, 7, 153, 2, 154, 7, 154, 2, 155, 7, 155, 2, 156, 7, 156, 2, 157, 7, 157, 2, 158, 7, 158, 2, 159, 7, 159, 2, 160, 7, 160, 2, 161, 7, 161, 2, 162, 7, 162, 2, 163, 7, 163, 2, 164, 7, 164, 2, 165, 7, 165, 2, 166, 7, 166, 2, 167, 7, 167, 2, 168, 7, 168, 2, 169, 7, 169, 2, 170, 7, 170, 2, 171, 7, 171, 2, 172, 7, 172, 2, 173, 7, 173, 2, 174, 7, 174, 2, 175, 7, 175, 2, 176, 7, 176, 2, 177, 7, 177, 2, 178, 7, 178, 2, 179, 7, 179, 2, 180, 7, 180, 2, 181, 7, 181, 2, 182, 7, 182, 2, 183, 7, 183, 2, 184, 7, 184, 2, 185, 7, 185, 2, 186, 7, 186, 2, 187, 7, 187, 2, 188, 7, 188, 2, 189, 7, 189, 2, 190, 7, 190, 2, 191, 7, 191, 2, 192, 7, 192, 2, 193, 7, 193, 2, 194, 7, 194, 2, 195, 7, 195, 2, 196, 7, 196, 2, 197, 7, 197, 2, 198, 7, 198, 2, 199, 7, 199, 2, 200, 7, 200, 2, 201, 7, 201, 2, 202, 7, 202, 2, 203, 7, 203, 2, 204, 7, 204, 2, 205, 7, 205, 2, 206, 7, 206, 2, 207, 7, 207, 2, 208, 7, 208, 2, 209, 7, 209, 2, 210, 7, 210, 2, 211, 7, 211, 2, 212, 7, 212, 2, 213, 7, 213, 2, 214, 7, 214, 2, 215, 7, 215, 2, 216, 7, 216, 2, 217, 7, 217, 2, 218, 7, 218, 2, 219, 7, 219, 2, 220, 7, 220, 2, 221, 7, 221, 2, 222, 7, 222, 2, 223, 7, 223, 2, 224, 7, 224, 2, 225, 7, 225, 2, 226, 7, 226, 2, 227, 7, 227, 2, 228, 7, 228, 2, 229, 7, 229, 2, 230, 7, 230, 2, 231, 7, 231, 2, 232, 7, 232, 2, 233, 7, 233, 2, 234, 7, 234, 2, 235, 7, 235, 2, 236, 7, 236, 2, 237, 7, 237, 2, 238, 7, 238, 2, 239, 7, 239, 2, 240, 7, 240, 2, 241, 7, 241, 2, 242, 7, 242, 2, 243, 7, 243, 2, 244, 7, 244, 2, 245, 7, 245, 2, 246, 7, 246, 2, 247, 7, 247, 2, 248, 7, 248, 2, 249, 7, 249, 2, 250, 7, 250, 2, 251, 7, 251, 2, 252, 7, 252, 2, 253, 7, 253, 2, 254, 7, 254, 2, 255, 7, 255, 2, 256, 7, 256, 2, 257, 7, 257, 2, 258, 7, 258, 2, 259, 7, 259, 2, 260, 7, 260, 2, 261, 7, 261, 2, 262, 7, 262, 2, 263, 7, 263, 2, 264, 7, 264, 2, 265, 7, 265, 2, 266, 7, 266, 2, 267, 7, 267, 2, 268, 7, 268, 2, 269, 7, 269, 2, 270, 7, 270, 2, 271, 7, 271, 2, 272, 7, 272, 2, 273, 7, 273, 2, 274, 7, 274, 2, 275, 7, 275, 2, 276, 7, 276, 2, 277, 7, 277, 2, 278, 7, 278, 2, 279, 7, 279, 2, 280, 7, 280, 2, 281, 7, 281, 2, 282, 7, 282, 2, 283, 7, 283, 2, 284, 7, 284, 2, 285, 7, 285, 2, 286, 7, 286, 2, 287, 7, 287, 2, 288, 7, 288, 2, 289, 7, 289, 2, 290, 7, 290, 2, 291, 7, 291, 2, 292, 7, 292, 2, 293, 7, 293, 2, 294, 7, 294, 2, 295, 7, 295, 2, 296, 7, 296, 2, 297, 7, 297, 2, 298, 7, 298, 2, 299, 7, 299, 2, 300, 7, 300, 2, 301, 7, 301, 2, 302, 7, 302, 2, 303, 7, 303, 2, 304, 7, 304, 2, 305, 7, 305, 2, 306, 7, 306, 2, 307, 7, 307, 2, 308, 7, 308, 2, 309, 7, 309, 2, 310, 7, 310, 2, 311, 7, 311, 2, 312, 7, 312, 2, 313, 7, 313, 2, 314, 7, 314, 2, 315, 7, 315, 2, 316, 7, 316, 2, 317, 7, 317, 2, 318, 7, 318, 2, 319, 7, 319, 2, 320, 7, 320, 2, 321, 7, 321, 2, 322, 7, 322, 2, 323, 7, 323, 2, 324, 7, 324, 2, 325, 7, 325, 2, 326, 7, 326, 2, 327, 7, 327, 2, 328, 7, 328, 2, 329, 7, 329, 2, 330, 7, 330, 2, 331, 7, 331, 2, 332, 7, 332, 2, 333, 7, 333, 2, 334, 7, 334, 2, 335, 7, 335, 2, 336, 7, 336, 2, 337, 7, 337, 2, 338, 7, 338, 2, 339, 7, 339, 1, 0, 4, 0, 683, 8, 0, 11, 0, 12, 0, 684, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 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, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 108, 1, 108, 1, 109, 1, 109, 1, 110, 1, 110, 1, 111, 1, 111, 1, 112, 1, 112, 1, 113, 1, 113, 1, 114, 1, 114, 1, 114, 1, 115, 1, 115, 1, 115, 1, 116, 1, 116, 1, 116, 1, 117, 1, 117, 1, 118, 1, 118, 1, 119, 1, 119, 1, 120, 1, 120, 1, 121, 1, 121, 1, 122, 1, 122, 1, 123, 1, 123, 1, 124, 1, 124, 1, 125, 1, 125, 1, 126, 1, 126, 1, 127, 1, 127, 1, 128, 1, 128, 1, 129, 1, 129, 1, 130, 1, 130, 1, 131, 1, 131, 1, 132, 1, 132, 1, 133, 1, 133, 1, 134, 1, 134, 1, 134, 1, 134, 1, 135, 1, 135, 1, 135, 1, 135, 1, 135, 1, 135, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 137, 1, 137, 1, 137, 1, 137, 1, 137, 1, 137, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 138, 1, 139, 1, 139, 1, 139, 1, 139, 1, 140, 1, 140, 1, 140, 1, 140, 1, 140, 1, 141, 1, 141, 1, 141, 1, 141, 1, 141, 1, 141, 1, 141, 1, 142, 1, 142, 1, 142, 1, 142, 1, 143, 1, 143, 1, 143, 1, 143, 1, 143, 1, 144, 1, 144, 1, 144, 1, 144, 1, 144, 1, 144, 1, 145, 1, 145, 1, 145, 1, 145, 1, 145, 1, 145, 1, 146, 1, 146, 1, 146, 1, 146, 1, 146, 1, 146, 1, 146, 1, 147, 1, 147, 1, 147, 1, 147, 1, 148, 1, 148, 1, 148, 1, 148, 1, 148, 1, 148, 1, 149, 1, 149, 1, 149, 1, 149, 1, 149, 1, 149, 1, 149, 1, 149, 1, 149, 1, 150, 1, 150, 1, 150, 1, 150, 1, 150, 1, 150, 1, 150, 1, 150, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 151, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 152, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 153, 1, 154, 1, 154, 1, 154, 1, 154, 1, 154, 1, 155, 1, 155, 1, 155, 1, 155, 1, 155, 1, 155, 1, 156, 1, 156, 1, 156, 1, 156, 1, 156, 1, 157, 1, 157, 1, 157, 1, 157, 1, 157, 1, 158, 1, 158, 1, 158, 1, 158, 1, 158, 1, 158, 1, 158, 1, 159, 1, 159, 1, 159, 1, 159, 1, 159, 1, 159, 1, 159, 1, 159, 1, 159, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 160, 1, 161, 1, 161, 1, 161, 1, 161, 1, 161, 1, 161, 1, 161, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 162, 1, 163, 1, 163, 1, 163, 1, 163, 1, 163, 1, 163, 1, 163, 1, 163, 1, 164, 1, 164, 1, 164, 1, 164, 1, 164, 1, 164, 1, 164, 1, 164, 1, 164, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 165, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 166, 1, 167, 1, 167, 1, 167, 1, 167, 1, 167, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 169, 1, 169, 1, 170, 1, 170, 1, 170, 1, 171, 1, 171, 1, 171, 1, 171, 1, 172, 1, 172, 1, 172, 1, 172, 1, 172, 1, 173, 1, 173, 1, 173, 1, 173, 1, 173, 1, 174, 1, 174, 1, 174, 1, 174, 1, 174, 1, 174, 1, 174, 1, 174, 1, 175, 1, 175, 1, 175, 1, 175, 1, 175, 1, 176, 1, 176, 1, 176, 1, 176, 1, 176, 1, 176, 1, 177, 1, 177, 1, 178, 1, 178, 1, 178, 1, 178, 1, 179, 1, 179, 1, 179, 1, 179, 1, 179, 1, 179, 1, 180, 1, 180, 1, 180, 1, 181, 1, 181, 1, 181, 1, 181, 1, 182, 1, 182, 1, 182, 1, 182, 1, 182, 1, 182, 1, 183, 1, 183, 1, 183, 1, 183, 1, 183, 1, 184, 1, 184, 1, 184, 1, 184, 1, 185, 1, 185, 1, 185, 1, 186, 1, 186, 1, 186, 1, 186, 1, 186, 1, 186, 1, 186, 1, 186, 1, 186, 1, 187, 1, 187, 1, 187, 1, 187, 1, 188, 1, 188, 1, 188, 1, 188, 1, 188, 1, 188, 1, 189, 1, 189, 1, 189, 1, 189, 1, 189, 1, 190, 1, 190, 1, 190, 1, 190, 1, 190, 1, 190, 1, 191, 1, 191, 1, 191, 1, 191, 1, 191, 1, 192, 1, 192, 1, 192, 1, 192, 1, 192, 1, 193, 1, 193, 1, 193, 1, 193, 1, 193, 1, 193, 1, 193, 1, 193, 1, 193, 1, 194, 1, 194, 1, 194, 1, 194, 1, 194, 1, 195, 1, 195, 1, 195, 1, 195, 1, 195, 1, 196, 1, 196, 1, 196, 1, 196, 1, 196, 1, 197, 1, 197, 1, 197, 1, 197, 1, 197, 1, 197, 1, 198, 1, 198, 1, 198, 1, 198, 1, 199, 1, 199, 1, 199, 1, 199, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 201, 1, 201, 1, 201, 1, 201, 1, 201, 1, 201, 1, 201, 1, 201, 1, 202, 1, 202, 1, 202, 1, 202, 1, 203, 1, 203, 1, 203, 1, 203, 1, 204, 1, 204, 1, 204, 1, 204, 1, 204, 1, 204, 1, 204, 1, 204, 1, 205, 1, 205, 1, 205, 1, 205, 1, 205, 1, 205, 1, 205, 1, 205, 1, 206, 1, 206, 1, 206, 1, 206, 1, 206, 1, 206, 1, 206, 1, 206, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 207, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 208, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 209, 1, 210, 1, 210, 1, 210, 1, 210, 1, 210, 1, 210, 1, 210, 1, 210, 1, 211, 1, 211, 1, 211, 1, 211, 1, 211, 1, 212, 1, 212, 1, 212, 1, 212, 1, 212, 1, 212, 1, 212, 1, 212, 1, 212, 1, 213, 1, 213, 1, 213, 1, 213, 1, 213, 1, 213, 1, 213, 1, 213, 1, 213, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 214, 1, 215, 1, 215, 1, 215, 1, 215, 1, 215, 1, 215, 1, 215, 1, 215, 1, 215, 1, 216, 1, 216, 1, 216, 1, 216, 1, 216, 1, 216, 1, 216, 1, 216, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 217, 1, 218, 1, 218, 1, 218, 1, 218, 1, 218, 1, 218, 1, 218, 1, 218, 1, 218, 1, 218, 1, 219, 1, 219, 1, 219, 1, 219, 1, 219, 1, 219, 1, 219, 1, 219, 1, 219, 1, 219, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 220, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 221, 1, 222, 1, 222, 1, 222, 1, 222, 1, 222, 1, 222, 1, 222, 1, 222, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 224, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 225, 1, 226, 1, 226, 1, 226, 1, 226, 1, 226, 1, 226, 1, 226, 1, 226, 1, 226, 1, 227, 1, 227, 1, 227, 1, 227, 1, 227, 1, 227, 1, 227, 1, 227, 1, 227, 1, 227, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 229, 1, 229, 1, 229, 1, 229, 1, 229, 1, 229, 1, 229, 1, 229, 1, 229, 1, 230, 1, 230, 1, 230, 1, 230, 1, 230, 1, 230, 1, 230, 1, 230, 1, 230, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 1, 232, 1, 232, 1, 232, 1, 232, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 236, 1, 237, 1, 237, 1, 237, 1, 237, 1, 237, 1, 237, 1, 237, 1, 237, 1, 238, 1, 238, 1, 238, 1, 238, 1, 238, 1, 238, 1, 238, 1, 238, 1, 239, 1, 239, 1, 239, 1, 239, 1, 239, 1, 239, 1, 239, 1, 239, 1, 240, 1, 240, 1, 240, 1, 240, 1, 240, 1, 241, 1, 241, 1, 241, 1, 241, 1, 241, 1, 241, 1, 241, 1, 241, 1, 241, 1, 242, 1, 242, 1, 242, 1, 242, 1, 242, 1, 242, 1, 242, 1, 242, 1, 242, 1, 242, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 245, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 246, 1, 247, 1, 247, 1, 247, 1, 247, 1, 247, 1, 247, 1, 247, 1, 247, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 248, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 249, 1, 250, 1, 250, 1, 250, 1, 250, 1, 250, 1, 250, 1, 250, 1, 250, 1, 250, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 253, 1, 253, 1, 253, 1, 253, 1, 253, 1, 253, 1, 253, 1, 253, 1, 254, 1, 254, 1, 254, 1, 254, 1, 254, 1, 254, 1, 254, 1, 254, 1, 254, 1, 255, 1, 255, 1, 255, 1, 255, 1, 255, 1, 255, 1, 255, 1, 256, 1, 256, 1, 256, 1, 256, 1, 256, 1, 256, 1, 256, 1, 256, 1, 256, 1, 256, 1, 257, 1, 257, 1, 257, 1, 257, 1, 257, 1, 257, 1, 258, 1, 258, 1, 258, 1, 258, 1, 258, 1, 258, 1, 259, 1, 259, 1, 259, 1, 259, 1, 259, 1, 260, 1, 260, 1, 260, 1, 261, 1, 261, 1, 261, 1, 261, 1, 261, 1, 261, 1, 262, 1, 262, 1, 262, 1, 262, 1, 262, 1, 262, 1, 263, 1, 263, 1, 263, 1, 263, 1, 263, 1, 263, 1, 263, 1, 264, 1, 264, 1, 264, 1, 264, 1, 264, 1, 264, 1, 264, 1, 264, 1, 264, 1, 264, 1, 265, 1, 265, 1, 265, 1, 265, 1, 265, 1, 265, 1, 265, 1, 266, 1, 266, 1, 266, 1, 266, 1, 266, 1, 266, 1, 266, 1, 267, 1, 267, 1, 267, 1, 267, 1, 267, 1, 267, 1, 268, 1, 268, 1, 268, 1, 268, 1, 268, 1, 269, 1, 269, 1, 269, 1, 269, 1, 269, 1, 269, 1, 270, 1, 270, 1, 270, 1, 270, 1, 270, 1, 270, 1, 270, 1, 271, 1, 271, 1, 271, 1, 271, 1, 271, 1, 271, 1, 271, 1, 271, 1, 272, 1, 272, 1, 272, 1, 272, 1, 272, 1, 272, 1, 272, 1, 272, 1, 273, 1, 273, 1, 273, 1, 273, 1, 273, 1, 274, 1, 274, 1, 274, 1, 274, 1, 274, 1, 275, 1, 275, 1, 275, 1, 275, 1, 275, 1, 275, 1, 275, 1, 276, 1, 276, 1, 276, 1, 276, 1, 276, 1, 276, 1, 276, 1, 276, 1, 276, 1, 276, 1, 277, 1, 277, 1, 277, 1, 277, 1, 277, 1, 277, 1, 277, 1, 278, 1, 278, 1, 278, 1, 278, 1, 278, 1, 278, 1, 278, 1, 279, 1, 279, 1, 279, 1, 280, 1, 280, 1, 280, 1, 280, 1, 280, 1, 280, 1, 280, 1, 281, 1, 281, 1, 281, 1, 281, 1, 281, 1, 281, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 282, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 283, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 284, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 285, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 286, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 287, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 288, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 289, 1, 290, 1, 290, 1, 290, 1, 290, 1, 290, 1, 290, 1, 290, 1, 290, 1, 290, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 291, 1, 292, 1, 292, 1, 292, 1, 292, 1, 292, 1, 292, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 293, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 294, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 295, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 296, 1, 297, 1, 297, 1, 297, 1, 297, 1, 297, 1, 297, 1, 297, 1, 298, 1, 298, 1, 298, 1, 298, 1, 298, 1, 298, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 299, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 300, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 301, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 302, 1, 303, 1, 303, 1, 303, 1, 303, 1, 303, 1, 303, 1, 303, 1, 303, 1, 303, 1, 303, 1, 304, 1, 304, 1, 304, 1, 304, 1, 304, 1, 304, 1, 304, 1, 304, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 305, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 306, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 307, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 308, 1, 309, 1, 309, 1, 309, 1, 309, 1, 309, 1, 309, 1, 309, 1, 309, 1, 309, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 310, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 311, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 312, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 313, 1, 314, 1, 314, 1, 314, 1, 314, 1, 314, 1, 314, 1, 314, 1, 314, 1, 315, 1, 315, 1, 315, 1, 315, 1, 315, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 316, 1, 317, 1, 317, 1, 317, 1, 317, 1, 317, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 318, 1, 319, 1, 319, 1, 319, 1, 319, 1, 319, 1, 320, 1, 320, 1, 320, 1, 321, 1, 321, 1, 322, 1, 322, 1, 323, 1, 323, 1, 324, 1, 324, 1, 325, 1, 325, 1, 326, 1, 326, 1, 327, 1, 327, 1, 328, 1, 328, 1, 329, 4, 329, 3412, 8, 329, 11, 329, 12, 329, 3413, 1, 330, 4, 330, 3417, 8, 330, 11, 330, 12, 330, 3418, 3, 330, 3421, 8, 330, 1, 330, 1, 330, 4, 330, 3425, 8, 330, 11, 330, 12, 330, 3426, 1, 331, 1, 331, 4, 331, 3431, 8, 331, 11, 331, 12, 331, 3432, 4, 331, 3435, 8, 331, 11, 331, 12, 331, 3436, 1, 332, 1, 332, 5, 332, 3441, 8, 332, 10, 332, 12, 332, 3444, 9, 332, 1, 333, 4, 333, 3447, 8, 333, 11, 333, 12, 333, 3448, 1, 333, 5, 333, 3452, 8, 333, 10, 333, 12, 333, 3455, 9, 333, 1, 333, 1, 333, 1, 334, 3, 334, 3460, 8, 334, 1, 334, 1, 334, 1, 334, 1, 335, 1, 335, 1, 335, 1, 335, 1, 335, 1, 335, 5, 335, 3471, 8, 335, 10, 335, 12, 335, 3474, 9, 335, 1, 335, 1, 335, 1, 336, 1, 336, 1, 336, 1, 336, 1, 336, 1, 336, 5, 336, 3484, 8, 336, 10, 336, 12, 336, 3487, 9, 336, 1, 336, 1, 336, 1, 337, 1, 337, 1, 337, 1, 337, 1, 337, 1, 337, 5, 337, 3497, 8, 337, 10, 337, 12, 337, 3500, 9, 337, 1, 337, 1, 337, 1, 338, 1, 338, 1, 339, 1, 339, 1, 339, 1, 339, 1, 3448, 0, 340, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 183, 92, 185, 93, 187, 94, 189, 95, 191, 96, 193, 97, 195, 98, 197, 99, 199, 100, 201, 101, 203, 102, 205, 103, 207, 104, 209, 105, 211, 106, 213, 107, 215, 108, 217, 109, 219, 110, 221, 111, 223, 112, 225, 113, 227, 114, 229, 115, 231, 116, 233, 117, 235, 118, 237, 119, 239, 120, 241, 121, 243, 122, 245, 123, 247, 124, 249, 125, 251, 126, 253, 127, 255, 128, 257, 129, 259, 130, 261, 131, 263, 132, 265, 133, 267, 134, 269, 135, 271, 136, 273, 137, 275, 138, 277, 139, 279, 140, 281, 141, 283, 142, 285, 143, 287, 144, 289, 145, 291, 146, 293, 147, 295, 148, 297, 149, 299, 150, 301, 151, 303, 152, 305, 153, 307, 154, 309, 155, 311, 156, 313, 157, 315, 158, 317, 159, 319, 160, 321, 161, 323, 162, 325, 163, 327, 164, 329, 165, 331, 166, 333, 167, 335, 168, 337, 169, 339, 170, 341, 171, 343, 172, 345, 173, 347, 174, 349, 175, 351, 176, 353, 177, 355, 178, 357, 179, 359, 180, 361, 181, 363, 182, 365, 183, 367, 184, 369, 185, 371, 186, 373, 187, 375, 188, 377, 189, 379, 190, 381, 191, 383, 192, 385, 193, 387, 194, 389, 195, 391, 196, 393, 197, 395, 198, 397, 199, 399, 200, 401, 201, 403, 202, 405, 203, 407, 204, 409, 205, 411, 206, 413, 207, 415, 208, 417, 209, 419, 210, 421, 211, 423, 212, 425, 213, 427, 214, 429, 215, 431, 216, 433, 217, 435, 218, 437, 219, 439, 220, 441, 221, 443, 222, 445, 223, 447, 224, 449, 225, 451, 226, 453, 227, 455, 228, 457, 229, 459, 230, 461, 231, 463, 232, 465, 233, 467, 234, 469, 235, 471, 236, 473, 237, 475, 238, 477, 239, 479, 240, 481, 241, 483, 242, 485, 243, 487, 244, 489, 245, 491, 246, 493, 247, 495, 248, 497, 249, 499, 250, 501, 251, 503, 252, 505, 253, 507, 254, 509, 255, 511, 256, 513, 257, 515, 258, 517, 259, 519, 260, 521, 261, 523, 262, 525, 263, 527, 264, 529, 265, 531, 266, 533, 267, 535, 268, 537, 269, 539, 270, 541, 271, 543, 272, 545, 273, 547, 274, 549, 275, 551, 276, 553, 277, 555, 278, 557, 279, 559, 280, 561, 281, 563, 282, 565, 283, 567, 284, 569, 285, 571, 286, 573, 287, 575, 288, 577, 289, 579, 290, 581, 291, 583, 292, 585, 293, 587, 294, 589, 295, 591, 296, 593, 297, 595, 298, 597, 299, 599, 300, 601, 301, 603, 302, 605, 303, 607, 304, 609, 305, 611, 306, 613, 307, 615, 308, 617, 309, 619, 310, 621, 311, 623, 312, 625, 313, 627, 314, 629, 315, 631, 316, 633, 317, 635, 318, 637, 319, 639, 320, 641, 321, 643, 322, 645, 323, 647, 324, 649, 325, 651, 326, 653, 327, 655, 328, 657, 329, 659, 330, 661, 331, 663, 0, 665, 0, 667, 0, 669, 332, 671, 333, 673, 334, 675, 335, 677, 0, 679, 336, 1, 0, 35, 3, 0, 9, 10, 13, 13, 32, 32, 2, 0, 83, 83, 115, 115, 2, 0, 69, 69, 101, 101, 2, 0, 65, 65, 97, 97, 2, 0, 82, 82, 114, 114, 2, 0, 67, 67, 99, 99, 2, 0, 72, 72, 104, 104, 2, 0, 68, 68, 100, 100, 2, 0, 73, 73, 105, 105, 2, 0, 66, 66, 98, 98, 2, 0, 79, 79, 111, 111, 2, 0, 87, 87, 119, 119, 2, 0, 70, 70, 102, 102, 2, 0, 77, 77, 109, 109, 2, 0, 76, 76, 108, 108, 2, 0, 78, 78, 110, 110, 2, 0, 84, 84, 116, 116, 2, 0, 85, 85, 117, 117, 2, 0, 80, 80, 112, 112, 2, 0, 86, 86, 118, 118, 2, 0, 71, 71, 103, 103, 2, 0, 88, 88, 120, 120, 2, 0, 75, 75, 107, 107, 2, 0, 89, 89, 121, 121, 2, 0, 90, 90, 122, 122, 2, 0, 81, 81, 113, 113, 1, 0, 45, 46, 2, 0, 42, 42, 48, 57, 3, 0, 42, 42, 64, 90, 97, 122, 6, 0, 42, 42, 45, 45, 48, 57, 65, 90, 95, 95, 97, 122, 3, 0, 42, 42, 65, 90, 97, 122, 2, 0, 34, 34, 92, 92, 2, 0, 39, 39, 92, 92, 2, 0, 92, 92, 96, 96, 1, 0, 48, 57, 3524, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 0, 183, 1, 0, 0, 0, 0, 185, 1, 0, 0, 0, 0, 187, 1, 0, 0, 0, 0, 189, 1, 0, 0, 0, 0, 191, 1, 0, 0, 0, 0, 193, 1, 0, 0, 0, 0, 195, 1, 0, 0, 0, 0, 197, 1, 0, 0, 0, 0, 199, 1, 0, 0, 0, 0, 201, 1, 0, 0, 0, 0, 203, 1, 0, 0, 0, 0, 205, 1, 0, 0, 0, 0, 207, 1, 0, 0, 0, 0, 209, 1, 0, 0, 0, 0, 211, 1, 0, 0, 0, 0, 213, 1, 0, 0, 0, 0, 215, 1, 0, 0, 0, 0, 217, 1, 0, 0, 0, 0, 219, 1, 0, 0, 0, 0, 221, 1, 0, 0, 0, 0, 223, 1, 0, 0, 0, 0, 225, 1, 0, 0, 0, 0, 227, 1, 0, 0, 0, 0, 229, 1, 0, 0, 0, 0, 231, 1, 0, 0, 0, 0, 233, 1, 0, 0, 0, 0, 235, 1, 0, 0, 0, 0, 237, 1, 0, 0, 0, 0, 239, 1, 0, 0, 0, 0, 241, 1, 0, 0, 0, 0, 243, 1, 0, 0, 0, 0, 245, 1, 0, 0, 0, 0, 247, 1, 0, 0, 0, 0, 249, 1, 0, 0, 0, 0, 251, 1, 0, 0, 0, 0, 253, 1, 0, 0, 0, 0, 255, 1, 0, 0, 0, 0, 257, 1, 0, 0, 0, 0, 259, 1, 0, 0, 0, 0, 261, 1, 0, 0, 0, 0, 263, 1, 0, 0, 0, 0, 265, 1, 0, 0, 0, 0, 267, 1, 0, 0, 0, 0, 269, 1, 0, 0, 0, 0, 271, 1, 0, 0, 0, 0, 273, 1, 0, 0, 0, 0, 275, 1, 0, 0, 0, 0, 277, 1, 0, 0, 0, 0, 279, 1, 0, 0, 0, 0, 281, 1, 0, 0, 0, 0, 283, 1, 0, 0, 0, 0, 285, 1, 0, 0, 0, 0, 287, 1, 0, 0, 0, 0, 289, 1, 0, 0, 0, 0, 291, 1, 0, 0, 0, 0, 293, 1, 0, 0, 0, 0, 295, 1, 0, 0, 0, 0, 297, 1, 0, 0, 0, 0, 299, 1, 0, 0, 0, 0, 301, 1, 0, 0, 0, 0, 303, 1, 0, 0, 0, 0, 305, 1, 0, 0, 0, 0, 307, 1, 0, 0, 0, 0, 309, 1, 0, 0, 0, 0, 311, 1, 0, 0, 0, 0, 313, 1, 0, 0, 0, 0, 315, 1, 0, 0, 0, 0, 317, 1, 0, 0, 0, 0, 319, 1, 0, 0, 0, 0, 321, 1, 0, 0, 0, 0, 323, 1, 0, 0, 0, 0, 325, 1, 0, 0, 0, 0, 327, 1, 0, 0, 0, 0, 329, 1, 0, 0, 0, 0, 331, 1, 0, 0, 0, 0, 333, 1, 0, 0, 0, 0, 335, 1, 0, 0, 0, 0, 337, 1, 0, 0, 0, 0, 339, 1, 0, 0, 0, 0, 341, 1, 0, 0, 0, 0, 343, 1, 0, 0, 0, 0, 345, 1, 0, 0, 0, 0, 347, 1, 0, 0, 0, 0, 349, 1, 0, 0, 0, 0, 351, 1, 0, 0, 0, 0, 353, 1, 0, 0, 0, 0, 355, 1, 0, 0, 0, 0, 357, 1, 0, 0, 0, 0, 359, 1, 0, 0, 0, 0, 361, 1, 0, 0, 0, 0, 363, 1, 0, 0, 0, 0, 365, 1, 0, 0, 0, 0, 367, 1, 0, 0, 0, 0, 369, 1, 0, 0, 0, 0, 371, 1, 0, 0, 0, 0, 373, 1, 0, 0, 0, 0, 375, 1, 0, 0, 0, 0, 377, 1, 0, 0, 0, 0, 379, 1, 0, 0, 0, 0, 381, 1, 0, 0, 0, 0, 383, 1, 0, 0, 0, 0, 385, 1, 0, 0, 0, 0, 387, 1, 0, 0, 0, 0, 389, 1, 0, 0, 0, 0, 391, 1, 0, 0, 0, 0, 393, 1, 0, 0, 0, 0, 395, 1, 0, 0, 0, 0, 397, 1, 0, 0, 0, 0, 399, 1, 0, 0, 0, 0, 401, 1, 0, 0, 0, 0, 403, 1, 0, 0, 0, 0, 405, 1, 0, 0, 0, 0, 407, 1, 0, 0, 0, 0, 409, 1, 0, 0, 0, 0, 411, 1, 0, 0, 0, 0, 413, 1, 0, 0, 0, 0, 415, 1, 0, 0, 0, 0, 417, 1, 0, 0, 0, 0, 419, 1, 0, 0, 0, 0, 421, 1, 0, 0, 0, 0, 423, 1, 0, 0, 0, 0, 425, 1, 0, 0, 0, 0, 427, 1, 0, 0, 0, 0, 429, 1, 0, 0, 0, 0, 431, 1, 0, 0, 0, 0, 433, 1, 0, 0, 0, 0, 435, 1, 0, 0, 0, 0, 437, 1, 0, 0, 0, 0, 439, 1, 0, 0, 0, 0, 441, 1, 0, 0, 0, 0, 443, 1, 0, 0, 0, 0, 445, 1, 0, 0, 0, 0, 447, 1, 0, 0, 0, 0, 449, 1, 0, 0, 0, 0, 451, 1, 0, 0, 0, 0, 453, 1, 0, 0, 0, 0, 455, 1, 0, 0, 0, 0, 457, 1, 0, 0, 0, 0, 459, 1, 0, 0, 0, 0, 461, 1, 0, 0, 0, 0, 463, 1, 0, 0, 0, 0, 465, 1, 0, 0, 0, 0, 467, 1, 0, 0, 0, 0, 469, 1, 0, 0, 0, 0, 471, 1, 0, 0, 0, 0, 473, 1, 0, 0, 0, 0, 475, 1, 0, 0, 0, 0, 477, 1, 0, 0, 0, 0, 479, 1, 0, 0, 0, 0, 481, 1, 0, 0, 0, 0, 483, 1, 0, 0, 0, 0, 485, 1, 0, 0, 0, 0, 487, 1, 0, 0, 0, 0, 489, 1, 0, 0, 0, 0, 491, 1, 0, 0, 0, 0, 493, 1, 0, 0, 0, 0, 495, 1, 0, 0, 0, 0, 497, 1, 0, 0, 0, 0, 499, 1, 0, 0, 0, 0, 501, 1, 0, 0, 0, 0, 503, 1, 0, 0, 0, 0, 505, 1, 0, 0, 0, 0, 507, 1, 0, 0, 0, 0, 509, 1, 0, 0, 0, 0, 511, 1, 0, 0, 0, 0, 513, 1, 0, 0, 0, 0, 515, 1, 0, 0, 0, 0, 517, 1, 0, 0, 0, 0, 519, 1, 0, 0, 0, 0, 521, 1, 0, 0, 0, 0, 523, 1, 0, 0, 0, 0, 525, 1, 0, 0, 0, 0, 527, 1, 0, 0, 0, 0, 529, 1, 0, 0, 0, 0, 531, 1, 0, 0, 0, 0, 533, 1, 0, 0, 0, 0, 535, 1, 0, 0, 0, 0, 537, 1, 0, 0, 0, 0, 539, 1, 0, 0, 0, 0, 541, 1, 0, 0, 0, 0, 543, 1, 0, 0, 0, 0, 545, 1, 0, 0, 0, 0, 547, 1, 0, 0, 0, 0, 549, 1, 0, 0, 0, 0, 551, 1, 0, 0, 0, 0, 553, 1, 0, 0, 0, 0, 555, 1, 0, 0, 0, 0, 557, 1, 0, 0, 0, 0, 559, 1, 0, 0, 0, 0, 561, 1, 0, 0, 0, 0, 563, 1, 0, 0, 0, 0, 565, 1, 0, 0, 0, 0, 567, 1, 0, 0, 0, 0, 569, 1, 0, 0, 0, 0, 571, 1, 0, 0, 0, 0, 573, 1, 0, 0, 0, 0, 575, 1, 0, 0, 0, 0, 577, 1, 0, 0, 0, 0, 579, 1, 0, 0, 0, 0, 581, 1, 0, 0, 0, 0, 583, 1, 0, 0, 0, 0, 585, 1, 0, 0, 0, 0, 587, 1, 0, 0, 0, 0, 589, 1, 0, 0, 0, 0, 591, 1, 0, 0, 0, 0, 593, 1, 0, 0, 0, 0, 595, 1, 0, 0, 0, 0, 597, 1, 0, 0, 0, 0, 599, 1, 0, 0, 0, 0, 601, 1, 0, 0, 0, 0, 603, 1, 0, 0, 0, 0, 605, 1, 0, 0, 0, 0, 607, 1, 0, 0, 0, 0, 609, 1, 0, 0, 0, 0, 611, 1, 0, 0, 0, 0, 613, 1, 0, 0, 0, 0, 615, 1, 0, 0, 0, 0, 617, 1, 0, 0, 0, 0, 619, 1, 0, 0, 0, 0, 621, 1, 0, 0, 0, 0, 623, 1, 0, 0, 0, 0, 625, 1, 0, 0, 0, 0, 627, 1, 0, 0, 0, 0, 629, 1, 0, 0, 0, 0, 631, 1, 0, 0, 0, 0, 633, 1, 0, 0, 0, 0, 635, 1, 0, 0, 0, 0, 637, 1, 0, 0, 0, 0, 639, 1, 0, 0, 0, 0, 641, 1, 0, 0, 0, 0, 643, 1, 0, 0, 0, 0, 645, 1, 0, 0, 0, 0, 647, 1, 0, 0, 0, 0, 649, 1, 0, 0, 0, 0, 651, 1, 0, 0, 0, 0, 653, 1, 0, 0, 0, 0, 655, 1, 0, 0, 0, 0, 657, 1, 0, 0, 0, 0, 659, 1, 0, 0, 0, 0, 661, 1, 0, 0, 0, 0, 669, 1, 0, 0, 0, 0, 671, 1, 0, 0, 0, 0, 673, 1, 0, 0, 0, 0, 675, 1, 0, 0, 0, 0, 679, 1, 0, 0, 0, 1, 682, 1, 0, 0, 0, 3, 688, 1, 0, 0, 0, 5, 695, 1, 0, 0, 0, 7, 704, 1, 0, 0, 0, 9, 709, 1, 0, 0, 0, 11, 714, 1, 0, 0, 0, 13, 720, 1, 0, 0, 0, 15, 727, 1, 0, 0, 0, 17, 734, 1, 0, 0, 0, 19, 740, 1, 0, 0, 0, 21, 746, 1, 0, 0, 0, 23, 751, 1, 0, 0, 0, 25, 756, 1, 0, 0, 0, 27, 761, 1, 0, 0, 0, 29, 765, 1, 0, 0, 0, 31, 770, 1, 0, 0, 0, 33, 776, 1, 0, 0, 0, 35, 783, 1, 0, 0, 0, 37, 789, 1, 0, 0, 0, 39, 795, 1, 0, 0, 0, 41, 800, 1, 0, 0, 0, 43, 808, 1, 0, 0, 0, 45, 817, 1, 0, 0, 0, 47, 827, 1, 0, 0, 0, 49, 834, 1, 0, 0, 0, 51, 837, 1, 0, 0, 0, 53, 840, 1, 0, 0, 0, 55, 843, 1, 0, 0, 0, 57, 846, 1, 0, 0, 0, 59, 853, 1, 0, 0, 0, 61, 859, 1, 0, 0, 0, 63, 861, 1, 0, 0, 0, 65, 866, 1, 0, 0, 0, 67, 878, 1, 0, 0, 0, 69, 885, 1, 0, 0, 0, 71, 890, 1, 0, 0, 0, 73, 894, 1, 0, 0, 0, 75, 897, 1, 0, 0, 0, 77, 901, 1, 0, 0, 0, 79, 911, 1, 0, 0, 0, 81, 923, 1, 0, 0, 0, 83, 941, 1, 0, 0, 0, 85, 952, 1, 0, 0, 0, 87, 959, 1, 0, 0, 0, 89, 965, 1, 0, 0, 0, 91, 975, 1, 0, 0, 0, 93, 986, 1, 0, 0, 0, 95, 1000, 1, 0, 0, 0, 97, 1016, 1, 0, 0, 0, 99, 1029, 1, 0, 0, 0, 101, 1041, 1, 0, 0, 0, 103, 1054, 1, 0, 0, 0, 105, 1065, 1, 0, 0, 0, 107, 1078, 1, 0, 0, 0, 109, 1093, 1, 0, 0, 0, 111, 1104, 1, 0, 0, 0, 113, 1114, 1, 0, 0, 0, 115, 1133, 1, 0, 0, 0, 117, 1157, 1, 0, 0, 0, 119, 1162, 1, 0, 0, 0, 121, 1165, 1, 0, 0, 0, 123, 1169, 1, 0, 0, 0, 125, 1172, 1, 0, 0, 0, 127, 1176, 1, 0, 0, 0, 129, 1180, 1, 0, 0, 0, 131, 1185, 1, 0, 0, 0, 133, 1191, 1, 0, 0, 0, 135, 1198, 1, 0, 0, 0, 137, 1209, 1, 0, 0, 0, 139, 1218, 1, 0, 0, 0, 141, 1222, 1, 0, 0, 0, 143, 1231, 1, 0, 0, 0, 145, 1247, 1, 0, 0, 0, 147, 1258, 1, 0, 0, 0, 149, 1270, 1, 0, 0, 0, 151, 1281, 1, 0, 0, 0, 153, 1286, 1, 0, 0, 0, 155, 1303, 1, 0, 0, 0, 157, 1315, 1, 0, 0, 0, 159, 1327, 1, 0, 0, 0, 161, 1339, 1, 0, 0, 0, 163, 1348, 1, 0, 0, 0, 165, 1360, 1, 0, 0, 0, 167, 1372, 1, 0, 0, 0, 169, 1379, 1, 0, 0, 0, 171, 1398, 1, 0, 0, 0, 173, 1412, 1, 0, 0, 0, 175, 1427, 1, 0, 0, 0, 177, 1441, 1, 0, 0, 0, 179, 1447, 1, 0, 0, 0, 181, 1461, 1, 0, 0, 0, 183, 1469, 1, 0, 0, 0, 185, 1476, 1, 0, 0, 0, 187, 1495, 1, 0, 0, 0, 189, 1512, 1, 0, 0, 0, 191, 1517, 1, 0, 0, 0, 193, 1530, 1, 0, 0, 0, 195, 1535, 1, 0, 0, 0, 197, 1546, 1, 0, 0, 0, 199, 1556, 1, 0, 0, 0, 201, 1563, 1, 0, 0, 0, 203, 1575, 1, 0, 0, 0, 205, 1579, 1, 0, 0, 0, 207, 1587, 1, 0, 0, 0, 209, 1594, 1, 0, 0, 0, 211, 1599, 1, 0, 0, 0, 213, 1605, 1, 0, 0, 0, 215, 1612, 1, 0, 0, 0, 217, 1620, 1, 0, 0, 0, 219, 1622, 1, 0, 0, 0, 221, 1624, 1, 0, 0, 0, 223, 1626, 1, 0, 0, 0, 225, 1628, 1, 0, 0, 0, 227, 1630, 1, 0, 0, 0, 229, 1632, 1, 0, 0, 0, 231, 1635, 1, 0, 0, 0, 233, 1638, 1, 0, 0, 0, 235, 1641, 1, 0, 0, 0, 237, 1643, 1, 0, 0, 0, 239, 1645, 1, 0, 0, 0, 241, 1647, 1, 0, 0, 0, 243, 1649, 1, 0, 0, 0, 245, 1651, 1, 0, 0, 0, 247, 1653, 1, 0, 0, 0, 249, 1655, 1, 0, 0, 0, 251, 1657, 1, 0, 0, 0, 253, 1659, 1, 0, 0, 0, 255, 1661, 1, 0, 0, 0, 257, 1663, 1, 0, 0, 0, 259, 1665, 1, 0, 0, 0, 261, 1667, 1, 0, 0, 0, 263, 1669, 1, 0, 0, 0, 265, 1671, 1, 0, 0, 0, 267, 1673, 1, 0, 0, 0, 269, 1675, 1, 0, 0, 0, 271, 1679, 1, 0, 0, 0, 273, 1685, 1, 0, 0, 0, 275, 1700, 1, 0, 0, 0, 277, 1706, 1, 0, 0, 0, 279, 1718, 1, 0, 0, 0, 281, 1722, 1, 0, 0, 0, 283, 1727, 1, 0, 0, 0, 285, 1734, 1, 0, 0, 0, 287, 1738, 1, 0, 0, 0, 289, 1743, 1, 0, 0, 0, 291, 1749, 1, 0, 0, 0, 293, 1755, 1, 0, 0, 0, 295, 1762, 1, 0, 0, 0, 297, 1766, 1, 0, 0, 0, 299, 1772, 1, 0, 0, 0, 301, 1781, 1, 0, 0, 0, 303, 1789, 1, 0, 0, 0, 305, 1801, 1, 0, 0, 0, 307, 1812, 1, 0, 0, 0, 309, 1823, 1, 0, 0, 0, 311, 1828, 1, 0, 0, 0, 313, 1834, 1, 0, 0, 0, 315, 1839, 1, 0, 0, 0, 317, 1844, 1, 0, 0, 0, 319, 1851, 1, 0, 0, 0, 321, 1860, 1, 0, 0, 0, 323, 1874, 1, 0, 0, 0, 325, 1881, 1, 0, 0, 0, 327, 1893, 1, 0, 0, 0, 329, 1901, 1, 0, 0, 0, 331, 1910, 1, 0, 0, 0, 333, 1921, 1, 0, 0, 0, 335, 1932, 1, 0, 0, 0, 337, 1937, 1, 0, 0, 0, 339, 1947, 1, 0, 0, 0, 341, 1949, 1, 0, 0, 0, 343, 1952, 1, 0, 0, 0, 345, 1956, 1, 0, 0, 0, 347, 1961, 1, 0, 0, 0, 349, 1966, 1, 0, 0, 0, 351, 1974, 1, 0, 0, 0, 353, 1979, 1, 0, 0, 0, 355, 1985, 1, 0, 0, 0, 357, 1987, 1, 0, 0, 0, 359, 1991, 1, 0, 0, 0, 361, 1997, 1, 0, 0, 0, 363, 2000, 1, 0, 0, 0, 365, 2004, 1, 0, 0, 0, 367, 2010, 1, 0, 0, 0, 369, 2015, 1, 0, 0, 0, 371, 2019, 1, 0, 0, 0, 373, 2022, 1, 0, 0, 0, 375, 2031, 1, 0, 0, 0, 377, 2035, 1, 0, 0, 0, 379, 2041, 1, 0, 0, 0, 381, 2046, 1, 0, 0, 0, 383, 2052, 1, 0, 0, 0, 385, 2057, 1, 0, 0, 0, 387, 2062, 1, 0, 0, 0, 389, 2071, 1, 0, 0, 0, 391, 2076, 1, 0, 0, 0, 393, 2081, 1, 0, 0, 0, 395, 2086, 1, 0, 0, 0, 397, 2092, 1, 0, 0, 0, 399, 2096, 1, 0, 0, 0, 401, 2100, 1, 0, 0, 0, 403, 2108, 1, 0, 0, 0, 405, 2116, 1, 0, 0, 0, 407, 2120, 1, 0, 0, 0, 409, 2124, 1, 0, 0, 0, 411, 2132, 1, 0, 0, 0, 413, 2140, 1, 0, 0, 0, 415, 2148, 1, 0, 0, 0, 417, 2161, 1, 0, 0, 0, 419, 2174, 1, 0, 0, 0, 421, 2192, 1, 0, 0, 0, 423, 2200, 1, 0, 0, 0, 425, 2205, 1, 0, 0, 0, 427, 2214, 1, 0, 0, 0, 429, 2223, 1, 0, 0, 0, 431, 2235, 1, 0, 0, 0, 433, 2244, 1, 0, 0, 0, 435, 2252, 1, 0, 0, 0, 437, 2263, 1, 0, 0, 0, 439, 2273, 1, 0, 0, 0, 441, 2283, 1, 0, 0, 0, 443, 2296, 1, 0, 0, 0, 445, 2308, 1, 0, 0, 0, 447, 2316, 1, 0, 0, 0, 449, 2326, 1, 0, 0, 0, 451, 2340, 1, 0, 0, 0, 453, 2351, 1, 0, 0, 0, 455, 2360, 1, 0, 0, 0, 457, 2370, 1, 0, 0, 0, 459, 2385, 1, 0, 0, 0, 461, 2394, 1, 0, 0, 0, 463, 2403, 1, 0, 0, 0, 465, 2413, 1, 0, 0, 0, 467, 2417, 1, 0, 0, 0, 469, 2428, 1, 0, 0, 0, 471, 2440, 1, 0, 0, 0, 473, 2452, 1, 0, 0, 0, 475, 2464, 1, 0, 0, 0, 477, 2472, 1, 0, 0, 0, 479, 2480, 1, 0, 0, 0, 481, 2488, 1, 0, 0, 0, 483, 2493, 1, 0, 0, 0, 485, 2502, 1, 0, 0, 0, 487, 2512, 1, 0, 0, 0, 489, 2525, 1, 0, 0, 0, 491, 2539, 1, 0, 0, 0, 493, 2551, 1, 0, 0, 0, 495, 2563, 1, 0, 0, 0, 497, 2571, 1, 0, 0, 0, 499, 2582, 1, 0, 0, 0, 501, 2597, 1, 0, 0, 0, 503, 2606, 1, 0, 0, 0, 505, 2615, 1, 0, 0, 0, 507, 2629, 1, 0, 0, 0, 509, 2637, 1, 0, 0, 0, 511, 2646, 1, 0, 0, 0, 513, 2653, 1, 0, 0, 0, 515, 2663, 1, 0, 0, 0, 517, 2669, 1, 0, 0, 0, 519, 2675, 1, 0, 0, 0, 521, 2680, 1, 0, 0, 0, 523, 2683, 1, 0, 0, 0, 525, 2689, 1, 0, 0, 0, 527, 2695, 1, 0, 0, 0, 529, 2702, 1, 0, 0, 0, 531, 2712, 1, 0, 0, 0, 533, 2719, 1, 0, 0, 0, 535, 2726, 1, 0, 0, 0, 537, 2732, 1, 0, 0, 0, 539, 2737, 1, 0, 0, 0, 541, 2743, 1, 0, 0, 0, 543, 2750, 1, 0, 0, 0, 545, 2758, 1, 0, 0, 0, 547, 2766, 1, 0, 0, 0, 549, 2771, 1, 0, 0, 0, 551, 2776, 1, 0, 0, 0, 553, 2783, 1, 0, 0, 0, 555, 2793, 1, 0, 0, 0, 557, 2800, 1, 0, 0, 0, 559, 2807, 1, 0, 0, 0, 561, 2810, 1, 0, 0, 0, 563, 2817, 1, 0, 0, 0, 565, 2823, 1, 0, 0, 0, 567, 2836, 1, 0, 0, 0, 569, 2856, 1, 0, 0, 0, 571, 2874, 1, 0, 0, 0, 573, 2894, 1, 0, 0, 0, 575, 2906, 1, 0, 0, 0, 577, 2919, 1, 0, 0, 0, 579, 2942, 1, 0, 0, 0, 581, 2959, 1, 0, 0, 0, 583, 2968, 1, 0, 0, 0, 585, 3004, 1, 0, 0, 0, 587, 3010, 1, 0, 0, 0, 589, 3027, 1, 0, 0, 0, 591, 3041, 1, 0, 0, 0, 593, 3058, 1, 0, 0, 0, 595, 3085, 1, 0, 0, 0, 597, 3092, 1, 0, 0, 0, 599, 3098, 1, 0, 0, 0, 601, 3119, 1, 0, 0, 0, 603, 3139, 1, 0, 0, 0, 605, 3160, 1, 0, 0, 0, 607, 3174, 1, 0, 0, 0, 609, 3184, 1, 0, 0, 0, 611, 3192, 1, 0, 0, 0, 613, 3210, 1, 0, 0, 0, 615, 3234, 1, 0, 0, 0, 617, 3249, 1, 0, 0, 0, 619, 3270, 1, 0, 0, 0, 621, 3279, 1, 0, 0, 0, 623, 3291, 1, 0, 0, 0, 625, 3305, 1, 0, 0, 0, 627, 3320, 1, 0, 0, 0, 629, 3339, 1, 0, 0, 0, 631, 3347, 1, 0, 0, 0, 633, 3352, 1, 0, 0, 0, 635, 3364, 1, 0, 0, 0, 637, 3369, 1, 0, 0, 0, 639, 3386, 1, 0, 0, 0, 641, 3391, 1, 0, 0, 0, 643, 3394, 1, 0, 0, 0, 645, 3396, 1, 0, 0, 0, 647, 3398, 1, 0, 0, 0, 649, 3400, 1, 0, 0, 0, 651, 3402, 1, 0, 0, 0, 653, 3404, 1, 0, 0, 0, 655, 3406, 1, 0, 0, 0, 657, 3408, 1, 0, 0, 0, 659, 3411, 1, 0, 0, 0, 661, 3420, 1, 0, 0, 0, 663, 3434, 1, 0, 0, 0, 665, 3438, 1, 0, 0, 0, 667, 3446, 1, 0, 0, 0, 669, 3459, 1, 0, 0, 0, 671, 3464, 1, 0, 0, 0, 673, 3477, 1, 0, 0, 0, 675, 3490, 1, 0, 0, 0, 677, 3503, 1, 0, 0, 0, 679, 3505, 1, 0, 0, 0, 681, 683, 7, 0, 0, 0, 682, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 682, 1, 0, 0, 0, 684, 685, 1, 0, 0, 0, 685, 686, 1, 0, 0, 0, 686, 687, 6, 0, 0, 0, 687, 2, 1, 0, 0, 0, 688, 689, 7, 1, 0, 0, 689, 690, 7, 2, 0, 0, 690, 691, 7, 3, 0, 0, 691, 692, 7, 4, 0, 0, 692, 693, 7, 5, 0, 0, 693, 694, 7, 6, 0, 0, 694, 4, 1, 0, 0, 0, 695, 696, 7, 7, 0, 0, 696, 697, 7, 2, 0, 0, 697, 698, 7, 1, 0, 0, 698, 699, 7, 5, 0, 0, 699, 700, 7, 4, 0, 0, 700, 701, 7, 8, 0, 0, 701, 702, 7, 9, 0, 0, 702, 703, 7, 2, 0, 0, 703, 6, 1, 0, 0, 0, 704, 705, 7, 1, 0, 0, 705, 706, 7, 6, 0, 0, 706, 707, 7, 10, 0, 0, 707, 708, 7, 11, 0, 0, 708, 8, 1, 0, 0, 0, 709, 710, 7, 12, 0, 0, 710, 711, 7, 4, 0, 0, 711, 712, 7, 10, 0, 0, 712, 713, 7, 13, 0, 0, 713, 10, 1, 0, 0, 0, 714, 715, 7, 11, 0, 0, 715, 716, 7, 6, 0, 0, 716, 717, 7, 2, 0, 0, 717, 718, 7, 4, 0, 0, 718, 719, 7, 2, 0, 0, 719, 12, 1, 0, 0, 0, 720, 721, 7, 12, 0, 0, 721, 722, 7, 8, 0, 0, 722, 723, 7, 2, 0, 0, 723, 724, 7, 14, 0, 0, 724, 725, 7, 7, 0, 0, 725, 726, 7, 1, 0, 0, 726, 14, 1, 0, 0, 0, 727, 728, 7, 4, 0, 0, 728, 729, 7, 2, 0, 0, 729, 730, 7, 15, 0, 0, 730, 731, 7, 3, 0, 0, 731, 732, 7, 13, 0, 0, 732, 733, 7, 2, 0, 0, 733, 16, 1, 0, 0, 0, 734, 735, 7, 1, 0, 0, 735, 736, 7, 16, 0, 0, 736, 737, 7, 3, 0, 0, 737, 738, 7, 16, 0, 0, 738, 739, 7, 1, 0, 0, 739, 18, 1, 0, 0, 0, 740, 741, 7, 7, 0, 0, 741, 742, 7, 2, 0, 0, 742, 743, 7, 7, 0, 0, 743, 744, 7, 17, 0, 0, 744, 745, 7, 18, 0, 0, 745, 20, 1, 0, 0, 0, 746, 747, 7, 1, 0, 0, 747, 748, 7, 10, 0, 0, 748, 749, 7, 4, 0, 0, 749, 750, 7, 16, 0, 0, 750, 22, 1, 0, 0, 0, 751, 752, 7, 2, 0, 0, 752, 753, 7, 19, 0, 0, 753, 754, 7, 3, 0, 0, 754, 755, 7, 14, 0, 0, 755, 24, 1, 0, 0, 0, 756, 757, 7, 6, 0, 0, 757, 758, 7, 2, 0, 0, 758, 759, 7, 3, 0, 0, 759, 760, 7, 7, 0, 0, 760, 26, 1, 0, 0, 0, 761, 762, 7, 16, 0, 0, 762, 763, 7, 10, 0, 0, 763, 764, 7, 18, 0, 0, 764, 28, 1, 0, 0, 0, 765, 766, 7, 4, 0, 0, 766, 767, 7, 3, 0, 0, 767, 768, 7, 4, 0, 0, 768, 769, 7, 2, 0, 0, 769, 30, 1, 0, 0, 0, 770, 771, 7, 18, 0, 0, 771, 772, 7, 3, 0, 0, 772, 773, 7, 4, 0, 0, 773, 774, 7, 1, 0, 0, 774, 775, 7, 2, 0, 0, 775, 32, 1, 0, 0, 0, 776, 777, 7, 13, 0, 0, 777, 778, 7, 2, 0, 0, 778, 779, 7, 16, 0, 0, 779, 780, 7, 6, 0, 0, 780, 781, 7, 10, 0, 0, 781, 782, 7, 7, 0, 0, 782, 34, 1, 0, 0, 0, 783, 784, 7, 4, 0, 0, 784, 785, 7, 2, 0, 0, 785, 786, 7, 20, 0, 0, 786, 787, 7, 2, 0, 0, 787, 788, 7, 21, 0, 0, 788, 36, 1, 0, 0, 0, 789, 790, 7, 18, 0, 0, 790, 791, 7, 17, 0, 0, 791, 792, 7, 15, 0, 0, 792, 793, 7, 5, 0, 0, 793, 794, 7, 16, 0, 0, 794, 38, 1, 0, 0, 0, 795, 796, 7, 20, 0, 0, 796, 797, 7, 4, 0, 0, 797, 798, 7, 10, 0, 0, 798, 799, 7, 22, 0, 0, 799, 40, 1, 0, 0, 0, 800, 801, 7, 18, 0, 0, 801, 802, 7, 3, 0, 0, 802, 803, 7, 16, 0, 0, 803, 804, 7, 16, 0, 0, 804, 805, 7, 2, 0, 0, 805, 806, 7, 4, 0, 0, 806, 807, 7, 15, 0, 0, 807, 42, 1, 0, 0, 0, 808, 809, 7, 18, 0, 0, 809, 810, 7, 3, 0, 0, 810, 811, 7, 16, 0, 0, 811, 812, 7, 16, 0, 0, 812, 813, 7, 2, 0, 0, 813, 814, 7, 4, 0, 0, 814, 815, 7, 15, 0, 0, 815, 816, 7, 1, 0, 0, 816, 44, 1, 0, 0, 0, 817, 818, 7, 15, 0, 0, 818, 819, 7, 2, 0, 0, 819, 820, 7, 11, 0, 0, 820, 821, 5, 95, 0, 0, 821, 822, 7, 12, 0, 0, 822, 823, 7, 8, 0, 0, 823, 824, 7, 2, 0, 0, 824, 825, 7, 14, 0, 0, 825, 826, 7, 7, 0, 0, 826, 46, 1, 0, 0, 0, 827, 828, 7, 22, 0, 0, 828, 829, 7, 13, 0, 0, 829, 830, 7, 2, 0, 0, 830, 831, 7, 3, 0, 0, 831, 832, 7, 15, 0, 0, 832, 833, 7, 1, 0, 0, 833, 48, 1, 0, 0, 0, 834, 835, 7, 3, 0, 0, 835, 836, 7, 7, 0, 0, 836, 50, 1, 0, 0, 0, 837, 838, 7, 13, 0, 0, 838, 839, 7, 14, 0, 0, 839, 52, 1, 0, 0, 0, 840, 841, 7, 3, 0, 0, 841, 842, 7, 1, 0, 0, 842, 54, 1, 0, 0, 0, 843, 844, 7, 9, 0, 0, 844, 845, 7, 23, 0, 0, 845, 56, 1, 0, 0, 0, 846, 847, 7, 1, 0, 0, 847, 848, 7, 10, 0, 0, 848, 849, 7, 17, 0, 0, 849, 850, 7, 4, 0, 0, 850, 851, 7, 5, 0, 0, 851, 852, 7, 2, 0, 0, 852, 58, 1, 0, 0, 0, 853, 854, 7, 8, 0, 0, 854, 855, 7, 15, 0, 0, 855, 856, 7, 7, 0, 0, 856, 857, 7, 2, 0, 0, 857, 858, 7, 21, 0, 0, 858, 60, 1, 0, 0, 0, 859, 860, 7, 7, 0, 0, 860, 62, 1, 0, 0, 0, 861, 862, 7, 7, 0, 0, 862, 863, 7, 2, 0, 0, 863, 864, 7, 1, 0, 0, 864, 865, 7, 5, 0, 0, 865, 64, 1, 0, 0, 0, 866, 867, 7, 7, 0, 0, 867, 868, 7, 3, 0, 0, 868, 869, 7, 16, 0, 0, 869, 870, 7, 3, 0, 0, 870, 871, 7, 1, 0, 0, 871, 872, 7, 10, 0, 0, 872, 873, 7, 17, 0, 0, 873, 874, 7, 4, 0, 0, 874, 875, 7, 5, 0, 0, 875, 876, 7, 2, 0, 0, 876, 877, 7, 1, 0, 0, 877, 66, 1, 0, 0, 0, 878, 879, 7, 1, 0, 0, 879, 880, 7, 10, 0, 0, 880, 881, 7, 4, 0, 0, 881, 882, 7, 16, 0, 0, 882, 883, 7, 9, 0, 0, 883, 884, 7, 23, 0, 0, 884, 68, 1, 0, 0, 0, 885, 886, 7, 3, 0, 0, 886, 887, 7, 17, 0, 0, 887, 888, 7, 16, 0, 0, 888, 889, 7, 10, 0, 0, 889, 70, 1, 0, 0, 0, 890, 891, 7, 1, 0, 0, 891, 892, 7, 16, 0, 0, 892, 893, 7, 4, 0, 0, 893, 72, 1, 0, 0, 0, 894, 895, 7, 8, 0, 0, 895, 896, 7, 18, 0, 0, 896, 74, 1, 0, 0, 0, 897, 898, 7, 15, 0, 0, 898, 899, 7, 17, 0, 0, 899, 900, 7, 13, 0, 0, 900, 76, 1, 0, 0, 0, 901, 902, 7, 22, 0, 0, 902, 903, 7, 2, 0, 0, 903, 904, 7, 2, 0, 0, 904, 905, 7, 18, 0, 0, 905, 906, 7, 2, 0, 0, 906, 907, 7, 13, 0, 0, 907, 908, 7, 18, 0, 0, 908, 909, 7, 16, 0, 0, 909, 910, 7, 23, 0, 0, 910, 78, 1, 0, 0, 0, 911, 912, 7, 5, 0, 0, 912, 913, 7, 10, 0, 0, 913, 914, 7, 15, 0, 0, 914, 915, 7, 1, 0, 0, 915, 916, 7, 2, 0, 0, 916, 917, 7, 5, 0, 0, 917, 918, 7, 17, 0, 0, 918, 919, 7, 16, 0, 0, 919, 920, 7, 8, 0, 0, 920, 921, 7, 19, 0, 0, 921, 922, 7, 2, 0, 0, 922, 80, 1, 0, 0, 0, 923, 924, 7, 7, 0, 0, 924, 925, 7, 2, 0, 0, 925, 926, 7, 7, 0, 0, 926, 927, 7, 17, 0, 0, 927, 928, 7, 18, 0, 0, 928, 929, 5, 95, 0, 0, 929, 930, 7, 1, 0, 0, 930, 931, 7, 18, 0, 0, 931, 932, 7, 14, 0, 0, 932, 933, 7, 8, 0, 0, 933, 934, 7, 16, 0, 0, 934, 935, 7, 19, 0, 0, 935, 936, 7, 3, 0, 0, 936, 937, 7, 14, 0, 0, 937, 938, 7, 17, 0, 0, 938, 939, 7, 2, 0, 0, 939, 940, 7, 1, 0, 0, 940, 82, 1, 0, 0, 0, 941, 942, 7, 18, 0, 0, 942, 943, 7, 3, 0, 0, 943, 944, 7, 4, 0, 0, 944, 945, 7, 16, 0, 0, 945, 946, 7, 8, 0, 0, 946, 947, 7, 16, 0, 0, 947, 948, 7, 8, 0, 0, 948, 949, 7, 10, 0, 0, 949, 950, 7, 15, 0, 0, 950, 951, 7, 1, 0, 0, 951, 84, 1, 0, 0, 0, 952, 953, 7, 3, 0, 0, 953, 954, 7, 14, 0, 0, 954, 955, 7, 14, 0, 0, 955, 956, 7, 15, 0, 0, 956, 957, 7, 17, 0, 0, 957, 958, 7, 13, 0, 0, 958, 86, 1, 0, 0, 0, 959, 960, 7, 7, 0, 0, 960, 961, 7, 2, 0, 0, 961, 962, 7, 14, 0, 0, 962, 963, 7, 8, 0, 0, 963, 964, 7, 13, 0, 0, 964, 88, 1, 0, 0, 0, 965, 966, 7, 5, 0, 0, 966, 967, 7, 2, 0, 0, 967, 968, 7, 15, 0, 0, 968, 969, 7, 16, 0, 0, 969, 970, 7, 4, 0, 0, 970, 971, 7, 10, 0, 0, 971, 972, 7, 8, 0, 0, 972, 973, 7, 7, 0, 0, 973, 974, 7, 1, 0, 0, 974, 90, 1, 0, 0, 0, 975, 976, 7, 8, 0, 0, 976, 977, 7, 16, 0, 0, 977, 978, 7, 2, 0, 0, 978, 979, 7, 4, 0, 0, 979, 980, 7, 3, 0, 0, 980, 981, 7, 16, 0, 0, 981, 982, 7, 8, 0, 0, 982, 983, 7, 10, 0, 0, 983, 984, 7, 15, 0, 0, 984, 985, 7, 1, 0, 0, 985, 92, 1, 0, 0, 0, 986, 987, 7, 7, 0, 0, 987, 988, 7, 8, 0, 0, 988, 989, 7, 1, 0, 0, 989, 990, 7, 16, 0, 0, 990, 991, 7, 3, 0, 0, 991, 992, 7, 15, 0, 0, 992, 993, 7, 5, 0, 0, 993, 994, 7, 2, 0, 0, 994, 995, 5, 95, 0, 0, 995, 996, 7, 16, 0, 0, 996, 997, 7, 23, 0, 0, 997, 998, 7, 18, 0, 0, 998, 999, 7, 2, 0, 0, 999, 94, 1, 0, 0, 0, 1000, 1001, 7, 15, 0, 0, 1001, 1002, 7, 17, 0, 0, 1002, 1003, 7, 13, 0, 0, 1003, 1004, 7, 9, 0, 0, 1004, 1005, 7, 2, 0, 0, 1005, 1006, 7, 4, 0, 0, 1006, 1007, 5, 95, 0, 0, 1007, 1008, 7, 10, 0, 0, 1008, 1009, 7, 12, 0, 0, 1009, 1010, 5, 95, 0, 0, 1010, 1011, 7, 16, 0, 0, 1011, 1012, 7, 4, 0, 0, 1012, 1013, 7, 2, 0, 0, 1013, 1014, 7, 2, 0, 0, 1014, 1015, 7, 1, 0, 0, 1015, 96, 1, 0, 0, 0, 1016, 1017, 7, 1, 0, 0, 1017, 1018, 7, 6, 0, 0, 1018, 1019, 7, 8, 0, 0, 1019, 1020, 7, 15, 0, 0, 1020, 1021, 7, 20, 0, 0, 1021, 1022, 7, 14, 0, 0, 1022, 1023, 7, 2, 0, 0, 1023, 1024, 5, 95, 0, 0, 1024, 1025, 7, 1, 0, 0, 1025, 1026, 7, 8, 0, 0, 1026, 1027, 7, 24, 0, 0, 1027, 1028, 7, 2, 0, 0, 1028, 98, 1, 0, 0, 0, 1029, 1030, 7, 1, 0, 0, 1030, 1031, 7, 3, 0, 0, 1031, 1032, 7, 13, 0, 0, 1032, 1033, 7, 18, 0, 0, 1033, 1034, 7, 14, 0, 0, 1034, 1035, 7, 2, 0, 0, 1035, 1036, 5, 95, 0, 0, 1036, 1037, 7, 1, 0, 0, 1037, 1038, 7, 8, 0, 0, 1038, 1039, 7, 24, 0, 0, 1039, 1040, 7, 2, 0, 0, 1040, 100, 1, 0, 0, 0, 1041, 1042, 7, 10, 0, 0, 1042, 1043, 7, 17, 0, 0, 1043, 1044, 7, 16, 0, 0, 1044, 1045, 7, 18, 0, 0, 1045, 1046, 7, 17, 0, 0, 1046, 1047, 7, 16, 0, 0, 1047, 1048, 5, 95, 0, 0, 1048, 1049, 7, 3, 0, 0, 1049, 1050, 7, 12, 0, 0, 1050, 1051, 7, 16, 0, 0, 1051, 1052, 7, 2, 0, 0, 1052, 1053, 7, 4, 0, 0, 1053, 102, 1, 0, 0, 0, 1054, 1055, 7, 16, 0, 0, 1055, 1056, 7, 8, 0, 0, 1056, 1057, 7, 13, 0, 0, 1057, 1058, 7, 2, 0, 0, 1058, 1059, 5, 95, 0, 0, 1059, 1060, 7, 7, 0, 0, 1060, 1061, 7, 2, 0, 0, 1061, 1062, 7, 5, 0, 0, 1062, 1063, 7, 3, 0, 0, 1063, 1064, 7, 23, 0, 0, 1064, 104, 1, 0, 0, 0, 1065, 1066, 7, 3, 0, 0, 1066, 1067, 7, 15, 0, 0, 1067, 1068, 7, 10, 0, 0, 1068, 1069, 7, 13, 0, 0, 1069, 1070, 7, 3, 0, 0, 1070, 1071, 7, 14, 0, 0, 1071, 1072, 7, 23, 0, 0, 1072, 1073, 5, 95, 0, 0, 1073, 1074, 7, 4, 0, 0, 1074, 1075, 7, 3, 0, 0, 1075, 1076, 7, 16, 0, 0, 1076, 1077, 7, 2, 0, 0, 1077, 106, 1, 0, 0, 0, 1078, 1079, 7, 5, 0, 0, 1079, 1080, 7, 3, 0, 0, 1080, 1081, 7, 16, 0, 0, 1081, 1082, 7, 2, 0, 0, 1082, 1083, 7, 20, 0, 0, 1083, 1084, 7, 10, 0, 0, 1084, 1085, 7, 4, 0, 0, 1085, 1086, 7, 23, 0, 0, 1086, 1087, 5, 95, 0, 0, 1087, 1088, 7, 12, 0, 0, 1088, 1089, 7, 8, 0, 0, 1089, 1090, 7, 2, 0, 0, 1090, 1091, 7, 14, 0, 0, 1091, 1092, 7, 7, 0, 0, 1092, 108, 1, 0, 0, 0, 1093, 1094, 7, 16, 0, 0, 1094, 1095, 7, 8, 0, 0, 1095, 1096, 7, 13, 0, 0, 1096, 1097, 7, 2, 0, 0, 1097, 1098, 5, 95, 0, 0, 1098, 1099, 7, 12, 0, 0, 1099, 1100, 7, 8, 0, 0, 1100, 1101, 7, 2, 0, 0, 1101, 1102, 7, 14, 0, 0, 1102, 1103, 7, 7, 0, 0, 1103, 110, 1, 0, 0, 0, 1104, 1105, 7, 16, 0, 0, 1105, 1106, 7, 8, 0, 0, 1106, 1107, 7, 13, 0, 0, 1107, 1108, 7, 2, 0, 0, 1108, 1109, 5, 95, 0, 0, 1109, 1110, 7, 24, 0, 0, 1110, 1111, 7, 10, 0, 0, 1111, 1112, 7, 15, 0, 0, 1112, 1113, 7, 2, 0, 0, 1113, 112, 1, 0, 0, 0, 1114, 1115, 7, 16, 0, 0, 1115, 1116, 7, 4, 0, 0, 1116, 1117, 7, 3, 0, 0, 1117, 1118, 7, 8, 0, 0, 1118, 1119, 7, 15, 0, 0, 1119, 1120, 7, 8, 0, 0, 1120, 1121, 7, 15, 0, 0, 1121, 1122, 7, 20, 0, 0, 1122, 1123, 5, 95, 0, 0, 1123, 1124, 7, 7, 0, 0, 1124, 1125, 7, 3, 0, 0, 1125, 1126, 7, 16, 0, 0, 1126, 1127, 7, 3, 0, 0, 1127, 1128, 5, 95, 0, 0, 1128, 1129, 7, 1, 0, 0, 1129, 1130, 7, 8, 0, 0, 1130, 1131, 7, 24, 0, 0, 1131, 1132, 7, 2, 0, 0, 1132, 114, 1, 0, 0, 0, 1133, 1134, 7, 3, 0, 0, 1134, 1135, 7, 15, 0, 0, 1135, 1136, 7, 10, 0, 0, 1136, 1137, 7, 13, 0, 0, 1137, 1138, 7, 3, 0, 0, 1138, 1139, 7, 14, 0, 0, 1139, 1140, 7, 23, 0, 0, 1140, 1141, 5, 95, 0, 0, 1141, 1142, 7, 1, 0, 0, 1142, 1143, 7, 5, 0, 0, 1143, 1144, 7, 10, 0, 0, 1144, 1145, 7, 4, 0, 0, 1145, 1146, 7, 2, 0, 0, 1146, 1147, 5, 95, 0, 0, 1147, 1148, 7, 16, 0, 0, 1148, 1149, 7, 6, 0, 0, 1149, 1150, 7, 4, 0, 0, 1150, 1151, 7, 2, 0, 0, 1151, 1152, 7, 1, 0, 0, 1152, 1153, 7, 6, 0, 0, 1153, 1154, 7, 10, 0, 0, 1154, 1155, 7, 14, 0, 0, 1155, 1156, 7, 7, 0, 0, 1156, 116, 1, 0, 0, 0, 1157, 1158, 7, 5, 0, 0, 1158, 1159, 7, 3, 0, 0, 1159, 1160, 7, 1, 0, 0, 1160, 1161, 7, 2, 0, 0, 1161, 118, 1, 0, 0, 0, 1162, 1163, 7, 8, 0, 0, 1163, 1164, 7, 15, 0, 0, 1164, 120, 1, 0, 0, 0, 1165, 1166, 7, 15, 0, 0, 1166, 1167, 7, 10, 0, 0, 1167, 1168, 7, 16, 0, 0, 1168, 122, 1, 0, 0, 0, 1169, 1170, 7, 10, 0, 0, 1170, 1171, 7, 4, 0, 0, 1171, 124, 1, 0, 0, 0, 1172, 1173, 7, 3, 0, 0, 1173, 1174, 7, 15, 0, 0, 1174, 1175, 7, 7, 0, 0, 1175, 126, 1, 0, 0, 0, 1176, 1177, 7, 21, 0, 0, 1177, 1178, 7, 10, 0, 0, 1178, 1179, 7, 4, 0, 0, 1179, 128, 1, 0, 0, 0, 1180, 1181, 7, 16, 0, 0, 1181, 1182, 7, 4, 0, 0, 1182, 1183, 7, 17, 0, 0, 1183, 1184, 7, 2, 0, 0, 1184, 130, 1, 0, 0, 0, 1185, 1186, 7, 12, 0, 0, 1186, 1187, 7, 3, 0, 0, 1187, 1188, 7, 14, 0, 0, 1188, 1189, 7, 1, 0, 0, 1189, 1190, 7, 2, 0, 0, 1190, 132, 1, 0, 0, 0, 1191, 1192, 7, 4, 0, 0, 1192, 1193, 7, 2, 0, 0, 1193, 1194, 7, 20, 0, 0, 1194, 1195, 7, 2, 0, 0, 1195, 1196, 7, 21, 0, 0, 1196, 1197, 7, 18, 0, 0, 1197, 134, 1, 0, 0, 0, 1198, 1199, 7, 5, 0, 0, 1199, 1200, 7, 10, 0, 0, 1200, 1201, 7, 15, 0, 0, 1201, 1202, 7, 19, 0, 0, 1202, 1203, 7, 2, 0, 0, 1203, 1204, 7, 4, 0, 0, 1204, 1205, 7, 16, 0, 0, 1205, 1206, 5, 95, 0, 0, 1206, 1207, 7, 16, 0, 0, 1207, 1208, 7, 24, 0, 0, 1208, 136, 1, 0, 0, 0, 1209, 1210, 7, 7, 0, 0, 1210, 1211, 7, 3, 0, 0, 1211, 1212, 7, 16, 0, 0, 1212, 1213, 7, 2, 0, 0, 1213, 1214, 7, 16, 0, 0, 1214, 1215, 7, 8, 0, 0, 1215, 1216, 7, 13, 0, 0, 1216, 1217, 7, 2, 0, 0, 1217, 138, 1, 0, 0, 0, 1218, 1219, 7, 7, 0, 0, 1219, 1220, 7, 3, 0, 0, 1220, 1221, 7, 23, 0, 0, 1221, 140, 1, 0, 0, 0, 1222, 1223, 7, 7, 0, 0, 1223, 1224, 7, 3, 0, 0, 1224, 1225, 7, 23, 0, 0, 1225, 1226, 5, 95, 0, 0, 1226, 1227, 7, 6, 0, 0, 1227, 1228, 7, 10, 0, 0, 1228, 1229, 7, 17, 0, 0, 1229, 1230, 7, 4, 0, 0, 1230, 142, 1, 0, 0, 0, 1231, 1232, 7, 7, 0, 0, 1232, 1233, 7, 3, 0, 0, 1233, 1234, 7, 23, 0, 0, 1234, 1235, 5, 95, 0, 0, 1235, 1236, 7, 13, 0, 0, 1236, 1237, 7, 8, 0, 0, 1237, 1238, 7, 5, 0, 0, 1238, 1239, 7, 4, 0, 0, 1239, 1240, 7, 10, 0, 0, 1240, 1241, 7, 1, 0, 0, 1241, 1242, 7, 2, 0, 0, 1242, 1243, 7, 5, 0, 0, 1243, 1244, 7, 10, 0, 0, 1244, 1245, 7, 15, 0, 0, 1245, 1246, 7, 7, 0, 0, 1246, 144, 1, 0, 0, 0, 1247, 1248, 7, 7, 0, 0, 1248, 1249, 7, 3, 0, 0, 1249, 1250, 7, 23, 0, 0, 1250, 1251, 5, 95, 0, 0, 1251, 1252, 7, 13, 0, 0, 1252, 1253, 7, 8, 0, 0, 1253, 1254, 7, 15, 0, 0, 1254, 1255, 7, 17, 0, 0, 1255, 1256, 7, 16, 0, 0, 1256, 1257, 7, 2, 0, 0, 1257, 146, 1, 0, 0, 0, 1258, 1259, 7, 7, 0, 0, 1259, 1260, 7, 3, 0, 0, 1260, 1261, 7, 23, 0, 0, 1261, 1262, 5, 95, 0, 0, 1262, 1263, 7, 10, 0, 0, 1263, 1264, 7, 12, 0, 0, 1264, 1265, 5, 95, 0, 0, 1265, 1266, 7, 23, 0, 0, 1266, 1267, 7, 2, 0, 0, 1267, 1268, 7, 3, 0, 0, 1268, 1269, 7, 4, 0, 0, 1269, 148, 1, 0, 0, 0, 1270, 1271, 7, 7, 0, 0, 1271, 1272, 7, 3, 0, 0, 1272, 1273, 7, 23, 0, 0, 1273, 1274, 5, 95, 0, 0, 1274, 1275, 7, 1, 0, 0, 1275, 1276, 7, 2, 0, 0, 1276, 1277, 7, 5, 0, 0, 1277, 1278, 7, 10, 0, 0, 1278, 1279, 7, 15, 0, 0, 1279, 1280, 7, 7, 0, 0, 1280, 150, 1, 0, 0, 0, 1281, 1282, 7, 6, 0, 0, 1282, 1283, 7, 10, 0, 0, 1283, 1284, 7, 17, 0, 0, 1284, 1285, 7, 4, 0, 0, 1285, 152, 1, 0, 0, 0, 1286, 1287, 7, 6, 0, 0, 1287, 1288, 7, 10, 0, 0, 1288, 1289, 7, 17, 0, 0, 1289, 1290, 7, 4, 0, 0, 1290, 1291, 5, 95, 0, 0, 1291, 1292, 7, 13, 0, 0, 1292, 1293, 7, 8, 0, 0, 1293, 1294, 7, 5, 0, 0, 1294, 1295, 7, 4, 0, 0, 1295, 1296, 7, 10, 0, 0, 1296, 1297, 7, 1, 0, 0, 1297, 1298, 7, 2, 0, 0, 1298, 1299, 7, 5, 0, 0, 1299, 1300, 7, 10, 0, 0, 1300, 1301, 7, 15, 0, 0, 1301, 1302, 7, 7, 0, 0, 1302, 154, 1, 0, 0, 0, 1303, 1304, 7, 6, 0, 0, 1304, 1305, 7, 10, 0, 0, 1305, 1306, 7, 17, 0, 0, 1306, 1307, 7, 4, 0, 0, 1307, 1308, 5, 95, 0, 0, 1308, 1309, 7, 13, 0, 0, 1309, 1310, 7, 8, 0, 0, 1310, 1311, 7, 15, 0, 0, 1311, 1312, 7, 17, 0, 0, 1312, 1313, 7, 16, 0, 0, 1313, 1314, 7, 2, 0, 0, 1314, 156, 1, 0, 0, 0, 1315, 1316, 7, 6, 0, 0, 1316, 1317, 7, 10, 0, 0, 1317, 1318, 7, 17, 0, 0, 1318, 1319, 7, 4, 0, 0, 1319, 1320, 5, 95, 0, 0, 1320, 1321, 7, 10, 0, 0, 1321, 1322, 7, 12, 0, 0, 1322, 1323, 5, 95, 0, 0, 1323, 1324, 7, 7, 0, 0, 1324, 1325, 7, 3, 0, 0, 1325, 1326, 7, 23, 0, 0, 1326, 158, 1, 0, 0, 0, 1327, 1328, 7, 6, 0, 0, 1328, 1329, 7, 10, 0, 0, 1329, 1330, 7, 17, 0, 0, 1330, 1331, 7, 4, 0, 0, 1331, 1332, 5, 95, 0, 0, 1332, 1333, 7, 1, 0, 0, 1333, 1334, 7, 2, 0, 0, 1334, 1335, 7, 5, 0, 0, 1335, 1336, 7, 10, 0, 0, 1336, 1337, 7, 15, 0, 0, 1337, 1338, 7, 7, 0, 0, 1338, 160, 1, 0, 0, 0, 1339, 1340, 7, 8, 0, 0, 1340, 1341, 7, 15, 0, 0, 1341, 1342, 7, 16, 0, 0, 1342, 1343, 7, 2, 0, 0, 1343, 1344, 7, 4, 0, 0, 1344, 1345, 7, 19, 0, 0, 1345, 1346, 7, 3, 0, 0, 1346, 1347, 7, 14, 0, 0, 1347, 162, 1, 0, 0, 0, 1348, 1349, 7, 13, 0, 0, 1349, 1350, 7, 8, 0, 0, 1350, 1351, 7, 5, 0, 0, 1351, 1352, 7, 4, 0, 0, 1352, 1353, 7, 10, 0, 0, 1353, 1354, 7, 1, 0, 0, 1354, 1355, 7, 2, 0, 0, 1355, 1356, 7, 5, 0, 0, 1356, 1357, 7, 10, 0, 0, 1357, 1358, 7, 15, 0, 0, 1358, 1359, 7, 7, 0, 0, 1359, 164, 1, 0, 0, 0, 1360, 1361, 7, 13, 0, 0, 1361, 1362, 7, 8, 0, 0, 1362, 1363, 7, 14, 0, 0, 1363, 1364, 7, 14, 0, 0, 1364, 1365, 7, 8, 0, 0, 1365, 1366, 7, 1, 0, 0, 1366, 1367, 7, 2, 0, 0, 1367, 1368, 7, 5, 0, 0, 1368, 1369, 7, 10, 0, 0, 1369, 1370, 7, 15, 0, 0, 1370, 1371, 7, 7, 0, 0, 1371, 166, 1, 0, 0, 0, 1372, 1373, 7, 13, 0, 0, 1373, 1374, 7, 8, 0, 0, 1374, 1375, 7, 15, 0, 0, 1375, 1376, 7, 17, 0, 0, 1376, 1377, 7, 16, 0, 0, 1377, 1378, 7, 2, 0, 0, 1378, 168, 1, 0, 0, 0, 1379, 1380, 7, 13, 0, 0, 1380, 1381, 7, 8, 0, 0, 1381, 1382, 7, 15, 0, 0, 1382, 1383, 7, 17, 0, 0, 1383, 1384, 7, 16, 0, 0, 1384, 1385, 7, 2, 0, 0, 1385, 1386, 5, 95, 0, 0, 1386, 1387, 7, 13, 0, 0, 1387, 1388, 7, 8, 0, 0, 1388, 1389, 7, 5, 0, 0, 1389, 1390, 7, 4, 0, 0, 1390, 1391, 7, 10, 0, 0, 1391, 1392, 7, 1, 0, 0, 1392, 1393, 7, 2, 0, 0, 1393, 1394, 7, 5, 0, 0, 1394, 1395, 7, 10, 0, 0, 1395, 1396, 7, 15, 0, 0, 1396, 1397, 7, 7, 0, 0, 1397, 170, 1, 0, 0, 0, 1398, 1399, 7, 13, 0, 0, 1399, 1400, 7, 8, 0, 0, 1400, 1401, 7, 15, 0, 0, 1401, 1402, 7, 17, 0, 0, 1402, 1403, 7, 16, 0, 0, 1403, 1404, 7, 2, 0, 0, 1404, 1405, 5, 95, 0, 0, 1405, 1406, 7, 10, 0, 0, 1406, 1407, 7, 12, 0, 0, 1407, 1408, 5, 95, 0, 0, 1408, 1409, 7, 7, 0, 0, 1409, 1410, 7, 3, 0, 0, 1410, 1411, 7, 23, 0, 0, 1411, 172, 1, 0, 0, 0, 1412, 1413, 7, 13, 0, 0, 1413, 1414, 7, 8, 0, 0, 1414, 1415, 7, 15, 0, 0, 1415, 1416, 7, 17, 0, 0, 1416, 1417, 7, 16, 0, 0, 1417, 1418, 7, 2, 0, 0, 1418, 1419, 5, 95, 0, 0, 1419, 1420, 7, 10, 0, 0, 1420, 1421, 7, 12, 0, 0, 1421, 1422, 5, 95, 0, 0, 1422, 1423, 7, 6, 0, 0, 1423, 1424, 7, 10, 0, 0, 1424, 1425, 7, 17, 0, 0, 1425, 1426, 7, 4, 0, 0, 1426, 174, 1, 0, 0, 0, 1427, 1428, 7, 13, 0, 0, 1428, 1429, 7, 8, 0, 0, 1429, 1430, 7, 15, 0, 0, 1430, 1431, 7, 17, 0, 0, 1431, 1432, 7, 16, 0, 0, 1432, 1433, 7, 2, 0, 0, 1433, 1434, 5, 95, 0, 0, 1434, 1435, 7, 1, 0, 0, 1435, 1436, 7, 2, 0, 0, 1436, 1437, 7, 5, 0, 0, 1437, 1438, 7, 10, 0, 0, 1438, 1439, 7, 15, 0, 0, 1439, 1440, 7, 7, 0, 0, 1440, 176, 1, 0, 0, 0, 1441, 1442, 7, 13, 0, 0, 1442, 1443, 7, 10, 0, 0, 1443, 1444, 7, 15, 0, 0, 1444, 1445, 7, 16, 0, 0, 1445, 1446, 7, 6, 0, 0, 1446, 178, 1, 0, 0, 0, 1447, 1448, 7, 13, 0, 0, 1448, 1449, 7, 10, 0, 0, 1449, 1450, 7, 15, 0, 0, 1450, 1451, 7, 16, 0, 0, 1451, 1452, 7, 6, 0, 0, 1452, 1453, 5, 95, 0, 0, 1453, 1454, 7, 10, 0, 0, 1454, 1455, 7, 12, 0, 0, 1455, 1456, 5, 95, 0, 0, 1456, 1457, 7, 23, 0, 0, 1457, 1458, 7, 2, 0, 0, 1458, 1459, 7, 3, 0, 0, 1459, 1460, 7, 4, 0, 0, 1460, 180, 1, 0, 0, 0, 1461, 1462, 7, 25, 0, 0, 1462, 1463, 7, 17, 0, 0, 1463, 1464, 7, 3, 0, 0, 1464, 1465, 7, 4, 0, 0, 1465, 1466, 7, 16, 0, 0, 1466, 1467, 7, 2, 0, 0, 1467, 1468, 7, 4, 0, 0, 1468, 182, 1, 0, 0, 0, 1469, 1470, 7, 1, 0, 0, 1470, 1471, 7, 2, 0, 0, 1471, 1472, 7, 5, 0, 0, 1472, 1473, 7, 10, 0, 0, 1473, 1474, 7, 15, 0, 0, 1474, 1475, 7, 7, 0, 0, 1475, 184, 1, 0, 0, 0, 1476, 1477, 7, 1, 0, 0, 1477, 1478, 7, 2, 0, 0, 1478, 1479, 7, 5, 0, 0, 1479, 1480, 7, 10, 0, 0, 1480, 1481, 7, 15, 0, 0, 1481, 1482, 7, 7, 0, 0, 1482, 1483, 5, 95, 0, 0, 1483, 1484, 7, 13, 0, 0, 1484, 1485, 7, 8, 0, 0, 1485, 1486, 7, 5, 0, 0, 1486, 1487, 7, 4, 0, 0, 1487, 1488, 7, 10, 0, 0, 1488, 1489, 7, 1, 0, 0, 1489, 1490, 7, 2, 0, 0, 1490, 1491, 7, 5, 0, 0, 1491, 1492, 7, 10, 0, 0, 1492, 1493, 7, 15, 0, 0, 1493, 1494, 7, 7, 0, 0, 1494, 186, 1, 0, 0, 0, 1495, 1496, 7, 1, 0, 0, 1496, 1497, 7, 2, 0, 0, 1497, 1498, 7, 5, 0, 0, 1498, 1499, 7, 10, 0, 0, 1499, 1500, 7, 15, 0, 0, 1500, 1501, 7, 7, 0, 0, 1501, 1502, 5, 95, 0, 0, 1502, 1503, 7, 10, 0, 0, 1503, 1504, 7, 12, 0, 0, 1504, 1505, 5, 95, 0, 0, 1505, 1506, 7, 13, 0, 0, 1506, 1507, 7, 8, 0, 0, 1507, 1508, 7, 15, 0, 0, 1508, 1509, 7, 17, 0, 0, 1509, 1510, 7, 16, 0, 0, 1510, 1511, 7, 2, 0, 0, 1511, 188, 1, 0, 0, 0, 1512, 1513, 7, 11, 0, 0, 1513, 1514, 7, 2, 0, 0, 1514, 1515, 7, 2, 0, 0, 1515, 1516, 7, 22, 0, 0, 1516, 190, 1, 0, 0, 0, 1517, 1518, 7, 11, 0, 0, 1518, 1519, 7, 2, 0, 0, 1519, 1520, 7, 2, 0, 0, 1520, 1521, 7, 22, 0, 0, 1521, 1522, 5, 95, 0, 0, 1522, 1523, 7, 10, 0, 0, 1523, 1524, 7, 12, 0, 0, 1524, 1525, 5, 95, 0, 0, 1525, 1526, 7, 23, 0, 0, 1526, 1527, 7, 2, 0, 0, 1527, 1528, 7, 3, 0, 0, 1528, 1529, 7, 4, 0, 0, 1529, 192, 1, 0, 0, 0, 1530, 1531, 7, 23, 0, 0, 1531, 1532, 7, 2, 0, 0, 1532, 1533, 7, 3, 0, 0, 1533, 1534, 7, 4, 0, 0, 1534, 194, 1, 0, 0, 0, 1535, 1536, 7, 23, 0, 0, 1536, 1537, 7, 2, 0, 0, 1537, 1538, 7, 3, 0, 0, 1538, 1539, 7, 4, 0, 0, 1539, 1540, 5, 95, 0, 0, 1540, 1541, 7, 13, 0, 0, 1541, 1542, 7, 10, 0, 0, 1542, 1543, 7, 15, 0, 0, 1543, 1544, 7, 16, 0, 0, 1544, 1545, 7, 6, 0, 0, 1545, 196, 1, 0, 0, 0, 1546, 1547, 7, 7, 0, 0, 1547, 1548, 7, 3, 0, 0, 1548, 1549, 7, 16, 0, 0, 1549, 1550, 7, 3, 0, 0, 1550, 1551, 7, 13, 0, 0, 1551, 1552, 7, 10, 0, 0, 1552, 1553, 7, 7, 0, 0, 1553, 1554, 7, 2, 0, 0, 1554, 1555, 7, 14, 0, 0, 1555, 198, 1, 0, 0, 0, 1556, 1557, 7, 14, 0, 0, 1557, 1558, 7, 10, 0, 0, 1558, 1559, 7, 10, 0, 0, 1559, 1560, 7, 22, 0, 0, 1560, 1561, 7, 17, 0, 0, 1561, 1562, 7, 18, 0, 0, 1562, 200, 1, 0, 0, 0, 1563, 1564, 7, 1, 0, 0, 1564, 1565, 7, 3, 0, 0, 1565, 1566, 7, 19, 0, 0, 1566, 1567, 7, 2, 0, 0, 1567, 1568, 7, 7, 0, 0, 1568, 1569, 7, 1, 0, 0, 1569, 1570, 7, 2, 0, 0, 1570, 1571, 7, 3, 0, 0, 1571, 1572, 7, 4, 0, 0, 1572, 1573, 7, 5, 0, 0, 1573, 1574, 7, 6, 0, 0, 1574, 202, 1, 0, 0, 0, 1575, 1576, 7, 8, 0, 0, 1576, 1577, 7, 15, 0, 0, 1577, 1578, 7, 16, 0, 0, 1578, 204, 1, 0, 0, 0, 1579, 1580, 7, 8, 0, 0, 1580, 1581, 7, 15, 0, 0, 1581, 1582, 7, 16, 0, 0, 1582, 1583, 7, 2, 0, 0, 1583, 1584, 7, 20, 0, 0, 1584, 1585, 7, 2, 0, 0, 1585, 1586, 7, 4, 0, 0, 1586, 206, 1, 0, 0, 0, 1587, 1588, 7, 7, 0, 0, 1588, 1589, 7, 10, 0, 0, 1589, 1590, 7, 17, 0, 0, 1590, 1591, 7, 9, 0, 0, 1591, 1592, 7, 14, 0, 0, 1592, 1593, 7, 2, 0, 0, 1593, 208, 1, 0, 0, 0, 1594, 1595, 7, 14, 0, 0, 1595, 1596, 7, 10, 0, 0, 1596, 1597, 7, 15, 0, 0, 1597, 1598, 7, 20, 0, 0, 1598, 210, 1, 0, 0, 0, 1599, 1600, 7, 12, 0, 0, 1600, 1601, 7, 14, 0, 0, 1601, 1602, 7, 10, 0, 0, 1602, 1603, 7, 3, 0, 0, 1603, 1604, 7, 16, 0, 0, 1604, 212, 1, 0, 0, 0, 1605, 1606, 7, 1, 0, 0, 1606, 1607, 7, 16, 0, 0, 1607, 1608, 7, 4, 0, 0, 1608, 1609, 7, 8, 0, 0, 1609, 1610, 7, 15, 0, 0, 1610, 1611, 7, 20, 0, 0, 1611, 214, 1, 0, 0, 0, 1612, 1613, 7, 9, 0, 0, 1613, 1614, 7, 10, 0, 0, 1614, 1615, 7, 10, 0, 0, 1615, 1616, 7, 14, 0, 0, 1616, 1617, 7, 2, 0, 0, 1617, 1618, 7, 3, 0, 0, 1618, 1619, 7, 15, 0, 0, 1619, 216, 1, 0, 0, 0, 1620, 1621, 5, 124, 0, 0, 1621, 218, 1, 0, 0, 0, 1622, 1623, 5, 44, 0, 0, 1623, 220, 1, 0, 0, 0, 1624, 1625, 5, 46, 0, 0, 1625, 222, 1, 0, 0, 0, 1626, 1627, 5, 61, 0, 0, 1627, 224, 1, 0, 0, 0, 1628, 1629, 5, 62, 0, 0, 1629, 226, 1, 0, 0, 0, 1630, 1631, 5, 60, 0, 0, 1631, 228, 1, 0, 0, 0, 1632, 1633, 5, 60, 0, 0, 1633, 1634, 5, 61, 0, 0, 1634, 230, 1, 0, 0, 0, 1635, 1636, 5, 62, 0, 0, 1636, 1637, 5, 61, 0, 0, 1637, 232, 1, 0, 0, 0, 1638, 1639, 5, 33, 0, 0, 1639, 1640, 5, 61, 0, 0, 1640, 234, 1, 0, 0, 0, 1641, 1642, 5, 43, 0, 0, 1642, 236, 1, 0, 0, 0, 1643, 1644, 5, 45, 0, 0, 1644, 238, 1, 0, 0, 0, 1645, 1646, 5, 42, 0, 0, 1646, 240, 1, 0, 0, 0, 1647, 1648, 5, 47, 0, 0, 1648, 242, 1, 0, 0, 0, 1649, 1650, 5, 37, 0, 0, 1650, 244, 1, 0, 0, 0, 1651, 1652, 5, 33, 0, 0, 1652, 246, 1, 0, 0, 0, 1653, 1654, 5, 58, 0, 0, 1654, 248, 1, 0, 0, 0, 1655, 1656, 5, 40, 0, 0, 1656, 250, 1, 0, 0, 0, 1657, 1658, 5, 41, 0, 0, 1658, 252, 1, 0, 0, 0, 1659, 1660, 5, 91, 0, 0, 1660, 254, 1, 0, 0, 0, 1661, 1662, 5, 93, 0, 0, 1662, 256, 1, 0, 0, 0, 1663, 1664, 5, 39, 0, 0, 1664, 258, 1, 0, 0, 0, 1665, 1666, 5, 34, 0, 0, 1666, 260, 1, 0, 0, 0, 1667, 1668, 5, 96, 0, 0, 1668, 262, 1, 0, 0, 0, 1669, 1670, 5, 126, 0, 0, 1670, 264, 1, 0, 0, 0, 1671, 1672, 5, 38, 0, 0, 1672, 266, 1, 0, 0, 0, 1673, 1674, 5, 94, 0, 0, 1674, 268, 1, 0, 0, 0, 1675, 1676, 7, 3, 0, 0, 1676, 1677, 7, 19, 0, 0, 1677, 1678, 7, 20, 0, 0, 1678, 270, 1, 0, 0, 0, 1679, 1680, 7, 5, 0, 0, 1680, 1681, 7, 10, 0, 0, 1681, 1682, 7, 17, 0, 0, 1682, 1683, 7, 15, 0, 0, 1683, 1684, 7, 16, 0, 0, 1684, 272, 1, 0, 0, 0, 1685, 1686, 7, 7, 0, 0, 1686, 1687, 7, 8, 0, 0, 1687, 1688, 7, 1, 0, 0, 1688, 1689, 7, 16, 0, 0, 1689, 1690, 7, 8, 0, 0, 1690, 1691, 7, 15, 0, 0, 1691, 1692, 7, 5, 0, 0, 1692, 1693, 7, 16, 0, 0, 1693, 1694, 5, 95, 0, 0, 1694, 1695, 7, 5, 0, 0, 1695, 1696, 7, 10, 0, 0, 1696, 1697, 7, 17, 0, 0, 1697, 1698, 7, 15, 0, 0, 1698, 1699, 7, 16, 0, 0, 1699, 274, 1, 0, 0, 0, 1700, 1701, 7, 2, 0, 0, 1701, 1702, 7, 1, 0, 0, 1702, 1703, 7, 16, 0, 0, 1703, 1704, 7, 7, 0, 0, 1704, 1705, 7, 5, 0, 0, 1705, 276, 1, 0, 0, 0, 1706, 1707, 7, 2, 0, 0, 1707, 1708, 7, 1, 0, 0, 1708, 1709, 7, 16, 0, 0, 1709, 1710, 7, 7, 0, 0, 1710, 1711, 7, 5, 0, 0, 1711, 1712, 5, 95, 0, 0, 1712, 1713, 7, 2, 0, 0, 1713, 1714, 7, 4, 0, 0, 1714, 1715, 7, 4, 0, 0, 1715, 1716, 7, 10, 0, 0, 1716, 1717, 7, 4, 0, 0, 1717, 278, 1, 0, 0, 0, 1718, 1719, 7, 13, 0, 0, 1719, 1720, 7, 3, 0, 0, 1720, 1721, 7, 21, 0, 0, 1721, 280, 1, 0, 0, 0, 1722, 1723, 7, 13, 0, 0, 1723, 1724, 7, 2, 0, 0, 1724, 1725, 7, 3, 0, 0, 1725, 1726, 7, 15, 0, 0, 1726, 282, 1, 0, 0, 0, 1727, 1728, 7, 13, 0, 0, 1728, 1729, 7, 2, 0, 0, 1729, 1730, 7, 7, 0, 0, 1730, 1731, 7, 8, 0, 0, 1731, 1732, 7, 3, 0, 0, 1732, 1733, 7, 15, 0, 0, 1733, 284, 1, 0, 0, 0, 1734, 1735, 7, 13, 0, 0, 1735, 1736, 7, 8, 0, 0, 1736, 1737, 7, 15, 0, 0, 1737, 286, 1, 0, 0, 0, 1738, 1739, 7, 13, 0, 0, 1739, 1740, 7, 10, 0, 0, 1740, 1741, 7, 7, 0, 0, 1741, 1742, 7, 2, 0, 0, 1742, 288, 1, 0, 0, 0, 1743, 1744, 7, 4, 0, 0, 1744, 1745, 7, 3, 0, 0, 1745, 1746, 7, 15, 0, 0, 1746, 1747, 7, 20, 0, 0, 1747, 1748, 7, 2, 0, 0, 1748, 290, 1, 0, 0, 0, 1749, 1750, 7, 1, 0, 0, 1750, 1751, 7, 16, 0, 0, 1751, 1752, 7, 7, 0, 0, 1752, 1753, 7, 2, 0, 0, 1753, 1754, 7, 19, 0, 0, 1754, 292, 1, 0, 0, 0, 1755, 1756, 7, 1, 0, 0, 1756, 1757, 7, 16, 0, 0, 1757, 1758, 7, 7, 0, 0, 1758, 1759, 7, 2, 0, 0, 1759, 1760, 7, 19, 0, 0, 1760, 1761, 7, 18, 0, 0, 1761, 294, 1, 0, 0, 0, 1762, 1763, 7, 1, 0, 0, 1763, 1764, 7, 17, 0, 0, 1764, 1765, 7, 13, 0, 0, 1765, 296, 1, 0, 0, 0, 1766, 1767, 7, 1, 0, 0, 1767, 1768, 7, 17, 0, 0, 1768, 1769, 7, 13, 0, 0, 1769, 1770, 7, 1, 0, 0, 1770, 1771, 7, 25, 0, 0, 1771, 298, 1, 0, 0, 0, 1772, 1773, 7, 19, 0, 0, 1773, 1774, 7, 3, 0, 0, 1774, 1775, 7, 4, 0, 0, 1775, 1776, 5, 95, 0, 0, 1776, 1777, 7, 1, 0, 0, 1777, 1778, 7, 3, 0, 0, 1778, 1779, 7, 13, 0, 0, 1779, 1780, 7, 18, 0, 0, 1780, 300, 1, 0, 0, 0, 1781, 1782, 7, 19, 0, 0, 1782, 1783, 7, 3, 0, 0, 1783, 1784, 7, 4, 0, 0, 1784, 1785, 5, 95, 0, 0, 1785, 1786, 7, 18, 0, 0, 1786, 1787, 7, 10, 0, 0, 1787, 1788, 7, 18, 0, 0, 1788, 302, 1, 0, 0, 0, 1789, 1790, 7, 1, 0, 0, 1790, 1791, 7, 16, 0, 0, 1791, 1792, 7, 7, 0, 0, 1792, 1793, 7, 7, 0, 0, 1793, 1794, 7, 2, 0, 0, 1794, 1795, 7, 19, 0, 0, 1795, 1796, 5, 95, 0, 0, 1796, 1797, 7, 1, 0, 0, 1797, 1798, 7, 3, 0, 0, 1798, 1799, 7, 13, 0, 0, 1799, 1800, 7, 18, 0, 0, 1800, 304, 1, 0, 0, 0, 1801, 1802, 7, 1, 0, 0, 1802, 1803, 7, 16, 0, 0, 1803, 1804, 7, 7, 0, 0, 1804, 1805, 7, 7, 0, 0, 1805, 1806, 7, 2, 0, 0, 1806, 1807, 7, 19, 0, 0, 1807, 1808, 5, 95, 0, 0, 1808, 1809, 7, 18, 0, 0, 1809, 1810, 7, 10, 0, 0, 1810, 1811, 7, 18, 0, 0, 1811, 306, 1, 0, 0, 0, 1812, 1813, 7, 18, 0, 0, 1813, 1814, 7, 2, 0, 0, 1814, 1815, 7, 4, 0, 0, 1815, 1816, 7, 5, 0, 0, 1816, 1817, 7, 2, 0, 0, 1817, 1818, 7, 15, 0, 0, 1818, 1819, 7, 16, 0, 0, 1819, 1820, 7, 8, 0, 0, 1820, 1821, 7, 14, 0, 0, 1821, 1822, 7, 2, 0, 0, 1822, 308, 1, 0, 0, 0, 1823, 1824, 7, 16, 0, 0, 1824, 1825, 7, 3, 0, 0, 1825, 1826, 7, 22, 0, 0, 1826, 1827, 7, 2, 0, 0, 1827, 310, 1, 0, 0, 0, 1828, 1829, 7, 12, 0, 0, 1829, 1830, 7, 8, 0, 0, 1830, 1831, 7, 4, 0, 0, 1831, 1832, 7, 1, 0, 0, 1832, 1833, 7, 16, 0, 0, 1833, 312, 1, 0, 0, 0, 1834, 1835, 7, 14, 0, 0, 1835, 1836, 7, 3, 0, 0, 1836, 1837, 7, 1, 0, 0, 1837, 1838, 7, 16, 0, 0, 1838, 314, 1, 0, 0, 0, 1839, 1840, 7, 14, 0, 0, 1840, 1841, 7, 8, 0, 0, 1841, 1842, 7, 1, 0, 0, 1842, 1843, 7, 16, 0, 0, 1843, 316, 1, 0, 0, 0, 1844, 1845, 7, 19, 0, 0, 1845, 1846, 7, 3, 0, 0, 1846, 1847, 7, 14, 0, 0, 1847, 1848, 7, 17, 0, 0, 1848, 1849, 7, 2, 0, 0, 1849, 1850, 7, 1, 0, 0, 1850, 318, 1, 0, 0, 0, 1851, 1852, 7, 2, 0, 0, 1852, 1853, 7, 3, 0, 0, 1853, 1854, 7, 4, 0, 0, 1854, 1855, 7, 14, 0, 0, 1855, 1856, 7, 8, 0, 0, 1856, 1857, 7, 2, 0, 0, 1857, 1858, 7, 1, 0, 0, 1858, 1859, 7, 16, 0, 0, 1859, 320, 1, 0, 0, 0, 1860, 1861, 7, 2, 0, 0, 1861, 1862, 7, 3, 0, 0, 1862, 1863, 7, 4, 0, 0, 1863, 1864, 7, 14, 0, 0, 1864, 1865, 7, 8, 0, 0, 1865, 1866, 7, 2, 0, 0, 1866, 1867, 7, 1, 0, 0, 1867, 1868, 7, 16, 0, 0, 1868, 1869, 5, 95, 0, 0, 1869, 1870, 7, 16, 0, 0, 1870, 1871, 7, 8, 0, 0, 1871, 1872, 7, 13, 0, 0, 1872, 1873, 7, 2, 0, 0, 1873, 322, 1, 0, 0, 0, 1874, 1875, 7, 14, 0, 0, 1875, 1876, 7, 3, 0, 0, 1876, 1877, 7, 16, 0, 0, 1877, 1878, 7, 2, 0, 0, 1878, 1879, 7, 1, 0, 0, 1879, 1880, 7, 16, 0, 0, 1880, 324, 1, 0, 0, 0, 1881, 1882, 7, 14, 0, 0, 1882, 1883, 7, 3, 0, 0, 1883, 1884, 7, 16, 0, 0, 1884, 1885, 7, 2, 0, 0, 1885, 1886, 7, 1, 0, 0, 1886, 1887, 7, 16, 0, 0, 1887, 1888, 5, 95, 0, 0, 1888, 1889, 7, 16, 0, 0, 1889, 1890, 7, 8, 0, 0, 1890, 1891, 7, 13, 0, 0, 1891, 1892, 7, 2, 0, 0, 1892, 326, 1, 0, 0, 0, 1893, 1894, 7, 18, 0, 0, 1894, 1895, 7, 2, 0, 0, 1895, 1896, 7, 4, 0, 0, 1896, 1897, 5, 95, 0, 0, 1897, 1898, 7, 7, 0, 0, 1898, 1899, 7, 3, 0, 0, 1899, 1900, 7, 23, 0, 0, 1900, 328, 1, 0, 0, 0, 1901, 1902, 7, 18, 0, 0, 1902, 1903, 7, 2, 0, 0, 1903, 1904, 7, 4, 0, 0, 1904, 1905, 5, 95, 0, 0, 1905, 1906, 7, 6, 0, 0, 1906, 1907, 7, 10, 0, 0, 1907, 1908, 7, 17, 0, 0, 1908, 1909, 7, 4, 0, 0, 1909, 330, 1, 0, 0, 0, 1910, 1911, 7, 18, 0, 0, 1911, 1912, 7, 2, 0, 0, 1912, 1913, 7, 4, 0, 0, 1913, 1914, 5, 95, 0, 0, 1914, 1915, 7, 13, 0, 0, 1915, 1916, 7, 8, 0, 0, 1916, 1917, 7, 15, 0, 0, 1917, 1918, 7, 17, 0, 0, 1918, 1919, 7, 16, 0, 0, 1919, 1920, 7, 2, 0, 0, 1920, 332, 1, 0, 0, 0, 1921, 1922, 7, 18, 0, 0, 1922, 1923, 7, 2, 0, 0, 1923, 1924, 7, 4, 0, 0, 1924, 1925, 5, 95, 0, 0, 1925, 1926, 7, 1, 0, 0, 1926, 1927, 7, 2, 0, 0, 1927, 1928, 7, 5, 0, 0, 1928, 1929, 7, 10, 0, 0, 1929, 1930, 7, 15, 0, 0, 1930, 1931, 7, 7, 0, 0, 1931, 334, 1, 0, 0, 0, 1932, 1933, 7, 4, 0, 0, 1933, 1934, 7, 3, 0, 0, 1934, 1935, 7, 16, 0, 0, 1935, 1936, 7, 2, 0, 0, 1936, 336, 1, 0, 0, 0, 1937, 1938, 7, 1, 0, 0, 1938, 1939, 7, 18, 0, 0, 1939, 1940, 7, 3, 0, 0, 1940, 1941, 7, 4, 0, 0, 1941, 1942, 7, 22, 0, 0, 1942, 1943, 7, 14, 0, 0, 1943, 1944, 7, 8, 0, 0, 1944, 1945, 7, 15, 0, 0, 1945, 1946, 7, 2, 0, 0, 1946, 338, 1, 0, 0, 0, 1947, 1948, 7, 5, 0, 0, 1948, 340, 1, 0, 0, 0, 1949, 1950, 7, 7, 0, 0, 1950, 1951, 7, 5, 0, 0, 1951, 342, 1, 0, 0, 0, 1952, 1953, 7, 3, 0, 0, 1953, 1954, 7, 9, 0, 0, 1954, 1955, 7, 1, 0, 0, 1955, 344, 1, 0, 0, 0, 1956, 1957, 7, 5, 0, 0, 1957, 1958, 7, 9, 0, 0, 1958, 1959, 7, 4, 0, 0, 1959, 1960, 7, 16, 0, 0, 1960, 346, 1, 0, 0, 0, 1961, 1962, 7, 5, 0, 0, 1962, 1963, 7, 2, 0, 0, 1963, 1964, 7, 8, 0, 0, 1964, 1965, 7, 14, 0, 0, 1965, 348, 1, 0, 0, 0, 1966, 1967, 7, 5, 0, 0, 1967, 1968, 7, 2, 0, 0, 1968, 1969, 7, 8, 0, 0, 1969, 1970, 7, 14, 0, 0, 1970, 1971, 7, 8, 0, 0, 1971, 1972, 7, 15, 0, 0, 1972, 1973, 7, 20, 0, 0, 1973, 350, 1, 0, 0, 0, 1974, 1975, 7, 5, 0, 0, 1975, 1976, 7, 10, 0, 0, 1976, 1977, 7, 15, 0, 0, 1977, 1978, 7, 19, 0, 0, 1978, 352, 1, 0, 0, 0, 1979, 1980, 7, 5, 0, 0, 1980, 1981, 7, 4, 0, 0, 1981, 1982, 7, 5, 0, 0, 1982, 1983, 5, 51, 0, 0, 1983, 1984, 5, 50, 0, 0, 1984, 354, 1, 0, 0, 0, 1985, 1986, 7, 2, 0, 0, 1986, 356, 1, 0, 0, 0, 1987, 1988, 7, 2, 0, 0, 1988, 1989, 7, 21, 0, 0, 1989, 1990, 7, 18, 0, 0, 1990, 358, 1, 0, 0, 0, 1991, 1992, 7, 12, 0, 0, 1992, 1993, 7, 14, 0, 0, 1993, 1994, 7, 10, 0, 0, 1994, 1995, 7, 10, 0, 0, 1995, 1996, 7, 4, 0, 0, 1996, 360, 1, 0, 0, 0, 1997, 1998, 7, 14, 0, 0, 1998, 1999, 7, 15, 0, 0, 1999, 362, 1, 0, 0, 0, 2000, 2001, 7, 14, 0, 0, 2001, 2002, 7, 10, 0, 0, 2002, 2003, 7, 20, 0, 0, 2003, 364, 1, 0, 0, 0, 2004, 2005, 7, 14, 0, 0, 2005, 2006, 7, 10, 0, 0, 2006, 2007, 7, 20, 0, 0, 2007, 2008, 5, 49, 0, 0, 2008, 2009, 5, 48, 0, 0, 2009, 366, 1, 0, 0, 0, 2010, 2011, 7, 14, 0, 0, 2011, 2012, 7, 10, 0, 0, 2012, 2013, 7, 20, 0, 0, 2013, 2014, 5, 50, 0, 0, 2014, 368, 1, 0, 0, 0, 2015, 2016, 7, 13, 0, 0, 2016, 2017, 7, 10, 0, 0, 2017, 2018, 7, 7, 0, 0, 2018, 370, 1, 0, 0, 0, 2019, 2020, 7, 18, 0, 0, 2020, 2021, 7, 8, 0, 0, 2021, 372, 1, 0, 0, 0, 2022, 2023, 7, 18, 0, 0, 2023, 2024, 7, 10, 0, 0, 2024, 2025, 7, 1, 0, 0, 2025, 2026, 7, 8, 0, 0, 2026, 2027, 7, 16, 0, 0, 2027, 2028, 7, 8, 0, 0, 2028, 2029, 7, 10, 0, 0, 2029, 2030, 7, 15, 0, 0, 2030, 374, 1, 0, 0, 0, 2031, 2032, 7, 18, 0, 0, 2032, 2033, 7, 10, 0, 0, 2033, 2034, 7, 11, 0, 0, 2034, 376, 1, 0, 0, 0, 2035, 2036, 7, 18, 0, 0, 2036, 2037, 7, 10, 0, 0, 2037, 2038, 7, 11, 0, 0, 2038, 2039, 7, 2, 0, 0, 2039, 2040, 7, 4, 0, 0, 2040, 378, 1, 0, 0, 0, 2041, 2042, 7, 4, 0, 0, 2042, 2043, 7, 3, 0, 0, 2043, 2044, 7, 15, 0, 0, 2044, 2045, 7, 7, 0, 0, 2045, 380, 1, 0, 0, 0, 2046, 2047, 7, 4, 0, 0, 2047, 2048, 7, 10, 0, 0, 2048, 2049, 7, 17, 0, 0, 2049, 2050, 7, 15, 0, 0, 2050, 2051, 7, 7, 0, 0, 2051, 382, 1, 0, 0, 0, 2052, 2053, 7, 1, 0, 0, 2053, 2054, 7, 8, 0, 0, 2054, 2055, 7, 20, 0, 0, 2055, 2056, 7, 15, 0, 0, 2056, 384, 1, 0, 0, 0, 2057, 2058, 7, 1, 0, 0, 2058, 2059, 7, 25, 0, 0, 2059, 2060, 7, 4, 0, 0, 2060, 2061, 7, 16, 0, 0, 2061, 386, 1, 0, 0, 0, 2062, 2063, 7, 16, 0, 0, 2063, 2064, 7, 4, 0, 0, 2064, 2065, 7, 17, 0, 0, 2065, 2066, 7, 15, 0, 0, 2066, 2067, 7, 5, 0, 0, 2067, 2068, 7, 3, 0, 0, 2068, 2069, 7, 16, 0, 0, 2069, 2070, 7, 2, 0, 0, 2070, 388, 1, 0, 0, 0, 2071, 2072, 7, 3, 0, 0, 2072, 2073, 7, 5, 0, 0, 2073, 2074, 7, 10, 0, 0, 2074, 2075, 7, 1, 0, 0, 2075, 390, 1, 0, 0, 0, 2076, 2077, 7, 3, 0, 0, 2077, 2078, 7, 1, 0, 0, 2078, 2079, 7, 8, 0, 0, 2079, 2080, 7, 15, 0, 0, 2080, 392, 1, 0, 0, 0, 2081, 2082, 7, 3, 0, 0, 2082, 2083, 7, 16, 0, 0, 2083, 2084, 7, 3, 0, 0, 2084, 2085, 7, 15, 0, 0, 2085, 394, 1, 0, 0, 0, 2086, 2087, 7, 3, 0, 0, 2087, 2088, 7, 16, 0, 0, 2088, 2089, 7, 3, 0, 0, 2089, 2090, 7, 15, 0, 0, 2090, 2091, 5, 50, 0, 0, 2091, 396, 1, 0, 0, 0, 2092, 2093, 7, 5, 0, 0, 2093, 2094, 7, 10, 0, 0, 2094, 2095, 7, 1, 0, 0, 2095, 398, 1, 0, 0, 0, 2096, 2097, 7, 5, 0, 0, 2097, 2098, 7, 10, 0, 0, 2098, 2099, 7, 16, 0, 0, 2099, 400, 1, 0, 0, 0, 2100, 2101, 7, 7, 0, 0, 2101, 2102, 7, 2, 0, 0, 2102, 2103, 7, 20, 0, 0, 2103, 2104, 7, 4, 0, 0, 2104, 2105, 7, 2, 0, 0, 2105, 2106, 7, 2, 0, 0, 2106, 2107, 7, 1, 0, 0, 2107, 402, 1, 0, 0, 0, 2108, 2109, 7, 4, 0, 0, 2109, 2110, 7, 3, 0, 0, 2110, 2111, 7, 7, 0, 0, 2111, 2112, 7, 8, 0, 0, 2112, 2113, 7, 3, 0, 0, 2113, 2114, 7, 15, 0, 0, 2114, 2115, 7, 1, 0, 0, 2115, 404, 1, 0, 0, 0, 2116, 2117, 7, 1, 0, 0, 2117, 2118, 7, 8, 0, 0, 2118, 2119, 7, 15, 0, 0, 2119, 406, 1, 0, 0, 0, 2120, 2121, 7, 16, 0, 0, 2121, 2122, 7, 3, 0, 0, 2122, 2123, 7, 15, 0, 0, 2123, 408, 1, 0, 0, 0, 2124, 2125, 7, 3, 0, 0, 2125, 2126, 7, 7, 0, 0, 2126, 2127, 7, 7, 0, 0, 2127, 2128, 7, 7, 0, 0, 2128, 2129, 7, 3, 0, 0, 2129, 2130, 7, 16, 0, 0, 2130, 2131, 7, 2, 0, 0, 2131, 410, 1, 0, 0, 0, 2132, 2133, 7, 3, 0, 0, 2133, 2134, 7, 7, 0, 0, 2134, 2135, 7, 7, 0, 0, 2135, 2136, 7, 16, 0, 0, 2136, 2137, 7, 8, 0, 0, 2137, 2138, 7, 13, 0, 0, 2138, 2139, 7, 2, 0, 0, 2139, 412, 1, 0, 0, 0, 2140, 2141, 7, 5, 0, 0, 2141, 2142, 7, 17, 0, 0, 2142, 2143, 7, 4, 0, 0, 2143, 2144, 7, 7, 0, 0, 2144, 2145, 7, 3, 0, 0, 2145, 2146, 7, 16, 0, 0, 2146, 2147, 7, 2, 0, 0, 2147, 414, 1, 0, 0, 0, 2148, 2149, 7, 5, 0, 0, 2149, 2150, 7, 17, 0, 0, 2150, 2151, 7, 4, 0, 0, 2151, 2152, 7, 4, 0, 0, 2152, 2153, 7, 2, 0, 0, 2153, 2154, 7, 15, 0, 0, 2154, 2155, 7, 16, 0, 0, 2155, 2156, 5, 95, 0, 0, 2156, 2157, 7, 7, 0, 0, 2157, 2158, 7, 3, 0, 0, 2158, 2159, 7, 16, 0, 0, 2159, 2160, 7, 2, 0, 0, 2160, 416, 1, 0, 0, 0, 2161, 2162, 7, 5, 0, 0, 2162, 2163, 7, 17, 0, 0, 2163, 2164, 7, 4, 0, 0, 2164, 2165, 7, 4, 0, 0, 2165, 2166, 7, 2, 0, 0, 2166, 2167, 7, 15, 0, 0, 2167, 2168, 7, 16, 0, 0, 2168, 2169, 5, 95, 0, 0, 2169, 2170, 7, 16, 0, 0, 2170, 2171, 7, 8, 0, 0, 2171, 2172, 7, 13, 0, 0, 2172, 2173, 7, 2, 0, 0, 2173, 418, 1, 0, 0, 0, 2174, 2175, 7, 5, 0, 0, 2175, 2176, 7, 17, 0, 0, 2176, 2177, 7, 4, 0, 0, 2177, 2178, 7, 4, 0, 0, 2178, 2179, 7, 2, 0, 0, 2179, 2180, 7, 15, 0, 0, 2180, 2181, 7, 16, 0, 0, 2181, 2182, 5, 95, 0, 0, 2182, 2183, 7, 16, 0, 0, 2183, 2184, 7, 8, 0, 0, 2184, 2185, 7, 13, 0, 0, 2185, 2186, 7, 2, 0, 0, 2186, 2187, 7, 1, 0, 0, 2187, 2188, 7, 16, 0, 0, 2188, 2189, 7, 3, 0, 0, 2189, 2190, 7, 13, 0, 0, 2190, 2191, 7, 18, 0, 0, 2191, 420, 1, 0, 0, 0, 2192, 2193, 7, 5, 0, 0, 2193, 2194, 7, 17, 0, 0, 2194, 2195, 7, 4, 0, 0, 2195, 2196, 7, 16, 0, 0, 2196, 2197, 7, 8, 0, 0, 2197, 2198, 7, 13, 0, 0, 2198, 2199, 7, 2, 0, 0, 2199, 422, 1, 0, 0, 0, 2200, 2201, 7, 7, 0, 0, 2201, 2202, 7, 3, 0, 0, 2202, 2203, 7, 16, 0, 0, 2203, 2204, 7, 2, 0, 0, 2204, 424, 1, 0, 0, 0, 2205, 2206, 7, 7, 0, 0, 2206, 2207, 7, 3, 0, 0, 2207, 2208, 7, 16, 0, 0, 2208, 2209, 7, 2, 0, 0, 2209, 2210, 7, 7, 0, 0, 2210, 2211, 7, 8, 0, 0, 2211, 2212, 7, 12, 0, 0, 2212, 2213, 7, 12, 0, 0, 2213, 426, 1, 0, 0, 0, 2214, 2215, 7, 7, 0, 0, 2215, 2216, 7, 3, 0, 0, 2216, 2217, 7, 16, 0, 0, 2217, 2218, 7, 2, 0, 0, 2218, 2219, 5, 95, 0, 0, 2219, 2220, 7, 3, 0, 0, 2220, 2221, 7, 7, 0, 0, 2221, 2222, 7, 7, 0, 0, 2222, 428, 1, 0, 0, 0, 2223, 2224, 7, 7, 0, 0, 2224, 2225, 7, 3, 0, 0, 2225, 2226, 7, 16, 0, 0, 2226, 2227, 7, 2, 0, 0, 2227, 2228, 5, 95, 0, 0, 2228, 2229, 7, 12, 0, 0, 2229, 2230, 7, 10, 0, 0, 2230, 2231, 7, 4, 0, 0, 2231, 2232, 7, 13, 0, 0, 2232, 2233, 7, 3, 0, 0, 2233, 2234, 7, 16, 0, 0, 2234, 430, 1, 0, 0, 0, 2235, 2236, 7, 7, 0, 0, 2236, 2237, 7, 3, 0, 0, 2237, 2238, 7, 16, 0, 0, 2238, 2239, 7, 2, 0, 0, 2239, 2240, 5, 95, 0, 0, 2240, 2241, 7, 1, 0, 0, 2241, 2242, 7, 17, 0, 0, 2242, 2243, 7, 9, 0, 0, 2243, 432, 1, 0, 0, 0, 2244, 2245, 7, 7, 0, 0, 2245, 2246, 7, 3, 0, 0, 2246, 2247, 7, 23, 0, 0, 2247, 2248, 7, 15, 0, 0, 2248, 2249, 7, 3, 0, 0, 2249, 2250, 7, 13, 0, 0, 2250, 2251, 7, 2, 0, 0, 2251, 434, 1, 0, 0, 0, 2252, 2253, 7, 7, 0, 0, 2253, 2254, 7, 3, 0, 0, 2254, 2255, 7, 23, 0, 0, 2255, 2256, 7, 10, 0, 0, 2256, 2257, 7, 12, 0, 0, 2257, 2258, 7, 13, 0, 0, 2258, 2259, 7, 10, 0, 0, 2259, 2260, 7, 15, 0, 0, 2260, 2261, 7, 16, 0, 0, 2261, 2262, 7, 6, 0, 0, 2262, 436, 1, 0, 0, 0, 2263, 2264, 7, 7, 0, 0, 2264, 2265, 7, 3, 0, 0, 2265, 2266, 7, 23, 0, 0, 2266, 2267, 7, 10, 0, 0, 2267, 2268, 7, 12, 0, 0, 2268, 2269, 7, 11, 0, 0, 2269, 2270, 7, 2, 0, 0, 2270, 2271, 7, 2, 0, 0, 2271, 2272, 7, 22, 0, 0, 2272, 438, 1, 0, 0, 0, 2273, 2274, 7, 7, 0, 0, 2274, 2275, 7, 3, 0, 0, 2275, 2276, 7, 23, 0, 0, 2276, 2277, 7, 10, 0, 0, 2277, 2278, 7, 12, 0, 0, 2278, 2279, 7, 23, 0, 0, 2279, 2280, 7, 2, 0, 0, 2280, 2281, 7, 3, 0, 0, 2281, 2282, 7, 4, 0, 0, 2282, 440, 1, 0, 0, 0, 2283, 2284, 7, 7, 0, 0, 2284, 2285, 7, 3, 0, 0, 2285, 2286, 7, 23, 0, 0, 2286, 2287, 5, 95, 0, 0, 2287, 2288, 7, 10, 0, 0, 2288, 2289, 7, 12, 0, 0, 2289, 2290, 5, 95, 0, 0, 2290, 2291, 7, 13, 0, 0, 2291, 2292, 7, 10, 0, 0, 2292, 2293, 7, 15, 0, 0, 2293, 2294, 7, 16, 0, 0, 2294, 2295, 7, 6, 0, 0, 2295, 442, 1, 0, 0, 0, 2296, 2297, 7, 7, 0, 0, 2297, 2298, 7, 3, 0, 0, 2298, 2299, 7, 23, 0, 0, 2299, 2300, 5, 95, 0, 0, 2300, 2301, 7, 10, 0, 0, 2301, 2302, 7, 12, 0, 0, 2302, 2303, 5, 95, 0, 0, 2303, 2304, 7, 11, 0, 0, 2304, 2305, 7, 2, 0, 0, 2305, 2306, 7, 2, 0, 0, 2306, 2307, 7, 22, 0, 0, 2307, 444, 1, 0, 0, 0, 2308, 2309, 7, 2, 0, 0, 2309, 2310, 7, 21, 0, 0, 2310, 2311, 7, 16, 0, 0, 2311, 2312, 7, 4, 0, 0, 2312, 2313, 7, 3, 0, 0, 2313, 2314, 7, 5, 0, 0, 2314, 2315, 7, 16, 0, 0, 2315, 446, 1, 0, 0, 0, 2316, 2317, 7, 12, 0, 0, 2317, 2318, 7, 4, 0, 0, 2318, 2319, 7, 10, 0, 0, 2319, 2320, 7, 13, 0, 0, 2320, 2321, 5, 95, 0, 0, 2321, 2322, 7, 7, 0, 0, 2322, 2323, 7, 3, 0, 0, 2323, 2324, 7, 23, 0, 0, 2324, 2325, 7, 1, 0, 0, 2325, 448, 1, 0, 0, 0, 2326, 2327, 7, 12, 0, 0, 2327, 2328, 7, 4, 0, 0, 2328, 2329, 7, 10, 0, 0, 2329, 2330, 7, 13, 0, 0, 2330, 2331, 5, 95, 0, 0, 2331, 2332, 7, 17, 0, 0, 2332, 2333, 7, 15, 0, 0, 2333, 2334, 7, 8, 0, 0, 2334, 2335, 7, 21, 0, 0, 2335, 2336, 7, 16, 0, 0, 2336, 2337, 7, 8, 0, 0, 2337, 2338, 7, 13, 0, 0, 2338, 2339, 7, 2, 0, 0, 2339, 450, 1, 0, 0, 0, 2340, 2341, 7, 20, 0, 0, 2341, 2342, 7, 2, 0, 0, 2342, 2343, 7, 16, 0, 0, 2343, 2344, 5, 95, 0, 0, 2344, 2345, 7, 12, 0, 0, 2345, 2346, 7, 10, 0, 0, 2346, 2347, 7, 4, 0, 0, 2347, 2348, 7, 13, 0, 0, 2348, 2349, 7, 3, 0, 0, 2349, 2350, 7, 16, 0, 0, 2350, 452, 1, 0, 0, 0, 2351, 2352, 7, 14, 0, 0, 2352, 2353, 7, 3, 0, 0, 2353, 2354, 7, 1, 0, 0, 2354, 2355, 7, 16, 0, 0, 2355, 2356, 5, 95, 0, 0, 2356, 2357, 7, 7, 0, 0, 2357, 2358, 7, 3, 0, 0, 2358, 2359, 7, 23, 0, 0, 2359, 454, 1, 0, 0, 0, 2360, 2361, 7, 14, 0, 0, 2361, 2362, 7, 10, 0, 0, 2362, 2363, 7, 5, 0, 0, 2363, 2364, 7, 3, 0, 0, 2364, 2365, 7, 14, 0, 0, 2365, 2366, 7, 16, 0, 0, 2366, 2367, 7, 8, 0, 0, 2367, 2368, 7, 13, 0, 0, 2368, 2369, 7, 2, 0, 0, 2369, 456, 1, 0, 0, 0, 2370, 2371, 7, 14, 0, 0, 2371, 2372, 7, 10, 0, 0, 2372, 2373, 7, 5, 0, 0, 2373, 2374, 7, 3, 0, 0, 2374, 2375, 7, 14, 0, 0, 2375, 2376, 7, 16, 0, 0, 2376, 2377, 7, 8, 0, 0, 2377, 2378, 7, 13, 0, 0, 2378, 2379, 7, 2, 0, 0, 2379, 2380, 7, 1, 0, 0, 2380, 2381, 7, 16, 0, 0, 2381, 2382, 7, 3, 0, 0, 2382, 2383, 7, 13, 0, 0, 2383, 2384, 7, 18, 0, 0, 2384, 458, 1, 0, 0, 0, 2385, 2386, 7, 13, 0, 0, 2386, 2387, 7, 3, 0, 0, 2387, 2388, 7, 22, 0, 0, 2388, 2389, 7, 2, 0, 0, 2389, 2390, 7, 7, 0, 0, 2390, 2391, 7, 3, 0, 0, 2391, 2392, 7, 16, 0, 0, 2392, 2393, 7, 2, 0, 0, 2393, 460, 1, 0, 0, 0, 2394, 2395, 7, 13, 0, 0, 2395, 2396, 7, 3, 0, 0, 2396, 2397, 7, 22, 0, 0, 2397, 2398, 7, 2, 0, 0, 2398, 2399, 7, 16, 0, 0, 2399, 2400, 7, 8, 0, 0, 2400, 2401, 7, 13, 0, 0, 2401, 2402, 7, 2, 0, 0, 2402, 462, 1, 0, 0, 0, 2403, 2404, 7, 13, 0, 0, 2404, 2405, 7, 10, 0, 0, 2405, 2406, 7, 15, 0, 0, 2406, 2407, 7, 16, 0, 0, 2407, 2408, 7, 6, 0, 0, 2408, 2409, 7, 15, 0, 0, 2409, 2410, 7, 3, 0, 0, 2410, 2411, 7, 13, 0, 0, 2411, 2412, 7, 2, 0, 0, 2412, 464, 1, 0, 0, 0, 2413, 2414, 7, 15, 0, 0, 2414, 2415, 7, 10, 0, 0, 2415, 2416, 7, 11, 0, 0, 2416, 466, 1, 0, 0, 0, 2417, 2418, 7, 18, 0, 0, 2418, 2419, 7, 2, 0, 0, 2419, 2420, 7, 4, 0, 0, 2420, 2421, 7, 8, 0, 0, 2421, 2422, 7, 10, 0, 0, 2422, 2423, 7, 7, 0, 0, 2423, 2424, 5, 95, 0, 0, 2424, 2425, 7, 3, 0, 0, 2425, 2426, 7, 7, 0, 0, 2426, 2427, 7, 7, 0, 0, 2427, 468, 1, 0, 0, 0, 2428, 2429, 7, 18, 0, 0, 2429, 2430, 7, 2, 0, 0, 2430, 2431, 7, 4, 0, 0, 2431, 2432, 7, 8, 0, 0, 2432, 2433, 7, 10, 0, 0, 2433, 2434, 7, 7, 0, 0, 2434, 2435, 5, 95, 0, 0, 2435, 2436, 7, 7, 0, 0, 2436, 2437, 7, 8, 0, 0, 2437, 2438, 7, 12, 0, 0, 2438, 2439, 7, 12, 0, 0, 2439, 470, 1, 0, 0, 0, 2440, 2441, 7, 1, 0, 0, 2441, 2442, 7, 2, 0, 0, 2442, 2443, 7, 5, 0, 0, 2443, 2444, 5, 95, 0, 0, 2444, 2445, 7, 16, 0, 0, 2445, 2446, 7, 10, 0, 0, 2446, 2447, 5, 95, 0, 0, 2447, 2448, 7, 16, 0, 0, 2448, 2449, 7, 8, 0, 0, 2449, 2450, 7, 13, 0, 0, 2450, 2451, 7, 2, 0, 0, 2451, 472, 1, 0, 0, 0, 2452, 2453, 7, 1, 0, 0, 2453, 2454, 7, 16, 0, 0, 2454, 2455, 7, 4, 0, 0, 2455, 2456, 5, 95, 0, 0, 2456, 2457, 7, 16, 0, 0, 2457, 2458, 7, 10, 0, 0, 2458, 2459, 5, 95, 0, 0, 2459, 2460, 7, 7, 0, 0, 2460, 2461, 7, 3, 0, 0, 2461, 2462, 7, 16, 0, 0, 2462, 2463, 7, 2, 0, 0, 2463, 474, 1, 0, 0, 0, 2464, 2465, 7, 1, 0, 0, 2465, 2466, 7, 17, 0, 0, 2466, 2467, 7, 9, 0, 0, 2467, 2468, 7, 7, 0, 0, 2468, 2469, 7, 3, 0, 0, 2469, 2470, 7, 16, 0, 0, 2470, 2471, 7, 2, 0, 0, 2471, 476, 1, 0, 0, 0, 2472, 2473, 7, 1, 0, 0, 2473, 2474, 7, 17, 0, 0, 2474, 2475, 7, 9, 0, 0, 2475, 2476, 7, 16, 0, 0, 2476, 2477, 7, 8, 0, 0, 2477, 2478, 7, 13, 0, 0, 2478, 2479, 7, 2, 0, 0, 2479, 478, 1, 0, 0, 0, 2480, 2481, 7, 1, 0, 0, 2481, 2482, 7, 23, 0, 0, 2482, 2483, 7, 1, 0, 0, 2483, 2484, 7, 7, 0, 0, 2484, 2485, 7, 3, 0, 0, 2485, 2486, 7, 16, 0, 0, 2486, 2487, 7, 2, 0, 0, 2487, 480, 1, 0, 0, 0, 2488, 2489, 7, 16, 0, 0, 2489, 2490, 7, 8, 0, 0, 2490, 2491, 7, 13, 0, 0, 2491, 2492, 7, 2, 0, 0, 2492, 482, 1, 0, 0, 0, 2493, 2494, 7, 16, 0, 0, 2494, 2495, 7, 8, 0, 0, 2495, 2496, 7, 13, 0, 0, 2496, 2497, 7, 2, 0, 0, 2497, 2498, 7, 7, 0, 0, 2498, 2499, 7, 8, 0, 0, 2499, 2500, 7, 12, 0, 0, 2500, 2501, 7, 12, 0, 0, 2501, 484, 1, 0, 0, 0, 2502, 2503, 7, 16, 0, 0, 2503, 2504, 7, 8, 0, 0, 2504, 2505, 7, 13, 0, 0, 2505, 2506, 7, 2, 0, 0, 2506, 2507, 7, 1, 0, 0, 2507, 2508, 7, 16, 0, 0, 2508, 2509, 7, 3, 0, 0, 2509, 2510, 7, 13, 0, 0, 2510, 2511, 7, 18, 0, 0, 2511, 486, 1, 0, 0, 0, 2512, 2513, 7, 16, 0, 0, 2513, 2514, 7, 8, 0, 0, 2514, 2515, 7, 13, 0, 0, 2515, 2516, 7, 2, 0, 0, 2516, 2517, 7, 1, 0, 0, 2517, 2518, 7, 16, 0, 0, 2518, 2519, 7, 3, 0, 0, 2519, 2520, 7, 13, 0, 0, 2520, 2521, 7, 18, 0, 0, 2521, 2522, 7, 3, 0, 0, 2522, 2523, 7, 7, 0, 0, 2523, 2524, 7, 7, 0, 0, 2524, 488, 1, 0, 0, 0, 2525, 2526, 7, 16, 0, 0, 2526, 2527, 7, 8, 0, 0, 2527, 2528, 7, 13, 0, 0, 2528, 2529, 7, 2, 0, 0, 2529, 2530, 7, 1, 0, 0, 2530, 2531, 7, 16, 0, 0, 2531, 2532, 7, 3, 0, 0, 2532, 2533, 7, 13, 0, 0, 2533, 2534, 7, 18, 0, 0, 2534, 2535, 7, 7, 0, 0, 2535, 2536, 7, 8, 0, 0, 2536, 2537, 7, 12, 0, 0, 2537, 2538, 7, 12, 0, 0, 2538, 490, 1, 0, 0, 0, 2539, 2540, 7, 16, 0, 0, 2540, 2541, 7, 8, 0, 0, 2541, 2542, 7, 13, 0, 0, 2542, 2543, 7, 2, 0, 0, 2543, 2544, 5, 95, 0, 0, 2544, 2545, 7, 12, 0, 0, 2545, 2546, 7, 10, 0, 0, 2546, 2547, 7, 4, 0, 0, 2547, 2548, 7, 13, 0, 0, 2548, 2549, 7, 3, 0, 0, 2549, 2550, 7, 16, 0, 0, 2550, 492, 1, 0, 0, 0, 2551, 2552, 7, 16, 0, 0, 2552, 2553, 7, 8, 0, 0, 2553, 2554, 7, 13, 0, 0, 2554, 2555, 7, 2, 0, 0, 2555, 2556, 5, 95, 0, 0, 2556, 2557, 7, 16, 0, 0, 2557, 2558, 7, 10, 0, 0, 2558, 2559, 5, 95, 0, 0, 2559, 2560, 7, 1, 0, 0, 2560, 2561, 7, 2, 0, 0, 2561, 2562, 7, 5, 0, 0, 2562, 494, 1, 0, 0, 0, 2563, 2564, 7, 16, 0, 0, 2564, 2565, 7, 10, 0, 0, 2565, 2566, 5, 95, 0, 0, 2566, 2567, 7, 7, 0, 0, 2567, 2568, 7, 3, 0, 0, 2568, 2569, 7, 23, 0, 0, 2569, 2570, 7, 1, 0, 0, 2570, 496, 1, 0, 0, 0, 2571, 2572, 7, 16, 0, 0, 2572, 2573, 7, 10, 0, 0, 2573, 2574, 5, 95, 0, 0, 2574, 2575, 7, 1, 0, 0, 2575, 2576, 7, 2, 0, 0, 2576, 2577, 7, 5, 0, 0, 2577, 2578, 7, 10, 0, 0, 2578, 2579, 7, 15, 0, 0, 2579, 2580, 7, 7, 0, 0, 2580, 2581, 7, 1, 0, 0, 2581, 498, 1, 0, 0, 0, 2582, 2583, 7, 17, 0, 0, 2583, 2584, 7, 15, 0, 0, 2584, 2585, 7, 8, 0, 0, 2585, 2586, 7, 21, 0, 0, 2586, 2587, 5, 95, 0, 0, 2587, 2588, 7, 16, 0, 0, 2588, 2589, 7, 8, 0, 0, 2589, 2590, 7, 13, 0, 0, 2590, 2591, 7, 2, 0, 0, 2591, 2592, 7, 1, 0, 0, 2592, 2593, 7, 16, 0, 0, 2593, 2594, 7, 3, 0, 0, 2594, 2595, 7, 13, 0, 0, 2595, 2596, 7, 18, 0, 0, 2596, 500, 1, 0, 0, 0, 2597, 2598, 7, 17, 0, 0, 2598, 2599, 7, 16, 0, 0, 2599, 2600, 7, 5, 0, 0, 2600, 2601, 5, 95, 0, 0, 2601, 2602, 7, 7, 0, 0, 2602, 2603, 7, 3, 0, 0, 2603, 2604, 7, 16, 0, 0, 2604, 2605, 7, 2, 0, 0, 2605, 502, 1, 0, 0, 0, 2606, 2607, 7, 17, 0, 0, 2607, 2608, 7, 16, 0, 0, 2608, 2609, 7, 5, 0, 0, 2609, 2610, 5, 95, 0, 0, 2610, 2611, 7, 16, 0, 0, 2611, 2612, 7, 8, 0, 0, 2612, 2613, 7, 13, 0, 0, 2613, 2614, 7, 2, 0, 0, 2614, 504, 1, 0, 0, 0, 2615, 2616, 7, 17, 0, 0, 2616, 2617, 7, 16, 0, 0, 2617, 2618, 7, 5, 0, 0, 2618, 2619, 5, 95, 0, 0, 2619, 2620, 7, 16, 0, 0, 2620, 2621, 7, 8, 0, 0, 2621, 2622, 7, 13, 0, 0, 2622, 2623, 7, 2, 0, 0, 2623, 2624, 7, 1, 0, 0, 2624, 2625, 7, 16, 0, 0, 2625, 2626, 7, 3, 0, 0, 2626, 2627, 7, 13, 0, 0, 2627, 2628, 7, 18, 0, 0, 2628, 506, 1, 0, 0, 0, 2629, 2630, 7, 11, 0, 0, 2630, 2631, 7, 2, 0, 0, 2631, 2632, 7, 2, 0, 0, 2632, 2633, 7, 22, 0, 0, 2633, 2634, 7, 7, 0, 0, 2634, 2635, 7, 3, 0, 0, 2635, 2636, 7, 23, 0, 0, 2636, 508, 1, 0, 0, 0, 2637, 2638, 7, 23, 0, 0, 2638, 2639, 7, 2, 0, 0, 2639, 2640, 7, 3, 0, 0, 2640, 2641, 7, 4, 0, 0, 2641, 2642, 7, 11, 0, 0, 2642, 2643, 7, 2, 0, 0, 2643, 2644, 7, 2, 0, 0, 2644, 2645, 7, 22, 0, 0, 2645, 510, 1, 0, 0, 0, 2646, 2647, 7, 1, 0, 0, 2647, 2648, 7, 17, 0, 0, 2648, 2649, 7, 9, 0, 0, 2649, 2650, 7, 1, 0, 0, 2650, 2651, 7, 16, 0, 0, 2651, 2652, 7, 4, 0, 0, 2652, 512, 1, 0, 0, 0, 2653, 2654, 7, 1, 0, 0, 2654, 2655, 7, 17, 0, 0, 2655, 2656, 7, 9, 0, 0, 2656, 2657, 7, 1, 0, 0, 2657, 2658, 7, 16, 0, 0, 2658, 2659, 7, 4, 0, 0, 2659, 2660, 7, 8, 0, 0, 2660, 2661, 7, 15, 0, 0, 2661, 2662, 7, 20, 0, 0, 2662, 514, 1, 0, 0, 0, 2663, 2664, 7, 14, 0, 0, 2664, 2665, 7, 16, 0, 0, 2665, 2666, 7, 4, 0, 0, 2666, 2667, 7, 8, 0, 0, 2667, 2668, 7, 13, 0, 0, 2668, 516, 1, 0, 0, 0, 2669, 2670, 7, 4, 0, 0, 2670, 2671, 7, 16, 0, 0, 2671, 2672, 7, 4, 0, 0, 2672, 2673, 7, 8, 0, 0, 2673, 2674, 7, 13, 0, 0, 2674, 518, 1, 0, 0, 0, 2675, 2676, 7, 16, 0, 0, 2676, 2677, 7, 4, 0, 0, 2677, 2678, 7, 8, 0, 0, 2678, 2679, 7, 13, 0, 0, 2679, 520, 1, 0, 0, 0, 2680, 2681, 7, 16, 0, 0, 2681, 2682, 7, 10, 0, 0, 2682, 522, 1, 0, 0, 0, 2683, 2684, 7, 14, 0, 0, 2684, 2685, 7, 10, 0, 0, 2685, 2686, 7, 11, 0, 0, 2686, 2687, 7, 2, 0, 0, 2687, 2688, 7, 4, 0, 0, 2688, 524, 1, 0, 0, 0, 2689, 2690, 7, 17, 0, 0, 2690, 2691, 7, 18, 0, 0, 2691, 2692, 7, 18, 0, 0, 2692, 2693, 7, 2, 0, 0, 2693, 2694, 7, 4, 0, 0, 2694, 526, 1, 0, 0, 0, 2695, 2696, 7, 5, 0, 0, 2696, 2697, 7, 10, 0, 0, 2697, 2698, 7, 15, 0, 0, 2698, 2699, 7, 5, 0, 0, 2699, 2700, 7, 3, 0, 0, 2700, 2701, 7, 16, 0, 0, 2701, 528, 1, 0, 0, 0, 2702, 2703, 7, 5, 0, 0, 2703, 2704, 7, 10, 0, 0, 2704, 2705, 7, 15, 0, 0, 2705, 2706, 7, 5, 0, 0, 2706, 2707, 7, 3, 0, 0, 2707, 2708, 7, 16, 0, 0, 2708, 2709, 5, 95, 0, 0, 2709, 2710, 7, 11, 0, 0, 2710, 2711, 7, 1, 0, 0, 2711, 530, 1, 0, 0, 0, 2712, 2713, 7, 14, 0, 0, 2713, 2714, 7, 2, 0, 0, 2714, 2715, 7, 15, 0, 0, 2715, 2716, 7, 20, 0, 0, 2716, 2717, 7, 16, 0, 0, 2717, 2718, 7, 6, 0, 0, 2718, 532, 1, 0, 0, 0, 2719, 2720, 7, 1, 0, 0, 2720, 2721, 7, 16, 0, 0, 2721, 2722, 7, 4, 0, 0, 2722, 2723, 7, 5, 0, 0, 2723, 2724, 7, 13, 0, 0, 2724, 2725, 7, 18, 0, 0, 2725, 534, 1, 0, 0, 0, 2726, 2727, 7, 4, 0, 0, 2727, 2728, 7, 8, 0, 0, 2728, 2729, 7, 20, 0, 0, 2729, 2730, 7, 6, 0, 0, 2730, 2731, 7, 16, 0, 0, 2731, 536, 1, 0, 0, 0, 2732, 2733, 7, 14, 0, 0, 2733, 2734, 7, 2, 0, 0, 2734, 2735, 7, 12, 0, 0, 2735, 2736, 7, 16, 0, 0, 2736, 538, 1, 0, 0, 0, 2737, 2738, 7, 3, 0, 0, 2738, 2739, 7, 1, 0, 0, 2739, 2740, 7, 5, 0, 0, 2740, 2741, 7, 8, 0, 0, 2741, 2742, 7, 8, 0, 0, 2742, 540, 1, 0, 0, 0, 2743, 2744, 7, 14, 0, 0, 2744, 2745, 7, 10, 0, 0, 2745, 2746, 7, 5, 0, 0, 2746, 2747, 7, 3, 0, 0, 2747, 2748, 7, 16, 0, 0, 2748, 2749, 7, 2, 0, 0, 2749, 542, 1, 0, 0, 0, 2750, 2751, 7, 4, 0, 0, 2751, 2752, 7, 2, 0, 0, 2752, 2753, 7, 18, 0, 0, 2753, 2754, 7, 14, 0, 0, 2754, 2755, 7, 3, 0, 0, 2755, 2756, 7, 5, 0, 0, 2756, 2757, 7, 2, 0, 0, 2757, 544, 1, 0, 0, 0, 2758, 2759, 7, 4, 0, 0, 2759, 2760, 7, 2, 0, 0, 2760, 2761, 7, 19, 0, 0, 2761, 2762, 7, 2, 0, 0, 2762, 2763, 7, 4, 0, 0, 2763, 2764, 7, 1, 0, 0, 2764, 2765, 7, 2, 0, 0, 2765, 546, 1, 0, 0, 0, 2766, 2767, 7, 5, 0, 0, 2767, 2768, 7, 3, 0, 0, 2768, 2769, 7, 1, 0, 0, 2769, 2770, 7, 16, 0, 0, 2770, 548, 1, 0, 0, 0, 2771, 2772, 7, 14, 0, 0, 2772, 2773, 7, 8, 0, 0, 2773, 2774, 7, 22, 0, 0, 2774, 2775, 7, 2, 0, 0, 2775, 550, 1, 0, 0, 0, 2776, 2777, 7, 8, 0, 0, 2777, 2778, 7, 1, 0, 0, 2778, 2779, 7, 15, 0, 0, 2779, 2780, 7, 17, 0, 0, 2780, 2781, 7, 14, 0, 0, 2781, 2782, 7, 14, 0, 0, 2782, 552, 1, 0, 0, 0, 2783, 2784, 7, 8, 0, 0, 2784, 2785, 7, 1, 0, 0, 2785, 2786, 7, 15, 0, 0, 2786, 2787, 7, 10, 0, 0, 2787, 2788, 7, 16, 0, 0, 2788, 2789, 7, 15, 0, 0, 2789, 2790, 7, 17, 0, 0, 2790, 2791, 7, 14, 0, 0, 2791, 2792, 7, 14, 0, 0, 2792, 554, 1, 0, 0, 0, 2793, 2794, 7, 8, 0, 0, 2794, 2795, 7, 12, 0, 0, 2795, 2796, 7, 15, 0, 0, 2796, 2797, 7, 17, 0, 0, 2797, 2798, 7, 14, 0, 0, 2798, 2799, 7, 14, 0, 0, 2799, 556, 1, 0, 0, 0, 2800, 2801, 7, 15, 0, 0, 2801, 2802, 7, 17, 0, 0, 2802, 2803, 7, 14, 0, 0, 2803, 2804, 7, 14, 0, 0, 2804, 2805, 7, 8, 0, 0, 2805, 2806, 7, 12, 0, 0, 2806, 558, 1, 0, 0, 0, 2807, 2808, 7, 8, 0, 0, 2808, 2809, 7, 12, 0, 0, 2809, 560, 1, 0, 0, 0, 2810, 2811, 7, 16, 0, 0, 2811, 2812, 7, 23, 0, 0, 2812, 2813, 7, 18, 0, 0, 2813, 2814, 7, 2, 0, 0, 2814, 2815, 7, 10, 0, 0, 2815, 2816, 7, 12, 0, 0, 2816, 562, 1, 0, 0, 0, 2817, 2818, 7, 13, 0, 0, 2818, 2819, 7, 3, 0, 0, 2819, 2820, 7, 16, 0, 0, 2820, 2821, 7, 5, 0, 0, 2821, 2822, 7, 6, 0, 0, 2822, 564, 1, 0, 0, 0, 2823, 2824, 7, 13, 0, 0, 2824, 2825, 7, 3, 0, 0, 2825, 2826, 7, 16, 0, 0, 2826, 2827, 7, 5, 0, 0, 2827, 2828, 7, 6, 0, 0, 2828, 2829, 5, 95, 0, 0, 2829, 2830, 7, 18, 0, 0, 2830, 2831, 7, 6, 0, 0, 2831, 2832, 7, 4, 0, 0, 2832, 2833, 7, 3, 0, 0, 2833, 2834, 7, 1, 0, 0, 2834, 2835, 7, 2, 0, 0, 2835, 566, 1, 0, 0, 0, 2836, 2837, 7, 13, 0, 0, 2837, 2838, 7, 3, 0, 0, 2838, 2839, 7, 16, 0, 0, 2839, 2840, 7, 5, 0, 0, 2840, 2841, 7, 6, 0, 0, 2841, 2842, 5, 95, 0, 0, 2842, 2843, 7, 18, 0, 0, 2843, 2844, 7, 6, 0, 0, 2844, 2845, 7, 4, 0, 0, 2845, 2846, 7, 3, 0, 0, 2846, 2847, 7, 1, 0, 0, 2847, 2848, 7, 2, 0, 0, 2848, 2849, 5, 95, 0, 0, 2849, 2850, 7, 18, 0, 0, 2850, 2851, 7, 4, 0, 0, 2851, 2852, 7, 2, 0, 0, 2852, 2853, 7, 12, 0, 0, 2853, 2854, 7, 8, 0, 0, 2854, 2855, 7, 21, 0, 0, 2855, 568, 1, 0, 0, 0, 2856, 2857, 7, 13, 0, 0, 2857, 2858, 7, 3, 0, 0, 2858, 2859, 7, 16, 0, 0, 2859, 2860, 7, 5, 0, 0, 2860, 2861, 7, 6, 0, 0, 2861, 2862, 5, 95, 0, 0, 2862, 2863, 7, 9, 0, 0, 2863, 2864, 7, 10, 0, 0, 2864, 2865, 7, 10, 0, 0, 2865, 2866, 7, 14, 0, 0, 2866, 2867, 5, 95, 0, 0, 2867, 2868, 7, 18, 0, 0, 2868, 2869, 7, 4, 0, 0, 2869, 2870, 7, 2, 0, 0, 2870, 2871, 7, 12, 0, 0, 2871, 2872, 7, 8, 0, 0, 2872, 2873, 7, 21, 0, 0, 2873, 570, 1, 0, 0, 0, 2874, 2875, 7, 1, 0, 0, 2875, 2876, 7, 8, 0, 0, 2876, 2877, 7, 13, 0, 0, 2877, 2878, 7, 18, 0, 0, 2878, 2879, 7, 14, 0, 0, 2879, 2880, 7, 2, 0, 0, 2880, 2881, 5, 95, 0, 0, 2881, 2882, 7, 25, 0, 0, 2882, 2883, 7, 17, 0, 0, 2883, 2884, 7, 2, 0, 0, 2884, 2885, 7, 4, 0, 0, 2885, 2886, 7, 23, 0, 0, 2886, 2887, 5, 95, 0, 0, 2887, 2888, 7, 1, 0, 0, 2888, 2889, 7, 16, 0, 0, 2889, 2890, 7, 4, 0, 0, 2890, 2891, 7, 8, 0, 0, 2891, 2892, 7, 15, 0, 0, 2892, 2893, 7, 20, 0, 0, 2893, 572, 1, 0, 0, 0, 2894, 2895, 7, 13, 0, 0, 2895, 2896, 7, 17, 0, 0, 2896, 2897, 7, 14, 0, 0, 2897, 2898, 7, 16, 0, 0, 2898, 2899, 7, 8, 0, 0, 2899, 2900, 5, 95, 0, 0, 2900, 2901, 7, 13, 0, 0, 2901, 2902, 7, 3, 0, 0, 2902, 2903, 7, 16, 0, 0, 2903, 2904, 7, 5, 0, 0, 2904, 2905, 7, 6, 0, 0, 2905, 574, 1, 0, 0, 0, 2906, 2907, 7, 25, 0, 0, 2907, 2908, 7, 17, 0, 0, 2908, 2909, 7, 2, 0, 0, 2909, 2910, 7, 4, 0, 0, 2910, 2911, 7, 23, 0, 0, 2911, 2912, 5, 95, 0, 0, 2912, 2913, 7, 1, 0, 0, 2913, 2914, 7, 16, 0, 0, 2914, 2915, 7, 4, 0, 0, 2915, 2916, 7, 8, 0, 0, 2916, 2917, 7, 15, 0, 0, 2917, 2918, 7, 20, 0, 0, 2918, 576, 1, 0, 0, 0, 2919, 2920, 7, 3, 0, 0, 2920, 2921, 7, 14, 0, 0, 2921, 2922, 7, 14, 0, 0, 2922, 2923, 7, 10, 0, 0, 2923, 2924, 7, 11, 0, 0, 2924, 2925, 5, 95, 0, 0, 2925, 2926, 7, 14, 0, 0, 2926, 2927, 7, 2, 0, 0, 2927, 2928, 7, 3, 0, 0, 2928, 2929, 7, 7, 0, 0, 2929, 2930, 7, 8, 0, 0, 2930, 2931, 7, 15, 0, 0, 2931, 2932, 7, 20, 0, 0, 2932, 2933, 5, 95, 0, 0, 2933, 2934, 7, 11, 0, 0, 2934, 2935, 7, 8, 0, 0, 2935, 2936, 7, 14, 0, 0, 2936, 2937, 7, 7, 0, 0, 2937, 2938, 7, 5, 0, 0, 2938, 2939, 7, 3, 0, 0, 2939, 2940, 7, 4, 0, 0, 2940, 2941, 7, 7, 0, 0, 2941, 578, 1, 0, 0, 0, 2942, 2943, 7, 3, 0, 0, 2943, 2944, 7, 15, 0, 0, 2944, 2945, 7, 3, 0, 0, 2945, 2946, 7, 14, 0, 0, 2946, 2947, 7, 23, 0, 0, 2947, 2948, 7, 24, 0, 0, 2948, 2949, 7, 2, 0, 0, 2949, 2950, 5, 95, 0, 0, 2950, 2951, 7, 11, 0, 0, 2951, 2952, 7, 8, 0, 0, 2952, 2953, 7, 14, 0, 0, 2953, 2954, 7, 7, 0, 0, 2954, 2955, 7, 5, 0, 0, 2955, 2956, 7, 3, 0, 0, 2956, 2957, 7, 4, 0, 0, 2957, 2958, 7, 7, 0, 0, 2958, 580, 1, 0, 0, 0, 2959, 2960, 7, 3, 0, 0, 2960, 2961, 7, 15, 0, 0, 2961, 2962, 7, 3, 0, 0, 2962, 2963, 7, 14, 0, 0, 2963, 2964, 7, 23, 0, 0, 2964, 2965, 7, 24, 0, 0, 2965, 2966, 7, 2, 0, 0, 2966, 2967, 7, 4, 0, 0, 2967, 582, 1, 0, 0, 0, 2968, 2969, 7, 3, 0, 0, 2969, 2970, 7, 17, 0, 0, 2970, 2971, 7, 16, 0, 0, 2971, 2972, 7, 10, 0, 0, 2972, 2973, 5, 95, 0, 0, 2973, 2974, 7, 20, 0, 0, 2974, 2975, 7, 2, 0, 0, 2975, 2976, 7, 15, 0, 0, 2976, 2977, 7, 2, 0, 0, 2977, 2978, 7, 4, 0, 0, 2978, 2979, 7, 3, 0, 0, 2979, 2980, 7, 16, 0, 0, 2980, 2981, 7, 2, 0, 0, 2981, 2982, 5, 95, 0, 0, 2982, 2983, 7, 1, 0, 0, 2983, 2984, 7, 23, 0, 0, 2984, 2985, 7, 15, 0, 0, 2985, 2986, 7, 10, 0, 0, 2986, 2987, 7, 15, 0, 0, 2987, 2988, 7, 23, 0, 0, 2988, 2989, 7, 13, 0, 0, 2989, 2990, 7, 1, 0, 0, 2990, 2991, 5, 95, 0, 0, 2991, 2992, 7, 18, 0, 0, 2992, 2993, 7, 6, 0, 0, 2993, 2994, 7, 4, 0, 0, 2994, 2995, 7, 3, 0, 0, 2995, 2996, 7, 1, 0, 0, 2996, 2997, 7, 2, 0, 0, 2997, 2998, 5, 95, 0, 0, 2998, 2999, 7, 25, 0, 0, 2999, 3000, 7, 17, 0, 0, 3000, 3001, 7, 2, 0, 0, 3001, 3002, 7, 4, 0, 0, 3002, 3003, 7, 23, 0, 0, 3003, 584, 1, 0, 0, 0, 3004, 3005, 7, 9, 0, 0, 3005, 3006, 7, 10, 0, 0, 3006, 3007, 7, 10, 0, 0, 3007, 3008, 7, 1, 0, 0, 3008, 3009, 7, 16, 0, 0, 3009, 586, 1, 0, 0, 0, 3010, 3011, 7, 5, 0, 0, 3011, 3012, 7, 17, 0, 0, 3012, 3013, 7, 16, 0, 0, 3013, 3014, 7, 10, 0, 0, 3014, 3015, 7, 12, 0, 0, 3015, 3016, 7, 12, 0, 0, 3016, 3017, 5, 95, 0, 0, 3017, 3018, 7, 12, 0, 0, 3018, 3019, 7, 4, 0, 0, 3019, 3020, 7, 2, 0, 0, 3020, 3021, 7, 25, 0, 0, 3021, 3022, 7, 17, 0, 0, 3022, 3023, 7, 2, 0, 0, 3023, 3024, 7, 15, 0, 0, 3024, 3025, 7, 5, 0, 0, 3025, 3026, 7, 23, 0, 0, 3026, 588, 1, 0, 0, 0, 3027, 3028, 7, 7, 0, 0, 3028, 3029, 7, 2, 0, 0, 3029, 3030, 7, 12, 0, 0, 3030, 3031, 7, 3, 0, 0, 3031, 3032, 7, 17, 0, 0, 3032, 3033, 7, 14, 0, 0, 3033, 3034, 7, 16, 0, 0, 3034, 3035, 5, 95, 0, 0, 3035, 3036, 7, 12, 0, 0, 3036, 3037, 7, 8, 0, 0, 3037, 3038, 7, 2, 0, 0, 3038, 3039, 7, 14, 0, 0, 3039, 3040, 7, 7, 0, 0, 3040, 590, 1, 0, 0, 0, 3041, 3042, 7, 7, 0, 0, 3042, 3043, 7, 2, 0, 0, 3043, 3044, 7, 12, 0, 0, 3044, 3045, 7, 3, 0, 0, 3045, 3046, 7, 17, 0, 0, 3046, 3047, 7, 14, 0, 0, 3047, 3048, 7, 16, 0, 0, 3048, 3049, 5, 95, 0, 0, 3049, 3050, 7, 10, 0, 0, 3050, 3051, 7, 18, 0, 0, 3051, 3052, 7, 2, 0, 0, 3052, 3053, 7, 4, 0, 0, 3053, 3054, 7, 3, 0, 0, 3054, 3055, 7, 16, 0, 0, 3055, 3056, 7, 10, 0, 0, 3056, 3057, 7, 4, 0, 0, 3057, 592, 1, 0, 0, 0, 3058, 3059, 7, 2, 0, 0, 3059, 3060, 7, 15, 0, 0, 3060, 3061, 7, 3, 0, 0, 3061, 3062, 7, 9, 0, 0, 3062, 3063, 7, 14, 0, 0, 3063, 3064, 7, 2, 0, 0, 3064, 3065, 5, 95, 0, 0, 3065, 3066, 7, 18, 0, 0, 3066, 3067, 7, 10, 0, 0, 3067, 3068, 7, 1, 0, 0, 3068, 3069, 7, 8, 0, 0, 3069, 3070, 7, 16, 0, 0, 3070, 3071, 7, 8, 0, 0, 3071, 3072, 7, 10, 0, 0, 3072, 3073, 7, 15, 0, 0, 3073, 3074, 5, 95, 0, 0, 3074, 3075, 7, 8, 0, 0, 3075, 3076, 7, 15, 0, 0, 3076, 3077, 7, 5, 0, 0, 3077, 3078, 7, 4, 0, 0, 3078, 3079, 7, 2, 0, 0, 3079, 3080, 7, 13, 0, 0, 3080, 3081, 7, 2, 0, 0, 3081, 3082, 7, 15, 0, 0, 3082, 3083, 7, 16, 0, 0, 3083, 3084, 7, 1, 0, 0, 3084, 594, 1, 0, 0, 0, 3085, 3086, 7, 2, 0, 0, 3086, 3087, 7, 1, 0, 0, 3087, 3088, 7, 5, 0, 0, 3088, 3089, 7, 3, 0, 0, 3089, 3090, 7, 18, 0, 0, 3090, 3091, 7, 2, 0, 0, 3091, 596, 1, 0, 0, 0, 3092, 3093, 7, 12, 0, 0, 3093, 3094, 7, 14, 0, 0, 3094, 3095, 7, 3, 0, 0, 3095, 3096, 7, 20, 0, 0, 3096, 3097, 7, 1, 0, 0, 3097, 598, 1, 0, 0, 0, 3098, 3099, 7, 12, 0, 0, 3099, 3100, 7, 17, 0, 0, 3100, 3101, 7, 24, 0, 0, 3101, 3102, 7, 24, 0, 0, 3102, 3103, 7, 23, 0, 0, 3103, 3104, 5, 95, 0, 0, 3104, 3105, 7, 13, 0, 0, 3105, 3106, 7, 3, 0, 0, 3106, 3107, 7, 21, 0, 0, 3107, 3108, 5, 95, 0, 0, 3108, 3109, 7, 2, 0, 0, 3109, 3110, 7, 21, 0, 0, 3110, 3111, 7, 18, 0, 0, 3111, 3112, 7, 3, 0, 0, 3112, 3113, 7, 15, 0, 0, 3113, 3114, 7, 1, 0, 0, 3114, 3115, 7, 8, 0, 0, 3115, 3116, 7, 10, 0, 0, 3116, 3117, 7, 15, 0, 0, 3117, 3118, 7, 1, 0, 0, 3118, 600, 1, 0, 0, 0, 3119, 3120, 7, 12, 0, 0, 3120, 3121, 7, 17, 0, 0, 3121, 3122, 7, 24, 0, 0, 3122, 3123, 7, 24, 0, 0, 3123, 3124, 7, 23, 0, 0, 3124, 3125, 5, 95, 0, 0, 3125, 3126, 7, 18, 0, 0, 3126, 3127, 7, 4, 0, 0, 3127, 3128, 7, 2, 0, 0, 3128, 3129, 7, 12, 0, 0, 3129, 3130, 7, 8, 0, 0, 3130, 3131, 7, 21, 0, 0, 3131, 3132, 5, 95, 0, 0, 3132, 3133, 7, 14, 0, 0, 3133, 3134, 7, 2, 0, 0, 3134, 3135, 7, 15, 0, 0, 3135, 3136, 7, 20, 0, 0, 3136, 3137, 7, 16, 0, 0, 3137, 3138, 7, 6, 0, 0, 3138, 602, 1, 0, 0, 0, 3139, 3140, 7, 12, 0, 0, 3140, 3141, 7, 17, 0, 0, 3141, 3142, 7, 24, 0, 0, 3142, 3143, 7, 24, 0, 0, 3143, 3144, 7, 23, 0, 0, 3144, 3145, 5, 95, 0, 0, 3145, 3146, 7, 16, 0, 0, 3146, 3147, 7, 4, 0, 0, 3147, 3148, 7, 3, 0, 0, 3148, 3149, 7, 15, 0, 0, 3149, 3150, 7, 1, 0, 0, 3150, 3151, 7, 18, 0, 0, 3151, 3152, 7, 10, 0, 0, 3152, 3153, 7, 1, 0, 0, 3153, 3154, 7, 8, 0, 0, 3154, 3155, 7, 16, 0, 0, 3155, 3156, 7, 8, 0, 0, 3156, 3157, 7, 10, 0, 0, 3157, 3158, 7, 15, 0, 0, 3158, 3159, 7, 1, 0, 0, 3159, 604, 1, 0, 0, 0, 3160, 3161, 7, 12, 0, 0, 3161, 3162, 7, 17, 0, 0, 3162, 3163, 7, 24, 0, 0, 3163, 3164, 7, 24, 0, 0, 3164, 3165, 7, 23, 0, 0, 3165, 3166, 5, 95, 0, 0, 3166, 3167, 7, 4, 0, 0, 3167, 3168, 7, 2, 0, 0, 3168, 3169, 7, 11, 0, 0, 3169, 3170, 7, 4, 0, 0, 3170, 3171, 7, 8, 0, 0, 3171, 3172, 7, 16, 0, 0, 3172, 3173, 7, 2, 0, 0, 3173, 606, 1, 0, 0, 0, 3174, 3175, 7, 12, 0, 0, 3175, 3176, 7, 17, 0, 0, 3176, 3177, 7, 24, 0, 0, 3177, 3178, 7, 24, 0, 0, 3178, 3179, 7, 8, 0, 0, 3179, 3180, 7, 15, 0, 0, 3180, 3181, 7, 2, 0, 0, 3181, 3182, 7, 1, 0, 0, 3182, 3183, 7, 1, 0, 0, 3183, 608, 1, 0, 0, 0, 3184, 3185, 7, 14, 0, 0, 3185, 3186, 7, 2, 0, 0, 3186, 3187, 7, 15, 0, 0, 3187, 3188, 7, 8, 0, 0, 3188, 3189, 7, 2, 0, 0, 3189, 3190, 7, 15, 0, 0, 3190, 3191, 7, 16, 0, 0, 3191, 610, 1, 0, 0, 0, 3192, 3193, 7, 14, 0, 0, 3193, 3194, 7, 10, 0, 0, 3194, 3195, 7, 11, 0, 0, 3195, 3196, 5, 95, 0, 0, 3196, 3197, 7, 12, 0, 0, 3197, 3198, 7, 4, 0, 0, 3198, 3199, 7, 2, 0, 0, 3199, 3200, 7, 25, 0, 0, 3200, 3201, 5, 95, 0, 0, 3201, 3202, 7, 10, 0, 0, 3202, 3203, 7, 18, 0, 0, 3203, 3204, 7, 2, 0, 0, 3204, 3205, 7, 4, 0, 0, 3205, 3206, 7, 3, 0, 0, 3206, 3207, 7, 16, 0, 0, 3207, 3208, 7, 10, 0, 0, 3208, 3209, 7, 4, 0, 0, 3209, 612, 1, 0, 0, 0, 3210, 3211, 7, 13, 0, 0, 3211, 3212, 7, 3, 0, 0, 3212, 3213, 7, 21, 0, 0, 3213, 3214, 5, 95, 0, 0, 3214, 3215, 7, 7, 0, 0, 3215, 3216, 7, 2, 0, 0, 3216, 3217, 7, 16, 0, 0, 3217, 3218, 7, 2, 0, 0, 3218, 3219, 7, 4, 0, 0, 3219, 3220, 7, 13, 0, 0, 3220, 3221, 7, 8, 0, 0, 3221, 3222, 7, 15, 0, 0, 3222, 3223, 7, 8, 0, 0, 3223, 3224, 7, 24, 0, 0, 3224, 3225, 7, 2, 0, 0, 3225, 3226, 7, 7, 0, 0, 3226, 3227, 5, 95, 0, 0, 3227, 3228, 7, 1, 0, 0, 3228, 3229, 7, 16, 0, 0, 3229, 3230, 7, 3, 0, 0, 3230, 3231, 7, 16, 0, 0, 3231, 3232, 7, 2, 0, 0, 3232, 3233, 7, 1, 0, 0, 3233, 614, 1, 0, 0, 0, 3234, 3235, 7, 13, 0, 0, 3235, 3236, 7, 3, 0, 0, 3236, 3237, 7, 21, 0, 0, 3237, 3238, 5, 95, 0, 0, 3238, 3239, 7, 2, 0, 0, 3239, 3240, 7, 21, 0, 0, 3240, 3241, 7, 18, 0, 0, 3241, 3242, 7, 3, 0, 0, 3242, 3243, 7, 15, 0, 0, 3243, 3244, 7, 1, 0, 0, 3244, 3245, 7, 8, 0, 0, 3245, 3246, 7, 10, 0, 0, 3246, 3247, 7, 15, 0, 0, 3247, 3248, 7, 1, 0, 0, 3248, 616, 1, 0, 0, 0, 3249, 3250, 7, 13, 0, 0, 3250, 3251, 7, 8, 0, 0, 3251, 3252, 7, 15, 0, 0, 3252, 3253, 7, 8, 0, 0, 3253, 3254, 7, 13, 0, 0, 3254, 3255, 7, 17, 0, 0, 3255, 3256, 7, 13, 0, 0, 3256, 3257, 5, 95, 0, 0, 3257, 3258, 7, 1, 0, 0, 3258, 3259, 7, 6, 0, 0, 3259, 3260, 7, 10, 0, 0, 3260, 3261, 7, 17, 0, 0, 3261, 3262, 7, 14, 0, 0, 3262, 3263, 7, 7, 0, 0, 3263, 3264, 5, 95, 0, 0, 3264, 3265, 7, 13, 0, 0, 3265, 3266, 7, 3, 0, 0, 3266, 3267, 7, 16, 0, 0, 3267, 3268, 7, 5, 0, 0, 3268, 3269, 7, 6, 0, 0, 3269, 618, 1, 0, 0, 0, 3270, 3271, 7, 10, 0, 0, 3271, 3272, 7, 18, 0, 0, 3272, 3273, 7, 2, 0, 0, 3273, 3274, 7, 4, 0, 0, 3274, 3275, 7, 3, 0, 0, 3275, 3276, 7, 16, 0, 0, 3276, 3277, 7, 10, 0, 0, 3277, 3278, 7, 4, 0, 0, 3278, 620, 1, 0, 0, 0, 3279, 3280, 7, 18, 0, 0, 3280, 3281, 7, 6, 0, 0, 3281, 3282, 7, 4, 0, 0, 3282, 3283, 7, 3, 0, 0, 3283, 3284, 7, 1, 0, 0, 3284, 3285, 7, 2, 0, 0, 3285, 3286, 5, 95, 0, 0, 3286, 3287, 7, 1, 0, 0, 3287, 3288, 7, 14, 0, 0, 3288, 3289, 7, 10, 0, 0, 3289, 3290, 7, 18, 0, 0, 3290, 622, 1, 0, 0, 0, 3291, 3292, 7, 18, 0, 0, 3292, 3293, 7, 4, 0, 0, 3293, 3294, 7, 2, 0, 0, 3294, 3295, 7, 12, 0, 0, 3295, 3296, 7, 8, 0, 0, 3296, 3297, 7, 21, 0, 0, 3297, 3298, 5, 95, 0, 0, 3298, 3299, 7, 14, 0, 0, 3299, 3300, 7, 2, 0, 0, 3300, 3301, 7, 15, 0, 0, 3301, 3302, 7, 20, 0, 0, 3302, 3303, 7, 16, 0, 0, 3303, 3304, 7, 6, 0, 0, 3304, 624, 1, 0, 0, 0, 3305, 3306, 7, 25, 0, 0, 3306, 3307, 7, 17, 0, 0, 3307, 3308, 7, 10, 0, 0, 3308, 3309, 7, 16, 0, 0, 3309, 3310, 7, 2, 0, 0, 3310, 3311, 5, 95, 0, 0, 3311, 3312, 7, 3, 0, 0, 3312, 3313, 7, 15, 0, 0, 3313, 3314, 7, 3, 0, 0, 3314, 3315, 7, 14, 0, 0, 3315, 3316, 7, 23, 0, 0, 3316, 3317, 7, 24, 0, 0, 3317, 3318, 7, 2, 0, 0, 3318, 3319, 7, 4, 0, 0, 3319, 626, 1, 0, 0, 0, 3320, 3321, 7, 25, 0, 0, 3321, 3322, 7, 17, 0, 0, 3322, 3323, 7, 10, 0, 0, 3323, 3324, 7, 16, 0, 0, 3324, 3325, 7, 2, 0, 0, 3325, 3326, 5, 95, 0, 0, 3326, 3327, 7, 12, 0, 0, 3327, 3328, 7, 8, 0, 0, 3328, 3329, 7, 2, 0, 0, 3329, 3330, 7, 14, 0, 0, 3330, 3331, 7, 7, 0, 0, 3331, 3332, 5, 95, 0, 0, 3332, 3333, 7, 1, 0, 0, 3333, 3334, 7, 17, 0, 0, 3334, 3335, 7, 12, 0, 0, 3335, 3336, 7, 12, 0, 0, 3336, 3337, 7, 8, 0, 0, 3337, 3338, 7, 21, 0, 0, 3338, 628, 1, 0, 0, 0, 3339, 3340, 7, 4, 0, 0, 3340, 3341, 7, 2, 0, 0, 3341, 3342, 7, 11, 0, 0, 3342, 3343, 7, 4, 0, 0, 3343, 3344, 7, 8, 0, 0, 3344, 3345, 7, 16, 0, 0, 3345, 3346, 7, 2, 0, 0, 3346, 630, 1, 0, 0, 0, 3347, 3348, 7, 1, 0, 0, 3348, 3349, 7, 14, 0, 0, 3349, 3350, 7, 10, 0, 0, 3350, 3351, 7, 18, 0, 0, 3351, 632, 1, 0, 0, 0, 3352, 3353, 7, 16, 0, 0, 3353, 3354, 7, 8, 0, 0, 3354, 3355, 7, 2, 0, 0, 3355, 3356, 5, 95, 0, 0, 3356, 3357, 7, 9, 0, 0, 3357, 3358, 7, 4, 0, 0, 3358, 3359, 7, 2, 0, 0, 3359, 3360, 7, 3, 0, 0, 3360, 3361, 7, 22, 0, 0, 3361, 3362, 7, 2, 0, 0, 3362, 3363, 7, 4, 0, 0, 3363, 634, 1, 0, 0, 0, 3364, 3365, 7, 16, 0, 0, 3365, 3366, 7, 23, 0, 0, 3366, 3367, 7, 18, 0, 0, 3367, 3368, 7, 2, 0, 0, 3368, 636, 1, 0, 0, 0, 3369, 3370, 7, 24, 0, 0, 3370, 3371, 7, 2, 0, 0, 3371, 3372, 7, 4, 0, 0, 3372, 3373, 7, 10, 0, 0, 3373, 3374, 5, 95, 0, 0, 3374, 3375, 7, 16, 0, 0, 3375, 3376, 7, 2, 0, 0, 3376, 3377, 7, 4, 0, 0, 3377, 3378, 7, 13, 0, 0, 3378, 3379, 7, 1, 0, 0, 3379, 3380, 5, 95, 0, 0, 3380, 3381, 7, 25, 0, 0, 3381, 3382, 7, 17, 0, 0, 3382, 3383, 7, 2, 0, 0, 3383, 3384, 7, 4, 0, 0, 3384, 3385, 7, 23, 0, 0, 3385, 638, 1, 0, 0, 0, 3386, 3387, 7, 1, 0, 0, 3387, 3388, 7, 18, 0, 0, 3388, 3389, 7, 3, 0, 0, 3389, 3390, 7, 15, 0, 0, 3390, 640, 1, 0, 0, 0, 3391, 3392, 7, 13, 0, 0, 3392, 3393, 7, 1, 0, 0, 3393, 642, 1, 0, 0, 0, 3394, 3395, 7, 1, 0, 0, 3395, 644, 1, 0, 0, 0, 3396, 3397, 7, 13, 0, 0, 3397, 646, 1, 0, 0, 0, 3398, 3399, 7, 6, 0, 0, 3399, 648, 1, 0, 0, 0, 3400, 3401, 7, 11, 0, 0, 3401, 650, 1, 0, 0, 0, 3402, 3403, 7, 25, 0, 0, 3403, 652, 1, 0, 0, 0, 3404, 3405, 7, 23, 0, 0, 3405, 654, 1, 0, 0, 0, 3406, 3407, 3, 665, 332, 0, 3407, 656, 1, 0, 0, 0, 3408, 3409, 3, 667, 333, 0, 3409, 658, 1, 0, 0, 0, 3410, 3412, 3, 677, 338, 0, 3411, 3410, 1, 0, 0, 0, 3412, 3413, 1, 0, 0, 0, 3413, 3411, 1, 0, 0, 0, 3413, 3414, 1, 0, 0, 0, 3414, 660, 1, 0, 0, 0, 3415, 3417, 3, 677, 338, 0, 3416, 3415, 1, 0, 0, 0, 3417, 3418, 1, 0, 0, 0, 3418, 3416, 1, 0, 0, 0, 3418, 3419, 1, 0, 0, 0, 3419, 3421, 1, 0, 0, 0, 3420, 3416, 1, 0, 0, 0, 3420, 3421, 1, 0, 0, 0, 3421, 3422, 1, 0, 0, 0, 3422, 3424, 5, 46, 0, 0, 3423, 3425, 3, 677, 338, 0, 3424, 3423, 1, 0, 0, 0, 3425, 3426, 1, 0, 0, 0, 3426, 3424, 1, 0, 0, 0, 3426, 3427, 1, 0, 0, 0, 3427, 662, 1, 0, 0, 0, 3428, 3430, 7, 26, 0, 0, 3429, 3431, 7, 27, 0, 0, 3430, 3429, 1, 0, 0, 0, 3431, 3432, 1, 0, 0, 0, 3432, 3430, 1, 0, 0, 0, 3432, 3433, 1, 0, 0, 0, 3433, 3435, 1, 0, 0, 0, 3434, 3428, 1, 0, 0, 0, 3435, 3436, 1, 0, 0, 0, 3436, 3434, 1, 0, 0, 0, 3436, 3437, 1, 0, 0, 0, 3437, 664, 1, 0, 0, 0, 3438, 3442, 7, 28, 0, 0, 3439, 3441, 7, 29, 0, 0, 3440, 3439, 1, 0, 0, 0, 3441, 3444, 1, 0, 0, 0, 3442, 3440, 1, 0, 0, 0, 3442, 3443, 1, 0, 0, 0, 3443, 666, 1, 0, 0, 0, 3444, 3442, 1, 0, 0, 0, 3445, 3447, 7, 30, 0, 0, 3446, 3445, 1, 0, 0, 0, 3447, 3448, 1, 0, 0, 0, 3448, 3449, 1, 0, 0, 0, 3448, 3446, 1, 0, 0, 0, 3449, 3453, 1, 0, 0, 0, 3450, 3452, 7, 29, 0, 0, 3451, 3450, 1, 0, 0, 0, 3452, 3455, 1, 0, 0, 0, 3453, 3451, 1, 0, 0, 0, 3453, 3454, 1, 0, 0, 0, 3454, 3456, 1, 0, 0, 0, 3455, 3453, 1, 0, 0, 0, 3456, 3457, 3, 247, 123, 0, 3457, 668, 1, 0, 0, 0, 3458, 3460, 3, 667, 333, 0, 3459, 3458, 1, 0, 0, 0, 3459, 3460, 1, 0, 0, 0, 3460, 3461, 1, 0, 0, 0, 3461, 3462, 3, 665, 332, 0, 3462, 3463, 3, 663, 331, 0, 3463, 670, 1, 0, 0, 0, 3464, 3472, 5, 34, 0, 0, 3465, 3466, 5, 92, 0, 0, 3466, 3471, 9, 0, 0, 0, 3467, 3468, 5, 34, 0, 0, 3468, 3471, 5, 34, 0, 0, 3469, 3471, 8, 31, 0, 0, 3470, 3465, 1, 0, 0, 0, 3470, 3467, 1, 0, 0, 0, 3470, 3469, 1, 0, 0, 0, 3471, 3474, 1, 0, 0, 0, 3472, 3470, 1, 0, 0, 0, 3472, 3473, 1, 0, 0, 0, 3473, 3475, 1, 0, 0, 0, 3474, 3472, 1, 0, 0, 0, 3475, 3476, 5, 34, 0, 0, 3476, 672, 1, 0, 0, 0, 3477, 3485, 5, 39, 0, 0, 3478, 3479, 5, 92, 0, 0, 3479, 3484, 9, 0, 0, 0, 3480, 3481, 5, 39, 0, 0, 3481, 3484, 5, 39, 0, 0, 3482, 3484, 8, 32, 0, 0, 3483, 3478, 1, 0, 0, 0, 3483, 3480, 1, 0, 0, 0, 3483, 3482, 1, 0, 0, 0, 3484, 3487, 1, 0, 0, 0, 3485, 3483, 1, 0, 0, 0, 3485, 3486, 1, 0, 0, 0, 3486, 3488, 1, 0, 0, 0, 3487, 3485, 1, 0, 0, 0, 3488, 3489, 5, 39, 0, 0, 3489, 674, 1, 0, 0, 0, 3490, 3498, 5, 96, 0, 0, 3491, 3492, 5, 92, 0, 0, 3492, 3497, 9, 0, 0, 0, 3493, 3494, 5, 96, 0, 0, 3494, 3497, 5, 96, 0, 0, 3495, 3497, 8, 33, 0, 0, 3496, 3491, 1, 0, 0, 0, 3496, 3493, 1, 0, 0, 0, 3496, 3495, 1, 0, 0, 0, 3497, 3500, 1, 0, 0, 0, 3498, 3496, 1, 0, 0, 0, 3498, 3499, 1, 0, 0, 0, 3499, 3501, 1, 0, 0, 0, 3500, 3498, 1, 0, 0, 0, 3501, 3502, 5, 96, 0, 0, 3502, 676, 1, 0, 0, 0, 3503, 3504, 7, 34, 0, 0, 3504, 678, 1, 0, 0, 0, 3505, 3506, 9, 0, 0, 0, 3506, 3507, 1, 0, 0, 0, 3507, 3508, 6, 339, 1, 0, 3508, 680, 1, 0, 0, 0, 18, 0, 684, 3413, 3418, 3420, 3426, 3432, 3436, 3442, 3448, 3453, 3459, 3470, 3472, 3483, 3485, 3496, 3498, 2, 0, 1, 0, 0, 3, 0] \ No newline at end of file diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.tokens b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.tokens new file mode 100644 index 000000000000..4779948fd379 --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.tokens @@ -0,0 +1,659 @@ +SPACE=1 +SEARCH=2 +DESCRIBE=3 +SHOW=4 +FROM=5 +WHERE=6 +FIELDS=7 +RENAME=8 +STATS=9 +DEDUP=10 +SORT=11 +EVAL=12 +HEAD=13 +TOP=14 +RARE=15 +PARSE=16 +METHOD=17 +REGEX=18 +PUNCT=19 +GROK=20 +PATTERN=21 +PATTERNS=22 +NEW_FIELD=23 +KMEANS=24 +AD=25 +ML=26 +AS=27 +BY=28 +SOURCE=29 +INDEX=30 +D=31 +DESC=32 +DATASOURCES=33 +SORTBY=34 +AUTO=35 +STR=36 +IP=37 +NUM=38 +KEEPEMPTY=39 +CONSECUTIVE=40 +DEDUP_SPLITVALUES=41 +PARTITIONS=42 +ALLNUM=43 +DELIM=44 +CENTROIDS=45 +ITERATIONS=46 +DISTANCE_TYPE=47 +NUMBER_OF_TREES=48 +SHINGLE_SIZE=49 +SAMPLE_SIZE=50 +OUTPUT_AFTER=51 +TIME_DECAY=52 +ANOMALY_RATE=53 +CATEGORY_FIELD=54 +TIME_FIELD=55 +TIME_ZONE=56 +TRAINING_DATA_SIZE=57 +ANOMALY_SCORE_THRESHOLD=58 +CASE=59 +IN=60 +NOT=61 +OR=62 +AND=63 +XOR=64 +TRUE=65 +FALSE=66 +REGEXP=67 +CONVERT_TZ=68 +DATETIME=69 +DAY=70 +DAY_HOUR=71 +DAY_MICROSECOND=72 +DAY_MINUTE=73 +DAY_OF_YEAR=74 +DAY_SECOND=75 +HOUR=76 +HOUR_MICROSECOND=77 +HOUR_MINUTE=78 +HOUR_OF_DAY=79 +HOUR_SECOND=80 +INTERVAL=81 +MICROSECOND=82 +MILLISECOND=83 +MINUTE=84 +MINUTE_MICROSECOND=85 +MINUTE_OF_DAY=86 +MINUTE_OF_HOUR=87 +MINUTE_SECOND=88 +MONTH=89 +MONTH_OF_YEAR=90 +QUARTER=91 +SECOND=92 +SECOND_MICROSECOND=93 +SECOND_OF_MINUTE=94 +WEEK=95 +WEEK_OF_YEAR=96 +YEAR=97 +YEAR_MONTH=98 +DATAMODEL=99 +LOOKUP=100 +SAVEDSEARCH=101 +INT=102 +INTEGER=103 +DOUBLE=104 +LONG=105 +FLOAT=106 +STRING=107 +BOOLEAN=108 +PIPE=109 +COMMA=110 +DOT=111 +EQUAL=112 +GREATER=113 +LESS=114 +NOT_GREATER=115 +NOT_LESS=116 +NOT_EQUAL=117 +PLUS=118 +MINUS=119 +STAR=120 +DIVIDE=121 +MODULE=122 +EXCLAMATION_SYMBOL=123 +COLON=124 +LT_PRTHS=125 +RT_PRTHS=126 +LT_SQR_PRTHS=127 +RT_SQR_PRTHS=128 +SINGLE_QUOTE=129 +DOUBLE_QUOTE=130 +BACKTICK=131 +BIT_NOT_OP=132 +BIT_AND_OP=133 +BIT_XOR_OP=134 +AVG=135 +COUNT=136 +DISTINCT_COUNT=137 +ESTDC=138 +ESTDC_ERROR=139 +MAX=140 +MEAN=141 +MEDIAN=142 +MIN=143 +MODE=144 +RANGE=145 +STDEV=146 +STDEVP=147 +SUM=148 +SUMSQ=149 +VAR_SAMP=150 +VAR_POP=151 +STDDEV_SAMP=152 +STDDEV_POP=153 +PERCENTILE=154 +TAKE=155 +FIRST=156 +LAST=157 +LIST=158 +VALUES=159 +EARLIEST=160 +EARLIEST_TIME=161 +LATEST=162 +LATEST_TIME=163 +PER_DAY=164 +PER_HOUR=165 +PER_MINUTE=166 +PER_SECOND=167 +RATE=168 +SPARKLINE=169 +C=170 +DC=171 +ABS=172 +CBRT=173 +CEIL=174 +CEILING=175 +CONV=176 +CRC32=177 +E=178 +EXP=179 +FLOOR=180 +LN=181 +LOG=182 +LOG10=183 +LOG2=184 +MOD=185 +PI=186 +POSITION=187 +POW=188 +POWER=189 +RAND=190 +ROUND=191 +SIGN=192 +SQRT=193 +TRUNCATE=194 +ACOS=195 +ASIN=196 +ATAN=197 +ATAN2=198 +COS=199 +COT=200 +DEGREES=201 +RADIANS=202 +SIN=203 +TAN=204 +ADDDATE=205 +ADDTIME=206 +CURDATE=207 +CURRENT_DATE=208 +CURRENT_TIME=209 +CURRENT_TIMESTAMP=210 +CURTIME=211 +DATE=212 +DATEDIFF=213 +DATE_ADD=214 +DATE_FORMAT=215 +DATE_SUB=216 +DAYNAME=217 +DAYOFMONTH=218 +DAYOFWEEK=219 +DAYOFYEAR=220 +DAY_OF_MONTH=221 +DAY_OF_WEEK=222 +EXTRACT=223 +FROM_DAYS=224 +FROM_UNIXTIME=225 +GET_FORMAT=226 +LAST_DAY=227 +LOCALTIME=228 +LOCALTIMESTAMP=229 +MAKEDATE=230 +MAKETIME=231 +MONTHNAME=232 +NOW=233 +PERIOD_ADD=234 +PERIOD_DIFF=235 +SEC_TO_TIME=236 +STR_TO_DATE=237 +SUBDATE=238 +SUBTIME=239 +SYSDATE=240 +TIME=241 +TIMEDIFF=242 +TIMESTAMP=243 +TIMESTAMPADD=244 +TIMESTAMPDIFF=245 +TIME_FORMAT=246 +TIME_TO_SEC=247 +TO_DAYS=248 +TO_SECONDS=249 +UNIX_TIMESTAMP=250 +UTC_DATE=251 +UTC_TIME=252 +UTC_TIMESTAMP=253 +WEEKDAY=254 +YEARWEEK=255 +SUBSTR=256 +SUBSTRING=257 +LTRIM=258 +RTRIM=259 +TRIM=260 +TO=261 +LOWER=262 +UPPER=263 +CONCAT=264 +CONCAT_WS=265 +LENGTH=266 +STRCMP=267 +RIGHT=268 +LEFT=269 +ASCII=270 +LOCATE=271 +REPLACE=272 +REVERSE=273 +CAST=274 +LIKE=275 +ISNULL=276 +ISNOTNULL=277 +IFNULL=278 +NULLIF=279 +IF=280 +TYPEOF=281 +MATCH=282 +MATCH_PHRASE=283 +MATCH_PHRASE_PREFIX=284 +MATCH_BOOL_PREFIX=285 +SIMPLE_QUERY_STRING=286 +MULTI_MATCH=287 +QUERY_STRING=288 +ALLOW_LEADING_WILDCARD=289 +ANALYZE_WILDCARD=290 +ANALYZER=291 +AUTO_GENERATE_SYNONYMS_PHRASE_QUERY=292 +BOOST=293 +CUTOFF_FREQUENCY=294 +DEFAULT_FIELD=295 +DEFAULT_OPERATOR=296 +ENABLE_POSITION_INCREMENTS=297 +ESCAPE=298 +FLAGS=299 +FUZZY_MAX_EXPANSIONS=300 +FUZZY_PREFIX_LENGTH=301 +FUZZY_TRANSPOSITIONS=302 +FUZZY_REWRITE=303 +FUZZINESS=304 +LENIENT=305 +LOW_FREQ_OPERATOR=306 +MAX_DETERMINIZED_STATES=307 +MAX_EXPANSIONS=308 +MINIMUM_SHOULD_MATCH=309 +OPERATOR=310 +PHRASE_SLOP=311 +PREFIX_LENGTH=312 +QUOTE_ANALYZER=313 +QUOTE_FIELD_SUFFIX=314 +REWRITE=315 +SLOP=316 +TIE_BREAKER=317 +TYPE=318 +ZERO_TERMS_QUERY=319 +SPAN=320 +MS=321 +S=322 +M=323 +H=324 +W=325 +Q=326 +Y=327 +ID=328 +CLUSTER=329 +INTEGER_LITERAL=330 +DECIMAL_LITERAL=331 +ID_DATE_SUFFIX=332 +DQUOTA_STRING=333 +SQUOTA_STRING=334 +BQUOTA_STRING=335 +ERROR_RECOGNITION=336 +'SEARCH'=2 +'DESCRIBE'=3 +'SHOW'=4 +'FROM'=5 +'WHERE'=6 +'FIELDS'=7 +'RENAME'=8 +'STATS'=9 +'DEDUP'=10 +'SORT'=11 +'EVAL'=12 +'HEAD'=13 +'TOP'=14 +'RARE'=15 +'PARSE'=16 +'METHOD'=17 +'REGEX'=18 +'PUNCT'=19 +'GROK'=20 +'PATTERN'=21 +'PATTERNS'=22 +'NEW_FIELD'=23 +'KMEANS'=24 +'AD'=25 +'ML'=26 +'AS'=27 +'BY'=28 +'SOURCE'=29 +'INDEX'=30 +'D'=31 +'DESC'=32 +'DATASOURCES'=33 +'SORTBY'=34 +'AUTO'=35 +'STR'=36 +'IP'=37 +'NUM'=38 +'KEEPEMPTY'=39 +'CONSECUTIVE'=40 +'DEDUP_SPLITVALUES'=41 +'PARTITIONS'=42 +'ALLNUM'=43 +'DELIM'=44 +'CENTROIDS'=45 +'ITERATIONS'=46 +'DISTANCE_TYPE'=47 +'NUMBER_OF_TREES'=48 +'SHINGLE_SIZE'=49 +'SAMPLE_SIZE'=50 +'OUTPUT_AFTER'=51 +'TIME_DECAY'=52 +'ANOMALY_RATE'=53 +'CATEGORY_FIELD'=54 +'TIME_FIELD'=55 +'TIME_ZONE'=56 +'TRAINING_DATA_SIZE'=57 +'ANOMALY_SCORE_THRESHOLD'=58 +'CASE'=59 +'IN'=60 +'NOT'=61 +'OR'=62 +'AND'=63 +'XOR'=64 +'TRUE'=65 +'FALSE'=66 +'REGEXP'=67 +'CONVERT_TZ'=68 +'DATETIME'=69 +'DAY'=70 +'DAY_HOUR'=71 +'DAY_MICROSECOND'=72 +'DAY_MINUTE'=73 +'DAY_OF_YEAR'=74 +'DAY_SECOND'=75 +'HOUR'=76 +'HOUR_MICROSECOND'=77 +'HOUR_MINUTE'=78 +'HOUR_OF_DAY'=79 +'HOUR_SECOND'=80 +'INTERVAL'=81 +'MICROSECOND'=82 +'MILLISECOND'=83 +'MINUTE'=84 +'MINUTE_MICROSECOND'=85 +'MINUTE_OF_DAY'=86 +'MINUTE_OF_HOUR'=87 +'MINUTE_SECOND'=88 +'MONTH'=89 +'MONTH_OF_YEAR'=90 +'QUARTER'=91 +'SECOND'=92 +'SECOND_MICROSECOND'=93 +'SECOND_OF_MINUTE'=94 +'WEEK'=95 +'WEEK_OF_YEAR'=96 +'YEAR'=97 +'YEAR_MONTH'=98 +'DATAMODEL'=99 +'LOOKUP'=100 +'SAVEDSEARCH'=101 +'INT'=102 +'INTEGER'=103 +'DOUBLE'=104 +'LONG'=105 +'FLOAT'=106 +'STRING'=107 +'BOOLEAN'=108 +'|'=109 +','=110 +'.'=111 +'='=112 +'>'=113 +'<'=114 +'+'=118 +'-'=119 +'*'=120 +'/'=121 +'%'=122 +'!'=123 +':'=124 +'('=125 +')'=126 +'['=127 +']'=128 +'\''=129 +'"'=130 +'`'=131 +'~'=132 +'&'=133 +'^'=134 +'AVG'=135 +'COUNT'=136 +'DISTINCT_COUNT'=137 +'ESTDC'=138 +'ESTDC_ERROR'=139 +'MAX'=140 +'MEAN'=141 +'MEDIAN'=142 +'MIN'=143 +'MODE'=144 +'RANGE'=145 +'STDEV'=146 +'STDEVP'=147 +'SUM'=148 +'SUMSQ'=149 +'VAR_SAMP'=150 +'VAR_POP'=151 +'STDDEV_SAMP'=152 +'STDDEV_POP'=153 +'PERCENTILE'=154 +'TAKE'=155 +'FIRST'=156 +'LAST'=157 +'LIST'=158 +'VALUES'=159 +'EARLIEST'=160 +'EARLIEST_TIME'=161 +'LATEST'=162 +'LATEST_TIME'=163 +'PER_DAY'=164 +'PER_HOUR'=165 +'PER_MINUTE'=166 +'PER_SECOND'=167 +'RATE'=168 +'SPARKLINE'=169 +'C'=170 +'DC'=171 +'ABS'=172 +'CBRT'=173 +'CEIL'=174 +'CEILING'=175 +'CONV'=176 +'CRC32'=177 +'E'=178 +'EXP'=179 +'FLOOR'=180 +'LN'=181 +'LOG'=182 +'LOG10'=183 +'LOG2'=184 +'MOD'=185 +'PI'=186 +'POSITION'=187 +'POW'=188 +'POWER'=189 +'RAND'=190 +'ROUND'=191 +'SIGN'=192 +'SQRT'=193 +'TRUNCATE'=194 +'ACOS'=195 +'ASIN'=196 +'ATAN'=197 +'ATAN2'=198 +'COS'=199 +'COT'=200 +'DEGREES'=201 +'RADIANS'=202 +'SIN'=203 +'TAN'=204 +'ADDDATE'=205 +'ADDTIME'=206 +'CURDATE'=207 +'CURRENT_DATE'=208 +'CURRENT_TIME'=209 +'CURRENT_TIMESTAMP'=210 +'CURTIME'=211 +'DATE'=212 +'DATEDIFF'=213 +'DATE_ADD'=214 +'DATE_FORMAT'=215 +'DATE_SUB'=216 +'DAYNAME'=217 +'DAYOFMONTH'=218 +'DAYOFWEEK'=219 +'DAYOFYEAR'=220 +'DAY_OF_MONTH'=221 +'DAY_OF_WEEK'=222 +'EXTRACT'=223 +'FROM_DAYS'=224 +'FROM_UNIXTIME'=225 +'GET_FORMAT'=226 +'LAST_DAY'=227 +'LOCALTIME'=228 +'LOCALTIMESTAMP'=229 +'MAKEDATE'=230 +'MAKETIME'=231 +'MONTHNAME'=232 +'NOW'=233 +'PERIOD_ADD'=234 +'PERIOD_DIFF'=235 +'SEC_TO_TIME'=236 +'STR_TO_DATE'=237 +'SUBDATE'=238 +'SUBTIME'=239 +'SYSDATE'=240 +'TIME'=241 +'TIMEDIFF'=242 +'TIMESTAMP'=243 +'TIMESTAMPADD'=244 +'TIMESTAMPDIFF'=245 +'TIME_FORMAT'=246 +'TIME_TO_SEC'=247 +'TO_DAYS'=248 +'TO_SECONDS'=249 +'UNIX_TIMESTAMP'=250 +'UTC_DATE'=251 +'UTC_TIME'=252 +'UTC_TIMESTAMP'=253 +'WEEKDAY'=254 +'YEARWEEK'=255 +'SUBSTR'=256 +'SUBSTRING'=257 +'LTRIM'=258 +'RTRIM'=259 +'TRIM'=260 +'TO'=261 +'LOWER'=262 +'UPPER'=263 +'CONCAT'=264 +'CONCAT_WS'=265 +'LENGTH'=266 +'STRCMP'=267 +'RIGHT'=268 +'LEFT'=269 +'ASCII'=270 +'LOCATE'=271 +'REPLACE'=272 +'REVERSE'=273 +'CAST'=274 +'LIKE'=275 +'ISNULL'=276 +'ISNOTNULL'=277 +'IFNULL'=278 +'NULLIF'=279 +'IF'=280 +'TYPEOF'=281 +'MATCH'=282 +'MATCH_PHRASE'=283 +'MATCH_PHRASE_PREFIX'=284 +'MATCH_BOOL_PREFIX'=285 +'SIMPLE_QUERY_STRING'=286 +'MULTI_MATCH'=287 +'QUERY_STRING'=288 +'ALLOW_LEADING_WILDCARD'=289 +'ANALYZE_WILDCARD'=290 +'ANALYZER'=291 +'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY'=292 +'BOOST'=293 +'CUTOFF_FREQUENCY'=294 +'DEFAULT_FIELD'=295 +'DEFAULT_OPERATOR'=296 +'ENABLE_POSITION_INCREMENTS'=297 +'ESCAPE'=298 +'FLAGS'=299 +'FUZZY_MAX_EXPANSIONS'=300 +'FUZZY_PREFIX_LENGTH'=301 +'FUZZY_TRANSPOSITIONS'=302 +'FUZZY_REWRITE'=303 +'FUZZINESS'=304 +'LENIENT'=305 +'LOW_FREQ_OPERATOR'=306 +'MAX_DETERMINIZED_STATES'=307 +'MAX_EXPANSIONS'=308 +'MINIMUM_SHOULD_MATCH'=309 +'OPERATOR'=310 +'PHRASE_SLOP'=311 +'PREFIX_LENGTH'=312 +'QUOTE_ANALYZER'=313 +'QUOTE_FIELD_SUFFIX'=314 +'REWRITE'=315 +'SLOP'=316 +'TIE_BREAKER'=317 +'TYPE'=318 +'ZERO_TERMS_QUERY'=319 +'SPAN'=320 +'MS'=321 +'S'=322 +'M'=323 +'H'=324 +'W'=325 +'Q'=326 +'Y'=327 diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.ts b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.ts new file mode 100644 index 000000000000..d9fb44016e20 --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLLexer.ts @@ -0,0 +1,1880 @@ +// Generated from ./src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLLexer.g4 by ANTLR 4.13.1 + +import * as antlr from "antlr4ng"; +import { Token } from "antlr4ng"; + + +export class OpenSearchPPLLexer extends antlr.Lexer { + public static readonly SPACE = 1; + public static readonly SEARCH = 2; + public static readonly DESCRIBE = 3; + public static readonly SHOW = 4; + public static readonly FROM = 5; + public static readonly WHERE = 6; + public static readonly FIELDS = 7; + public static readonly RENAME = 8; + public static readonly STATS = 9; + public static readonly DEDUP = 10; + public static readonly SORT = 11; + public static readonly EVAL = 12; + public static readonly HEAD = 13; + public static readonly TOP = 14; + public static readonly RARE = 15; + public static readonly PARSE = 16; + public static readonly METHOD = 17; + public static readonly REGEX = 18; + public static readonly PUNCT = 19; + public static readonly GROK = 20; + public static readonly PATTERN = 21; + public static readonly PATTERNS = 22; + public static readonly NEW_FIELD = 23; + public static readonly KMEANS = 24; + public static readonly AD = 25; + public static readonly ML = 26; + public static readonly AS = 27; + public static readonly BY = 28; + public static readonly SOURCE = 29; + public static readonly INDEX = 30; + public static readonly D = 31; + public static readonly DESC = 32; + public static readonly DATASOURCES = 33; + public static readonly SORTBY = 34; + public static readonly AUTO = 35; + public static readonly STR = 36; + public static readonly IP = 37; + public static readonly NUM = 38; + public static readonly KEEPEMPTY = 39; + public static readonly CONSECUTIVE = 40; + public static readonly DEDUP_SPLITVALUES = 41; + public static readonly PARTITIONS = 42; + public static readonly ALLNUM = 43; + public static readonly DELIM = 44; + public static readonly CENTROIDS = 45; + public static readonly ITERATIONS = 46; + public static readonly DISTANCE_TYPE = 47; + public static readonly NUMBER_OF_TREES = 48; + public static readonly SHINGLE_SIZE = 49; + public static readonly SAMPLE_SIZE = 50; + public static readonly OUTPUT_AFTER = 51; + public static readonly TIME_DECAY = 52; + public static readonly ANOMALY_RATE = 53; + public static readonly CATEGORY_FIELD = 54; + public static readonly TIME_FIELD = 55; + public static readonly TIME_ZONE = 56; + public static readonly TRAINING_DATA_SIZE = 57; + public static readonly ANOMALY_SCORE_THRESHOLD = 58; + public static readonly CASE = 59; + public static readonly IN = 60; + public static readonly NOT = 61; + public static readonly OR = 62; + public static readonly AND = 63; + public static readonly XOR = 64; + public static readonly TRUE = 65; + public static readonly FALSE = 66; + public static readonly REGEXP = 67; + public static readonly CONVERT_TZ = 68; + public static readonly DATETIME = 69; + public static readonly DAY = 70; + public static readonly DAY_HOUR = 71; + public static readonly DAY_MICROSECOND = 72; + public static readonly DAY_MINUTE = 73; + public static readonly DAY_OF_YEAR = 74; + public static readonly DAY_SECOND = 75; + public static readonly HOUR = 76; + public static readonly HOUR_MICROSECOND = 77; + public static readonly HOUR_MINUTE = 78; + public static readonly HOUR_OF_DAY = 79; + public static readonly HOUR_SECOND = 80; + public static readonly INTERVAL = 81; + public static readonly MICROSECOND = 82; + public static readonly MILLISECOND = 83; + public static readonly MINUTE = 84; + public static readonly MINUTE_MICROSECOND = 85; + public static readonly MINUTE_OF_DAY = 86; + public static readonly MINUTE_OF_HOUR = 87; + public static readonly MINUTE_SECOND = 88; + public static readonly MONTH = 89; + public static readonly MONTH_OF_YEAR = 90; + public static readonly QUARTER = 91; + public static readonly SECOND = 92; + public static readonly SECOND_MICROSECOND = 93; + public static readonly SECOND_OF_MINUTE = 94; + public static readonly WEEK = 95; + public static readonly WEEK_OF_YEAR = 96; + public static readonly YEAR = 97; + public static readonly YEAR_MONTH = 98; + public static readonly DATAMODEL = 99; + public static readonly LOOKUP = 100; + public static readonly SAVEDSEARCH = 101; + public static readonly INT = 102; + public static readonly INTEGER = 103; + public static readonly DOUBLE = 104; + public static readonly LONG = 105; + public static readonly FLOAT = 106; + public static readonly STRING = 107; + public static readonly BOOLEAN = 108; + public static readonly PIPE = 109; + public static readonly COMMA = 110; + public static readonly DOT = 111; + public static readonly EQUAL = 112; + public static readonly GREATER = 113; + public static readonly LESS = 114; + public static readonly NOT_GREATER = 115; + public static readonly NOT_LESS = 116; + public static readonly NOT_EQUAL = 117; + public static readonly PLUS = 118; + public static readonly MINUS = 119; + public static readonly STAR = 120; + public static readonly DIVIDE = 121; + public static readonly MODULE = 122; + public static readonly EXCLAMATION_SYMBOL = 123; + public static readonly COLON = 124; + public static readonly LT_PRTHS = 125; + public static readonly RT_PRTHS = 126; + public static readonly LT_SQR_PRTHS = 127; + public static readonly RT_SQR_PRTHS = 128; + public static readonly SINGLE_QUOTE = 129; + public static readonly DOUBLE_QUOTE = 130; + public static readonly BACKTICK = 131; + public static readonly BIT_NOT_OP = 132; + public static readonly BIT_AND_OP = 133; + public static readonly BIT_XOR_OP = 134; + public static readonly AVG = 135; + public static readonly COUNT = 136; + public static readonly DISTINCT_COUNT = 137; + public static readonly ESTDC = 138; + public static readonly ESTDC_ERROR = 139; + public static readonly MAX = 140; + public static readonly MEAN = 141; + public static readonly MEDIAN = 142; + public static readonly MIN = 143; + public static readonly MODE = 144; + public static readonly RANGE = 145; + public static readonly STDEV = 146; + public static readonly STDEVP = 147; + public static readonly SUM = 148; + public static readonly SUMSQ = 149; + public static readonly VAR_SAMP = 150; + public static readonly VAR_POP = 151; + public static readonly STDDEV_SAMP = 152; + public static readonly STDDEV_POP = 153; + public static readonly PERCENTILE = 154; + public static readonly TAKE = 155; + public static readonly FIRST = 156; + public static readonly LAST = 157; + public static readonly LIST = 158; + public static readonly VALUES = 159; + public static readonly EARLIEST = 160; + public static readonly EARLIEST_TIME = 161; + public static readonly LATEST = 162; + public static readonly LATEST_TIME = 163; + public static readonly PER_DAY = 164; + public static readonly PER_HOUR = 165; + public static readonly PER_MINUTE = 166; + public static readonly PER_SECOND = 167; + public static readonly RATE = 168; + public static readonly SPARKLINE = 169; + public static readonly C = 170; + public static readonly DC = 171; + public static readonly ABS = 172; + public static readonly CBRT = 173; + public static readonly CEIL = 174; + public static readonly CEILING = 175; + public static readonly CONV = 176; + public static readonly CRC32 = 177; + public static readonly E = 178; + public static readonly EXP = 179; + public static readonly FLOOR = 180; + public static readonly LN = 181; + public static readonly LOG = 182; + public static readonly LOG10 = 183; + public static readonly LOG2 = 184; + public static readonly MOD = 185; + public static readonly PI = 186; + public static readonly POSITION = 187; + public static readonly POW = 188; + public static readonly POWER = 189; + public static readonly RAND = 190; + public static readonly ROUND = 191; + public static readonly SIGN = 192; + public static readonly SQRT = 193; + public static readonly TRUNCATE = 194; + public static readonly ACOS = 195; + public static readonly ASIN = 196; + public static readonly ATAN = 197; + public static readonly ATAN2 = 198; + public static readonly COS = 199; + public static readonly COT = 200; + public static readonly DEGREES = 201; + public static readonly RADIANS = 202; + public static readonly SIN = 203; + public static readonly TAN = 204; + public static readonly ADDDATE = 205; + public static readonly ADDTIME = 206; + public static readonly CURDATE = 207; + public static readonly CURRENT_DATE = 208; + public static readonly CURRENT_TIME = 209; + public static readonly CURRENT_TIMESTAMP = 210; + public static readonly CURTIME = 211; + public static readonly DATE = 212; + public static readonly DATEDIFF = 213; + public static readonly DATE_ADD = 214; + public static readonly DATE_FORMAT = 215; + public static readonly DATE_SUB = 216; + public static readonly DAYNAME = 217; + public static readonly DAYOFMONTH = 218; + public static readonly DAYOFWEEK = 219; + public static readonly DAYOFYEAR = 220; + public static readonly DAY_OF_MONTH = 221; + public static readonly DAY_OF_WEEK = 222; + public static readonly EXTRACT = 223; + public static readonly FROM_DAYS = 224; + public static readonly FROM_UNIXTIME = 225; + public static readonly GET_FORMAT = 226; + public static readonly LAST_DAY = 227; + public static readonly LOCALTIME = 228; + public static readonly LOCALTIMESTAMP = 229; + public static readonly MAKEDATE = 230; + public static readonly MAKETIME = 231; + public static readonly MONTHNAME = 232; + public static readonly NOW = 233; + public static readonly PERIOD_ADD = 234; + public static readonly PERIOD_DIFF = 235; + public static readonly SEC_TO_TIME = 236; + public static readonly STR_TO_DATE = 237; + public static readonly SUBDATE = 238; + public static readonly SUBTIME = 239; + public static readonly SYSDATE = 240; + public static readonly TIME = 241; + public static readonly TIMEDIFF = 242; + public static readonly TIMESTAMP = 243; + public static readonly TIMESTAMPADD = 244; + public static readonly TIMESTAMPDIFF = 245; + public static readonly TIME_FORMAT = 246; + public static readonly TIME_TO_SEC = 247; + public static readonly TO_DAYS = 248; + public static readonly TO_SECONDS = 249; + public static readonly UNIX_TIMESTAMP = 250; + public static readonly UTC_DATE = 251; + public static readonly UTC_TIME = 252; + public static readonly UTC_TIMESTAMP = 253; + public static readonly WEEKDAY = 254; + public static readonly YEARWEEK = 255; + public static readonly SUBSTR = 256; + public static readonly SUBSTRING = 257; + public static readonly LTRIM = 258; + public static readonly RTRIM = 259; + public static readonly TRIM = 260; + public static readonly TO = 261; + public static readonly LOWER = 262; + public static readonly UPPER = 263; + public static readonly CONCAT = 264; + public static readonly CONCAT_WS = 265; + public static readonly LENGTH = 266; + public static readonly STRCMP = 267; + public static readonly RIGHT = 268; + public static readonly LEFT = 269; + public static readonly ASCII = 270; + public static readonly LOCATE = 271; + public static readonly REPLACE = 272; + public static readonly REVERSE = 273; + public static readonly CAST = 274; + public static readonly LIKE = 275; + public static readonly ISNULL = 276; + public static readonly ISNOTNULL = 277; + public static readonly IFNULL = 278; + public static readonly NULLIF = 279; + public static readonly IF = 280; + public static readonly TYPEOF = 281; + public static readonly MATCH = 282; + public static readonly MATCH_PHRASE = 283; + public static readonly MATCH_PHRASE_PREFIX = 284; + public static readonly MATCH_BOOL_PREFIX = 285; + public static readonly SIMPLE_QUERY_STRING = 286; + public static readonly MULTI_MATCH = 287; + public static readonly QUERY_STRING = 288; + public static readonly ALLOW_LEADING_WILDCARD = 289; + public static readonly ANALYZE_WILDCARD = 290; + public static readonly ANALYZER = 291; + public static readonly AUTO_GENERATE_SYNONYMS_PHRASE_QUERY = 292; + public static readonly BOOST = 293; + public static readonly CUTOFF_FREQUENCY = 294; + public static readonly DEFAULT_FIELD = 295; + public static readonly DEFAULT_OPERATOR = 296; + public static readonly ENABLE_POSITION_INCREMENTS = 297; + public static readonly ESCAPE = 298; + public static readonly FLAGS = 299; + public static readonly FUZZY_MAX_EXPANSIONS = 300; + public static readonly FUZZY_PREFIX_LENGTH = 301; + public static readonly FUZZY_TRANSPOSITIONS = 302; + public static readonly FUZZY_REWRITE = 303; + public static readonly FUZZINESS = 304; + public static readonly LENIENT = 305; + public static readonly LOW_FREQ_OPERATOR = 306; + public static readonly MAX_DETERMINIZED_STATES = 307; + public static readonly MAX_EXPANSIONS = 308; + public static readonly MINIMUM_SHOULD_MATCH = 309; + public static readonly OPERATOR = 310; + public static readonly PHRASE_SLOP = 311; + public static readonly PREFIX_LENGTH = 312; + public static readonly QUOTE_ANALYZER = 313; + public static readonly QUOTE_FIELD_SUFFIX = 314; + public static readonly REWRITE = 315; + public static readonly SLOP = 316; + public static readonly TIE_BREAKER = 317; + public static readonly TYPE = 318; + public static readonly ZERO_TERMS_QUERY = 319; + public static readonly SPAN = 320; + public static readonly MS = 321; + public static readonly S = 322; + public static readonly M = 323; + public static readonly H = 324; + public static readonly W = 325; + public static readonly Q = 326; + public static readonly Y = 327; + public static readonly ID = 328; + public static readonly CLUSTER = 329; + public static readonly INTEGER_LITERAL = 330; + public static readonly DECIMAL_LITERAL = 331; + public static readonly ID_DATE_SUFFIX = 332; + public static readonly DQUOTA_STRING = 333; + public static readonly SQUOTA_STRING = 334; + public static readonly BQUOTA_STRING = 335; + public static readonly ERROR_RECOGNITION = 336; + + public static readonly channelNames = [ + "DEFAULT_TOKEN_CHANNEL", "HIDDEN", "WHITESPACE", "ERRORCHANNEL" + ]; + + public static readonly literalNames = [ + null, null, "'SEARCH'", "'DESCRIBE'", "'SHOW'", "'FROM'", "'WHERE'", + "'FIELDS'", "'RENAME'", "'STATS'", "'DEDUP'", "'SORT'", "'EVAL'", + "'HEAD'", "'TOP'", "'RARE'", "'PARSE'", "'METHOD'", "'REGEX'", "'PUNCT'", + "'GROK'", "'PATTERN'", "'PATTERNS'", "'NEW_FIELD'", "'KMEANS'", + "'AD'", "'ML'", "'AS'", "'BY'", "'SOURCE'", "'INDEX'", "'D'", "'DESC'", + "'DATASOURCES'", "'SORTBY'", "'AUTO'", "'STR'", "'IP'", "'NUM'", + "'KEEPEMPTY'", "'CONSECUTIVE'", "'DEDUP_SPLITVALUES'", "'PARTITIONS'", + "'ALLNUM'", "'DELIM'", "'CENTROIDS'", "'ITERATIONS'", "'DISTANCE_TYPE'", + "'NUMBER_OF_TREES'", "'SHINGLE_SIZE'", "'SAMPLE_SIZE'", "'OUTPUT_AFTER'", + "'TIME_DECAY'", "'ANOMALY_RATE'", "'CATEGORY_FIELD'", "'TIME_FIELD'", + "'TIME_ZONE'", "'TRAINING_DATA_SIZE'", "'ANOMALY_SCORE_THRESHOLD'", + "'CASE'", "'IN'", "'NOT'", "'OR'", "'AND'", "'XOR'", "'TRUE'", "'FALSE'", + "'REGEXP'", "'CONVERT_TZ'", "'DATETIME'", "'DAY'", "'DAY_HOUR'", + "'DAY_MICROSECOND'", "'DAY_MINUTE'", "'DAY_OF_YEAR'", "'DAY_SECOND'", + "'HOUR'", "'HOUR_MICROSECOND'", "'HOUR_MINUTE'", "'HOUR_OF_DAY'", + "'HOUR_SECOND'", "'INTERVAL'", "'MICROSECOND'", "'MILLISECOND'", + "'MINUTE'", "'MINUTE_MICROSECOND'", "'MINUTE_OF_DAY'", "'MINUTE_OF_HOUR'", + "'MINUTE_SECOND'", "'MONTH'", "'MONTH_OF_YEAR'", "'QUARTER'", "'SECOND'", + "'SECOND_MICROSECOND'", "'SECOND_OF_MINUTE'", "'WEEK'", "'WEEK_OF_YEAR'", + "'YEAR'", "'YEAR_MONTH'", "'DATAMODEL'", "'LOOKUP'", "'SAVEDSEARCH'", + "'INT'", "'INTEGER'", "'DOUBLE'", "'LONG'", "'FLOAT'", "'STRING'", + "'BOOLEAN'", "'|'", "','", "'.'", "'='", "'>'", "'<'", null, null, + null, "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "':'", "'('", "')'", + "'['", "']'", "'''", "'\"'", "'`'", "'~'", "'&'", "'^'", "'AVG'", + "'COUNT'", "'DISTINCT_COUNT'", "'ESTDC'", "'ESTDC_ERROR'", "'MAX'", + "'MEAN'", "'MEDIAN'", "'MIN'", "'MODE'", "'RANGE'", "'STDEV'", "'STDEVP'", + "'SUM'", "'SUMSQ'", "'VAR_SAMP'", "'VAR_POP'", "'STDDEV_SAMP'", + "'STDDEV_POP'", "'PERCENTILE'", "'TAKE'", "'FIRST'", "'LAST'", "'LIST'", + "'VALUES'", "'EARLIEST'", "'EARLIEST_TIME'", "'LATEST'", "'LATEST_TIME'", + "'PER_DAY'", "'PER_HOUR'", "'PER_MINUTE'", "'PER_SECOND'", "'RATE'", + "'SPARKLINE'", "'C'", "'DC'", "'ABS'", "'CBRT'", "'CEIL'", "'CEILING'", + "'CONV'", "'CRC32'", "'E'", "'EXP'", "'FLOOR'", "'LN'", "'LOG'", + "'LOG10'", "'LOG2'", "'MOD'", "'PI'", "'POSITION'", "'POW'", "'POWER'", + "'RAND'", "'ROUND'", "'SIGN'", "'SQRT'", "'TRUNCATE'", "'ACOS'", + "'ASIN'", "'ATAN'", "'ATAN2'", "'COS'", "'COT'", "'DEGREES'", "'RADIANS'", + "'SIN'", "'TAN'", "'ADDDATE'", "'ADDTIME'", "'CURDATE'", "'CURRENT_DATE'", + "'CURRENT_TIME'", "'CURRENT_TIMESTAMP'", "'CURTIME'", "'DATE'", + "'DATEDIFF'", "'DATE_ADD'", "'DATE_FORMAT'", "'DATE_SUB'", "'DAYNAME'", + "'DAYOFMONTH'", "'DAYOFWEEK'", "'DAYOFYEAR'", "'DAY_OF_MONTH'", + "'DAY_OF_WEEK'", "'EXTRACT'", "'FROM_DAYS'", "'FROM_UNIXTIME'", + "'GET_FORMAT'", "'LAST_DAY'", "'LOCALTIME'", "'LOCALTIMESTAMP'", + "'MAKEDATE'", "'MAKETIME'", "'MONTHNAME'", "'NOW'", "'PERIOD_ADD'", + "'PERIOD_DIFF'", "'SEC_TO_TIME'", "'STR_TO_DATE'", "'SUBDATE'", + "'SUBTIME'", "'SYSDATE'", "'TIME'", "'TIMEDIFF'", "'TIMESTAMP'", + "'TIMESTAMPADD'", "'TIMESTAMPDIFF'", "'TIME_FORMAT'", "'TIME_TO_SEC'", + "'TO_DAYS'", "'TO_SECONDS'", "'UNIX_TIMESTAMP'", "'UTC_DATE'", "'UTC_TIME'", + "'UTC_TIMESTAMP'", "'WEEKDAY'", "'YEARWEEK'", "'SUBSTR'", "'SUBSTRING'", + "'LTRIM'", "'RTRIM'", "'TRIM'", "'TO'", "'LOWER'", "'UPPER'", "'CONCAT'", + "'CONCAT_WS'", "'LENGTH'", "'STRCMP'", "'RIGHT'", "'LEFT'", "'ASCII'", + "'LOCATE'", "'REPLACE'", "'REVERSE'", "'CAST'", "'LIKE'", "'ISNULL'", + "'ISNOTNULL'", "'IFNULL'", "'NULLIF'", "'IF'", "'TYPEOF'", "'MATCH'", + "'MATCH_PHRASE'", "'MATCH_PHRASE_PREFIX'", "'MATCH_BOOL_PREFIX'", + "'SIMPLE_QUERY_STRING'", "'MULTI_MATCH'", "'QUERY_STRING'", "'ALLOW_LEADING_WILDCARD'", + "'ANALYZE_WILDCARD'", "'ANALYZER'", "'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY'", + "'BOOST'", "'CUTOFF_FREQUENCY'", "'DEFAULT_FIELD'", "'DEFAULT_OPERATOR'", + "'ENABLE_POSITION_INCREMENTS'", "'ESCAPE'", "'FLAGS'", "'FUZZY_MAX_EXPANSIONS'", + "'FUZZY_PREFIX_LENGTH'", "'FUZZY_TRANSPOSITIONS'", "'FUZZY_REWRITE'", + "'FUZZINESS'", "'LENIENT'", "'LOW_FREQ_OPERATOR'", "'MAX_DETERMINIZED_STATES'", + "'MAX_EXPANSIONS'", "'MINIMUM_SHOULD_MATCH'", "'OPERATOR'", "'PHRASE_SLOP'", + "'PREFIX_LENGTH'", "'QUOTE_ANALYZER'", "'QUOTE_FIELD_SUFFIX'", "'REWRITE'", + "'SLOP'", "'TIE_BREAKER'", "'TYPE'", "'ZERO_TERMS_QUERY'", "'SPAN'", + "'MS'", "'S'", "'M'", "'H'", "'W'", "'Q'", "'Y'" + ]; + + public static readonly symbolicNames = [ + null, "SPACE", "SEARCH", "DESCRIBE", "SHOW", "FROM", "WHERE", "FIELDS", + "RENAME", "STATS", "DEDUP", "SORT", "EVAL", "HEAD", "TOP", "RARE", + "PARSE", "METHOD", "REGEX", "PUNCT", "GROK", "PATTERN", "PATTERNS", + "NEW_FIELD", "KMEANS", "AD", "ML", "AS", "BY", "SOURCE", "INDEX", + "D", "DESC", "DATASOURCES", "SORTBY", "AUTO", "STR", "IP", "NUM", + "KEEPEMPTY", "CONSECUTIVE", "DEDUP_SPLITVALUES", "PARTITIONS", "ALLNUM", + "DELIM", "CENTROIDS", "ITERATIONS", "DISTANCE_TYPE", "NUMBER_OF_TREES", + "SHINGLE_SIZE", "SAMPLE_SIZE", "OUTPUT_AFTER", "TIME_DECAY", "ANOMALY_RATE", + "CATEGORY_FIELD", "TIME_FIELD", "TIME_ZONE", "TRAINING_DATA_SIZE", + "ANOMALY_SCORE_THRESHOLD", "CASE", "IN", "NOT", "OR", "AND", "XOR", + "TRUE", "FALSE", "REGEXP", "CONVERT_TZ", "DATETIME", "DAY", "DAY_HOUR", + "DAY_MICROSECOND", "DAY_MINUTE", "DAY_OF_YEAR", "DAY_SECOND", "HOUR", + "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_OF_DAY", "HOUR_SECOND", + "INTERVAL", "MICROSECOND", "MILLISECOND", "MINUTE", "MINUTE_MICROSECOND", + "MINUTE_OF_DAY", "MINUTE_OF_HOUR", "MINUTE_SECOND", "MONTH", "MONTH_OF_YEAR", + "QUARTER", "SECOND", "SECOND_MICROSECOND", "SECOND_OF_MINUTE", "WEEK", + "WEEK_OF_YEAR", "YEAR", "YEAR_MONTH", "DATAMODEL", "LOOKUP", "SAVEDSEARCH", + "INT", "INTEGER", "DOUBLE", "LONG", "FLOAT", "STRING", "BOOLEAN", + "PIPE", "COMMA", "DOT", "EQUAL", "GREATER", "LESS", "NOT_GREATER", + "NOT_LESS", "NOT_EQUAL", "PLUS", "MINUS", "STAR", "DIVIDE", "MODULE", + "EXCLAMATION_SYMBOL", "COLON", "LT_PRTHS", "RT_PRTHS", "LT_SQR_PRTHS", + "RT_SQR_PRTHS", "SINGLE_QUOTE", "DOUBLE_QUOTE", "BACKTICK", "BIT_NOT_OP", + "BIT_AND_OP", "BIT_XOR_OP", "AVG", "COUNT", "DISTINCT_COUNT", "ESTDC", + "ESTDC_ERROR", "MAX", "MEAN", "MEDIAN", "MIN", "MODE", "RANGE", + "STDEV", "STDEVP", "SUM", "SUMSQ", "VAR_SAMP", "VAR_POP", "STDDEV_SAMP", + "STDDEV_POP", "PERCENTILE", "TAKE", "FIRST", "LAST", "LIST", "VALUES", + "EARLIEST", "EARLIEST_TIME", "LATEST", "LATEST_TIME", "PER_DAY", + "PER_HOUR", "PER_MINUTE", "PER_SECOND", "RATE", "SPARKLINE", "C", + "DC", "ABS", "CBRT", "CEIL", "CEILING", "CONV", "CRC32", "E", "EXP", + "FLOOR", "LN", "LOG", "LOG10", "LOG2", "MOD", "PI", "POSITION", + "POW", "POWER", "RAND", "ROUND", "SIGN", "SQRT", "TRUNCATE", "ACOS", + "ASIN", "ATAN", "ATAN2", "COS", "COT", "DEGREES", "RADIANS", "SIN", + "TAN", "ADDDATE", "ADDTIME", "CURDATE", "CURRENT_DATE", "CURRENT_TIME", + "CURRENT_TIMESTAMP", "CURTIME", "DATE", "DATEDIFF", "DATE_ADD", + "DATE_FORMAT", "DATE_SUB", "DAYNAME", "DAYOFMONTH", "DAYOFWEEK", + "DAYOFYEAR", "DAY_OF_MONTH", "DAY_OF_WEEK", "EXTRACT", "FROM_DAYS", + "FROM_UNIXTIME", "GET_FORMAT", "LAST_DAY", "LOCALTIME", "LOCALTIMESTAMP", + "MAKEDATE", "MAKETIME", "MONTHNAME", "NOW", "PERIOD_ADD", "PERIOD_DIFF", + "SEC_TO_TIME", "STR_TO_DATE", "SUBDATE", "SUBTIME", "SYSDATE", "TIME", + "TIMEDIFF", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TIME_FORMAT", + "TIME_TO_SEC", "TO_DAYS", "TO_SECONDS", "UNIX_TIMESTAMP", "UTC_DATE", + "UTC_TIME", "UTC_TIMESTAMP", "WEEKDAY", "YEARWEEK", "SUBSTR", "SUBSTRING", + "LTRIM", "RTRIM", "TRIM", "TO", "LOWER", "UPPER", "CONCAT", "CONCAT_WS", + "LENGTH", "STRCMP", "RIGHT", "LEFT", "ASCII", "LOCATE", "REPLACE", + "REVERSE", "CAST", "LIKE", "ISNULL", "ISNOTNULL", "IFNULL", "NULLIF", + "IF", "TYPEOF", "MATCH", "MATCH_PHRASE", "MATCH_PHRASE_PREFIX", + "MATCH_BOOL_PREFIX", "SIMPLE_QUERY_STRING", "MULTI_MATCH", "QUERY_STRING", + "ALLOW_LEADING_WILDCARD", "ANALYZE_WILDCARD", "ANALYZER", "AUTO_GENERATE_SYNONYMS_PHRASE_QUERY", + "BOOST", "CUTOFF_FREQUENCY", "DEFAULT_FIELD", "DEFAULT_OPERATOR", + "ENABLE_POSITION_INCREMENTS", "ESCAPE", "FLAGS", "FUZZY_MAX_EXPANSIONS", + "FUZZY_PREFIX_LENGTH", "FUZZY_TRANSPOSITIONS", "FUZZY_REWRITE", + "FUZZINESS", "LENIENT", "LOW_FREQ_OPERATOR", "MAX_DETERMINIZED_STATES", + "MAX_EXPANSIONS", "MINIMUM_SHOULD_MATCH", "OPERATOR", "PHRASE_SLOP", + "PREFIX_LENGTH", "QUOTE_ANALYZER", "QUOTE_FIELD_SUFFIX", "REWRITE", + "SLOP", "TIE_BREAKER", "TYPE", "ZERO_TERMS_QUERY", "SPAN", "MS", + "S", "M", "H", "W", "Q", "Y", "ID", "CLUSTER", "INTEGER_LITERAL", + "DECIMAL_LITERAL", "ID_DATE_SUFFIX", "DQUOTA_STRING", "SQUOTA_STRING", + "BQUOTA_STRING", "ERROR_RECOGNITION" + ]; + + public static readonly modeNames = [ + "DEFAULT_MODE", + ]; + + public static readonly ruleNames = [ + "SPACE", "SEARCH", "DESCRIBE", "SHOW", "FROM", "WHERE", "FIELDS", + "RENAME", "STATS", "DEDUP", "SORT", "EVAL", "HEAD", "TOP", "RARE", + "PARSE", "METHOD", "REGEX", "PUNCT", "GROK", "PATTERN", "PATTERNS", + "NEW_FIELD", "KMEANS", "AD", "ML", "AS", "BY", "SOURCE", "INDEX", + "D", "DESC", "DATASOURCES", "SORTBY", "AUTO", "STR", "IP", "NUM", + "KEEPEMPTY", "CONSECUTIVE", "DEDUP_SPLITVALUES", "PARTITIONS", "ALLNUM", + "DELIM", "CENTROIDS", "ITERATIONS", "DISTANCE_TYPE", "NUMBER_OF_TREES", + "SHINGLE_SIZE", "SAMPLE_SIZE", "OUTPUT_AFTER", "TIME_DECAY", "ANOMALY_RATE", + "CATEGORY_FIELD", "TIME_FIELD", "TIME_ZONE", "TRAINING_DATA_SIZE", + "ANOMALY_SCORE_THRESHOLD", "CASE", "IN", "NOT", "OR", "AND", "XOR", + "TRUE", "FALSE", "REGEXP", "CONVERT_TZ", "DATETIME", "DAY", "DAY_HOUR", + "DAY_MICROSECOND", "DAY_MINUTE", "DAY_OF_YEAR", "DAY_SECOND", "HOUR", + "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_OF_DAY", "HOUR_SECOND", + "INTERVAL", "MICROSECOND", "MILLISECOND", "MINUTE", "MINUTE_MICROSECOND", + "MINUTE_OF_DAY", "MINUTE_OF_HOUR", "MINUTE_SECOND", "MONTH", "MONTH_OF_YEAR", + "QUARTER", "SECOND", "SECOND_MICROSECOND", "SECOND_OF_MINUTE", "WEEK", + "WEEK_OF_YEAR", "YEAR", "YEAR_MONTH", "DATAMODEL", "LOOKUP", "SAVEDSEARCH", + "INT", "INTEGER", "DOUBLE", "LONG", "FLOAT", "STRING", "BOOLEAN", + "PIPE", "COMMA", "DOT", "EQUAL", "GREATER", "LESS", "NOT_GREATER", + "NOT_LESS", "NOT_EQUAL", "PLUS", "MINUS", "STAR", "DIVIDE", "MODULE", + "EXCLAMATION_SYMBOL", "COLON", "LT_PRTHS", "RT_PRTHS", "LT_SQR_PRTHS", + "RT_SQR_PRTHS", "SINGLE_QUOTE", "DOUBLE_QUOTE", "BACKTICK", "BIT_NOT_OP", + "BIT_AND_OP", "BIT_XOR_OP", "AVG", "COUNT", "DISTINCT_COUNT", "ESTDC", + "ESTDC_ERROR", "MAX", "MEAN", "MEDIAN", "MIN", "MODE", "RANGE", + "STDEV", "STDEVP", "SUM", "SUMSQ", "VAR_SAMP", "VAR_POP", "STDDEV_SAMP", + "STDDEV_POP", "PERCENTILE", "TAKE", "FIRST", "LAST", "LIST", "VALUES", + "EARLIEST", "EARLIEST_TIME", "LATEST", "LATEST_TIME", "PER_DAY", + "PER_HOUR", "PER_MINUTE", "PER_SECOND", "RATE", "SPARKLINE", "C", + "DC", "ABS", "CBRT", "CEIL", "CEILING", "CONV", "CRC32", "E", "EXP", + "FLOOR", "LN", "LOG", "LOG10", "LOG2", "MOD", "PI", "POSITION", + "POW", "POWER", "RAND", "ROUND", "SIGN", "SQRT", "TRUNCATE", "ACOS", + "ASIN", "ATAN", "ATAN2", "COS", "COT", "DEGREES", "RADIANS", "SIN", + "TAN", "ADDDATE", "ADDTIME", "CURDATE", "CURRENT_DATE", "CURRENT_TIME", + "CURRENT_TIMESTAMP", "CURTIME", "DATE", "DATEDIFF", "DATE_ADD", + "DATE_FORMAT", "DATE_SUB", "DAYNAME", "DAYOFMONTH", "DAYOFWEEK", + "DAYOFYEAR", "DAY_OF_MONTH", "DAY_OF_WEEK", "EXTRACT", "FROM_DAYS", + "FROM_UNIXTIME", "GET_FORMAT", "LAST_DAY", "LOCALTIME", "LOCALTIMESTAMP", + "MAKEDATE", "MAKETIME", "MONTHNAME", "NOW", "PERIOD_ADD", "PERIOD_DIFF", + "SEC_TO_TIME", "STR_TO_DATE", "SUBDATE", "SUBTIME", "SYSDATE", "TIME", + "TIMEDIFF", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TIME_FORMAT", + "TIME_TO_SEC", "TO_DAYS", "TO_SECONDS", "UNIX_TIMESTAMP", "UTC_DATE", + "UTC_TIME", "UTC_TIMESTAMP", "WEEKDAY", "YEARWEEK", "SUBSTR", "SUBSTRING", + "LTRIM", "RTRIM", "TRIM", "TO", "LOWER", "UPPER", "CONCAT", "CONCAT_WS", + "LENGTH", "STRCMP", "RIGHT", "LEFT", "ASCII", "LOCATE", "REPLACE", + "REVERSE", "CAST", "LIKE", "ISNULL", "ISNOTNULL", "IFNULL", "NULLIF", + "IF", "TYPEOF", "MATCH", "MATCH_PHRASE", "MATCH_PHRASE_PREFIX", + "MATCH_BOOL_PREFIX", "SIMPLE_QUERY_STRING", "MULTI_MATCH", "QUERY_STRING", + "ALLOW_LEADING_WILDCARD", "ANALYZE_WILDCARD", "ANALYZER", "AUTO_GENERATE_SYNONYMS_PHRASE_QUERY", + "BOOST", "CUTOFF_FREQUENCY", "DEFAULT_FIELD", "DEFAULT_OPERATOR", + "ENABLE_POSITION_INCREMENTS", "ESCAPE", "FLAGS", "FUZZY_MAX_EXPANSIONS", + "FUZZY_PREFIX_LENGTH", "FUZZY_TRANSPOSITIONS", "FUZZY_REWRITE", + "FUZZINESS", "LENIENT", "LOW_FREQ_OPERATOR", "MAX_DETERMINIZED_STATES", + "MAX_EXPANSIONS", "MINIMUM_SHOULD_MATCH", "OPERATOR", "PHRASE_SLOP", + "PREFIX_LENGTH", "QUOTE_ANALYZER", "QUOTE_FIELD_SUFFIX", "REWRITE", + "SLOP", "TIE_BREAKER", "TYPE", "ZERO_TERMS_QUERY", "SPAN", "MS", + "S", "M", "H", "W", "Q", "Y", "ID", "CLUSTER", "INTEGER_LITERAL", + "DECIMAL_LITERAL", "DATE_SUFFIX", "ID_LITERAL", "CLUSTER_PREFIX_LITERAL", + "ID_DATE_SUFFIX", "DQUOTA_STRING", "SQUOTA_STRING", "BQUOTA_STRING", + "DEC_DIGIT", "ERROR_RECOGNITION", + ]; + + + public constructor(input: antlr.CharStream) { + super(input); + this.interpreter = new antlr.LexerATNSimulator(this, OpenSearchPPLLexer._ATN, OpenSearchPPLLexer.decisionsToDFA, new antlr.PredictionContextCache()); + } + + public get grammarFileName(): string { return "OpenSearchPPLLexer.g4"; } + + public get literalNames(): (string | null)[] { return OpenSearchPPLLexer.literalNames; } + public get symbolicNames(): (string | null)[] { return OpenSearchPPLLexer.symbolicNames; } + public get ruleNames(): string[] { return OpenSearchPPLLexer.ruleNames; } + + public get serializedATN(): number[] { return OpenSearchPPLLexer._serializedATN; } + + public get channelNames(): string[] { return OpenSearchPPLLexer.channelNames; } + + public get modeNames(): string[] { return OpenSearchPPLLexer.modeNames; } + + public static readonly _serializedATN: number[] = [ + 4,0,336,3509,6,-1,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, + 2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97, + 7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103, + 7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108, + 2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114, + 7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119, + 2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125, + 7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130, + 2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136, + 7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141, + 2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147, + 7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152, + 2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158, + 7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163, + 2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169, + 7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174, + 2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180, + 7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185, + 2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191, + 7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196, + 2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202, + 7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207, + 2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213, + 7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218, + 2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224, + 7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229, + 2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235, + 7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240, + 2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246, + 7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251, + 2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257, + 7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262, + 2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268, + 7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273, + 2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279, + 7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284, + 2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290, + 7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295, + 2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301, + 7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306, + 2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312, + 7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317, + 2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323, + 7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328, + 2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334, + 7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339, + 1,0,4,0,683,8,0,11,0,12,0,684,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1, + 1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,4,1, + 4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1, + 6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1, + 9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11, + 1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14, + 1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16, + 1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18, + 1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20, + 1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22, + 1,22,1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,23, + 1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,28, + 1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29,1,30, + 1,30,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32, + 1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34, + 1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37, + 1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39, + 1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40, + 1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40, + 1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41, + 1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43, + 1,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45, + 1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46, + 1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47, + 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47, + 1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48, + 1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50, + 1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51, + 1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52, + 1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53, + 1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54, + 1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55, + 1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56, + 1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56, + 1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57, + 1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58, + 1,58,1,58,1,58,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,61,1,61,1,61, + 1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64, + 1,65,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66, + 1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,68,1,68, + 1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70, + 1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71, + 1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72, + 1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73, + 1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74, + 1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76, + 1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,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, + 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,79, + 1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80, + 1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81, + 1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82, + 1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,84, + 1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84, + 1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85, + 1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86, + 1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87, + 1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88, + 1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89, + 1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91, + 1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92, + 1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93, + 1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93, + 1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95, + 1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,97, + 1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98, + 1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99, + 1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100, + 1,100,1,100,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102, + 1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,104, + 1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,106, + 1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107, + 1,107,1,107,1,107,1,108,1,108,1,109,1,109,1,110,1,110,1,111,1,111, + 1,112,1,112,1,113,1,113,1,114,1,114,1,114,1,115,1,115,1,115,1,116, + 1,116,1,116,1,117,1,117,1,118,1,118,1,119,1,119,1,120,1,120,1,121, + 1,121,1,122,1,122,1,123,1,123,1,124,1,124,1,125,1,125,1,126,1,126, + 1,127,1,127,1,128,1,128,1,129,1,129,1,130,1,130,1,131,1,131,1,132, + 1,132,1,133,1,133,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135, + 1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136, + 1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137, + 1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138, + 1,138,1,138,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,140,1,140, + 1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142, + 1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144, + 1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146, + 1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148, + 1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,149,1,149,1,149,1,150, + 1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151, + 1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152, + 1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153, + 1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154, + 1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156, + 1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158, + 1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159, + 1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160, + 1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,161,1,161, + 1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162, + 1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164, + 1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165, + 1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166, + 1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167, + 1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168, + 1,169,1,169,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,172,1,172, + 1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174, + 1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,176, + 1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,178,1,178,1,178,1,178, + 1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,181,1,181, + 1,181,1,181,1,182,1,182,1,182,1,182,1,182,1,182,1,183,1,183,1,183, + 1,183,1,183,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,186,1,186, + 1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187, + 1,188,1,188,1,188,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189, + 1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191, + 1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193, + 1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195, + 1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197, + 1,197,1,197,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,200, + 1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,201, + 1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,203,1,203,1,203, + 1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205, + 1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206, + 1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207, + 1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,208, + 1,208,1,208,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209, + 1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209, + 1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,210,1,210, + 1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212, + 1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,213, + 1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214, + 1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215, + 1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217, + 1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218, + 1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219, + 1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220, + 1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221, + 1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222, + 1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223, + 1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224, + 1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225, + 1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226, + 1,226,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227, + 1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228, + 1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229, + 1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230, + 1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,231, + 1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,233,1,233,1,233, + 1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234, + 1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,235,1,235, + 1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236, + 1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236, + 1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238, + 1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,239, + 1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241, + 1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242, + 1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243, + 1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244, + 1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245, + 1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,246, + 1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246, + 1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248, + 1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249, + 1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249, + 1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251, + 1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252, + 1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252, + 1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254, + 1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255, + 1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256, + 1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258, + 1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,261, + 1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262, + 1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264, + 1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265, + 1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267, + 1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,269,1,269, + 1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270, + 1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272, + 1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,274, + 1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275, + 1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277, + 1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278, + 1,278,1,278,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280, + 1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282, + 1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283, + 1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283, + 1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284, + 1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,284, + 1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285, + 1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285, + 1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286, + 1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287, + 1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288, + 1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288, + 1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289, + 1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,289, + 1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291, + 1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291, + 1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291, + 1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291, + 1,291,1,292,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293, + 1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293, + 1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,294, + 1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295, + 1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295, + 1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296, + 1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296, + 1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297, + 1,297,1,298,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299, + 1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299, + 1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300, + 1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300, + 1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301, + 1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301, + 1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302, + 1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303, + 1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,304, + 1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305, + 1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306, + 1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306, + 1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306, + 1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307, + 1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308, + 1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308, + 1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,309, + 1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310, + 1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311, + 1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312, + 1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313, + 1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313, + 1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314, + 1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316, + 1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317, + 1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318, + 1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319, + 1,319,1,319,1,319,1,320,1,320,1,320,1,321,1,321,1,322,1,322,1,323, + 1,323,1,324,1,324,1,325,1,325,1,326,1,326,1,327,1,327,1,328,1,328, + 1,329,4,329,3412,8,329,11,329,12,329,3413,1,330,4,330,3417,8,330, + 11,330,12,330,3418,3,330,3421,8,330,1,330,1,330,4,330,3425,8,330, + 11,330,12,330,3426,1,331,1,331,4,331,3431,8,331,11,331,12,331,3432, + 4,331,3435,8,331,11,331,12,331,3436,1,332,1,332,5,332,3441,8,332, + 10,332,12,332,3444,9,332,1,333,4,333,3447,8,333,11,333,12,333,3448, + 1,333,5,333,3452,8,333,10,333,12,333,3455,9,333,1,333,1,333,1,334, + 3,334,3460,8,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335, + 1,335,5,335,3471,8,335,10,335,12,335,3474,9,335,1,335,1,335,1,336, + 1,336,1,336,1,336,1,336,1,336,5,336,3484,8,336,10,336,12,336,3487, + 9,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,5,337,3497, + 8,337,10,337,12,337,3500,9,337,1,337,1,337,1,338,1,338,1,339,1,339, + 1,339,1,339,1,3448,0,340,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9, + 19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20, + 41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31, + 63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42, + 85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105, + 53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62, + 125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143, + 72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81, + 163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181, + 91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100, + 201,101,203,102,205,103,207,104,209,105,211,106,213,107,215,108, + 217,109,219,110,221,111,223,112,225,113,227,114,229,115,231,116, + 233,117,235,118,237,119,239,120,241,121,243,122,245,123,247,124, + 249,125,251,126,253,127,255,128,257,129,259,130,261,131,263,132, + 265,133,267,134,269,135,271,136,273,137,275,138,277,139,279,140, + 281,141,283,142,285,143,287,144,289,145,291,146,293,147,295,148, + 297,149,299,150,301,151,303,152,305,153,307,154,309,155,311,156, + 313,157,315,158,317,159,319,160,321,161,323,162,325,163,327,164, + 329,165,331,166,333,167,335,168,337,169,339,170,341,171,343,172, + 345,173,347,174,349,175,351,176,353,177,355,178,357,179,359,180, + 361,181,363,182,365,183,367,184,369,185,371,186,373,187,375,188, + 377,189,379,190,381,191,383,192,385,193,387,194,389,195,391,196, + 393,197,395,198,397,199,399,200,401,201,403,202,405,203,407,204, + 409,205,411,206,413,207,415,208,417,209,419,210,421,211,423,212, + 425,213,427,214,429,215,431,216,433,217,435,218,437,219,439,220, + 441,221,443,222,445,223,447,224,449,225,451,226,453,227,455,228, + 457,229,459,230,461,231,463,232,465,233,467,234,469,235,471,236, + 473,237,475,238,477,239,479,240,481,241,483,242,485,243,487,244, + 489,245,491,246,493,247,495,248,497,249,499,250,501,251,503,252, + 505,253,507,254,509,255,511,256,513,257,515,258,517,259,519,260, + 521,261,523,262,525,263,527,264,529,265,531,266,533,267,535,268, + 537,269,539,270,541,271,543,272,545,273,547,274,549,275,551,276, + 553,277,555,278,557,279,559,280,561,281,563,282,565,283,567,284, + 569,285,571,286,573,287,575,288,577,289,579,290,581,291,583,292, + 585,293,587,294,589,295,591,296,593,297,595,298,597,299,599,300, + 601,301,603,302,605,303,607,304,609,305,611,306,613,307,615,308, + 617,309,619,310,621,311,623,312,625,313,627,314,629,315,631,316, + 633,317,635,318,637,319,639,320,641,321,643,322,645,323,647,324, + 649,325,651,326,653,327,655,328,657,329,659,330,661,331,663,0,665, + 0,667,0,669,332,671,333,673,334,675,335,677,0,679,336,1,0,35,3,0, + 9,10,13,13,32,32,2,0,83,83,115,115,2,0,69,69,101,101,2,0,65,65,97, + 97,2,0,82,82,114,114,2,0,67,67,99,99,2,0,72,72,104,104,2,0,68,68, + 100,100,2,0,73,73,105,105,2,0,66,66,98,98,2,0,79,79,111,111,2,0, + 87,87,119,119,2,0,70,70,102,102,2,0,77,77,109,109,2,0,76,76,108, + 108,2,0,78,78,110,110,2,0,84,84,116,116,2,0,85,85,117,117,2,0,80, + 80,112,112,2,0,86,86,118,118,2,0,71,71,103,103,2,0,88,88,120,120, + 2,0,75,75,107,107,2,0,89,89,121,121,2,0,90,90,122,122,2,0,81,81, + 113,113,1,0,45,46,2,0,42,42,48,57,3,0,42,42,64,90,97,122,6,0,42, + 42,45,45,48,57,65,90,95,95,97,122,3,0,42,42,65,90,97,122,2,0,34, + 34,92,92,2,0,39,39,92,92,2,0,92,92,96,96,1,0,48,57,3524,0,1,1,0, + 0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0, + 0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0, + 0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0, + 0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0, + 0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0, + 0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0, + 0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0, + 0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0, + 0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0, + 0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0, + 0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111, + 1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0, + 0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1, + 0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0, + 139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0, + 0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157, + 1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0, + 0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1, + 0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0, + 185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0, + 0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203, + 1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0, + 0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1, + 0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0, + 231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0, + 0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249, + 1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0, + 0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1, + 0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0, + 277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0, + 0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295, + 1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0, + 0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1, + 0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0, + 323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0, + 0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341, + 1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0, + 0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1, + 0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0, + 369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0, + 0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387, + 1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0, + 0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1, + 0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0, + 415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0, + 0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433, + 1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0, + 0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1, + 0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0, + 461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0, + 0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479, + 1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0, + 0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1, + 0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0, + 507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0, + 0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525, + 1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0, + 0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1, + 0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0, + 553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0, + 0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571, + 1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0, + 0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1, + 0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0, + 599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0, + 0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617, + 1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0, + 0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1, + 0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0, + 645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0, + 0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,669, + 1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,679,1,0,0,0, + 1,682,1,0,0,0,3,688,1,0,0,0,5,695,1,0,0,0,7,704,1,0,0,0,9,709,1, + 0,0,0,11,714,1,0,0,0,13,720,1,0,0,0,15,727,1,0,0,0,17,734,1,0,0, + 0,19,740,1,0,0,0,21,746,1,0,0,0,23,751,1,0,0,0,25,756,1,0,0,0,27, + 761,1,0,0,0,29,765,1,0,0,0,31,770,1,0,0,0,33,776,1,0,0,0,35,783, + 1,0,0,0,37,789,1,0,0,0,39,795,1,0,0,0,41,800,1,0,0,0,43,808,1,0, + 0,0,45,817,1,0,0,0,47,827,1,0,0,0,49,834,1,0,0,0,51,837,1,0,0,0, + 53,840,1,0,0,0,55,843,1,0,0,0,57,846,1,0,0,0,59,853,1,0,0,0,61,859, + 1,0,0,0,63,861,1,0,0,0,65,866,1,0,0,0,67,878,1,0,0,0,69,885,1,0, + 0,0,71,890,1,0,0,0,73,894,1,0,0,0,75,897,1,0,0,0,77,901,1,0,0,0, + 79,911,1,0,0,0,81,923,1,0,0,0,83,941,1,0,0,0,85,952,1,0,0,0,87,959, + 1,0,0,0,89,965,1,0,0,0,91,975,1,0,0,0,93,986,1,0,0,0,95,1000,1,0, + 0,0,97,1016,1,0,0,0,99,1029,1,0,0,0,101,1041,1,0,0,0,103,1054,1, + 0,0,0,105,1065,1,0,0,0,107,1078,1,0,0,0,109,1093,1,0,0,0,111,1104, + 1,0,0,0,113,1114,1,0,0,0,115,1133,1,0,0,0,117,1157,1,0,0,0,119,1162, + 1,0,0,0,121,1165,1,0,0,0,123,1169,1,0,0,0,125,1172,1,0,0,0,127,1176, + 1,0,0,0,129,1180,1,0,0,0,131,1185,1,0,0,0,133,1191,1,0,0,0,135,1198, + 1,0,0,0,137,1209,1,0,0,0,139,1218,1,0,0,0,141,1222,1,0,0,0,143,1231, + 1,0,0,0,145,1247,1,0,0,0,147,1258,1,0,0,0,149,1270,1,0,0,0,151,1281, + 1,0,0,0,153,1286,1,0,0,0,155,1303,1,0,0,0,157,1315,1,0,0,0,159,1327, + 1,0,0,0,161,1339,1,0,0,0,163,1348,1,0,0,0,165,1360,1,0,0,0,167,1372, + 1,0,0,0,169,1379,1,0,0,0,171,1398,1,0,0,0,173,1412,1,0,0,0,175,1427, + 1,0,0,0,177,1441,1,0,0,0,179,1447,1,0,0,0,181,1461,1,0,0,0,183,1469, + 1,0,0,0,185,1476,1,0,0,0,187,1495,1,0,0,0,189,1512,1,0,0,0,191,1517, + 1,0,0,0,193,1530,1,0,0,0,195,1535,1,0,0,0,197,1546,1,0,0,0,199,1556, + 1,0,0,0,201,1563,1,0,0,0,203,1575,1,0,0,0,205,1579,1,0,0,0,207,1587, + 1,0,0,0,209,1594,1,0,0,0,211,1599,1,0,0,0,213,1605,1,0,0,0,215,1612, + 1,0,0,0,217,1620,1,0,0,0,219,1622,1,0,0,0,221,1624,1,0,0,0,223,1626, + 1,0,0,0,225,1628,1,0,0,0,227,1630,1,0,0,0,229,1632,1,0,0,0,231,1635, + 1,0,0,0,233,1638,1,0,0,0,235,1641,1,0,0,0,237,1643,1,0,0,0,239,1645, + 1,0,0,0,241,1647,1,0,0,0,243,1649,1,0,0,0,245,1651,1,0,0,0,247,1653, + 1,0,0,0,249,1655,1,0,0,0,251,1657,1,0,0,0,253,1659,1,0,0,0,255,1661, + 1,0,0,0,257,1663,1,0,0,0,259,1665,1,0,0,0,261,1667,1,0,0,0,263,1669, + 1,0,0,0,265,1671,1,0,0,0,267,1673,1,0,0,0,269,1675,1,0,0,0,271,1679, + 1,0,0,0,273,1685,1,0,0,0,275,1700,1,0,0,0,277,1706,1,0,0,0,279,1718, + 1,0,0,0,281,1722,1,0,0,0,283,1727,1,0,0,0,285,1734,1,0,0,0,287,1738, + 1,0,0,0,289,1743,1,0,0,0,291,1749,1,0,0,0,293,1755,1,0,0,0,295,1762, + 1,0,0,0,297,1766,1,0,0,0,299,1772,1,0,0,0,301,1781,1,0,0,0,303,1789, + 1,0,0,0,305,1801,1,0,0,0,307,1812,1,0,0,0,309,1823,1,0,0,0,311,1828, + 1,0,0,0,313,1834,1,0,0,0,315,1839,1,0,0,0,317,1844,1,0,0,0,319,1851, + 1,0,0,0,321,1860,1,0,0,0,323,1874,1,0,0,0,325,1881,1,0,0,0,327,1893, + 1,0,0,0,329,1901,1,0,0,0,331,1910,1,0,0,0,333,1921,1,0,0,0,335,1932, + 1,0,0,0,337,1937,1,0,0,0,339,1947,1,0,0,0,341,1949,1,0,0,0,343,1952, + 1,0,0,0,345,1956,1,0,0,0,347,1961,1,0,0,0,349,1966,1,0,0,0,351,1974, + 1,0,0,0,353,1979,1,0,0,0,355,1985,1,0,0,0,357,1987,1,0,0,0,359,1991, + 1,0,0,0,361,1997,1,0,0,0,363,2000,1,0,0,0,365,2004,1,0,0,0,367,2010, + 1,0,0,0,369,2015,1,0,0,0,371,2019,1,0,0,0,373,2022,1,0,0,0,375,2031, + 1,0,0,0,377,2035,1,0,0,0,379,2041,1,0,0,0,381,2046,1,0,0,0,383,2052, + 1,0,0,0,385,2057,1,0,0,0,387,2062,1,0,0,0,389,2071,1,0,0,0,391,2076, + 1,0,0,0,393,2081,1,0,0,0,395,2086,1,0,0,0,397,2092,1,0,0,0,399,2096, + 1,0,0,0,401,2100,1,0,0,0,403,2108,1,0,0,0,405,2116,1,0,0,0,407,2120, + 1,0,0,0,409,2124,1,0,0,0,411,2132,1,0,0,0,413,2140,1,0,0,0,415,2148, + 1,0,0,0,417,2161,1,0,0,0,419,2174,1,0,0,0,421,2192,1,0,0,0,423,2200, + 1,0,0,0,425,2205,1,0,0,0,427,2214,1,0,0,0,429,2223,1,0,0,0,431,2235, + 1,0,0,0,433,2244,1,0,0,0,435,2252,1,0,0,0,437,2263,1,0,0,0,439,2273, + 1,0,0,0,441,2283,1,0,0,0,443,2296,1,0,0,0,445,2308,1,0,0,0,447,2316, + 1,0,0,0,449,2326,1,0,0,0,451,2340,1,0,0,0,453,2351,1,0,0,0,455,2360, + 1,0,0,0,457,2370,1,0,0,0,459,2385,1,0,0,0,461,2394,1,0,0,0,463,2403, + 1,0,0,0,465,2413,1,0,0,0,467,2417,1,0,0,0,469,2428,1,0,0,0,471,2440, + 1,0,0,0,473,2452,1,0,0,0,475,2464,1,0,0,0,477,2472,1,0,0,0,479,2480, + 1,0,0,0,481,2488,1,0,0,0,483,2493,1,0,0,0,485,2502,1,0,0,0,487,2512, + 1,0,0,0,489,2525,1,0,0,0,491,2539,1,0,0,0,493,2551,1,0,0,0,495,2563, + 1,0,0,0,497,2571,1,0,0,0,499,2582,1,0,0,0,501,2597,1,0,0,0,503,2606, + 1,0,0,0,505,2615,1,0,0,0,507,2629,1,0,0,0,509,2637,1,0,0,0,511,2646, + 1,0,0,0,513,2653,1,0,0,0,515,2663,1,0,0,0,517,2669,1,0,0,0,519,2675, + 1,0,0,0,521,2680,1,0,0,0,523,2683,1,0,0,0,525,2689,1,0,0,0,527,2695, + 1,0,0,0,529,2702,1,0,0,0,531,2712,1,0,0,0,533,2719,1,0,0,0,535,2726, + 1,0,0,0,537,2732,1,0,0,0,539,2737,1,0,0,0,541,2743,1,0,0,0,543,2750, + 1,0,0,0,545,2758,1,0,0,0,547,2766,1,0,0,0,549,2771,1,0,0,0,551,2776, + 1,0,0,0,553,2783,1,0,0,0,555,2793,1,0,0,0,557,2800,1,0,0,0,559,2807, + 1,0,0,0,561,2810,1,0,0,0,563,2817,1,0,0,0,565,2823,1,0,0,0,567,2836, + 1,0,0,0,569,2856,1,0,0,0,571,2874,1,0,0,0,573,2894,1,0,0,0,575,2906, + 1,0,0,0,577,2919,1,0,0,0,579,2942,1,0,0,0,581,2959,1,0,0,0,583,2968, + 1,0,0,0,585,3004,1,0,0,0,587,3010,1,0,0,0,589,3027,1,0,0,0,591,3041, + 1,0,0,0,593,3058,1,0,0,0,595,3085,1,0,0,0,597,3092,1,0,0,0,599,3098, + 1,0,0,0,601,3119,1,0,0,0,603,3139,1,0,0,0,605,3160,1,0,0,0,607,3174, + 1,0,0,0,609,3184,1,0,0,0,611,3192,1,0,0,0,613,3210,1,0,0,0,615,3234, + 1,0,0,0,617,3249,1,0,0,0,619,3270,1,0,0,0,621,3279,1,0,0,0,623,3291, + 1,0,0,0,625,3305,1,0,0,0,627,3320,1,0,0,0,629,3339,1,0,0,0,631,3347, + 1,0,0,0,633,3352,1,0,0,0,635,3364,1,0,0,0,637,3369,1,0,0,0,639,3386, + 1,0,0,0,641,3391,1,0,0,0,643,3394,1,0,0,0,645,3396,1,0,0,0,647,3398, + 1,0,0,0,649,3400,1,0,0,0,651,3402,1,0,0,0,653,3404,1,0,0,0,655,3406, + 1,0,0,0,657,3408,1,0,0,0,659,3411,1,0,0,0,661,3420,1,0,0,0,663,3434, + 1,0,0,0,665,3438,1,0,0,0,667,3446,1,0,0,0,669,3459,1,0,0,0,671,3464, + 1,0,0,0,673,3477,1,0,0,0,675,3490,1,0,0,0,677,3503,1,0,0,0,679,3505, + 1,0,0,0,681,683,7,0,0,0,682,681,1,0,0,0,683,684,1,0,0,0,684,682, + 1,0,0,0,684,685,1,0,0,0,685,686,1,0,0,0,686,687,6,0,0,0,687,2,1, + 0,0,0,688,689,7,1,0,0,689,690,7,2,0,0,690,691,7,3,0,0,691,692,7, + 4,0,0,692,693,7,5,0,0,693,694,7,6,0,0,694,4,1,0,0,0,695,696,7,7, + 0,0,696,697,7,2,0,0,697,698,7,1,0,0,698,699,7,5,0,0,699,700,7,4, + 0,0,700,701,7,8,0,0,701,702,7,9,0,0,702,703,7,2,0,0,703,6,1,0,0, + 0,704,705,7,1,0,0,705,706,7,6,0,0,706,707,7,10,0,0,707,708,7,11, + 0,0,708,8,1,0,0,0,709,710,7,12,0,0,710,711,7,4,0,0,711,712,7,10, + 0,0,712,713,7,13,0,0,713,10,1,0,0,0,714,715,7,11,0,0,715,716,7,6, + 0,0,716,717,7,2,0,0,717,718,7,4,0,0,718,719,7,2,0,0,719,12,1,0,0, + 0,720,721,7,12,0,0,721,722,7,8,0,0,722,723,7,2,0,0,723,724,7,14, + 0,0,724,725,7,7,0,0,725,726,7,1,0,0,726,14,1,0,0,0,727,728,7,4,0, + 0,728,729,7,2,0,0,729,730,7,15,0,0,730,731,7,3,0,0,731,732,7,13, + 0,0,732,733,7,2,0,0,733,16,1,0,0,0,734,735,7,1,0,0,735,736,7,16, + 0,0,736,737,7,3,0,0,737,738,7,16,0,0,738,739,7,1,0,0,739,18,1,0, + 0,0,740,741,7,7,0,0,741,742,7,2,0,0,742,743,7,7,0,0,743,744,7,17, + 0,0,744,745,7,18,0,0,745,20,1,0,0,0,746,747,7,1,0,0,747,748,7,10, + 0,0,748,749,7,4,0,0,749,750,7,16,0,0,750,22,1,0,0,0,751,752,7,2, + 0,0,752,753,7,19,0,0,753,754,7,3,0,0,754,755,7,14,0,0,755,24,1,0, + 0,0,756,757,7,6,0,0,757,758,7,2,0,0,758,759,7,3,0,0,759,760,7,7, + 0,0,760,26,1,0,0,0,761,762,7,16,0,0,762,763,7,10,0,0,763,764,7,18, + 0,0,764,28,1,0,0,0,765,766,7,4,0,0,766,767,7,3,0,0,767,768,7,4,0, + 0,768,769,7,2,0,0,769,30,1,0,0,0,770,771,7,18,0,0,771,772,7,3,0, + 0,772,773,7,4,0,0,773,774,7,1,0,0,774,775,7,2,0,0,775,32,1,0,0,0, + 776,777,7,13,0,0,777,778,7,2,0,0,778,779,7,16,0,0,779,780,7,6,0, + 0,780,781,7,10,0,0,781,782,7,7,0,0,782,34,1,0,0,0,783,784,7,4,0, + 0,784,785,7,2,0,0,785,786,7,20,0,0,786,787,7,2,0,0,787,788,7,21, + 0,0,788,36,1,0,0,0,789,790,7,18,0,0,790,791,7,17,0,0,791,792,7,15, + 0,0,792,793,7,5,0,0,793,794,7,16,0,0,794,38,1,0,0,0,795,796,7,20, + 0,0,796,797,7,4,0,0,797,798,7,10,0,0,798,799,7,22,0,0,799,40,1,0, + 0,0,800,801,7,18,0,0,801,802,7,3,0,0,802,803,7,16,0,0,803,804,7, + 16,0,0,804,805,7,2,0,0,805,806,7,4,0,0,806,807,7,15,0,0,807,42,1, + 0,0,0,808,809,7,18,0,0,809,810,7,3,0,0,810,811,7,16,0,0,811,812, + 7,16,0,0,812,813,7,2,0,0,813,814,7,4,0,0,814,815,7,15,0,0,815,816, + 7,1,0,0,816,44,1,0,0,0,817,818,7,15,0,0,818,819,7,2,0,0,819,820, + 7,11,0,0,820,821,5,95,0,0,821,822,7,12,0,0,822,823,7,8,0,0,823,824, + 7,2,0,0,824,825,7,14,0,0,825,826,7,7,0,0,826,46,1,0,0,0,827,828, + 7,22,0,0,828,829,7,13,0,0,829,830,7,2,0,0,830,831,7,3,0,0,831,832, + 7,15,0,0,832,833,7,1,0,0,833,48,1,0,0,0,834,835,7,3,0,0,835,836, + 7,7,0,0,836,50,1,0,0,0,837,838,7,13,0,0,838,839,7,14,0,0,839,52, + 1,0,0,0,840,841,7,3,0,0,841,842,7,1,0,0,842,54,1,0,0,0,843,844,7, + 9,0,0,844,845,7,23,0,0,845,56,1,0,0,0,846,847,7,1,0,0,847,848,7, + 10,0,0,848,849,7,17,0,0,849,850,7,4,0,0,850,851,7,5,0,0,851,852, + 7,2,0,0,852,58,1,0,0,0,853,854,7,8,0,0,854,855,7,15,0,0,855,856, + 7,7,0,0,856,857,7,2,0,0,857,858,7,21,0,0,858,60,1,0,0,0,859,860, + 7,7,0,0,860,62,1,0,0,0,861,862,7,7,0,0,862,863,7,2,0,0,863,864,7, + 1,0,0,864,865,7,5,0,0,865,64,1,0,0,0,866,867,7,7,0,0,867,868,7,3, + 0,0,868,869,7,16,0,0,869,870,7,3,0,0,870,871,7,1,0,0,871,872,7,10, + 0,0,872,873,7,17,0,0,873,874,7,4,0,0,874,875,7,5,0,0,875,876,7,2, + 0,0,876,877,7,1,0,0,877,66,1,0,0,0,878,879,7,1,0,0,879,880,7,10, + 0,0,880,881,7,4,0,0,881,882,7,16,0,0,882,883,7,9,0,0,883,884,7,23, + 0,0,884,68,1,0,0,0,885,886,7,3,0,0,886,887,7,17,0,0,887,888,7,16, + 0,0,888,889,7,10,0,0,889,70,1,0,0,0,890,891,7,1,0,0,891,892,7,16, + 0,0,892,893,7,4,0,0,893,72,1,0,0,0,894,895,7,8,0,0,895,896,7,18, + 0,0,896,74,1,0,0,0,897,898,7,15,0,0,898,899,7,17,0,0,899,900,7,13, + 0,0,900,76,1,0,0,0,901,902,7,22,0,0,902,903,7,2,0,0,903,904,7,2, + 0,0,904,905,7,18,0,0,905,906,7,2,0,0,906,907,7,13,0,0,907,908,7, + 18,0,0,908,909,7,16,0,0,909,910,7,23,0,0,910,78,1,0,0,0,911,912, + 7,5,0,0,912,913,7,10,0,0,913,914,7,15,0,0,914,915,7,1,0,0,915,916, + 7,2,0,0,916,917,7,5,0,0,917,918,7,17,0,0,918,919,7,16,0,0,919,920, + 7,8,0,0,920,921,7,19,0,0,921,922,7,2,0,0,922,80,1,0,0,0,923,924, + 7,7,0,0,924,925,7,2,0,0,925,926,7,7,0,0,926,927,7,17,0,0,927,928, + 7,18,0,0,928,929,5,95,0,0,929,930,7,1,0,0,930,931,7,18,0,0,931,932, + 7,14,0,0,932,933,7,8,0,0,933,934,7,16,0,0,934,935,7,19,0,0,935,936, + 7,3,0,0,936,937,7,14,0,0,937,938,7,17,0,0,938,939,7,2,0,0,939,940, + 7,1,0,0,940,82,1,0,0,0,941,942,7,18,0,0,942,943,7,3,0,0,943,944, + 7,4,0,0,944,945,7,16,0,0,945,946,7,8,0,0,946,947,7,16,0,0,947,948, + 7,8,0,0,948,949,7,10,0,0,949,950,7,15,0,0,950,951,7,1,0,0,951,84, + 1,0,0,0,952,953,7,3,0,0,953,954,7,14,0,0,954,955,7,14,0,0,955,956, + 7,15,0,0,956,957,7,17,0,0,957,958,7,13,0,0,958,86,1,0,0,0,959,960, + 7,7,0,0,960,961,7,2,0,0,961,962,7,14,0,0,962,963,7,8,0,0,963,964, + 7,13,0,0,964,88,1,0,0,0,965,966,7,5,0,0,966,967,7,2,0,0,967,968, + 7,15,0,0,968,969,7,16,0,0,969,970,7,4,0,0,970,971,7,10,0,0,971,972, + 7,8,0,0,972,973,7,7,0,0,973,974,7,1,0,0,974,90,1,0,0,0,975,976,7, + 8,0,0,976,977,7,16,0,0,977,978,7,2,0,0,978,979,7,4,0,0,979,980,7, + 3,0,0,980,981,7,16,0,0,981,982,7,8,0,0,982,983,7,10,0,0,983,984, + 7,15,0,0,984,985,7,1,0,0,985,92,1,0,0,0,986,987,7,7,0,0,987,988, + 7,8,0,0,988,989,7,1,0,0,989,990,7,16,0,0,990,991,7,3,0,0,991,992, + 7,15,0,0,992,993,7,5,0,0,993,994,7,2,0,0,994,995,5,95,0,0,995,996, + 7,16,0,0,996,997,7,23,0,0,997,998,7,18,0,0,998,999,7,2,0,0,999,94, + 1,0,0,0,1000,1001,7,15,0,0,1001,1002,7,17,0,0,1002,1003,7,13,0,0, + 1003,1004,7,9,0,0,1004,1005,7,2,0,0,1005,1006,7,4,0,0,1006,1007, + 5,95,0,0,1007,1008,7,10,0,0,1008,1009,7,12,0,0,1009,1010,5,95,0, + 0,1010,1011,7,16,0,0,1011,1012,7,4,0,0,1012,1013,7,2,0,0,1013,1014, + 7,2,0,0,1014,1015,7,1,0,0,1015,96,1,0,0,0,1016,1017,7,1,0,0,1017, + 1018,7,6,0,0,1018,1019,7,8,0,0,1019,1020,7,15,0,0,1020,1021,7,20, + 0,0,1021,1022,7,14,0,0,1022,1023,7,2,0,0,1023,1024,5,95,0,0,1024, + 1025,7,1,0,0,1025,1026,7,8,0,0,1026,1027,7,24,0,0,1027,1028,7,2, + 0,0,1028,98,1,0,0,0,1029,1030,7,1,0,0,1030,1031,7,3,0,0,1031,1032, + 7,13,0,0,1032,1033,7,18,0,0,1033,1034,7,14,0,0,1034,1035,7,2,0,0, + 1035,1036,5,95,0,0,1036,1037,7,1,0,0,1037,1038,7,8,0,0,1038,1039, + 7,24,0,0,1039,1040,7,2,0,0,1040,100,1,0,0,0,1041,1042,7,10,0,0,1042, + 1043,7,17,0,0,1043,1044,7,16,0,0,1044,1045,7,18,0,0,1045,1046,7, + 17,0,0,1046,1047,7,16,0,0,1047,1048,5,95,0,0,1048,1049,7,3,0,0,1049, + 1050,7,12,0,0,1050,1051,7,16,0,0,1051,1052,7,2,0,0,1052,1053,7,4, + 0,0,1053,102,1,0,0,0,1054,1055,7,16,0,0,1055,1056,7,8,0,0,1056,1057, + 7,13,0,0,1057,1058,7,2,0,0,1058,1059,5,95,0,0,1059,1060,7,7,0,0, + 1060,1061,7,2,0,0,1061,1062,7,5,0,0,1062,1063,7,3,0,0,1063,1064, + 7,23,0,0,1064,104,1,0,0,0,1065,1066,7,3,0,0,1066,1067,7,15,0,0,1067, + 1068,7,10,0,0,1068,1069,7,13,0,0,1069,1070,7,3,0,0,1070,1071,7,14, + 0,0,1071,1072,7,23,0,0,1072,1073,5,95,0,0,1073,1074,7,4,0,0,1074, + 1075,7,3,0,0,1075,1076,7,16,0,0,1076,1077,7,2,0,0,1077,106,1,0,0, + 0,1078,1079,7,5,0,0,1079,1080,7,3,0,0,1080,1081,7,16,0,0,1081,1082, + 7,2,0,0,1082,1083,7,20,0,0,1083,1084,7,10,0,0,1084,1085,7,4,0,0, + 1085,1086,7,23,0,0,1086,1087,5,95,0,0,1087,1088,7,12,0,0,1088,1089, + 7,8,0,0,1089,1090,7,2,0,0,1090,1091,7,14,0,0,1091,1092,7,7,0,0,1092, + 108,1,0,0,0,1093,1094,7,16,0,0,1094,1095,7,8,0,0,1095,1096,7,13, + 0,0,1096,1097,7,2,0,0,1097,1098,5,95,0,0,1098,1099,7,12,0,0,1099, + 1100,7,8,0,0,1100,1101,7,2,0,0,1101,1102,7,14,0,0,1102,1103,7,7, + 0,0,1103,110,1,0,0,0,1104,1105,7,16,0,0,1105,1106,7,8,0,0,1106,1107, + 7,13,0,0,1107,1108,7,2,0,0,1108,1109,5,95,0,0,1109,1110,7,24,0,0, + 1110,1111,7,10,0,0,1111,1112,7,15,0,0,1112,1113,7,2,0,0,1113,112, + 1,0,0,0,1114,1115,7,16,0,0,1115,1116,7,4,0,0,1116,1117,7,3,0,0,1117, + 1118,7,8,0,0,1118,1119,7,15,0,0,1119,1120,7,8,0,0,1120,1121,7,15, + 0,0,1121,1122,7,20,0,0,1122,1123,5,95,0,0,1123,1124,7,7,0,0,1124, + 1125,7,3,0,0,1125,1126,7,16,0,0,1126,1127,7,3,0,0,1127,1128,5,95, + 0,0,1128,1129,7,1,0,0,1129,1130,7,8,0,0,1130,1131,7,24,0,0,1131, + 1132,7,2,0,0,1132,114,1,0,0,0,1133,1134,7,3,0,0,1134,1135,7,15,0, + 0,1135,1136,7,10,0,0,1136,1137,7,13,0,0,1137,1138,7,3,0,0,1138,1139, + 7,14,0,0,1139,1140,7,23,0,0,1140,1141,5,95,0,0,1141,1142,7,1,0,0, + 1142,1143,7,5,0,0,1143,1144,7,10,0,0,1144,1145,7,4,0,0,1145,1146, + 7,2,0,0,1146,1147,5,95,0,0,1147,1148,7,16,0,0,1148,1149,7,6,0,0, + 1149,1150,7,4,0,0,1150,1151,7,2,0,0,1151,1152,7,1,0,0,1152,1153, + 7,6,0,0,1153,1154,7,10,0,0,1154,1155,7,14,0,0,1155,1156,7,7,0,0, + 1156,116,1,0,0,0,1157,1158,7,5,0,0,1158,1159,7,3,0,0,1159,1160,7, + 1,0,0,1160,1161,7,2,0,0,1161,118,1,0,0,0,1162,1163,7,8,0,0,1163, + 1164,7,15,0,0,1164,120,1,0,0,0,1165,1166,7,15,0,0,1166,1167,7,10, + 0,0,1167,1168,7,16,0,0,1168,122,1,0,0,0,1169,1170,7,10,0,0,1170, + 1171,7,4,0,0,1171,124,1,0,0,0,1172,1173,7,3,0,0,1173,1174,7,15,0, + 0,1174,1175,7,7,0,0,1175,126,1,0,0,0,1176,1177,7,21,0,0,1177,1178, + 7,10,0,0,1178,1179,7,4,0,0,1179,128,1,0,0,0,1180,1181,7,16,0,0,1181, + 1182,7,4,0,0,1182,1183,7,17,0,0,1183,1184,7,2,0,0,1184,130,1,0,0, + 0,1185,1186,7,12,0,0,1186,1187,7,3,0,0,1187,1188,7,14,0,0,1188,1189, + 7,1,0,0,1189,1190,7,2,0,0,1190,132,1,0,0,0,1191,1192,7,4,0,0,1192, + 1193,7,2,0,0,1193,1194,7,20,0,0,1194,1195,7,2,0,0,1195,1196,7,21, + 0,0,1196,1197,7,18,0,0,1197,134,1,0,0,0,1198,1199,7,5,0,0,1199,1200, + 7,10,0,0,1200,1201,7,15,0,0,1201,1202,7,19,0,0,1202,1203,7,2,0,0, + 1203,1204,7,4,0,0,1204,1205,7,16,0,0,1205,1206,5,95,0,0,1206,1207, + 7,16,0,0,1207,1208,7,24,0,0,1208,136,1,0,0,0,1209,1210,7,7,0,0,1210, + 1211,7,3,0,0,1211,1212,7,16,0,0,1212,1213,7,2,0,0,1213,1214,7,16, + 0,0,1214,1215,7,8,0,0,1215,1216,7,13,0,0,1216,1217,7,2,0,0,1217, + 138,1,0,0,0,1218,1219,7,7,0,0,1219,1220,7,3,0,0,1220,1221,7,23,0, + 0,1221,140,1,0,0,0,1222,1223,7,7,0,0,1223,1224,7,3,0,0,1224,1225, + 7,23,0,0,1225,1226,5,95,0,0,1226,1227,7,6,0,0,1227,1228,7,10,0,0, + 1228,1229,7,17,0,0,1229,1230,7,4,0,0,1230,142,1,0,0,0,1231,1232, + 7,7,0,0,1232,1233,7,3,0,0,1233,1234,7,23,0,0,1234,1235,5,95,0,0, + 1235,1236,7,13,0,0,1236,1237,7,8,0,0,1237,1238,7,5,0,0,1238,1239, + 7,4,0,0,1239,1240,7,10,0,0,1240,1241,7,1,0,0,1241,1242,7,2,0,0,1242, + 1243,7,5,0,0,1243,1244,7,10,0,0,1244,1245,7,15,0,0,1245,1246,7,7, + 0,0,1246,144,1,0,0,0,1247,1248,7,7,0,0,1248,1249,7,3,0,0,1249,1250, + 7,23,0,0,1250,1251,5,95,0,0,1251,1252,7,13,0,0,1252,1253,7,8,0,0, + 1253,1254,7,15,0,0,1254,1255,7,17,0,0,1255,1256,7,16,0,0,1256,1257, + 7,2,0,0,1257,146,1,0,0,0,1258,1259,7,7,0,0,1259,1260,7,3,0,0,1260, + 1261,7,23,0,0,1261,1262,5,95,0,0,1262,1263,7,10,0,0,1263,1264,7, + 12,0,0,1264,1265,5,95,0,0,1265,1266,7,23,0,0,1266,1267,7,2,0,0,1267, + 1268,7,3,0,0,1268,1269,7,4,0,0,1269,148,1,0,0,0,1270,1271,7,7,0, + 0,1271,1272,7,3,0,0,1272,1273,7,23,0,0,1273,1274,5,95,0,0,1274,1275, + 7,1,0,0,1275,1276,7,2,0,0,1276,1277,7,5,0,0,1277,1278,7,10,0,0,1278, + 1279,7,15,0,0,1279,1280,7,7,0,0,1280,150,1,0,0,0,1281,1282,7,6,0, + 0,1282,1283,7,10,0,0,1283,1284,7,17,0,0,1284,1285,7,4,0,0,1285,152, + 1,0,0,0,1286,1287,7,6,0,0,1287,1288,7,10,0,0,1288,1289,7,17,0,0, + 1289,1290,7,4,0,0,1290,1291,5,95,0,0,1291,1292,7,13,0,0,1292,1293, + 7,8,0,0,1293,1294,7,5,0,0,1294,1295,7,4,0,0,1295,1296,7,10,0,0,1296, + 1297,7,1,0,0,1297,1298,7,2,0,0,1298,1299,7,5,0,0,1299,1300,7,10, + 0,0,1300,1301,7,15,0,0,1301,1302,7,7,0,0,1302,154,1,0,0,0,1303,1304, + 7,6,0,0,1304,1305,7,10,0,0,1305,1306,7,17,0,0,1306,1307,7,4,0,0, + 1307,1308,5,95,0,0,1308,1309,7,13,0,0,1309,1310,7,8,0,0,1310,1311, + 7,15,0,0,1311,1312,7,17,0,0,1312,1313,7,16,0,0,1313,1314,7,2,0,0, + 1314,156,1,0,0,0,1315,1316,7,6,0,0,1316,1317,7,10,0,0,1317,1318, + 7,17,0,0,1318,1319,7,4,0,0,1319,1320,5,95,0,0,1320,1321,7,10,0,0, + 1321,1322,7,12,0,0,1322,1323,5,95,0,0,1323,1324,7,7,0,0,1324,1325, + 7,3,0,0,1325,1326,7,23,0,0,1326,158,1,0,0,0,1327,1328,7,6,0,0,1328, + 1329,7,10,0,0,1329,1330,7,17,0,0,1330,1331,7,4,0,0,1331,1332,5,95, + 0,0,1332,1333,7,1,0,0,1333,1334,7,2,0,0,1334,1335,7,5,0,0,1335,1336, + 7,10,0,0,1336,1337,7,15,0,0,1337,1338,7,7,0,0,1338,160,1,0,0,0,1339, + 1340,7,8,0,0,1340,1341,7,15,0,0,1341,1342,7,16,0,0,1342,1343,7,2, + 0,0,1343,1344,7,4,0,0,1344,1345,7,19,0,0,1345,1346,7,3,0,0,1346, + 1347,7,14,0,0,1347,162,1,0,0,0,1348,1349,7,13,0,0,1349,1350,7,8, + 0,0,1350,1351,7,5,0,0,1351,1352,7,4,0,0,1352,1353,7,10,0,0,1353, + 1354,7,1,0,0,1354,1355,7,2,0,0,1355,1356,7,5,0,0,1356,1357,7,10, + 0,0,1357,1358,7,15,0,0,1358,1359,7,7,0,0,1359,164,1,0,0,0,1360,1361, + 7,13,0,0,1361,1362,7,8,0,0,1362,1363,7,14,0,0,1363,1364,7,14,0,0, + 1364,1365,7,8,0,0,1365,1366,7,1,0,0,1366,1367,7,2,0,0,1367,1368, + 7,5,0,0,1368,1369,7,10,0,0,1369,1370,7,15,0,0,1370,1371,7,7,0,0, + 1371,166,1,0,0,0,1372,1373,7,13,0,0,1373,1374,7,8,0,0,1374,1375, + 7,15,0,0,1375,1376,7,17,0,0,1376,1377,7,16,0,0,1377,1378,7,2,0,0, + 1378,168,1,0,0,0,1379,1380,7,13,0,0,1380,1381,7,8,0,0,1381,1382, + 7,15,0,0,1382,1383,7,17,0,0,1383,1384,7,16,0,0,1384,1385,7,2,0,0, + 1385,1386,5,95,0,0,1386,1387,7,13,0,0,1387,1388,7,8,0,0,1388,1389, + 7,5,0,0,1389,1390,7,4,0,0,1390,1391,7,10,0,0,1391,1392,7,1,0,0,1392, + 1393,7,2,0,0,1393,1394,7,5,0,0,1394,1395,7,10,0,0,1395,1396,7,15, + 0,0,1396,1397,7,7,0,0,1397,170,1,0,0,0,1398,1399,7,13,0,0,1399,1400, + 7,8,0,0,1400,1401,7,15,0,0,1401,1402,7,17,0,0,1402,1403,7,16,0,0, + 1403,1404,7,2,0,0,1404,1405,5,95,0,0,1405,1406,7,10,0,0,1406,1407, + 7,12,0,0,1407,1408,5,95,0,0,1408,1409,7,7,0,0,1409,1410,7,3,0,0, + 1410,1411,7,23,0,0,1411,172,1,0,0,0,1412,1413,7,13,0,0,1413,1414, + 7,8,0,0,1414,1415,7,15,0,0,1415,1416,7,17,0,0,1416,1417,7,16,0,0, + 1417,1418,7,2,0,0,1418,1419,5,95,0,0,1419,1420,7,10,0,0,1420,1421, + 7,12,0,0,1421,1422,5,95,0,0,1422,1423,7,6,0,0,1423,1424,7,10,0,0, + 1424,1425,7,17,0,0,1425,1426,7,4,0,0,1426,174,1,0,0,0,1427,1428, + 7,13,0,0,1428,1429,7,8,0,0,1429,1430,7,15,0,0,1430,1431,7,17,0,0, + 1431,1432,7,16,0,0,1432,1433,7,2,0,0,1433,1434,5,95,0,0,1434,1435, + 7,1,0,0,1435,1436,7,2,0,0,1436,1437,7,5,0,0,1437,1438,7,10,0,0,1438, + 1439,7,15,0,0,1439,1440,7,7,0,0,1440,176,1,0,0,0,1441,1442,7,13, + 0,0,1442,1443,7,10,0,0,1443,1444,7,15,0,0,1444,1445,7,16,0,0,1445, + 1446,7,6,0,0,1446,178,1,0,0,0,1447,1448,7,13,0,0,1448,1449,7,10, + 0,0,1449,1450,7,15,0,0,1450,1451,7,16,0,0,1451,1452,7,6,0,0,1452, + 1453,5,95,0,0,1453,1454,7,10,0,0,1454,1455,7,12,0,0,1455,1456,5, + 95,0,0,1456,1457,7,23,0,0,1457,1458,7,2,0,0,1458,1459,7,3,0,0,1459, + 1460,7,4,0,0,1460,180,1,0,0,0,1461,1462,7,25,0,0,1462,1463,7,17, + 0,0,1463,1464,7,3,0,0,1464,1465,7,4,0,0,1465,1466,7,16,0,0,1466, + 1467,7,2,0,0,1467,1468,7,4,0,0,1468,182,1,0,0,0,1469,1470,7,1,0, + 0,1470,1471,7,2,0,0,1471,1472,7,5,0,0,1472,1473,7,10,0,0,1473,1474, + 7,15,0,0,1474,1475,7,7,0,0,1475,184,1,0,0,0,1476,1477,7,1,0,0,1477, + 1478,7,2,0,0,1478,1479,7,5,0,0,1479,1480,7,10,0,0,1480,1481,7,15, + 0,0,1481,1482,7,7,0,0,1482,1483,5,95,0,0,1483,1484,7,13,0,0,1484, + 1485,7,8,0,0,1485,1486,7,5,0,0,1486,1487,7,4,0,0,1487,1488,7,10, + 0,0,1488,1489,7,1,0,0,1489,1490,7,2,0,0,1490,1491,7,5,0,0,1491,1492, + 7,10,0,0,1492,1493,7,15,0,0,1493,1494,7,7,0,0,1494,186,1,0,0,0,1495, + 1496,7,1,0,0,1496,1497,7,2,0,0,1497,1498,7,5,0,0,1498,1499,7,10, + 0,0,1499,1500,7,15,0,0,1500,1501,7,7,0,0,1501,1502,5,95,0,0,1502, + 1503,7,10,0,0,1503,1504,7,12,0,0,1504,1505,5,95,0,0,1505,1506,7, + 13,0,0,1506,1507,7,8,0,0,1507,1508,7,15,0,0,1508,1509,7,17,0,0,1509, + 1510,7,16,0,0,1510,1511,7,2,0,0,1511,188,1,0,0,0,1512,1513,7,11, + 0,0,1513,1514,7,2,0,0,1514,1515,7,2,0,0,1515,1516,7,22,0,0,1516, + 190,1,0,0,0,1517,1518,7,11,0,0,1518,1519,7,2,0,0,1519,1520,7,2,0, + 0,1520,1521,7,22,0,0,1521,1522,5,95,0,0,1522,1523,7,10,0,0,1523, + 1524,7,12,0,0,1524,1525,5,95,0,0,1525,1526,7,23,0,0,1526,1527,7, + 2,0,0,1527,1528,7,3,0,0,1528,1529,7,4,0,0,1529,192,1,0,0,0,1530, + 1531,7,23,0,0,1531,1532,7,2,0,0,1532,1533,7,3,0,0,1533,1534,7,4, + 0,0,1534,194,1,0,0,0,1535,1536,7,23,0,0,1536,1537,7,2,0,0,1537,1538, + 7,3,0,0,1538,1539,7,4,0,0,1539,1540,5,95,0,0,1540,1541,7,13,0,0, + 1541,1542,7,10,0,0,1542,1543,7,15,0,0,1543,1544,7,16,0,0,1544,1545, + 7,6,0,0,1545,196,1,0,0,0,1546,1547,7,7,0,0,1547,1548,7,3,0,0,1548, + 1549,7,16,0,0,1549,1550,7,3,0,0,1550,1551,7,13,0,0,1551,1552,7,10, + 0,0,1552,1553,7,7,0,0,1553,1554,7,2,0,0,1554,1555,7,14,0,0,1555, + 198,1,0,0,0,1556,1557,7,14,0,0,1557,1558,7,10,0,0,1558,1559,7,10, + 0,0,1559,1560,7,22,0,0,1560,1561,7,17,0,0,1561,1562,7,18,0,0,1562, + 200,1,0,0,0,1563,1564,7,1,0,0,1564,1565,7,3,0,0,1565,1566,7,19,0, + 0,1566,1567,7,2,0,0,1567,1568,7,7,0,0,1568,1569,7,1,0,0,1569,1570, + 7,2,0,0,1570,1571,7,3,0,0,1571,1572,7,4,0,0,1572,1573,7,5,0,0,1573, + 1574,7,6,0,0,1574,202,1,0,0,0,1575,1576,7,8,0,0,1576,1577,7,15,0, + 0,1577,1578,7,16,0,0,1578,204,1,0,0,0,1579,1580,7,8,0,0,1580,1581, + 7,15,0,0,1581,1582,7,16,0,0,1582,1583,7,2,0,0,1583,1584,7,20,0,0, + 1584,1585,7,2,0,0,1585,1586,7,4,0,0,1586,206,1,0,0,0,1587,1588,7, + 7,0,0,1588,1589,7,10,0,0,1589,1590,7,17,0,0,1590,1591,7,9,0,0,1591, + 1592,7,14,0,0,1592,1593,7,2,0,0,1593,208,1,0,0,0,1594,1595,7,14, + 0,0,1595,1596,7,10,0,0,1596,1597,7,15,0,0,1597,1598,7,20,0,0,1598, + 210,1,0,0,0,1599,1600,7,12,0,0,1600,1601,7,14,0,0,1601,1602,7,10, + 0,0,1602,1603,7,3,0,0,1603,1604,7,16,0,0,1604,212,1,0,0,0,1605,1606, + 7,1,0,0,1606,1607,7,16,0,0,1607,1608,7,4,0,0,1608,1609,7,8,0,0,1609, + 1610,7,15,0,0,1610,1611,7,20,0,0,1611,214,1,0,0,0,1612,1613,7,9, + 0,0,1613,1614,7,10,0,0,1614,1615,7,10,0,0,1615,1616,7,14,0,0,1616, + 1617,7,2,0,0,1617,1618,7,3,0,0,1618,1619,7,15,0,0,1619,216,1,0,0, + 0,1620,1621,5,124,0,0,1621,218,1,0,0,0,1622,1623,5,44,0,0,1623,220, + 1,0,0,0,1624,1625,5,46,0,0,1625,222,1,0,0,0,1626,1627,5,61,0,0,1627, + 224,1,0,0,0,1628,1629,5,62,0,0,1629,226,1,0,0,0,1630,1631,5,60,0, + 0,1631,228,1,0,0,0,1632,1633,5,60,0,0,1633,1634,5,61,0,0,1634,230, + 1,0,0,0,1635,1636,5,62,0,0,1636,1637,5,61,0,0,1637,232,1,0,0,0,1638, + 1639,5,33,0,0,1639,1640,5,61,0,0,1640,234,1,0,0,0,1641,1642,5,43, + 0,0,1642,236,1,0,0,0,1643,1644,5,45,0,0,1644,238,1,0,0,0,1645,1646, + 5,42,0,0,1646,240,1,0,0,0,1647,1648,5,47,0,0,1648,242,1,0,0,0,1649, + 1650,5,37,0,0,1650,244,1,0,0,0,1651,1652,5,33,0,0,1652,246,1,0,0, + 0,1653,1654,5,58,0,0,1654,248,1,0,0,0,1655,1656,5,40,0,0,1656,250, + 1,0,0,0,1657,1658,5,41,0,0,1658,252,1,0,0,0,1659,1660,5,91,0,0,1660, + 254,1,0,0,0,1661,1662,5,93,0,0,1662,256,1,0,0,0,1663,1664,5,39,0, + 0,1664,258,1,0,0,0,1665,1666,5,34,0,0,1666,260,1,0,0,0,1667,1668, + 5,96,0,0,1668,262,1,0,0,0,1669,1670,5,126,0,0,1670,264,1,0,0,0,1671, + 1672,5,38,0,0,1672,266,1,0,0,0,1673,1674,5,94,0,0,1674,268,1,0,0, + 0,1675,1676,7,3,0,0,1676,1677,7,19,0,0,1677,1678,7,20,0,0,1678,270, + 1,0,0,0,1679,1680,7,5,0,0,1680,1681,7,10,0,0,1681,1682,7,17,0,0, + 1682,1683,7,15,0,0,1683,1684,7,16,0,0,1684,272,1,0,0,0,1685,1686, + 7,7,0,0,1686,1687,7,8,0,0,1687,1688,7,1,0,0,1688,1689,7,16,0,0,1689, + 1690,7,8,0,0,1690,1691,7,15,0,0,1691,1692,7,5,0,0,1692,1693,7,16, + 0,0,1693,1694,5,95,0,0,1694,1695,7,5,0,0,1695,1696,7,10,0,0,1696, + 1697,7,17,0,0,1697,1698,7,15,0,0,1698,1699,7,16,0,0,1699,274,1,0, + 0,0,1700,1701,7,2,0,0,1701,1702,7,1,0,0,1702,1703,7,16,0,0,1703, + 1704,7,7,0,0,1704,1705,7,5,0,0,1705,276,1,0,0,0,1706,1707,7,2,0, + 0,1707,1708,7,1,0,0,1708,1709,7,16,0,0,1709,1710,7,7,0,0,1710,1711, + 7,5,0,0,1711,1712,5,95,0,0,1712,1713,7,2,0,0,1713,1714,7,4,0,0,1714, + 1715,7,4,0,0,1715,1716,7,10,0,0,1716,1717,7,4,0,0,1717,278,1,0,0, + 0,1718,1719,7,13,0,0,1719,1720,7,3,0,0,1720,1721,7,21,0,0,1721,280, + 1,0,0,0,1722,1723,7,13,0,0,1723,1724,7,2,0,0,1724,1725,7,3,0,0,1725, + 1726,7,15,0,0,1726,282,1,0,0,0,1727,1728,7,13,0,0,1728,1729,7,2, + 0,0,1729,1730,7,7,0,0,1730,1731,7,8,0,0,1731,1732,7,3,0,0,1732,1733, + 7,15,0,0,1733,284,1,0,0,0,1734,1735,7,13,0,0,1735,1736,7,8,0,0,1736, + 1737,7,15,0,0,1737,286,1,0,0,0,1738,1739,7,13,0,0,1739,1740,7,10, + 0,0,1740,1741,7,7,0,0,1741,1742,7,2,0,0,1742,288,1,0,0,0,1743,1744, + 7,4,0,0,1744,1745,7,3,0,0,1745,1746,7,15,0,0,1746,1747,7,20,0,0, + 1747,1748,7,2,0,0,1748,290,1,0,0,0,1749,1750,7,1,0,0,1750,1751,7, + 16,0,0,1751,1752,7,7,0,0,1752,1753,7,2,0,0,1753,1754,7,19,0,0,1754, + 292,1,0,0,0,1755,1756,7,1,0,0,1756,1757,7,16,0,0,1757,1758,7,7,0, + 0,1758,1759,7,2,0,0,1759,1760,7,19,0,0,1760,1761,7,18,0,0,1761,294, + 1,0,0,0,1762,1763,7,1,0,0,1763,1764,7,17,0,0,1764,1765,7,13,0,0, + 1765,296,1,0,0,0,1766,1767,7,1,0,0,1767,1768,7,17,0,0,1768,1769, + 7,13,0,0,1769,1770,7,1,0,0,1770,1771,7,25,0,0,1771,298,1,0,0,0,1772, + 1773,7,19,0,0,1773,1774,7,3,0,0,1774,1775,7,4,0,0,1775,1776,5,95, + 0,0,1776,1777,7,1,0,0,1777,1778,7,3,0,0,1778,1779,7,13,0,0,1779, + 1780,7,18,0,0,1780,300,1,0,0,0,1781,1782,7,19,0,0,1782,1783,7,3, + 0,0,1783,1784,7,4,0,0,1784,1785,5,95,0,0,1785,1786,7,18,0,0,1786, + 1787,7,10,0,0,1787,1788,7,18,0,0,1788,302,1,0,0,0,1789,1790,7,1, + 0,0,1790,1791,7,16,0,0,1791,1792,7,7,0,0,1792,1793,7,7,0,0,1793, + 1794,7,2,0,0,1794,1795,7,19,0,0,1795,1796,5,95,0,0,1796,1797,7,1, + 0,0,1797,1798,7,3,0,0,1798,1799,7,13,0,0,1799,1800,7,18,0,0,1800, + 304,1,0,0,0,1801,1802,7,1,0,0,1802,1803,7,16,0,0,1803,1804,7,7,0, + 0,1804,1805,7,7,0,0,1805,1806,7,2,0,0,1806,1807,7,19,0,0,1807,1808, + 5,95,0,0,1808,1809,7,18,0,0,1809,1810,7,10,0,0,1810,1811,7,18,0, + 0,1811,306,1,0,0,0,1812,1813,7,18,0,0,1813,1814,7,2,0,0,1814,1815, + 7,4,0,0,1815,1816,7,5,0,0,1816,1817,7,2,0,0,1817,1818,7,15,0,0,1818, + 1819,7,16,0,0,1819,1820,7,8,0,0,1820,1821,7,14,0,0,1821,1822,7,2, + 0,0,1822,308,1,0,0,0,1823,1824,7,16,0,0,1824,1825,7,3,0,0,1825,1826, + 7,22,0,0,1826,1827,7,2,0,0,1827,310,1,0,0,0,1828,1829,7,12,0,0,1829, + 1830,7,8,0,0,1830,1831,7,4,0,0,1831,1832,7,1,0,0,1832,1833,7,16, + 0,0,1833,312,1,0,0,0,1834,1835,7,14,0,0,1835,1836,7,3,0,0,1836,1837, + 7,1,0,0,1837,1838,7,16,0,0,1838,314,1,0,0,0,1839,1840,7,14,0,0,1840, + 1841,7,8,0,0,1841,1842,7,1,0,0,1842,1843,7,16,0,0,1843,316,1,0,0, + 0,1844,1845,7,19,0,0,1845,1846,7,3,0,0,1846,1847,7,14,0,0,1847,1848, + 7,17,0,0,1848,1849,7,2,0,0,1849,1850,7,1,0,0,1850,318,1,0,0,0,1851, + 1852,7,2,0,0,1852,1853,7,3,0,0,1853,1854,7,4,0,0,1854,1855,7,14, + 0,0,1855,1856,7,8,0,0,1856,1857,7,2,0,0,1857,1858,7,1,0,0,1858,1859, + 7,16,0,0,1859,320,1,0,0,0,1860,1861,7,2,0,0,1861,1862,7,3,0,0,1862, + 1863,7,4,0,0,1863,1864,7,14,0,0,1864,1865,7,8,0,0,1865,1866,7,2, + 0,0,1866,1867,7,1,0,0,1867,1868,7,16,0,0,1868,1869,5,95,0,0,1869, + 1870,7,16,0,0,1870,1871,7,8,0,0,1871,1872,7,13,0,0,1872,1873,7,2, + 0,0,1873,322,1,0,0,0,1874,1875,7,14,0,0,1875,1876,7,3,0,0,1876,1877, + 7,16,0,0,1877,1878,7,2,0,0,1878,1879,7,1,0,0,1879,1880,7,16,0,0, + 1880,324,1,0,0,0,1881,1882,7,14,0,0,1882,1883,7,3,0,0,1883,1884, + 7,16,0,0,1884,1885,7,2,0,0,1885,1886,7,1,0,0,1886,1887,7,16,0,0, + 1887,1888,5,95,0,0,1888,1889,7,16,0,0,1889,1890,7,8,0,0,1890,1891, + 7,13,0,0,1891,1892,7,2,0,0,1892,326,1,0,0,0,1893,1894,7,18,0,0,1894, + 1895,7,2,0,0,1895,1896,7,4,0,0,1896,1897,5,95,0,0,1897,1898,7,7, + 0,0,1898,1899,7,3,0,0,1899,1900,7,23,0,0,1900,328,1,0,0,0,1901,1902, + 7,18,0,0,1902,1903,7,2,0,0,1903,1904,7,4,0,0,1904,1905,5,95,0,0, + 1905,1906,7,6,0,0,1906,1907,7,10,0,0,1907,1908,7,17,0,0,1908,1909, + 7,4,0,0,1909,330,1,0,0,0,1910,1911,7,18,0,0,1911,1912,7,2,0,0,1912, + 1913,7,4,0,0,1913,1914,5,95,0,0,1914,1915,7,13,0,0,1915,1916,7,8, + 0,0,1916,1917,7,15,0,0,1917,1918,7,17,0,0,1918,1919,7,16,0,0,1919, + 1920,7,2,0,0,1920,332,1,0,0,0,1921,1922,7,18,0,0,1922,1923,7,2,0, + 0,1923,1924,7,4,0,0,1924,1925,5,95,0,0,1925,1926,7,1,0,0,1926,1927, + 7,2,0,0,1927,1928,7,5,0,0,1928,1929,7,10,0,0,1929,1930,7,15,0,0, + 1930,1931,7,7,0,0,1931,334,1,0,0,0,1932,1933,7,4,0,0,1933,1934,7, + 3,0,0,1934,1935,7,16,0,0,1935,1936,7,2,0,0,1936,336,1,0,0,0,1937, + 1938,7,1,0,0,1938,1939,7,18,0,0,1939,1940,7,3,0,0,1940,1941,7,4, + 0,0,1941,1942,7,22,0,0,1942,1943,7,14,0,0,1943,1944,7,8,0,0,1944, + 1945,7,15,0,0,1945,1946,7,2,0,0,1946,338,1,0,0,0,1947,1948,7,5,0, + 0,1948,340,1,0,0,0,1949,1950,7,7,0,0,1950,1951,7,5,0,0,1951,342, + 1,0,0,0,1952,1953,7,3,0,0,1953,1954,7,9,0,0,1954,1955,7,1,0,0,1955, + 344,1,0,0,0,1956,1957,7,5,0,0,1957,1958,7,9,0,0,1958,1959,7,4,0, + 0,1959,1960,7,16,0,0,1960,346,1,0,0,0,1961,1962,7,5,0,0,1962,1963, + 7,2,0,0,1963,1964,7,8,0,0,1964,1965,7,14,0,0,1965,348,1,0,0,0,1966, + 1967,7,5,0,0,1967,1968,7,2,0,0,1968,1969,7,8,0,0,1969,1970,7,14, + 0,0,1970,1971,7,8,0,0,1971,1972,7,15,0,0,1972,1973,7,20,0,0,1973, + 350,1,0,0,0,1974,1975,7,5,0,0,1975,1976,7,10,0,0,1976,1977,7,15, + 0,0,1977,1978,7,19,0,0,1978,352,1,0,0,0,1979,1980,7,5,0,0,1980,1981, + 7,4,0,0,1981,1982,7,5,0,0,1982,1983,5,51,0,0,1983,1984,5,50,0,0, + 1984,354,1,0,0,0,1985,1986,7,2,0,0,1986,356,1,0,0,0,1987,1988,7, + 2,0,0,1988,1989,7,21,0,0,1989,1990,7,18,0,0,1990,358,1,0,0,0,1991, + 1992,7,12,0,0,1992,1993,7,14,0,0,1993,1994,7,10,0,0,1994,1995,7, + 10,0,0,1995,1996,7,4,0,0,1996,360,1,0,0,0,1997,1998,7,14,0,0,1998, + 1999,7,15,0,0,1999,362,1,0,0,0,2000,2001,7,14,0,0,2001,2002,7,10, + 0,0,2002,2003,7,20,0,0,2003,364,1,0,0,0,2004,2005,7,14,0,0,2005, + 2006,7,10,0,0,2006,2007,7,20,0,0,2007,2008,5,49,0,0,2008,2009,5, + 48,0,0,2009,366,1,0,0,0,2010,2011,7,14,0,0,2011,2012,7,10,0,0,2012, + 2013,7,20,0,0,2013,2014,5,50,0,0,2014,368,1,0,0,0,2015,2016,7,13, + 0,0,2016,2017,7,10,0,0,2017,2018,7,7,0,0,2018,370,1,0,0,0,2019,2020, + 7,18,0,0,2020,2021,7,8,0,0,2021,372,1,0,0,0,2022,2023,7,18,0,0,2023, + 2024,7,10,0,0,2024,2025,7,1,0,0,2025,2026,7,8,0,0,2026,2027,7,16, + 0,0,2027,2028,7,8,0,0,2028,2029,7,10,0,0,2029,2030,7,15,0,0,2030, + 374,1,0,0,0,2031,2032,7,18,0,0,2032,2033,7,10,0,0,2033,2034,7,11, + 0,0,2034,376,1,0,0,0,2035,2036,7,18,0,0,2036,2037,7,10,0,0,2037, + 2038,7,11,0,0,2038,2039,7,2,0,0,2039,2040,7,4,0,0,2040,378,1,0,0, + 0,2041,2042,7,4,0,0,2042,2043,7,3,0,0,2043,2044,7,15,0,0,2044,2045, + 7,7,0,0,2045,380,1,0,0,0,2046,2047,7,4,0,0,2047,2048,7,10,0,0,2048, + 2049,7,17,0,0,2049,2050,7,15,0,0,2050,2051,7,7,0,0,2051,382,1,0, + 0,0,2052,2053,7,1,0,0,2053,2054,7,8,0,0,2054,2055,7,20,0,0,2055, + 2056,7,15,0,0,2056,384,1,0,0,0,2057,2058,7,1,0,0,2058,2059,7,25, + 0,0,2059,2060,7,4,0,0,2060,2061,7,16,0,0,2061,386,1,0,0,0,2062,2063, + 7,16,0,0,2063,2064,7,4,0,0,2064,2065,7,17,0,0,2065,2066,7,15,0,0, + 2066,2067,7,5,0,0,2067,2068,7,3,0,0,2068,2069,7,16,0,0,2069,2070, + 7,2,0,0,2070,388,1,0,0,0,2071,2072,7,3,0,0,2072,2073,7,5,0,0,2073, + 2074,7,10,0,0,2074,2075,7,1,0,0,2075,390,1,0,0,0,2076,2077,7,3,0, + 0,2077,2078,7,1,0,0,2078,2079,7,8,0,0,2079,2080,7,15,0,0,2080,392, + 1,0,0,0,2081,2082,7,3,0,0,2082,2083,7,16,0,0,2083,2084,7,3,0,0,2084, + 2085,7,15,0,0,2085,394,1,0,0,0,2086,2087,7,3,0,0,2087,2088,7,16, + 0,0,2088,2089,7,3,0,0,2089,2090,7,15,0,0,2090,2091,5,50,0,0,2091, + 396,1,0,0,0,2092,2093,7,5,0,0,2093,2094,7,10,0,0,2094,2095,7,1,0, + 0,2095,398,1,0,0,0,2096,2097,7,5,0,0,2097,2098,7,10,0,0,2098,2099, + 7,16,0,0,2099,400,1,0,0,0,2100,2101,7,7,0,0,2101,2102,7,2,0,0,2102, + 2103,7,20,0,0,2103,2104,7,4,0,0,2104,2105,7,2,0,0,2105,2106,7,2, + 0,0,2106,2107,7,1,0,0,2107,402,1,0,0,0,2108,2109,7,4,0,0,2109,2110, + 7,3,0,0,2110,2111,7,7,0,0,2111,2112,7,8,0,0,2112,2113,7,3,0,0,2113, + 2114,7,15,0,0,2114,2115,7,1,0,0,2115,404,1,0,0,0,2116,2117,7,1,0, + 0,2117,2118,7,8,0,0,2118,2119,7,15,0,0,2119,406,1,0,0,0,2120,2121, + 7,16,0,0,2121,2122,7,3,0,0,2122,2123,7,15,0,0,2123,408,1,0,0,0,2124, + 2125,7,3,0,0,2125,2126,7,7,0,0,2126,2127,7,7,0,0,2127,2128,7,7,0, + 0,2128,2129,7,3,0,0,2129,2130,7,16,0,0,2130,2131,7,2,0,0,2131,410, + 1,0,0,0,2132,2133,7,3,0,0,2133,2134,7,7,0,0,2134,2135,7,7,0,0,2135, + 2136,7,16,0,0,2136,2137,7,8,0,0,2137,2138,7,13,0,0,2138,2139,7,2, + 0,0,2139,412,1,0,0,0,2140,2141,7,5,0,0,2141,2142,7,17,0,0,2142,2143, + 7,4,0,0,2143,2144,7,7,0,0,2144,2145,7,3,0,0,2145,2146,7,16,0,0,2146, + 2147,7,2,0,0,2147,414,1,0,0,0,2148,2149,7,5,0,0,2149,2150,7,17,0, + 0,2150,2151,7,4,0,0,2151,2152,7,4,0,0,2152,2153,7,2,0,0,2153,2154, + 7,15,0,0,2154,2155,7,16,0,0,2155,2156,5,95,0,0,2156,2157,7,7,0,0, + 2157,2158,7,3,0,0,2158,2159,7,16,0,0,2159,2160,7,2,0,0,2160,416, + 1,0,0,0,2161,2162,7,5,0,0,2162,2163,7,17,0,0,2163,2164,7,4,0,0,2164, + 2165,7,4,0,0,2165,2166,7,2,0,0,2166,2167,7,15,0,0,2167,2168,7,16, + 0,0,2168,2169,5,95,0,0,2169,2170,7,16,0,0,2170,2171,7,8,0,0,2171, + 2172,7,13,0,0,2172,2173,7,2,0,0,2173,418,1,0,0,0,2174,2175,7,5,0, + 0,2175,2176,7,17,0,0,2176,2177,7,4,0,0,2177,2178,7,4,0,0,2178,2179, + 7,2,0,0,2179,2180,7,15,0,0,2180,2181,7,16,0,0,2181,2182,5,95,0,0, + 2182,2183,7,16,0,0,2183,2184,7,8,0,0,2184,2185,7,13,0,0,2185,2186, + 7,2,0,0,2186,2187,7,1,0,0,2187,2188,7,16,0,0,2188,2189,7,3,0,0,2189, + 2190,7,13,0,0,2190,2191,7,18,0,0,2191,420,1,0,0,0,2192,2193,7,5, + 0,0,2193,2194,7,17,0,0,2194,2195,7,4,0,0,2195,2196,7,16,0,0,2196, + 2197,7,8,0,0,2197,2198,7,13,0,0,2198,2199,7,2,0,0,2199,422,1,0,0, + 0,2200,2201,7,7,0,0,2201,2202,7,3,0,0,2202,2203,7,16,0,0,2203,2204, + 7,2,0,0,2204,424,1,0,0,0,2205,2206,7,7,0,0,2206,2207,7,3,0,0,2207, + 2208,7,16,0,0,2208,2209,7,2,0,0,2209,2210,7,7,0,0,2210,2211,7,8, + 0,0,2211,2212,7,12,0,0,2212,2213,7,12,0,0,2213,426,1,0,0,0,2214, + 2215,7,7,0,0,2215,2216,7,3,0,0,2216,2217,7,16,0,0,2217,2218,7,2, + 0,0,2218,2219,5,95,0,0,2219,2220,7,3,0,0,2220,2221,7,7,0,0,2221, + 2222,7,7,0,0,2222,428,1,0,0,0,2223,2224,7,7,0,0,2224,2225,7,3,0, + 0,2225,2226,7,16,0,0,2226,2227,7,2,0,0,2227,2228,5,95,0,0,2228,2229, + 7,12,0,0,2229,2230,7,10,0,0,2230,2231,7,4,0,0,2231,2232,7,13,0,0, + 2232,2233,7,3,0,0,2233,2234,7,16,0,0,2234,430,1,0,0,0,2235,2236, + 7,7,0,0,2236,2237,7,3,0,0,2237,2238,7,16,0,0,2238,2239,7,2,0,0,2239, + 2240,5,95,0,0,2240,2241,7,1,0,0,2241,2242,7,17,0,0,2242,2243,7,9, + 0,0,2243,432,1,0,0,0,2244,2245,7,7,0,0,2245,2246,7,3,0,0,2246,2247, + 7,23,0,0,2247,2248,7,15,0,0,2248,2249,7,3,0,0,2249,2250,7,13,0,0, + 2250,2251,7,2,0,0,2251,434,1,0,0,0,2252,2253,7,7,0,0,2253,2254,7, + 3,0,0,2254,2255,7,23,0,0,2255,2256,7,10,0,0,2256,2257,7,12,0,0,2257, + 2258,7,13,0,0,2258,2259,7,10,0,0,2259,2260,7,15,0,0,2260,2261,7, + 16,0,0,2261,2262,7,6,0,0,2262,436,1,0,0,0,2263,2264,7,7,0,0,2264, + 2265,7,3,0,0,2265,2266,7,23,0,0,2266,2267,7,10,0,0,2267,2268,7,12, + 0,0,2268,2269,7,11,0,0,2269,2270,7,2,0,0,2270,2271,7,2,0,0,2271, + 2272,7,22,0,0,2272,438,1,0,0,0,2273,2274,7,7,0,0,2274,2275,7,3,0, + 0,2275,2276,7,23,0,0,2276,2277,7,10,0,0,2277,2278,7,12,0,0,2278, + 2279,7,23,0,0,2279,2280,7,2,0,0,2280,2281,7,3,0,0,2281,2282,7,4, + 0,0,2282,440,1,0,0,0,2283,2284,7,7,0,0,2284,2285,7,3,0,0,2285,2286, + 7,23,0,0,2286,2287,5,95,0,0,2287,2288,7,10,0,0,2288,2289,7,12,0, + 0,2289,2290,5,95,0,0,2290,2291,7,13,0,0,2291,2292,7,10,0,0,2292, + 2293,7,15,0,0,2293,2294,7,16,0,0,2294,2295,7,6,0,0,2295,442,1,0, + 0,0,2296,2297,7,7,0,0,2297,2298,7,3,0,0,2298,2299,7,23,0,0,2299, + 2300,5,95,0,0,2300,2301,7,10,0,0,2301,2302,7,12,0,0,2302,2303,5, + 95,0,0,2303,2304,7,11,0,0,2304,2305,7,2,0,0,2305,2306,7,2,0,0,2306, + 2307,7,22,0,0,2307,444,1,0,0,0,2308,2309,7,2,0,0,2309,2310,7,21, + 0,0,2310,2311,7,16,0,0,2311,2312,7,4,0,0,2312,2313,7,3,0,0,2313, + 2314,7,5,0,0,2314,2315,7,16,0,0,2315,446,1,0,0,0,2316,2317,7,12, + 0,0,2317,2318,7,4,0,0,2318,2319,7,10,0,0,2319,2320,7,13,0,0,2320, + 2321,5,95,0,0,2321,2322,7,7,0,0,2322,2323,7,3,0,0,2323,2324,7,23, + 0,0,2324,2325,7,1,0,0,2325,448,1,0,0,0,2326,2327,7,12,0,0,2327,2328, + 7,4,0,0,2328,2329,7,10,0,0,2329,2330,7,13,0,0,2330,2331,5,95,0,0, + 2331,2332,7,17,0,0,2332,2333,7,15,0,0,2333,2334,7,8,0,0,2334,2335, + 7,21,0,0,2335,2336,7,16,0,0,2336,2337,7,8,0,0,2337,2338,7,13,0,0, + 2338,2339,7,2,0,0,2339,450,1,0,0,0,2340,2341,7,20,0,0,2341,2342, + 7,2,0,0,2342,2343,7,16,0,0,2343,2344,5,95,0,0,2344,2345,7,12,0,0, + 2345,2346,7,10,0,0,2346,2347,7,4,0,0,2347,2348,7,13,0,0,2348,2349, + 7,3,0,0,2349,2350,7,16,0,0,2350,452,1,0,0,0,2351,2352,7,14,0,0,2352, + 2353,7,3,0,0,2353,2354,7,1,0,0,2354,2355,7,16,0,0,2355,2356,5,95, + 0,0,2356,2357,7,7,0,0,2357,2358,7,3,0,0,2358,2359,7,23,0,0,2359, + 454,1,0,0,0,2360,2361,7,14,0,0,2361,2362,7,10,0,0,2362,2363,7,5, + 0,0,2363,2364,7,3,0,0,2364,2365,7,14,0,0,2365,2366,7,16,0,0,2366, + 2367,7,8,0,0,2367,2368,7,13,0,0,2368,2369,7,2,0,0,2369,456,1,0,0, + 0,2370,2371,7,14,0,0,2371,2372,7,10,0,0,2372,2373,7,5,0,0,2373,2374, + 7,3,0,0,2374,2375,7,14,0,0,2375,2376,7,16,0,0,2376,2377,7,8,0,0, + 2377,2378,7,13,0,0,2378,2379,7,2,0,0,2379,2380,7,1,0,0,2380,2381, + 7,16,0,0,2381,2382,7,3,0,0,2382,2383,7,13,0,0,2383,2384,7,18,0,0, + 2384,458,1,0,0,0,2385,2386,7,13,0,0,2386,2387,7,3,0,0,2387,2388, + 7,22,0,0,2388,2389,7,2,0,0,2389,2390,7,7,0,0,2390,2391,7,3,0,0,2391, + 2392,7,16,0,0,2392,2393,7,2,0,0,2393,460,1,0,0,0,2394,2395,7,13, + 0,0,2395,2396,7,3,0,0,2396,2397,7,22,0,0,2397,2398,7,2,0,0,2398, + 2399,7,16,0,0,2399,2400,7,8,0,0,2400,2401,7,13,0,0,2401,2402,7,2, + 0,0,2402,462,1,0,0,0,2403,2404,7,13,0,0,2404,2405,7,10,0,0,2405, + 2406,7,15,0,0,2406,2407,7,16,0,0,2407,2408,7,6,0,0,2408,2409,7,15, + 0,0,2409,2410,7,3,0,0,2410,2411,7,13,0,0,2411,2412,7,2,0,0,2412, + 464,1,0,0,0,2413,2414,7,15,0,0,2414,2415,7,10,0,0,2415,2416,7,11, + 0,0,2416,466,1,0,0,0,2417,2418,7,18,0,0,2418,2419,7,2,0,0,2419,2420, + 7,4,0,0,2420,2421,7,8,0,0,2421,2422,7,10,0,0,2422,2423,7,7,0,0,2423, + 2424,5,95,0,0,2424,2425,7,3,0,0,2425,2426,7,7,0,0,2426,2427,7,7, + 0,0,2427,468,1,0,0,0,2428,2429,7,18,0,0,2429,2430,7,2,0,0,2430,2431, + 7,4,0,0,2431,2432,7,8,0,0,2432,2433,7,10,0,0,2433,2434,7,7,0,0,2434, + 2435,5,95,0,0,2435,2436,7,7,0,0,2436,2437,7,8,0,0,2437,2438,7,12, + 0,0,2438,2439,7,12,0,0,2439,470,1,0,0,0,2440,2441,7,1,0,0,2441,2442, + 7,2,0,0,2442,2443,7,5,0,0,2443,2444,5,95,0,0,2444,2445,7,16,0,0, + 2445,2446,7,10,0,0,2446,2447,5,95,0,0,2447,2448,7,16,0,0,2448,2449, + 7,8,0,0,2449,2450,7,13,0,0,2450,2451,7,2,0,0,2451,472,1,0,0,0,2452, + 2453,7,1,0,0,2453,2454,7,16,0,0,2454,2455,7,4,0,0,2455,2456,5,95, + 0,0,2456,2457,7,16,0,0,2457,2458,7,10,0,0,2458,2459,5,95,0,0,2459, + 2460,7,7,0,0,2460,2461,7,3,0,0,2461,2462,7,16,0,0,2462,2463,7,2, + 0,0,2463,474,1,0,0,0,2464,2465,7,1,0,0,2465,2466,7,17,0,0,2466,2467, + 7,9,0,0,2467,2468,7,7,0,0,2468,2469,7,3,0,0,2469,2470,7,16,0,0,2470, + 2471,7,2,0,0,2471,476,1,0,0,0,2472,2473,7,1,0,0,2473,2474,7,17,0, + 0,2474,2475,7,9,0,0,2475,2476,7,16,0,0,2476,2477,7,8,0,0,2477,2478, + 7,13,0,0,2478,2479,7,2,0,0,2479,478,1,0,0,0,2480,2481,7,1,0,0,2481, + 2482,7,23,0,0,2482,2483,7,1,0,0,2483,2484,7,7,0,0,2484,2485,7,3, + 0,0,2485,2486,7,16,0,0,2486,2487,7,2,0,0,2487,480,1,0,0,0,2488,2489, + 7,16,0,0,2489,2490,7,8,0,0,2490,2491,7,13,0,0,2491,2492,7,2,0,0, + 2492,482,1,0,0,0,2493,2494,7,16,0,0,2494,2495,7,8,0,0,2495,2496, + 7,13,0,0,2496,2497,7,2,0,0,2497,2498,7,7,0,0,2498,2499,7,8,0,0,2499, + 2500,7,12,0,0,2500,2501,7,12,0,0,2501,484,1,0,0,0,2502,2503,7,16, + 0,0,2503,2504,7,8,0,0,2504,2505,7,13,0,0,2505,2506,7,2,0,0,2506, + 2507,7,1,0,0,2507,2508,7,16,0,0,2508,2509,7,3,0,0,2509,2510,7,13, + 0,0,2510,2511,7,18,0,0,2511,486,1,0,0,0,2512,2513,7,16,0,0,2513, + 2514,7,8,0,0,2514,2515,7,13,0,0,2515,2516,7,2,0,0,2516,2517,7,1, + 0,0,2517,2518,7,16,0,0,2518,2519,7,3,0,0,2519,2520,7,13,0,0,2520, + 2521,7,18,0,0,2521,2522,7,3,0,0,2522,2523,7,7,0,0,2523,2524,7,7, + 0,0,2524,488,1,0,0,0,2525,2526,7,16,0,0,2526,2527,7,8,0,0,2527,2528, + 7,13,0,0,2528,2529,7,2,0,0,2529,2530,7,1,0,0,2530,2531,7,16,0,0, + 2531,2532,7,3,0,0,2532,2533,7,13,0,0,2533,2534,7,18,0,0,2534,2535, + 7,7,0,0,2535,2536,7,8,0,0,2536,2537,7,12,0,0,2537,2538,7,12,0,0, + 2538,490,1,0,0,0,2539,2540,7,16,0,0,2540,2541,7,8,0,0,2541,2542, + 7,13,0,0,2542,2543,7,2,0,0,2543,2544,5,95,0,0,2544,2545,7,12,0,0, + 2545,2546,7,10,0,0,2546,2547,7,4,0,0,2547,2548,7,13,0,0,2548,2549, + 7,3,0,0,2549,2550,7,16,0,0,2550,492,1,0,0,0,2551,2552,7,16,0,0,2552, + 2553,7,8,0,0,2553,2554,7,13,0,0,2554,2555,7,2,0,0,2555,2556,5,95, + 0,0,2556,2557,7,16,0,0,2557,2558,7,10,0,0,2558,2559,5,95,0,0,2559, + 2560,7,1,0,0,2560,2561,7,2,0,0,2561,2562,7,5,0,0,2562,494,1,0,0, + 0,2563,2564,7,16,0,0,2564,2565,7,10,0,0,2565,2566,5,95,0,0,2566, + 2567,7,7,0,0,2567,2568,7,3,0,0,2568,2569,7,23,0,0,2569,2570,7,1, + 0,0,2570,496,1,0,0,0,2571,2572,7,16,0,0,2572,2573,7,10,0,0,2573, + 2574,5,95,0,0,2574,2575,7,1,0,0,2575,2576,7,2,0,0,2576,2577,7,5, + 0,0,2577,2578,7,10,0,0,2578,2579,7,15,0,0,2579,2580,7,7,0,0,2580, + 2581,7,1,0,0,2581,498,1,0,0,0,2582,2583,7,17,0,0,2583,2584,7,15, + 0,0,2584,2585,7,8,0,0,2585,2586,7,21,0,0,2586,2587,5,95,0,0,2587, + 2588,7,16,0,0,2588,2589,7,8,0,0,2589,2590,7,13,0,0,2590,2591,7,2, + 0,0,2591,2592,7,1,0,0,2592,2593,7,16,0,0,2593,2594,7,3,0,0,2594, + 2595,7,13,0,0,2595,2596,7,18,0,0,2596,500,1,0,0,0,2597,2598,7,17, + 0,0,2598,2599,7,16,0,0,2599,2600,7,5,0,0,2600,2601,5,95,0,0,2601, + 2602,7,7,0,0,2602,2603,7,3,0,0,2603,2604,7,16,0,0,2604,2605,7,2, + 0,0,2605,502,1,0,0,0,2606,2607,7,17,0,0,2607,2608,7,16,0,0,2608, + 2609,7,5,0,0,2609,2610,5,95,0,0,2610,2611,7,16,0,0,2611,2612,7,8, + 0,0,2612,2613,7,13,0,0,2613,2614,7,2,0,0,2614,504,1,0,0,0,2615,2616, + 7,17,0,0,2616,2617,7,16,0,0,2617,2618,7,5,0,0,2618,2619,5,95,0,0, + 2619,2620,7,16,0,0,2620,2621,7,8,0,0,2621,2622,7,13,0,0,2622,2623, + 7,2,0,0,2623,2624,7,1,0,0,2624,2625,7,16,0,0,2625,2626,7,3,0,0,2626, + 2627,7,13,0,0,2627,2628,7,18,0,0,2628,506,1,0,0,0,2629,2630,7,11, + 0,0,2630,2631,7,2,0,0,2631,2632,7,2,0,0,2632,2633,7,22,0,0,2633, + 2634,7,7,0,0,2634,2635,7,3,0,0,2635,2636,7,23,0,0,2636,508,1,0,0, + 0,2637,2638,7,23,0,0,2638,2639,7,2,0,0,2639,2640,7,3,0,0,2640,2641, + 7,4,0,0,2641,2642,7,11,0,0,2642,2643,7,2,0,0,2643,2644,7,2,0,0,2644, + 2645,7,22,0,0,2645,510,1,0,0,0,2646,2647,7,1,0,0,2647,2648,7,17, + 0,0,2648,2649,7,9,0,0,2649,2650,7,1,0,0,2650,2651,7,16,0,0,2651, + 2652,7,4,0,0,2652,512,1,0,0,0,2653,2654,7,1,0,0,2654,2655,7,17,0, + 0,2655,2656,7,9,0,0,2656,2657,7,1,0,0,2657,2658,7,16,0,0,2658,2659, + 7,4,0,0,2659,2660,7,8,0,0,2660,2661,7,15,0,0,2661,2662,7,20,0,0, + 2662,514,1,0,0,0,2663,2664,7,14,0,0,2664,2665,7,16,0,0,2665,2666, + 7,4,0,0,2666,2667,7,8,0,0,2667,2668,7,13,0,0,2668,516,1,0,0,0,2669, + 2670,7,4,0,0,2670,2671,7,16,0,0,2671,2672,7,4,0,0,2672,2673,7,8, + 0,0,2673,2674,7,13,0,0,2674,518,1,0,0,0,2675,2676,7,16,0,0,2676, + 2677,7,4,0,0,2677,2678,7,8,0,0,2678,2679,7,13,0,0,2679,520,1,0,0, + 0,2680,2681,7,16,0,0,2681,2682,7,10,0,0,2682,522,1,0,0,0,2683,2684, + 7,14,0,0,2684,2685,7,10,0,0,2685,2686,7,11,0,0,2686,2687,7,2,0,0, + 2687,2688,7,4,0,0,2688,524,1,0,0,0,2689,2690,7,17,0,0,2690,2691, + 7,18,0,0,2691,2692,7,18,0,0,2692,2693,7,2,0,0,2693,2694,7,4,0,0, + 2694,526,1,0,0,0,2695,2696,7,5,0,0,2696,2697,7,10,0,0,2697,2698, + 7,15,0,0,2698,2699,7,5,0,0,2699,2700,7,3,0,0,2700,2701,7,16,0,0, + 2701,528,1,0,0,0,2702,2703,7,5,0,0,2703,2704,7,10,0,0,2704,2705, + 7,15,0,0,2705,2706,7,5,0,0,2706,2707,7,3,0,0,2707,2708,7,16,0,0, + 2708,2709,5,95,0,0,2709,2710,7,11,0,0,2710,2711,7,1,0,0,2711,530, + 1,0,0,0,2712,2713,7,14,0,0,2713,2714,7,2,0,0,2714,2715,7,15,0,0, + 2715,2716,7,20,0,0,2716,2717,7,16,0,0,2717,2718,7,6,0,0,2718,532, + 1,0,0,0,2719,2720,7,1,0,0,2720,2721,7,16,0,0,2721,2722,7,4,0,0,2722, + 2723,7,5,0,0,2723,2724,7,13,0,0,2724,2725,7,18,0,0,2725,534,1,0, + 0,0,2726,2727,7,4,0,0,2727,2728,7,8,0,0,2728,2729,7,20,0,0,2729, + 2730,7,6,0,0,2730,2731,7,16,0,0,2731,536,1,0,0,0,2732,2733,7,14, + 0,0,2733,2734,7,2,0,0,2734,2735,7,12,0,0,2735,2736,7,16,0,0,2736, + 538,1,0,0,0,2737,2738,7,3,0,0,2738,2739,7,1,0,0,2739,2740,7,5,0, + 0,2740,2741,7,8,0,0,2741,2742,7,8,0,0,2742,540,1,0,0,0,2743,2744, + 7,14,0,0,2744,2745,7,10,0,0,2745,2746,7,5,0,0,2746,2747,7,3,0,0, + 2747,2748,7,16,0,0,2748,2749,7,2,0,0,2749,542,1,0,0,0,2750,2751, + 7,4,0,0,2751,2752,7,2,0,0,2752,2753,7,18,0,0,2753,2754,7,14,0,0, + 2754,2755,7,3,0,0,2755,2756,7,5,0,0,2756,2757,7,2,0,0,2757,544,1, + 0,0,0,2758,2759,7,4,0,0,2759,2760,7,2,0,0,2760,2761,7,19,0,0,2761, + 2762,7,2,0,0,2762,2763,7,4,0,0,2763,2764,7,1,0,0,2764,2765,7,2,0, + 0,2765,546,1,0,0,0,2766,2767,7,5,0,0,2767,2768,7,3,0,0,2768,2769, + 7,1,0,0,2769,2770,7,16,0,0,2770,548,1,0,0,0,2771,2772,7,14,0,0,2772, + 2773,7,8,0,0,2773,2774,7,22,0,0,2774,2775,7,2,0,0,2775,550,1,0,0, + 0,2776,2777,7,8,0,0,2777,2778,7,1,0,0,2778,2779,7,15,0,0,2779,2780, + 7,17,0,0,2780,2781,7,14,0,0,2781,2782,7,14,0,0,2782,552,1,0,0,0, + 2783,2784,7,8,0,0,2784,2785,7,1,0,0,2785,2786,7,15,0,0,2786,2787, + 7,10,0,0,2787,2788,7,16,0,0,2788,2789,7,15,0,0,2789,2790,7,17,0, + 0,2790,2791,7,14,0,0,2791,2792,7,14,0,0,2792,554,1,0,0,0,2793,2794, + 7,8,0,0,2794,2795,7,12,0,0,2795,2796,7,15,0,0,2796,2797,7,17,0,0, + 2797,2798,7,14,0,0,2798,2799,7,14,0,0,2799,556,1,0,0,0,2800,2801, + 7,15,0,0,2801,2802,7,17,0,0,2802,2803,7,14,0,0,2803,2804,7,14,0, + 0,2804,2805,7,8,0,0,2805,2806,7,12,0,0,2806,558,1,0,0,0,2807,2808, + 7,8,0,0,2808,2809,7,12,0,0,2809,560,1,0,0,0,2810,2811,7,16,0,0,2811, + 2812,7,23,0,0,2812,2813,7,18,0,0,2813,2814,7,2,0,0,2814,2815,7,10, + 0,0,2815,2816,7,12,0,0,2816,562,1,0,0,0,2817,2818,7,13,0,0,2818, + 2819,7,3,0,0,2819,2820,7,16,0,0,2820,2821,7,5,0,0,2821,2822,7,6, + 0,0,2822,564,1,0,0,0,2823,2824,7,13,0,0,2824,2825,7,3,0,0,2825,2826, + 7,16,0,0,2826,2827,7,5,0,0,2827,2828,7,6,0,0,2828,2829,5,95,0,0, + 2829,2830,7,18,0,0,2830,2831,7,6,0,0,2831,2832,7,4,0,0,2832,2833, + 7,3,0,0,2833,2834,7,1,0,0,2834,2835,7,2,0,0,2835,566,1,0,0,0,2836, + 2837,7,13,0,0,2837,2838,7,3,0,0,2838,2839,7,16,0,0,2839,2840,7,5, + 0,0,2840,2841,7,6,0,0,2841,2842,5,95,0,0,2842,2843,7,18,0,0,2843, + 2844,7,6,0,0,2844,2845,7,4,0,0,2845,2846,7,3,0,0,2846,2847,7,1,0, + 0,2847,2848,7,2,0,0,2848,2849,5,95,0,0,2849,2850,7,18,0,0,2850,2851, + 7,4,0,0,2851,2852,7,2,0,0,2852,2853,7,12,0,0,2853,2854,7,8,0,0,2854, + 2855,7,21,0,0,2855,568,1,0,0,0,2856,2857,7,13,0,0,2857,2858,7,3, + 0,0,2858,2859,7,16,0,0,2859,2860,7,5,0,0,2860,2861,7,6,0,0,2861, + 2862,5,95,0,0,2862,2863,7,9,0,0,2863,2864,7,10,0,0,2864,2865,7,10, + 0,0,2865,2866,7,14,0,0,2866,2867,5,95,0,0,2867,2868,7,18,0,0,2868, + 2869,7,4,0,0,2869,2870,7,2,0,0,2870,2871,7,12,0,0,2871,2872,7,8, + 0,0,2872,2873,7,21,0,0,2873,570,1,0,0,0,2874,2875,7,1,0,0,2875,2876, + 7,8,0,0,2876,2877,7,13,0,0,2877,2878,7,18,0,0,2878,2879,7,14,0,0, + 2879,2880,7,2,0,0,2880,2881,5,95,0,0,2881,2882,7,25,0,0,2882,2883, + 7,17,0,0,2883,2884,7,2,0,0,2884,2885,7,4,0,0,2885,2886,7,23,0,0, + 2886,2887,5,95,0,0,2887,2888,7,1,0,0,2888,2889,7,16,0,0,2889,2890, + 7,4,0,0,2890,2891,7,8,0,0,2891,2892,7,15,0,0,2892,2893,7,20,0,0, + 2893,572,1,0,0,0,2894,2895,7,13,0,0,2895,2896,7,17,0,0,2896,2897, + 7,14,0,0,2897,2898,7,16,0,0,2898,2899,7,8,0,0,2899,2900,5,95,0,0, + 2900,2901,7,13,0,0,2901,2902,7,3,0,0,2902,2903,7,16,0,0,2903,2904, + 7,5,0,0,2904,2905,7,6,0,0,2905,574,1,0,0,0,2906,2907,7,25,0,0,2907, + 2908,7,17,0,0,2908,2909,7,2,0,0,2909,2910,7,4,0,0,2910,2911,7,23, + 0,0,2911,2912,5,95,0,0,2912,2913,7,1,0,0,2913,2914,7,16,0,0,2914, + 2915,7,4,0,0,2915,2916,7,8,0,0,2916,2917,7,15,0,0,2917,2918,7,20, + 0,0,2918,576,1,0,0,0,2919,2920,7,3,0,0,2920,2921,7,14,0,0,2921,2922, + 7,14,0,0,2922,2923,7,10,0,0,2923,2924,7,11,0,0,2924,2925,5,95,0, + 0,2925,2926,7,14,0,0,2926,2927,7,2,0,0,2927,2928,7,3,0,0,2928,2929, + 7,7,0,0,2929,2930,7,8,0,0,2930,2931,7,15,0,0,2931,2932,7,20,0,0, + 2932,2933,5,95,0,0,2933,2934,7,11,0,0,2934,2935,7,8,0,0,2935,2936, + 7,14,0,0,2936,2937,7,7,0,0,2937,2938,7,5,0,0,2938,2939,7,3,0,0,2939, + 2940,7,4,0,0,2940,2941,7,7,0,0,2941,578,1,0,0,0,2942,2943,7,3,0, + 0,2943,2944,7,15,0,0,2944,2945,7,3,0,0,2945,2946,7,14,0,0,2946,2947, + 7,23,0,0,2947,2948,7,24,0,0,2948,2949,7,2,0,0,2949,2950,5,95,0,0, + 2950,2951,7,11,0,0,2951,2952,7,8,0,0,2952,2953,7,14,0,0,2953,2954, + 7,7,0,0,2954,2955,7,5,0,0,2955,2956,7,3,0,0,2956,2957,7,4,0,0,2957, + 2958,7,7,0,0,2958,580,1,0,0,0,2959,2960,7,3,0,0,2960,2961,7,15,0, + 0,2961,2962,7,3,0,0,2962,2963,7,14,0,0,2963,2964,7,23,0,0,2964,2965, + 7,24,0,0,2965,2966,7,2,0,0,2966,2967,7,4,0,0,2967,582,1,0,0,0,2968, + 2969,7,3,0,0,2969,2970,7,17,0,0,2970,2971,7,16,0,0,2971,2972,7,10, + 0,0,2972,2973,5,95,0,0,2973,2974,7,20,0,0,2974,2975,7,2,0,0,2975, + 2976,7,15,0,0,2976,2977,7,2,0,0,2977,2978,7,4,0,0,2978,2979,7,3, + 0,0,2979,2980,7,16,0,0,2980,2981,7,2,0,0,2981,2982,5,95,0,0,2982, + 2983,7,1,0,0,2983,2984,7,23,0,0,2984,2985,7,15,0,0,2985,2986,7,10, + 0,0,2986,2987,7,15,0,0,2987,2988,7,23,0,0,2988,2989,7,13,0,0,2989, + 2990,7,1,0,0,2990,2991,5,95,0,0,2991,2992,7,18,0,0,2992,2993,7,6, + 0,0,2993,2994,7,4,0,0,2994,2995,7,3,0,0,2995,2996,7,1,0,0,2996,2997, + 7,2,0,0,2997,2998,5,95,0,0,2998,2999,7,25,0,0,2999,3000,7,17,0,0, + 3000,3001,7,2,0,0,3001,3002,7,4,0,0,3002,3003,7,23,0,0,3003,584, + 1,0,0,0,3004,3005,7,9,0,0,3005,3006,7,10,0,0,3006,3007,7,10,0,0, + 3007,3008,7,1,0,0,3008,3009,7,16,0,0,3009,586,1,0,0,0,3010,3011, + 7,5,0,0,3011,3012,7,17,0,0,3012,3013,7,16,0,0,3013,3014,7,10,0,0, + 3014,3015,7,12,0,0,3015,3016,7,12,0,0,3016,3017,5,95,0,0,3017,3018, + 7,12,0,0,3018,3019,7,4,0,0,3019,3020,7,2,0,0,3020,3021,7,25,0,0, + 3021,3022,7,17,0,0,3022,3023,7,2,0,0,3023,3024,7,15,0,0,3024,3025, + 7,5,0,0,3025,3026,7,23,0,0,3026,588,1,0,0,0,3027,3028,7,7,0,0,3028, + 3029,7,2,0,0,3029,3030,7,12,0,0,3030,3031,7,3,0,0,3031,3032,7,17, + 0,0,3032,3033,7,14,0,0,3033,3034,7,16,0,0,3034,3035,5,95,0,0,3035, + 3036,7,12,0,0,3036,3037,7,8,0,0,3037,3038,7,2,0,0,3038,3039,7,14, + 0,0,3039,3040,7,7,0,0,3040,590,1,0,0,0,3041,3042,7,7,0,0,3042,3043, + 7,2,0,0,3043,3044,7,12,0,0,3044,3045,7,3,0,0,3045,3046,7,17,0,0, + 3046,3047,7,14,0,0,3047,3048,7,16,0,0,3048,3049,5,95,0,0,3049,3050, + 7,10,0,0,3050,3051,7,18,0,0,3051,3052,7,2,0,0,3052,3053,7,4,0,0, + 3053,3054,7,3,0,0,3054,3055,7,16,0,0,3055,3056,7,10,0,0,3056,3057, + 7,4,0,0,3057,592,1,0,0,0,3058,3059,7,2,0,0,3059,3060,7,15,0,0,3060, + 3061,7,3,0,0,3061,3062,7,9,0,0,3062,3063,7,14,0,0,3063,3064,7,2, + 0,0,3064,3065,5,95,0,0,3065,3066,7,18,0,0,3066,3067,7,10,0,0,3067, + 3068,7,1,0,0,3068,3069,7,8,0,0,3069,3070,7,16,0,0,3070,3071,7,8, + 0,0,3071,3072,7,10,0,0,3072,3073,7,15,0,0,3073,3074,5,95,0,0,3074, + 3075,7,8,0,0,3075,3076,7,15,0,0,3076,3077,7,5,0,0,3077,3078,7,4, + 0,0,3078,3079,7,2,0,0,3079,3080,7,13,0,0,3080,3081,7,2,0,0,3081, + 3082,7,15,0,0,3082,3083,7,16,0,0,3083,3084,7,1,0,0,3084,594,1,0, + 0,0,3085,3086,7,2,0,0,3086,3087,7,1,0,0,3087,3088,7,5,0,0,3088,3089, + 7,3,0,0,3089,3090,7,18,0,0,3090,3091,7,2,0,0,3091,596,1,0,0,0,3092, + 3093,7,12,0,0,3093,3094,7,14,0,0,3094,3095,7,3,0,0,3095,3096,7,20, + 0,0,3096,3097,7,1,0,0,3097,598,1,0,0,0,3098,3099,7,12,0,0,3099,3100, + 7,17,0,0,3100,3101,7,24,0,0,3101,3102,7,24,0,0,3102,3103,7,23,0, + 0,3103,3104,5,95,0,0,3104,3105,7,13,0,0,3105,3106,7,3,0,0,3106,3107, + 7,21,0,0,3107,3108,5,95,0,0,3108,3109,7,2,0,0,3109,3110,7,21,0,0, + 3110,3111,7,18,0,0,3111,3112,7,3,0,0,3112,3113,7,15,0,0,3113,3114, + 7,1,0,0,3114,3115,7,8,0,0,3115,3116,7,10,0,0,3116,3117,7,15,0,0, + 3117,3118,7,1,0,0,3118,600,1,0,0,0,3119,3120,7,12,0,0,3120,3121, + 7,17,0,0,3121,3122,7,24,0,0,3122,3123,7,24,0,0,3123,3124,7,23,0, + 0,3124,3125,5,95,0,0,3125,3126,7,18,0,0,3126,3127,7,4,0,0,3127,3128, + 7,2,0,0,3128,3129,7,12,0,0,3129,3130,7,8,0,0,3130,3131,7,21,0,0, + 3131,3132,5,95,0,0,3132,3133,7,14,0,0,3133,3134,7,2,0,0,3134,3135, + 7,15,0,0,3135,3136,7,20,0,0,3136,3137,7,16,0,0,3137,3138,7,6,0,0, + 3138,602,1,0,0,0,3139,3140,7,12,0,0,3140,3141,7,17,0,0,3141,3142, + 7,24,0,0,3142,3143,7,24,0,0,3143,3144,7,23,0,0,3144,3145,5,95,0, + 0,3145,3146,7,16,0,0,3146,3147,7,4,0,0,3147,3148,7,3,0,0,3148,3149, + 7,15,0,0,3149,3150,7,1,0,0,3150,3151,7,18,0,0,3151,3152,7,10,0,0, + 3152,3153,7,1,0,0,3153,3154,7,8,0,0,3154,3155,7,16,0,0,3155,3156, + 7,8,0,0,3156,3157,7,10,0,0,3157,3158,7,15,0,0,3158,3159,7,1,0,0, + 3159,604,1,0,0,0,3160,3161,7,12,0,0,3161,3162,7,17,0,0,3162,3163, + 7,24,0,0,3163,3164,7,24,0,0,3164,3165,7,23,0,0,3165,3166,5,95,0, + 0,3166,3167,7,4,0,0,3167,3168,7,2,0,0,3168,3169,7,11,0,0,3169,3170, + 7,4,0,0,3170,3171,7,8,0,0,3171,3172,7,16,0,0,3172,3173,7,2,0,0,3173, + 606,1,0,0,0,3174,3175,7,12,0,0,3175,3176,7,17,0,0,3176,3177,7,24, + 0,0,3177,3178,7,24,0,0,3178,3179,7,8,0,0,3179,3180,7,15,0,0,3180, + 3181,7,2,0,0,3181,3182,7,1,0,0,3182,3183,7,1,0,0,3183,608,1,0,0, + 0,3184,3185,7,14,0,0,3185,3186,7,2,0,0,3186,3187,7,15,0,0,3187,3188, + 7,8,0,0,3188,3189,7,2,0,0,3189,3190,7,15,0,0,3190,3191,7,16,0,0, + 3191,610,1,0,0,0,3192,3193,7,14,0,0,3193,3194,7,10,0,0,3194,3195, + 7,11,0,0,3195,3196,5,95,0,0,3196,3197,7,12,0,0,3197,3198,7,4,0,0, + 3198,3199,7,2,0,0,3199,3200,7,25,0,0,3200,3201,5,95,0,0,3201,3202, + 7,10,0,0,3202,3203,7,18,0,0,3203,3204,7,2,0,0,3204,3205,7,4,0,0, + 3205,3206,7,3,0,0,3206,3207,7,16,0,0,3207,3208,7,10,0,0,3208,3209, + 7,4,0,0,3209,612,1,0,0,0,3210,3211,7,13,0,0,3211,3212,7,3,0,0,3212, + 3213,7,21,0,0,3213,3214,5,95,0,0,3214,3215,7,7,0,0,3215,3216,7,2, + 0,0,3216,3217,7,16,0,0,3217,3218,7,2,0,0,3218,3219,7,4,0,0,3219, + 3220,7,13,0,0,3220,3221,7,8,0,0,3221,3222,7,15,0,0,3222,3223,7,8, + 0,0,3223,3224,7,24,0,0,3224,3225,7,2,0,0,3225,3226,7,7,0,0,3226, + 3227,5,95,0,0,3227,3228,7,1,0,0,3228,3229,7,16,0,0,3229,3230,7,3, + 0,0,3230,3231,7,16,0,0,3231,3232,7,2,0,0,3232,3233,7,1,0,0,3233, + 614,1,0,0,0,3234,3235,7,13,0,0,3235,3236,7,3,0,0,3236,3237,7,21, + 0,0,3237,3238,5,95,0,0,3238,3239,7,2,0,0,3239,3240,7,21,0,0,3240, + 3241,7,18,0,0,3241,3242,7,3,0,0,3242,3243,7,15,0,0,3243,3244,7,1, + 0,0,3244,3245,7,8,0,0,3245,3246,7,10,0,0,3246,3247,7,15,0,0,3247, + 3248,7,1,0,0,3248,616,1,0,0,0,3249,3250,7,13,0,0,3250,3251,7,8,0, + 0,3251,3252,7,15,0,0,3252,3253,7,8,0,0,3253,3254,7,13,0,0,3254,3255, + 7,17,0,0,3255,3256,7,13,0,0,3256,3257,5,95,0,0,3257,3258,7,1,0,0, + 3258,3259,7,6,0,0,3259,3260,7,10,0,0,3260,3261,7,17,0,0,3261,3262, + 7,14,0,0,3262,3263,7,7,0,0,3263,3264,5,95,0,0,3264,3265,7,13,0,0, + 3265,3266,7,3,0,0,3266,3267,7,16,0,0,3267,3268,7,5,0,0,3268,3269, + 7,6,0,0,3269,618,1,0,0,0,3270,3271,7,10,0,0,3271,3272,7,18,0,0,3272, + 3273,7,2,0,0,3273,3274,7,4,0,0,3274,3275,7,3,0,0,3275,3276,7,16, + 0,0,3276,3277,7,10,0,0,3277,3278,7,4,0,0,3278,620,1,0,0,0,3279,3280, + 7,18,0,0,3280,3281,7,6,0,0,3281,3282,7,4,0,0,3282,3283,7,3,0,0,3283, + 3284,7,1,0,0,3284,3285,7,2,0,0,3285,3286,5,95,0,0,3286,3287,7,1, + 0,0,3287,3288,7,14,0,0,3288,3289,7,10,0,0,3289,3290,7,18,0,0,3290, + 622,1,0,0,0,3291,3292,7,18,0,0,3292,3293,7,4,0,0,3293,3294,7,2,0, + 0,3294,3295,7,12,0,0,3295,3296,7,8,0,0,3296,3297,7,21,0,0,3297,3298, + 5,95,0,0,3298,3299,7,14,0,0,3299,3300,7,2,0,0,3300,3301,7,15,0,0, + 3301,3302,7,20,0,0,3302,3303,7,16,0,0,3303,3304,7,6,0,0,3304,624, + 1,0,0,0,3305,3306,7,25,0,0,3306,3307,7,17,0,0,3307,3308,7,10,0,0, + 3308,3309,7,16,0,0,3309,3310,7,2,0,0,3310,3311,5,95,0,0,3311,3312, + 7,3,0,0,3312,3313,7,15,0,0,3313,3314,7,3,0,0,3314,3315,7,14,0,0, + 3315,3316,7,23,0,0,3316,3317,7,24,0,0,3317,3318,7,2,0,0,3318,3319, + 7,4,0,0,3319,626,1,0,0,0,3320,3321,7,25,0,0,3321,3322,7,17,0,0,3322, + 3323,7,10,0,0,3323,3324,7,16,0,0,3324,3325,7,2,0,0,3325,3326,5,95, + 0,0,3326,3327,7,12,0,0,3327,3328,7,8,0,0,3328,3329,7,2,0,0,3329, + 3330,7,14,0,0,3330,3331,7,7,0,0,3331,3332,5,95,0,0,3332,3333,7,1, + 0,0,3333,3334,7,17,0,0,3334,3335,7,12,0,0,3335,3336,7,12,0,0,3336, + 3337,7,8,0,0,3337,3338,7,21,0,0,3338,628,1,0,0,0,3339,3340,7,4,0, + 0,3340,3341,7,2,0,0,3341,3342,7,11,0,0,3342,3343,7,4,0,0,3343,3344, + 7,8,0,0,3344,3345,7,16,0,0,3345,3346,7,2,0,0,3346,630,1,0,0,0,3347, + 3348,7,1,0,0,3348,3349,7,14,0,0,3349,3350,7,10,0,0,3350,3351,7,18, + 0,0,3351,632,1,0,0,0,3352,3353,7,16,0,0,3353,3354,7,8,0,0,3354,3355, + 7,2,0,0,3355,3356,5,95,0,0,3356,3357,7,9,0,0,3357,3358,7,4,0,0,3358, + 3359,7,2,0,0,3359,3360,7,3,0,0,3360,3361,7,22,0,0,3361,3362,7,2, + 0,0,3362,3363,7,4,0,0,3363,634,1,0,0,0,3364,3365,7,16,0,0,3365,3366, + 7,23,0,0,3366,3367,7,18,0,0,3367,3368,7,2,0,0,3368,636,1,0,0,0,3369, + 3370,7,24,0,0,3370,3371,7,2,0,0,3371,3372,7,4,0,0,3372,3373,7,10, + 0,0,3373,3374,5,95,0,0,3374,3375,7,16,0,0,3375,3376,7,2,0,0,3376, + 3377,7,4,0,0,3377,3378,7,13,0,0,3378,3379,7,1,0,0,3379,3380,5,95, + 0,0,3380,3381,7,25,0,0,3381,3382,7,17,0,0,3382,3383,7,2,0,0,3383, + 3384,7,4,0,0,3384,3385,7,23,0,0,3385,638,1,0,0,0,3386,3387,7,1,0, + 0,3387,3388,7,18,0,0,3388,3389,7,3,0,0,3389,3390,7,15,0,0,3390,640, + 1,0,0,0,3391,3392,7,13,0,0,3392,3393,7,1,0,0,3393,642,1,0,0,0,3394, + 3395,7,1,0,0,3395,644,1,0,0,0,3396,3397,7,13,0,0,3397,646,1,0,0, + 0,3398,3399,7,6,0,0,3399,648,1,0,0,0,3400,3401,7,11,0,0,3401,650, + 1,0,0,0,3402,3403,7,25,0,0,3403,652,1,0,0,0,3404,3405,7,23,0,0,3405, + 654,1,0,0,0,3406,3407,3,665,332,0,3407,656,1,0,0,0,3408,3409,3,667, + 333,0,3409,658,1,0,0,0,3410,3412,3,677,338,0,3411,3410,1,0,0,0,3412, + 3413,1,0,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,660,1,0,0, + 0,3415,3417,3,677,338,0,3416,3415,1,0,0,0,3417,3418,1,0,0,0,3418, + 3416,1,0,0,0,3418,3419,1,0,0,0,3419,3421,1,0,0,0,3420,3416,1,0,0, + 0,3420,3421,1,0,0,0,3421,3422,1,0,0,0,3422,3424,5,46,0,0,3423,3425, + 3,677,338,0,3424,3423,1,0,0,0,3425,3426,1,0,0,0,3426,3424,1,0,0, + 0,3426,3427,1,0,0,0,3427,662,1,0,0,0,3428,3430,7,26,0,0,3429,3431, + 7,27,0,0,3430,3429,1,0,0,0,3431,3432,1,0,0,0,3432,3430,1,0,0,0,3432, + 3433,1,0,0,0,3433,3435,1,0,0,0,3434,3428,1,0,0,0,3435,3436,1,0,0, + 0,3436,3434,1,0,0,0,3436,3437,1,0,0,0,3437,664,1,0,0,0,3438,3442, + 7,28,0,0,3439,3441,7,29,0,0,3440,3439,1,0,0,0,3441,3444,1,0,0,0, + 3442,3440,1,0,0,0,3442,3443,1,0,0,0,3443,666,1,0,0,0,3444,3442,1, + 0,0,0,3445,3447,7,30,0,0,3446,3445,1,0,0,0,3447,3448,1,0,0,0,3448, + 3449,1,0,0,0,3448,3446,1,0,0,0,3449,3453,1,0,0,0,3450,3452,7,29, + 0,0,3451,3450,1,0,0,0,3452,3455,1,0,0,0,3453,3451,1,0,0,0,3453,3454, + 1,0,0,0,3454,3456,1,0,0,0,3455,3453,1,0,0,0,3456,3457,3,247,123, + 0,3457,668,1,0,0,0,3458,3460,3,667,333,0,3459,3458,1,0,0,0,3459, + 3460,1,0,0,0,3460,3461,1,0,0,0,3461,3462,3,665,332,0,3462,3463,3, + 663,331,0,3463,670,1,0,0,0,3464,3472,5,34,0,0,3465,3466,5,92,0,0, + 3466,3471,9,0,0,0,3467,3468,5,34,0,0,3468,3471,5,34,0,0,3469,3471, + 8,31,0,0,3470,3465,1,0,0,0,3470,3467,1,0,0,0,3470,3469,1,0,0,0,3471, + 3474,1,0,0,0,3472,3470,1,0,0,0,3472,3473,1,0,0,0,3473,3475,1,0,0, + 0,3474,3472,1,0,0,0,3475,3476,5,34,0,0,3476,672,1,0,0,0,3477,3485, + 5,39,0,0,3478,3479,5,92,0,0,3479,3484,9,0,0,0,3480,3481,5,39,0,0, + 3481,3484,5,39,0,0,3482,3484,8,32,0,0,3483,3478,1,0,0,0,3483,3480, + 1,0,0,0,3483,3482,1,0,0,0,3484,3487,1,0,0,0,3485,3483,1,0,0,0,3485, + 3486,1,0,0,0,3486,3488,1,0,0,0,3487,3485,1,0,0,0,3488,3489,5,39, + 0,0,3489,674,1,0,0,0,3490,3498,5,96,0,0,3491,3492,5,92,0,0,3492, + 3497,9,0,0,0,3493,3494,5,96,0,0,3494,3497,5,96,0,0,3495,3497,8,33, + 0,0,3496,3491,1,0,0,0,3496,3493,1,0,0,0,3496,3495,1,0,0,0,3497,3500, + 1,0,0,0,3498,3496,1,0,0,0,3498,3499,1,0,0,0,3499,3501,1,0,0,0,3500, + 3498,1,0,0,0,3501,3502,5,96,0,0,3502,676,1,0,0,0,3503,3504,7,34, + 0,0,3504,678,1,0,0,0,3505,3506,9,0,0,0,3506,3507,1,0,0,0,3507,3508, + 6,339,1,0,3508,680,1,0,0,0,18,0,684,3413,3418,3420,3426,3432,3436, + 3442,3448,3453,3459,3470,3472,3483,3485,3496,3498,2,0,1,0,0,3,0 + ]; + + private static __ATN: antlr.ATN; + public static get _ATN(): antlr.ATN { + if (!OpenSearchPPLLexer.__ATN) { + OpenSearchPPLLexer.__ATN = new antlr.ATNDeserializer().deserialize(OpenSearchPPLLexer._serializedATN); + } + + return OpenSearchPPLLexer.__ATN; + } + + + private static readonly vocabulary = new antlr.Vocabulary(OpenSearchPPLLexer.literalNames, OpenSearchPPLLexer.symbolicNames, []); + + public override get vocabulary(): antlr.Vocabulary { + return OpenSearchPPLLexer.vocabulary; + } + + private static readonly decisionsToDFA = OpenSearchPPLLexer._ATN.decisionToState.map( (ds: antlr.DecisionState, index: number) => new antlr.DFA(ds, index) ); +} \ No newline at end of file diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.interp b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.interp new file mode 100644 index 000000000000..03d97e71ca14 --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.interp @@ -0,0 +1,797 @@ +token literal names: +null +null +'SEARCH' +'DESCRIBE' +'SHOW' +'FROM' +'WHERE' +'FIELDS' +'RENAME' +'STATS' +'DEDUP' +'SORT' +'EVAL' +'HEAD' +'TOP' +'RARE' +'PARSE' +'METHOD' +'REGEX' +'PUNCT' +'GROK' +'PATTERN' +'PATTERNS' +'NEW_FIELD' +'KMEANS' +'AD' +'ML' +'AS' +'BY' +'SOURCE' +'INDEX' +'D' +'DESC' +'DATASOURCES' +'SORTBY' +'AUTO' +'STR' +'IP' +'NUM' +'KEEPEMPTY' +'CONSECUTIVE' +'DEDUP_SPLITVALUES' +'PARTITIONS' +'ALLNUM' +'DELIM' +'CENTROIDS' +'ITERATIONS' +'DISTANCE_TYPE' +'NUMBER_OF_TREES' +'SHINGLE_SIZE' +'SAMPLE_SIZE' +'OUTPUT_AFTER' +'TIME_DECAY' +'ANOMALY_RATE' +'CATEGORY_FIELD' +'TIME_FIELD' +'TIME_ZONE' +'TRAINING_DATA_SIZE' +'ANOMALY_SCORE_THRESHOLD' +'CASE' +'IN' +'NOT' +'OR' +'AND' +'XOR' +'TRUE' +'FALSE' +'REGEXP' +'CONVERT_TZ' +'DATETIME' +'DAY' +'DAY_HOUR' +'DAY_MICROSECOND' +'DAY_MINUTE' +'DAY_OF_YEAR' +'DAY_SECOND' +'HOUR' +'HOUR_MICROSECOND' +'HOUR_MINUTE' +'HOUR_OF_DAY' +'HOUR_SECOND' +'INTERVAL' +'MICROSECOND' +'MILLISECOND' +'MINUTE' +'MINUTE_MICROSECOND' +'MINUTE_OF_DAY' +'MINUTE_OF_HOUR' +'MINUTE_SECOND' +'MONTH' +'MONTH_OF_YEAR' +'QUARTER' +'SECOND' +'SECOND_MICROSECOND' +'SECOND_OF_MINUTE' +'WEEK' +'WEEK_OF_YEAR' +'YEAR' +'YEAR_MONTH' +'DATAMODEL' +'LOOKUP' +'SAVEDSEARCH' +'INT' +'INTEGER' +'DOUBLE' +'LONG' +'FLOAT' +'STRING' +'BOOLEAN' +'|' +',' +'.' +'=' +'>' +'<' +null +null +null +'+' +'-' +'*' +'/' +'%' +'!' +':' +'(' +')' +'[' +']' +'\'' +'"' +'`' +'~' +'&' +'^' +'AVG' +'COUNT' +'DISTINCT_COUNT' +'ESTDC' +'ESTDC_ERROR' +'MAX' +'MEAN' +'MEDIAN' +'MIN' +'MODE' +'RANGE' +'STDEV' +'STDEVP' +'SUM' +'SUMSQ' +'VAR_SAMP' +'VAR_POP' +'STDDEV_SAMP' +'STDDEV_POP' +'PERCENTILE' +'TAKE' +'FIRST' +'LAST' +'LIST' +'VALUES' +'EARLIEST' +'EARLIEST_TIME' +'LATEST' +'LATEST_TIME' +'PER_DAY' +'PER_HOUR' +'PER_MINUTE' +'PER_SECOND' +'RATE' +'SPARKLINE' +'C' +'DC' +'ABS' +'CBRT' +'CEIL' +'CEILING' +'CONV' +'CRC32' +'E' +'EXP' +'FLOOR' +'LN' +'LOG' +'LOG10' +'LOG2' +'MOD' +'PI' +'POSITION' +'POW' +'POWER' +'RAND' +'ROUND' +'SIGN' +'SQRT' +'TRUNCATE' +'ACOS' +'ASIN' +'ATAN' +'ATAN2' +'COS' +'COT' +'DEGREES' +'RADIANS' +'SIN' +'TAN' +'ADDDATE' +'ADDTIME' +'CURDATE' +'CURRENT_DATE' +'CURRENT_TIME' +'CURRENT_TIMESTAMP' +'CURTIME' +'DATE' +'DATEDIFF' +'DATE_ADD' +'DATE_FORMAT' +'DATE_SUB' +'DAYNAME' +'DAYOFMONTH' +'DAYOFWEEK' +'DAYOFYEAR' +'DAY_OF_MONTH' +'DAY_OF_WEEK' +'EXTRACT' +'FROM_DAYS' +'FROM_UNIXTIME' +'GET_FORMAT' +'LAST_DAY' +'LOCALTIME' +'LOCALTIMESTAMP' +'MAKEDATE' +'MAKETIME' +'MONTHNAME' +'NOW' +'PERIOD_ADD' +'PERIOD_DIFF' +'SEC_TO_TIME' +'STR_TO_DATE' +'SUBDATE' +'SUBTIME' +'SYSDATE' +'TIME' +'TIMEDIFF' +'TIMESTAMP' +'TIMESTAMPADD' +'TIMESTAMPDIFF' +'TIME_FORMAT' +'TIME_TO_SEC' +'TO_DAYS' +'TO_SECONDS' +'UNIX_TIMESTAMP' +'UTC_DATE' +'UTC_TIME' +'UTC_TIMESTAMP' +'WEEKDAY' +'YEARWEEK' +'SUBSTR' +'SUBSTRING' +'LTRIM' +'RTRIM' +'TRIM' +'TO' +'LOWER' +'UPPER' +'CONCAT' +'CONCAT_WS' +'LENGTH' +'STRCMP' +'RIGHT' +'LEFT' +'ASCII' +'LOCATE' +'REPLACE' +'REVERSE' +'CAST' +'LIKE' +'ISNULL' +'ISNOTNULL' +'IFNULL' +'NULLIF' +'IF' +'TYPEOF' +'MATCH' +'MATCH_PHRASE' +'MATCH_PHRASE_PREFIX' +'MATCH_BOOL_PREFIX' +'SIMPLE_QUERY_STRING' +'MULTI_MATCH' +'QUERY_STRING' +'ALLOW_LEADING_WILDCARD' +'ANALYZE_WILDCARD' +'ANALYZER' +'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY' +'BOOST' +'CUTOFF_FREQUENCY' +'DEFAULT_FIELD' +'DEFAULT_OPERATOR' +'ENABLE_POSITION_INCREMENTS' +'ESCAPE' +'FLAGS' +'FUZZY_MAX_EXPANSIONS' +'FUZZY_PREFIX_LENGTH' +'FUZZY_TRANSPOSITIONS' +'FUZZY_REWRITE' +'FUZZINESS' +'LENIENT' +'LOW_FREQ_OPERATOR' +'MAX_DETERMINIZED_STATES' +'MAX_EXPANSIONS' +'MINIMUM_SHOULD_MATCH' +'OPERATOR' +'PHRASE_SLOP' +'PREFIX_LENGTH' +'QUOTE_ANALYZER' +'QUOTE_FIELD_SUFFIX' +'REWRITE' +'SLOP' +'TIE_BREAKER' +'TYPE' +'ZERO_TERMS_QUERY' +'SPAN' +'MS' +'S' +'M' +'H' +'W' +'Q' +'Y' +null +null +null +null +null +null +null +null +null + +token symbolic names: +null +SPACE +SEARCH +DESCRIBE +SHOW +FROM +WHERE +FIELDS +RENAME +STATS +DEDUP +SORT +EVAL +HEAD +TOP +RARE +PARSE +METHOD +REGEX +PUNCT +GROK +PATTERN +PATTERNS +NEW_FIELD +KMEANS +AD +ML +AS +BY +SOURCE +INDEX +D +DESC +DATASOURCES +SORTBY +AUTO +STR +IP +NUM +KEEPEMPTY +CONSECUTIVE +DEDUP_SPLITVALUES +PARTITIONS +ALLNUM +DELIM +CENTROIDS +ITERATIONS +DISTANCE_TYPE +NUMBER_OF_TREES +SHINGLE_SIZE +SAMPLE_SIZE +OUTPUT_AFTER +TIME_DECAY +ANOMALY_RATE +CATEGORY_FIELD +TIME_FIELD +TIME_ZONE +TRAINING_DATA_SIZE +ANOMALY_SCORE_THRESHOLD +CASE +IN +NOT +OR +AND +XOR +TRUE +FALSE +REGEXP +CONVERT_TZ +DATETIME +DAY +DAY_HOUR +DAY_MICROSECOND +DAY_MINUTE +DAY_OF_YEAR +DAY_SECOND +HOUR +HOUR_MICROSECOND +HOUR_MINUTE +HOUR_OF_DAY +HOUR_SECOND +INTERVAL +MICROSECOND +MILLISECOND +MINUTE +MINUTE_MICROSECOND +MINUTE_OF_DAY +MINUTE_OF_HOUR +MINUTE_SECOND +MONTH +MONTH_OF_YEAR +QUARTER +SECOND +SECOND_MICROSECOND +SECOND_OF_MINUTE +WEEK +WEEK_OF_YEAR +YEAR +YEAR_MONTH +DATAMODEL +LOOKUP +SAVEDSEARCH +INT +INTEGER +DOUBLE +LONG +FLOAT +STRING +BOOLEAN +PIPE +COMMA +DOT +EQUAL +GREATER +LESS +NOT_GREATER +NOT_LESS +NOT_EQUAL +PLUS +MINUS +STAR +DIVIDE +MODULE +EXCLAMATION_SYMBOL +COLON +LT_PRTHS +RT_PRTHS +LT_SQR_PRTHS +RT_SQR_PRTHS +SINGLE_QUOTE +DOUBLE_QUOTE +BACKTICK +BIT_NOT_OP +BIT_AND_OP +BIT_XOR_OP +AVG +COUNT +DISTINCT_COUNT +ESTDC +ESTDC_ERROR +MAX +MEAN +MEDIAN +MIN +MODE +RANGE +STDEV +STDEVP +SUM +SUMSQ +VAR_SAMP +VAR_POP +STDDEV_SAMP +STDDEV_POP +PERCENTILE +TAKE +FIRST +LAST +LIST +VALUES +EARLIEST +EARLIEST_TIME +LATEST +LATEST_TIME +PER_DAY +PER_HOUR +PER_MINUTE +PER_SECOND +RATE +SPARKLINE +C +DC +ABS +CBRT +CEIL +CEILING +CONV +CRC32 +E +EXP +FLOOR +LN +LOG +LOG10 +LOG2 +MOD +PI +POSITION +POW +POWER +RAND +ROUND +SIGN +SQRT +TRUNCATE +ACOS +ASIN +ATAN +ATAN2 +COS +COT +DEGREES +RADIANS +SIN +TAN +ADDDATE +ADDTIME +CURDATE +CURRENT_DATE +CURRENT_TIME +CURRENT_TIMESTAMP +CURTIME +DATE +DATEDIFF +DATE_ADD +DATE_FORMAT +DATE_SUB +DAYNAME +DAYOFMONTH +DAYOFWEEK +DAYOFYEAR +DAY_OF_MONTH +DAY_OF_WEEK +EXTRACT +FROM_DAYS +FROM_UNIXTIME +GET_FORMAT +LAST_DAY +LOCALTIME +LOCALTIMESTAMP +MAKEDATE +MAKETIME +MONTHNAME +NOW +PERIOD_ADD +PERIOD_DIFF +SEC_TO_TIME +STR_TO_DATE +SUBDATE +SUBTIME +SYSDATE +TIME +TIMEDIFF +TIMESTAMP +TIMESTAMPADD +TIMESTAMPDIFF +TIME_FORMAT +TIME_TO_SEC +TO_DAYS +TO_SECONDS +UNIX_TIMESTAMP +UTC_DATE +UTC_TIME +UTC_TIMESTAMP +WEEKDAY +YEARWEEK +SUBSTR +SUBSTRING +LTRIM +RTRIM +TRIM +TO +LOWER +UPPER +CONCAT +CONCAT_WS +LENGTH +STRCMP +RIGHT +LEFT +ASCII +LOCATE +REPLACE +REVERSE +CAST +LIKE +ISNULL +ISNOTNULL +IFNULL +NULLIF +IF +TYPEOF +MATCH +MATCH_PHRASE +MATCH_PHRASE_PREFIX +MATCH_BOOL_PREFIX +SIMPLE_QUERY_STRING +MULTI_MATCH +QUERY_STRING +ALLOW_LEADING_WILDCARD +ANALYZE_WILDCARD +ANALYZER +AUTO_GENERATE_SYNONYMS_PHRASE_QUERY +BOOST +CUTOFF_FREQUENCY +DEFAULT_FIELD +DEFAULT_OPERATOR +ENABLE_POSITION_INCREMENTS +ESCAPE +FLAGS +FUZZY_MAX_EXPANSIONS +FUZZY_PREFIX_LENGTH +FUZZY_TRANSPOSITIONS +FUZZY_REWRITE +FUZZINESS +LENIENT +LOW_FREQ_OPERATOR +MAX_DETERMINIZED_STATES +MAX_EXPANSIONS +MINIMUM_SHOULD_MATCH +OPERATOR +PHRASE_SLOP +PREFIX_LENGTH +QUOTE_ANALYZER +QUOTE_FIELD_SUFFIX +REWRITE +SLOP +TIE_BREAKER +TYPE +ZERO_TERMS_QUERY +SPAN +MS +S +M +H +W +Q +Y +ID +CLUSTER +INTEGER_LITERAL +DECIMAL_LITERAL +ID_DATE_SUFFIX +DQUOTA_STRING +SQUOTA_STRING +BQUOTA_STRING +ERROR_RECOGNITION + +rule names: +root +pplStatement +dmlStatement +queryStatement +pplCommands +commands +searchCommand +describeCommand +showDataSourcesCommand +whereCommand +fieldsCommand +renameCommand +statsCommand +dedupCommand +sortCommand +evalCommand +headCommand +topCommand +rareCommand +grokCommand +parseCommand +patternsCommand +patternsParameter +patternsMethod +kmeansCommand +kmeansParameter +adCommand +adParameter +mlCommand +mlArg +fromClause +tableSourceClause +renameClasue +byClause +statsByClause +bySpanClause +spanClause +sortbyClause +evalClause +statsAggTerm +statsFunction +statsFunctionName +takeAggFunction +percentileAggFunction +expression +logicalExpression +comparisonExpression +valueExpression +primaryExpression +positionFunction +booleanExpression +relevanceExpression +singleFieldRelevanceFunction +multiFieldRelevanceFunction +tableSource +tableFunction +fieldList +wcFieldList +sortField +sortFieldExpression +fieldExpression +wcFieldExpression +evalFunctionCall +dataTypeFunctionCall +booleanFunctionCall +convertedDataType +evalFunctionName +functionArgs +functionArg +relevanceArg +relevanceArgName +relevanceFieldAndWeight +relevanceFieldWeight +relevanceField +relevanceQuery +relevanceArgValue +mathematicalFunctionName +trigonometricFunctionName +dateTimeFunctionName +getFormatFunction +getFormatType +extractFunction +simpleDateTimePart +complexDateTimePart +datetimePart +timestampFunction +timestampFunctionName +conditionFunctionBase +systemFunctionName +textFunctionName +positionFunctionName +comparisonOperator +singleFieldRelevanceFunctionName +multiFieldRelevanceFunctionName +literalValue +intervalLiteral +stringLiteral +integerLiteral +decimalLiteral +booleanLiteral +datetimeLiteral +dateLiteral +timeLiteral +timestampLiteral +intervalUnit +timespanUnit +valueList +qualifiedName +tableQualifiedName +wcQualifiedName +ident +tableIdent +wildcard +keywordsCanBeId + + +atn: +[4, 1, 336, 1160, 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, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7, 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2, 113, 7, 113, 1, 0, 3, 0, 230, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 5, 3, 241, 8, 3, 10, 3, 12, 3, 244, 9, 3, 1, 4, 1, 4, 1, 4, 3, 4, 249, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 267, 8, 5, 1, 6, 3, 6, 270, 8, 6, 1, 6, 1, 6, 3, 6, 274, 8, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 280, 8, 6, 1, 6, 1, 6, 1, 6, 3, 6, 285, 8, 6, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 3, 10, 298, 8, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 306, 8, 11, 10, 11, 12, 11, 309, 9, 11, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 315, 8, 12, 1, 12, 1, 12, 1, 12, 3, 12, 320, 8, 12, 1, 12, 1, 12, 1, 12, 3, 12, 325, 8, 12, 1, 12, 1, 12, 1, 12, 5, 12, 330, 8, 12, 10, 12, 12, 12, 333, 9, 12, 1, 12, 3, 12, 336, 8, 12, 1, 12, 1, 12, 1, 12, 3, 12, 341, 8, 12, 1, 13, 1, 13, 3, 13, 345, 8, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 351, 8, 13, 1, 13, 1, 13, 1, 13, 3, 13, 356, 8, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 365, 8, 15, 10, 15, 12, 15, 368, 9, 15, 1, 16, 1, 16, 3, 16, 372, 8, 16, 1, 16, 1, 16, 3, 16, 376, 8, 16, 1, 17, 1, 17, 3, 17, 380, 8, 17, 1, 17, 1, 17, 3, 17, 384, 8, 17, 1, 18, 1, 18, 1, 18, 3, 18, 389, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 5, 21, 401, 8, 21, 10, 21, 12, 21, 404, 9, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 414, 8, 22, 1, 23, 1, 23, 1, 24, 1, 24, 5, 24, 420, 8, 24, 10, 24, 12, 24, 423, 9, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 434, 8, 25, 1, 26, 1, 26, 5, 26, 438, 8, 26, 10, 26, 12, 26, 441, 9, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 479, 8, 27, 1, 28, 1, 28, 5, 28, 483, 8, 28, 10, 28, 12, 28, 486, 9, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 504, 8, 30, 1, 31, 1, 31, 1, 31, 5, 31, 509, 8, 31, 10, 31, 12, 31, 512, 9, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 530, 8, 34, 1, 35, 1, 35, 1, 35, 3, 35, 535, 8, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 543, 8, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 5, 37, 550, 8, 37, 10, 37, 12, 37, 553, 9, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 3, 39, 562, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 579, 8, 40, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 588, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 3, 44, 603, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 611, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 618, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 5, 45, 624, 8, 45, 10, 45, 12, 45, 627, 9, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 637, 8, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 649, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 657, 8, 47, 10, 47, 12, 47, 660, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 666, 8, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 51, 1, 51, 3, 51, 679, 8, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 688, 8, 52, 10, 52, 12, 52, 691, 9, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 701, 8, 53, 10, 53, 12, 53, 704, 9, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 711, 8, 53, 10, 53, 12, 53, 714, 9, 53, 1, 53, 1, 53, 1, 54, 1, 54, 3, 54, 720, 8, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 5, 56, 730, 8, 56, 10, 56, 12, 56, 733, 9, 56, 1, 57, 1, 57, 1, 57, 5, 57, 738, 8, 57, 10, 57, 12, 57, 741, 9, 57, 1, 58, 3, 58, 744, 8, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 769, 8, 59, 1, 60, 1, 60, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 3, 65, 802, 8, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 810, 8, 66, 1, 67, 1, 67, 1, 67, 5, 67, 815, 8, 67, 10, 67, 12, 67, 818, 9, 67, 3, 67, 820, 8, 67, 1, 68, 1, 68, 1, 68, 3, 68, 825, 8, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 843, 8, 71, 1, 72, 1, 72, 3, 72, 847, 8, 72, 1, 73, 1, 73, 3, 73, 851, 8, 73, 1, 74, 1, 74, 1, 75, 1, 75, 3, 75, 857, 8, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 3, 76, 882, 8, 76, 1, 77, 1, 77, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 83, 1, 83, 1, 84, 1, 84, 3, 84, 910, 8, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 90, 1, 90, 1, 91, 1, 91, 1, 92, 1, 92, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 3, 94, 943, 8, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 97, 3, 97, 952, 8, 97, 1, 97, 1, 97, 1, 98, 3, 98, 957, 8, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 100, 1, 100, 1, 100, 3, 100, 966, 8, 100, 1, 101, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 103, 1, 103, 1, 103, 1, 104, 1, 104, 1, 105, 1, 105, 1, 106, 1, 106, 1, 106, 1, 106, 5, 106, 985, 8, 106, 10, 106, 12, 106, 988, 9, 106, 1, 106, 1, 106, 1, 107, 1, 107, 1, 107, 5, 107, 995, 8, 107, 10, 107, 12, 107, 998, 9, 107, 1, 108, 1, 108, 1, 108, 5, 108, 1003, 8, 108, 10, 108, 12, 108, 1006, 9, 108, 1, 109, 1, 109, 1, 109, 5, 109, 1011, 8, 109, 10, 109, 12, 109, 1014, 9, 109, 1, 110, 3, 110, 1017, 8, 110, 1, 110, 1, 110, 1, 110, 1, 110, 1, 110, 1, 110, 1, 110, 3, 110, 1026, 8, 110, 1, 111, 3, 111, 1029, 8, 111, 1, 111, 1, 111, 1, 112, 1, 112, 1, 112, 5, 112, 1036, 8, 112, 10, 112, 12, 112, 1039, 9, 112, 1, 112, 3, 112, 1042, 8, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 1, 112, 3, 112, 1056, 8, 112, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 3, 113, 1158, 8, 113, 1, 113, 0, 2, 90, 94, 114, 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, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 0, 21, 1, 0, 118, 119, 1, 0, 18, 19, 2, 0, 137, 137, 171, 171, 5, 0, 135, 136, 140, 140, 143, 143, 148, 148, 150, 153, 1, 0, 120, 122, 3, 0, 7, 7, 56, 56, 289, 319, 1, 0, 195, 204, 13, 0, 68, 70, 74, 74, 76, 76, 79, 79, 82, 82, 84, 84, 86, 87, 89, 92, 94, 97, 205, 222, 224, 225, 227, 243, 246, 255, 4, 0, 69, 69, 212, 212, 241, 241, 243, 243, 8, 0, 70, 70, 76, 76, 82, 82, 84, 84, 89, 89, 91, 92, 95, 95, 97, 97, 8, 0, 71, 73, 75, 75, 77, 78, 80, 80, 85, 85, 88, 88, 93, 93, 98, 98, 1, 0, 244, 245, 1, 0, 275, 280, 2, 0, 256, 260, 262, 273, 2, 0, 67, 67, 112, 117, 1, 0, 282, 285, 1, 0, 286, 288, 1, 0, 333, 334, 1, 0, 65, 66, 9, 0, 70, 73, 75, 78, 80, 80, 82, 82, 84, 85, 88, 89, 91, 93, 95, 95, 97, 98, 9, 0, 31, 31, 70, 70, 76, 76, 83, 84, 89, 89, 91, 92, 95, 95, 97, 97, 321, 327, 1318, 0, 229, 1, 0, 0, 0, 2, 233, 1, 0, 0, 0, 4, 235, 1, 0, 0, 0, 6, 237, 1, 0, 0, 0, 8, 248, 1, 0, 0, 0, 10, 266, 1, 0, 0, 0, 12, 284, 1, 0, 0, 0, 14, 286, 1, 0, 0, 0, 16, 289, 1, 0, 0, 0, 18, 292, 1, 0, 0, 0, 20, 295, 1, 0, 0, 0, 22, 301, 1, 0, 0, 0, 24, 310, 1, 0, 0, 0, 26, 342, 1, 0, 0, 0, 28, 357, 1, 0, 0, 0, 30, 360, 1, 0, 0, 0, 32, 369, 1, 0, 0, 0, 34, 377, 1, 0, 0, 0, 36, 385, 1, 0, 0, 0, 38, 390, 1, 0, 0, 0, 40, 394, 1, 0, 0, 0, 42, 398, 1, 0, 0, 0, 44, 413, 1, 0, 0, 0, 46, 415, 1, 0, 0, 0, 48, 417, 1, 0, 0, 0, 50, 433, 1, 0, 0, 0, 52, 435, 1, 0, 0, 0, 54, 478, 1, 0, 0, 0, 56, 480, 1, 0, 0, 0, 58, 487, 1, 0, 0, 0, 60, 503, 1, 0, 0, 0, 62, 505, 1, 0, 0, 0, 64, 513, 1, 0, 0, 0, 66, 517, 1, 0, 0, 0, 68, 529, 1, 0, 0, 0, 70, 531, 1, 0, 0, 0, 72, 536, 1, 0, 0, 0, 74, 546, 1, 0, 0, 0, 76, 554, 1, 0, 0, 0, 78, 558, 1, 0, 0, 0, 80, 578, 1, 0, 0, 0, 82, 580, 1, 0, 0, 0, 84, 582, 1, 0, 0, 0, 86, 591, 1, 0, 0, 0, 88, 602, 1, 0, 0, 0, 90, 610, 1, 0, 0, 0, 92, 636, 1, 0, 0, 0, 94, 648, 1, 0, 0, 0, 96, 665, 1, 0, 0, 0, 98, 667, 1, 0, 0, 0, 100, 674, 1, 0, 0, 0, 102, 678, 1, 0, 0, 0, 104, 680, 1, 0, 0, 0, 106, 694, 1, 0, 0, 0, 108, 719, 1, 0, 0, 0, 110, 721, 1, 0, 0, 0, 112, 726, 1, 0, 0, 0, 114, 734, 1, 0, 0, 0, 116, 743, 1, 0, 0, 0, 118, 768, 1, 0, 0, 0, 120, 770, 1, 0, 0, 0, 122, 772, 1, 0, 0, 0, 124, 774, 1, 0, 0, 0, 126, 779, 1, 0, 0, 0, 128, 786, 1, 0, 0, 0, 130, 801, 1, 0, 0, 0, 132, 809, 1, 0, 0, 0, 134, 819, 1, 0, 0, 0, 136, 824, 1, 0, 0, 0, 138, 828, 1, 0, 0, 0, 140, 832, 1, 0, 0, 0, 142, 842, 1, 0, 0, 0, 144, 846, 1, 0, 0, 0, 146, 850, 1, 0, 0, 0, 148, 852, 1, 0, 0, 0, 150, 856, 1, 0, 0, 0, 152, 881, 1, 0, 0, 0, 154, 883, 1, 0, 0, 0, 156, 885, 1, 0, 0, 0, 158, 887, 1, 0, 0, 0, 160, 894, 1, 0, 0, 0, 162, 896, 1, 0, 0, 0, 164, 903, 1, 0, 0, 0, 166, 905, 1, 0, 0, 0, 168, 909, 1, 0, 0, 0, 170, 911, 1, 0, 0, 0, 172, 920, 1, 0, 0, 0, 174, 922, 1, 0, 0, 0, 176, 924, 1, 0, 0, 0, 178, 926, 1, 0, 0, 0, 180, 928, 1, 0, 0, 0, 182, 930, 1, 0, 0, 0, 184, 932, 1, 0, 0, 0, 186, 934, 1, 0, 0, 0, 188, 942, 1, 0, 0, 0, 190, 944, 1, 0, 0, 0, 192, 948, 1, 0, 0, 0, 194, 951, 1, 0, 0, 0, 196, 956, 1, 0, 0, 0, 198, 960, 1, 0, 0, 0, 200, 965, 1, 0, 0, 0, 202, 967, 1, 0, 0, 0, 204, 970, 1, 0, 0, 0, 206, 973, 1, 0, 0, 0, 208, 976, 1, 0, 0, 0, 210, 978, 1, 0, 0, 0, 212, 980, 1, 0, 0, 0, 214, 991, 1, 0, 0, 0, 216, 999, 1, 0, 0, 0, 218, 1007, 1, 0, 0, 0, 220, 1025, 1, 0, 0, 0, 222, 1028, 1, 0, 0, 0, 224, 1055, 1, 0, 0, 0, 226, 1157, 1, 0, 0, 0, 228, 230, 3, 2, 1, 0, 229, 228, 1, 0, 0, 0, 229, 230, 1, 0, 0, 0, 230, 231, 1, 0, 0, 0, 231, 232, 5, 0, 0, 1, 232, 1, 1, 0, 0, 0, 233, 234, 3, 4, 2, 0, 234, 3, 1, 0, 0, 0, 235, 236, 3, 6, 3, 0, 236, 5, 1, 0, 0, 0, 237, 242, 3, 8, 4, 0, 238, 239, 5, 109, 0, 0, 239, 241, 3, 10, 5, 0, 240, 238, 1, 0, 0, 0, 241, 244, 1, 0, 0, 0, 242, 240, 1, 0, 0, 0, 242, 243, 1, 0, 0, 0, 243, 7, 1, 0, 0, 0, 244, 242, 1, 0, 0, 0, 245, 249, 3, 12, 6, 0, 246, 249, 3, 14, 7, 0, 247, 249, 3, 16, 8, 0, 248, 245, 1, 0, 0, 0, 248, 246, 1, 0, 0, 0, 248, 247, 1, 0, 0, 0, 249, 9, 1, 0, 0, 0, 250, 267, 3, 18, 9, 0, 251, 267, 3, 20, 10, 0, 252, 267, 3, 22, 11, 0, 253, 267, 3, 24, 12, 0, 254, 267, 3, 26, 13, 0, 255, 267, 3, 28, 14, 0, 256, 267, 3, 30, 15, 0, 257, 267, 3, 32, 16, 0, 258, 267, 3, 34, 17, 0, 259, 267, 3, 36, 18, 0, 260, 267, 3, 38, 19, 0, 261, 267, 3, 40, 20, 0, 262, 267, 3, 42, 21, 0, 263, 267, 3, 48, 24, 0, 264, 267, 3, 52, 26, 0, 265, 267, 3, 56, 28, 0, 266, 250, 1, 0, 0, 0, 266, 251, 1, 0, 0, 0, 266, 252, 1, 0, 0, 0, 266, 253, 1, 0, 0, 0, 266, 254, 1, 0, 0, 0, 266, 255, 1, 0, 0, 0, 266, 256, 1, 0, 0, 0, 266, 257, 1, 0, 0, 0, 266, 258, 1, 0, 0, 0, 266, 259, 1, 0, 0, 0, 266, 260, 1, 0, 0, 0, 266, 261, 1, 0, 0, 0, 266, 262, 1, 0, 0, 0, 266, 263, 1, 0, 0, 0, 266, 264, 1, 0, 0, 0, 266, 265, 1, 0, 0, 0, 267, 11, 1, 0, 0, 0, 268, 270, 5, 2, 0, 0, 269, 268, 1, 0, 0, 0, 269, 270, 1, 0, 0, 0, 270, 271, 1, 0, 0, 0, 271, 285, 3, 60, 30, 0, 272, 274, 5, 2, 0, 0, 273, 272, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 275, 1, 0, 0, 0, 275, 276, 3, 60, 30, 0, 276, 277, 3, 90, 45, 0, 277, 285, 1, 0, 0, 0, 278, 280, 5, 2, 0, 0, 279, 278, 1, 0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 281, 1, 0, 0, 0, 281, 282, 3, 90, 45, 0, 282, 283, 3, 60, 30, 0, 283, 285, 1, 0, 0, 0, 284, 269, 1, 0, 0, 0, 284, 273, 1, 0, 0, 0, 284, 279, 1, 0, 0, 0, 285, 13, 1, 0, 0, 0, 286, 287, 5, 3, 0, 0, 287, 288, 3, 62, 31, 0, 288, 15, 1, 0, 0, 0, 289, 290, 5, 4, 0, 0, 290, 291, 5, 33, 0, 0, 291, 17, 1, 0, 0, 0, 292, 293, 5, 6, 0, 0, 293, 294, 3, 90, 45, 0, 294, 19, 1, 0, 0, 0, 295, 297, 5, 7, 0, 0, 296, 298, 7, 0, 0, 0, 297, 296, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 299, 1, 0, 0, 0, 299, 300, 3, 112, 56, 0, 300, 21, 1, 0, 0, 0, 301, 302, 5, 8, 0, 0, 302, 307, 3, 64, 32, 0, 303, 304, 5, 110, 0, 0, 304, 306, 3, 64, 32, 0, 305, 303, 1, 0, 0, 0, 306, 309, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 23, 1, 0, 0, 0, 309, 307, 1, 0, 0, 0, 310, 314, 5, 9, 0, 0, 311, 312, 5, 42, 0, 0, 312, 313, 5, 112, 0, 0, 313, 315, 3, 194, 97, 0, 314, 311, 1, 0, 0, 0, 314, 315, 1, 0, 0, 0, 315, 319, 1, 0, 0, 0, 316, 317, 5, 43, 0, 0, 317, 318, 5, 112, 0, 0, 318, 320, 3, 198, 99, 0, 319, 316, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 324, 1, 0, 0, 0, 321, 322, 5, 44, 0, 0, 322, 323, 5, 112, 0, 0, 323, 325, 3, 192, 96, 0, 324, 321, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 331, 3, 78, 39, 0, 327, 328, 5, 110, 0, 0, 328, 330, 3, 78, 39, 0, 329, 327, 1, 0, 0, 0, 330, 333, 1, 0, 0, 0, 331, 329, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 335, 1, 0, 0, 0, 333, 331, 1, 0, 0, 0, 334, 336, 3, 68, 34, 0, 335, 334, 1, 0, 0, 0, 335, 336, 1, 0, 0, 0, 336, 340, 1, 0, 0, 0, 337, 338, 5, 41, 0, 0, 338, 339, 5, 112, 0, 0, 339, 341, 3, 198, 99, 0, 340, 337, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 25, 1, 0, 0, 0, 342, 344, 5, 10, 0, 0, 343, 345, 3, 194, 97, 0, 344, 343, 1, 0, 0, 0, 344, 345, 1, 0, 0, 0, 345, 346, 1, 0, 0, 0, 346, 350, 3, 112, 56, 0, 347, 348, 5, 39, 0, 0, 348, 349, 5, 112, 0, 0, 349, 351, 3, 198, 99, 0, 350, 347, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 355, 1, 0, 0, 0, 352, 353, 5, 40, 0, 0, 353, 354, 5, 112, 0, 0, 354, 356, 3, 198, 99, 0, 355, 352, 1, 0, 0, 0, 355, 356, 1, 0, 0, 0, 356, 27, 1, 0, 0, 0, 357, 358, 5, 11, 0, 0, 358, 359, 3, 74, 37, 0, 359, 29, 1, 0, 0, 0, 360, 361, 5, 12, 0, 0, 361, 366, 3, 76, 38, 0, 362, 363, 5, 110, 0, 0, 363, 365, 3, 76, 38, 0, 364, 362, 1, 0, 0, 0, 365, 368, 1, 0, 0, 0, 366, 364, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 31, 1, 0, 0, 0, 368, 366, 1, 0, 0, 0, 369, 371, 5, 13, 0, 0, 370, 372, 3, 194, 97, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 375, 1, 0, 0, 0, 373, 374, 5, 5, 0, 0, 374, 376, 3, 194, 97, 0, 375, 373, 1, 0, 0, 0, 375, 376, 1, 0, 0, 0, 376, 33, 1, 0, 0, 0, 377, 379, 5, 14, 0, 0, 378, 380, 3, 194, 97, 0, 379, 378, 1, 0, 0, 0, 379, 380, 1, 0, 0, 0, 380, 381, 1, 0, 0, 0, 381, 383, 3, 112, 56, 0, 382, 384, 3, 66, 33, 0, 383, 382, 1, 0, 0, 0, 383, 384, 1, 0, 0, 0, 384, 35, 1, 0, 0, 0, 385, 386, 5, 15, 0, 0, 386, 388, 3, 112, 56, 0, 387, 389, 3, 66, 33, 0, 388, 387, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 37, 1, 0, 0, 0, 390, 391, 5, 20, 0, 0, 391, 392, 3, 88, 44, 0, 392, 393, 3, 192, 96, 0, 393, 39, 1, 0, 0, 0, 394, 395, 5, 16, 0, 0, 395, 396, 3, 88, 44, 0, 396, 397, 3, 192, 96, 0, 397, 41, 1, 0, 0, 0, 398, 402, 5, 22, 0, 0, 399, 401, 3, 44, 22, 0, 400, 399, 1, 0, 0, 0, 401, 404, 1, 0, 0, 0, 402, 400, 1, 0, 0, 0, 402, 403, 1, 0, 0, 0, 403, 405, 1, 0, 0, 0, 404, 402, 1, 0, 0, 0, 405, 406, 3, 88, 44, 0, 406, 43, 1, 0, 0, 0, 407, 408, 5, 23, 0, 0, 408, 409, 5, 112, 0, 0, 409, 414, 3, 192, 96, 0, 410, 411, 5, 21, 0, 0, 411, 412, 5, 112, 0, 0, 412, 414, 3, 192, 96, 0, 413, 407, 1, 0, 0, 0, 413, 410, 1, 0, 0, 0, 414, 45, 1, 0, 0, 0, 415, 416, 7, 1, 0, 0, 416, 47, 1, 0, 0, 0, 417, 421, 5, 24, 0, 0, 418, 420, 3, 50, 25, 0, 419, 418, 1, 0, 0, 0, 420, 423, 1, 0, 0, 0, 421, 419, 1, 0, 0, 0, 421, 422, 1, 0, 0, 0, 422, 49, 1, 0, 0, 0, 423, 421, 1, 0, 0, 0, 424, 425, 5, 45, 0, 0, 425, 426, 5, 112, 0, 0, 426, 434, 3, 194, 97, 0, 427, 428, 5, 46, 0, 0, 428, 429, 5, 112, 0, 0, 429, 434, 3, 194, 97, 0, 430, 431, 5, 47, 0, 0, 431, 432, 5, 112, 0, 0, 432, 434, 3, 192, 96, 0, 433, 424, 1, 0, 0, 0, 433, 427, 1, 0, 0, 0, 433, 430, 1, 0, 0, 0, 434, 51, 1, 0, 0, 0, 435, 439, 5, 25, 0, 0, 436, 438, 3, 54, 27, 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, 53, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 442, 443, 5, 48, 0, 0, 443, 444, 5, 112, 0, 0, 444, 479, 3, 194, 97, 0, 445, 446, 5, 49, 0, 0, 446, 447, 5, 112, 0, 0, 447, 479, 3, 194, 97, 0, 448, 449, 5, 50, 0, 0, 449, 450, 5, 112, 0, 0, 450, 479, 3, 194, 97, 0, 451, 452, 5, 51, 0, 0, 452, 453, 5, 112, 0, 0, 453, 479, 3, 194, 97, 0, 454, 455, 5, 52, 0, 0, 455, 456, 5, 112, 0, 0, 456, 479, 3, 196, 98, 0, 457, 458, 5, 53, 0, 0, 458, 459, 5, 112, 0, 0, 459, 479, 3, 196, 98, 0, 460, 461, 5, 54, 0, 0, 461, 462, 5, 112, 0, 0, 462, 479, 3, 192, 96, 0, 463, 464, 5, 55, 0, 0, 464, 465, 5, 112, 0, 0, 465, 479, 3, 192, 96, 0, 466, 467, 5, 215, 0, 0, 467, 468, 5, 112, 0, 0, 468, 479, 3, 192, 96, 0, 469, 470, 5, 56, 0, 0, 470, 471, 5, 112, 0, 0, 471, 479, 3, 192, 96, 0, 472, 473, 5, 57, 0, 0, 473, 474, 5, 112, 0, 0, 474, 479, 3, 194, 97, 0, 475, 476, 5, 58, 0, 0, 476, 477, 5, 112, 0, 0, 477, 479, 3, 196, 98, 0, 478, 442, 1, 0, 0, 0, 478, 445, 1, 0, 0, 0, 478, 448, 1, 0, 0, 0, 478, 451, 1, 0, 0, 0, 478, 454, 1, 0, 0, 0, 478, 457, 1, 0, 0, 0, 478, 460, 1, 0, 0, 0, 478, 463, 1, 0, 0, 0, 478, 466, 1, 0, 0, 0, 478, 469, 1, 0, 0, 0, 478, 472, 1, 0, 0, 0, 478, 475, 1, 0, 0, 0, 479, 55, 1, 0, 0, 0, 480, 484, 5, 26, 0, 0, 481, 483, 3, 58, 29, 0, 482, 481, 1, 0, 0, 0, 483, 486, 1, 0, 0, 0, 484, 482, 1, 0, 0, 0, 484, 485, 1, 0, 0, 0, 485, 57, 1, 0, 0, 0, 486, 484, 1, 0, 0, 0, 487, 488, 3, 220, 110, 0, 488, 489, 5, 112, 0, 0, 489, 490, 3, 188, 94, 0, 490, 59, 1, 0, 0, 0, 491, 492, 5, 29, 0, 0, 492, 493, 5, 112, 0, 0, 493, 504, 3, 62, 31, 0, 494, 495, 5, 30, 0, 0, 495, 496, 5, 112, 0, 0, 496, 504, 3, 62, 31, 0, 497, 498, 5, 29, 0, 0, 498, 499, 5, 112, 0, 0, 499, 504, 3, 110, 55, 0, 500, 501, 5, 30, 0, 0, 501, 502, 5, 112, 0, 0, 502, 504, 3, 110, 55, 0, 503, 491, 1, 0, 0, 0, 503, 494, 1, 0, 0, 0, 503, 497, 1, 0, 0, 0, 503, 500, 1, 0, 0, 0, 504, 61, 1, 0, 0, 0, 505, 510, 3, 108, 54, 0, 506, 507, 5, 110, 0, 0, 507, 509, 3, 108, 54, 0, 508, 506, 1, 0, 0, 0, 509, 512, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 63, 1, 0, 0, 0, 512, 510, 1, 0, 0, 0, 513, 514, 3, 122, 61, 0, 514, 515, 5, 27, 0, 0, 515, 516, 3, 122, 61, 0, 516, 65, 1, 0, 0, 0, 517, 518, 5, 28, 0, 0, 518, 519, 3, 112, 56, 0, 519, 67, 1, 0, 0, 0, 520, 521, 5, 28, 0, 0, 521, 530, 3, 112, 56, 0, 522, 523, 5, 28, 0, 0, 523, 530, 3, 70, 35, 0, 524, 525, 5, 28, 0, 0, 525, 526, 3, 70, 35, 0, 526, 527, 5, 110, 0, 0, 527, 528, 3, 112, 56, 0, 528, 530, 1, 0, 0, 0, 529, 520, 1, 0, 0, 0, 529, 522, 1, 0, 0, 0, 529, 524, 1, 0, 0, 0, 530, 69, 1, 0, 0, 0, 531, 534, 3, 72, 36, 0, 532, 533, 5, 27, 0, 0, 533, 535, 3, 214, 107, 0, 534, 532, 1, 0, 0, 0, 534, 535, 1, 0, 0, 0, 535, 71, 1, 0, 0, 0, 536, 537, 5, 320, 0, 0, 537, 538, 5, 125, 0, 0, 538, 539, 3, 120, 60, 0, 539, 540, 5, 110, 0, 0, 540, 542, 3, 188, 94, 0, 541, 543, 3, 210, 105, 0, 542, 541, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 545, 5, 126, 0, 0, 545, 73, 1, 0, 0, 0, 546, 551, 3, 116, 58, 0, 547, 548, 5, 110, 0, 0, 548, 550, 3, 116, 58, 0, 549, 547, 1, 0, 0, 0, 550, 553, 1, 0, 0, 0, 551, 549, 1, 0, 0, 0, 551, 552, 1, 0, 0, 0, 552, 75, 1, 0, 0, 0, 553, 551, 1, 0, 0, 0, 554, 555, 3, 120, 60, 0, 555, 556, 5, 112, 0, 0, 556, 557, 3, 88, 44, 0, 557, 77, 1, 0, 0, 0, 558, 561, 3, 80, 40, 0, 559, 560, 5, 27, 0, 0, 560, 562, 3, 122, 61, 0, 561, 559, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 79, 1, 0, 0, 0, 563, 564, 3, 82, 41, 0, 564, 565, 5, 125, 0, 0, 565, 566, 3, 94, 47, 0, 566, 567, 5, 126, 0, 0, 567, 579, 1, 0, 0, 0, 568, 569, 5, 136, 0, 0, 569, 570, 5, 125, 0, 0, 570, 579, 5, 126, 0, 0, 571, 572, 7, 2, 0, 0, 572, 573, 5, 125, 0, 0, 573, 574, 3, 94, 47, 0, 574, 575, 5, 126, 0, 0, 575, 579, 1, 0, 0, 0, 576, 579, 3, 86, 43, 0, 577, 579, 3, 84, 42, 0, 578, 563, 1, 0, 0, 0, 578, 568, 1, 0, 0, 0, 578, 571, 1, 0, 0, 0, 578, 576, 1, 0, 0, 0, 578, 577, 1, 0, 0, 0, 579, 81, 1, 0, 0, 0, 580, 581, 7, 3, 0, 0, 581, 83, 1, 0, 0, 0, 582, 583, 5, 155, 0, 0, 583, 584, 5, 125, 0, 0, 584, 587, 3, 120, 60, 0, 585, 586, 5, 110, 0, 0, 586, 588, 3, 194, 97, 0, 587, 585, 1, 0, 0, 0, 587, 588, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 590, 5, 126, 0, 0, 590, 85, 1, 0, 0, 0, 591, 592, 5, 154, 0, 0, 592, 593, 5, 114, 0, 0, 593, 594, 3, 194, 97, 0, 594, 595, 5, 113, 0, 0, 595, 596, 5, 125, 0, 0, 596, 597, 3, 120, 60, 0, 597, 598, 5, 126, 0, 0, 598, 87, 1, 0, 0, 0, 599, 603, 3, 90, 45, 0, 600, 603, 3, 92, 46, 0, 601, 603, 3, 94, 47, 0, 602, 599, 1, 0, 0, 0, 602, 600, 1, 0, 0, 0, 602, 601, 1, 0, 0, 0, 603, 89, 1, 0, 0, 0, 604, 605, 6, 45, -1, 0, 605, 611, 3, 92, 46, 0, 606, 607, 5, 61, 0, 0, 607, 611, 3, 90, 45, 6, 608, 611, 3, 100, 50, 0, 609, 611, 3, 102, 51, 0, 610, 604, 1, 0, 0, 0, 610, 606, 1, 0, 0, 0, 610, 608, 1, 0, 0, 0, 610, 609, 1, 0, 0, 0, 611, 625, 1, 0, 0, 0, 612, 613, 10, 5, 0, 0, 613, 614, 5, 62, 0, 0, 614, 624, 3, 90, 45, 6, 615, 617, 10, 4, 0, 0, 616, 618, 5, 63, 0, 0, 617, 616, 1, 0, 0, 0, 617, 618, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 624, 3, 90, 45, 5, 620, 621, 10, 3, 0, 0, 621, 622, 5, 64, 0, 0, 622, 624, 3, 90, 45, 4, 623, 612, 1, 0, 0, 0, 623, 615, 1, 0, 0, 0, 623, 620, 1, 0, 0, 0, 624, 627, 1, 0, 0, 0, 625, 623, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 91, 1, 0, 0, 0, 627, 625, 1, 0, 0, 0, 628, 629, 3, 94, 47, 0, 629, 630, 3, 182, 91, 0, 630, 631, 3, 94, 47, 0, 631, 637, 1, 0, 0, 0, 632, 633, 3, 94, 47, 0, 633, 634, 5, 60, 0, 0, 634, 635, 3, 212, 106, 0, 635, 637, 1, 0, 0, 0, 636, 628, 1, 0, 0, 0, 636, 632, 1, 0, 0, 0, 637, 93, 1, 0, 0, 0, 638, 639, 6, 47, -1, 0, 639, 649, 3, 96, 48, 0, 640, 649, 3, 98, 49, 0, 641, 649, 3, 162, 81, 0, 642, 649, 3, 158, 79, 0, 643, 649, 3, 170, 85, 0, 644, 645, 5, 125, 0, 0, 645, 646, 3, 94, 47, 0, 646, 647, 5, 126, 0, 0, 647, 649, 1, 0, 0, 0, 648, 638, 1, 0, 0, 0, 648, 640, 1, 0, 0, 0, 648, 641, 1, 0, 0, 0, 648, 642, 1, 0, 0, 0, 648, 643, 1, 0, 0, 0, 648, 644, 1, 0, 0, 0, 649, 658, 1, 0, 0, 0, 650, 651, 10, 8, 0, 0, 651, 652, 7, 4, 0, 0, 652, 657, 3, 94, 47, 9, 653, 654, 10, 7, 0, 0, 654, 655, 7, 0, 0, 0, 655, 657, 3, 94, 47, 8, 656, 650, 1, 0, 0, 0, 656, 653, 1, 0, 0, 0, 657, 660, 1, 0, 0, 0, 658, 656, 1, 0, 0, 0, 658, 659, 1, 0, 0, 0, 659, 95, 1, 0, 0, 0, 660, 658, 1, 0, 0, 0, 661, 666, 3, 124, 62, 0, 662, 666, 3, 126, 63, 0, 663, 666, 3, 120, 60, 0, 664, 666, 3, 188, 94, 0, 665, 661, 1, 0, 0, 0, 665, 662, 1, 0, 0, 0, 665, 663, 1, 0, 0, 0, 665, 664, 1, 0, 0, 0, 666, 97, 1, 0, 0, 0, 667, 668, 3, 180, 90, 0, 668, 669, 5, 125, 0, 0, 669, 670, 3, 136, 68, 0, 670, 671, 5, 60, 0, 0, 671, 672, 3, 136, 68, 0, 672, 673, 5, 126, 0, 0, 673, 99, 1, 0, 0, 0, 674, 675, 3, 128, 64, 0, 675, 101, 1, 0, 0, 0, 676, 679, 3, 104, 52, 0, 677, 679, 3, 106, 53, 0, 678, 676, 1, 0, 0, 0, 678, 677, 1, 0, 0, 0, 679, 103, 1, 0, 0, 0, 680, 681, 3, 184, 92, 0, 681, 682, 5, 125, 0, 0, 682, 683, 3, 146, 73, 0, 683, 684, 5, 110, 0, 0, 684, 689, 3, 148, 74, 0, 685, 686, 5, 110, 0, 0, 686, 688, 3, 138, 69, 0, 687, 685, 1, 0, 0, 0, 688, 691, 1, 0, 0, 0, 689, 687, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 692, 1, 0, 0, 0, 691, 689, 1, 0, 0, 0, 692, 693, 5, 126, 0, 0, 693, 105, 1, 0, 0, 0, 694, 695, 3, 186, 93, 0, 695, 696, 5, 125, 0, 0, 696, 697, 5, 127, 0, 0, 697, 702, 3, 142, 71, 0, 698, 699, 5, 110, 0, 0, 699, 701, 3, 142, 71, 0, 700, 698, 1, 0, 0, 0, 701, 704, 1, 0, 0, 0, 702, 700, 1, 0, 0, 0, 702, 703, 1, 0, 0, 0, 703, 705, 1, 0, 0, 0, 704, 702, 1, 0, 0, 0, 705, 706, 5, 128, 0, 0, 706, 707, 5, 110, 0, 0, 707, 712, 3, 148, 74, 0, 708, 709, 5, 110, 0, 0, 709, 711, 3, 138, 69, 0, 710, 708, 1, 0, 0, 0, 711, 714, 1, 0, 0, 0, 712, 710, 1, 0, 0, 0, 712, 713, 1, 0, 0, 0, 713, 715, 1, 0, 0, 0, 714, 712, 1, 0, 0, 0, 715, 716, 5, 126, 0, 0, 716, 107, 1, 0, 0, 0, 717, 720, 3, 216, 108, 0, 718, 720, 5, 332, 0, 0, 719, 717, 1, 0, 0, 0, 719, 718, 1, 0, 0, 0, 720, 109, 1, 0, 0, 0, 721, 722, 3, 214, 107, 0, 722, 723, 5, 125, 0, 0, 723, 724, 3, 134, 67, 0, 724, 725, 5, 126, 0, 0, 725, 111, 1, 0, 0, 0, 726, 731, 3, 120, 60, 0, 727, 728, 5, 110, 0, 0, 728, 730, 3, 120, 60, 0, 729, 727, 1, 0, 0, 0, 730, 733, 1, 0, 0, 0, 731, 729, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, 113, 1, 0, 0, 0, 733, 731, 1, 0, 0, 0, 734, 739, 3, 122, 61, 0, 735, 736, 5, 110, 0, 0, 736, 738, 3, 122, 61, 0, 737, 735, 1, 0, 0, 0, 738, 741, 1, 0, 0, 0, 739, 737, 1, 0, 0, 0, 739, 740, 1, 0, 0, 0, 740, 115, 1, 0, 0, 0, 741, 739, 1, 0, 0, 0, 742, 744, 7, 0, 0, 0, 743, 742, 1, 0, 0, 0, 743, 744, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 3, 118, 59, 0, 746, 117, 1, 0, 0, 0, 747, 769, 3, 120, 60, 0, 748, 749, 5, 35, 0, 0, 749, 750, 5, 125, 0, 0, 750, 751, 3, 120, 60, 0, 751, 752, 5, 126, 0, 0, 752, 769, 1, 0, 0, 0, 753, 754, 5, 36, 0, 0, 754, 755, 5, 125, 0, 0, 755, 756, 3, 120, 60, 0, 756, 757, 5, 126, 0, 0, 757, 769, 1, 0, 0, 0, 758, 759, 5, 37, 0, 0, 759, 760, 5, 125, 0, 0, 760, 761, 3, 120, 60, 0, 761, 762, 5, 126, 0, 0, 762, 769, 1, 0, 0, 0, 763, 764, 5, 38, 0, 0, 764, 765, 5, 125, 0, 0, 765, 766, 3, 120, 60, 0, 766, 767, 5, 126, 0, 0, 767, 769, 1, 0, 0, 0, 768, 747, 1, 0, 0, 0, 768, 748, 1, 0, 0, 0, 768, 753, 1, 0, 0, 0, 768, 758, 1, 0, 0, 0, 768, 763, 1, 0, 0, 0, 769, 119, 1, 0, 0, 0, 770, 771, 3, 214, 107, 0, 771, 121, 1, 0, 0, 0, 772, 773, 3, 218, 109, 0, 773, 123, 1, 0, 0, 0, 774, 775, 3, 132, 66, 0, 775, 776, 5, 125, 0, 0, 776, 777, 3, 134, 67, 0, 777, 778, 5, 126, 0, 0, 778, 125, 1, 0, 0, 0, 779, 780, 5, 274, 0, 0, 780, 781, 5, 125, 0, 0, 781, 782, 3, 88, 44, 0, 782, 783, 5, 27, 0, 0, 783, 784, 3, 130, 65, 0, 784, 785, 5, 126, 0, 0, 785, 127, 1, 0, 0, 0, 786, 787, 3, 174, 87, 0, 787, 788, 5, 125, 0, 0, 788, 789, 3, 134, 67, 0, 789, 790, 5, 126, 0, 0, 790, 129, 1, 0, 0, 0, 791, 802, 5, 212, 0, 0, 792, 802, 5, 241, 0, 0, 793, 802, 5, 243, 0, 0, 794, 802, 5, 102, 0, 0, 795, 802, 5, 103, 0, 0, 796, 802, 5, 104, 0, 0, 797, 802, 5, 105, 0, 0, 798, 802, 5, 106, 0, 0, 799, 802, 5, 107, 0, 0, 800, 802, 5, 108, 0, 0, 801, 791, 1, 0, 0, 0, 801, 792, 1, 0, 0, 0, 801, 793, 1, 0, 0, 0, 801, 794, 1, 0, 0, 0, 801, 795, 1, 0, 0, 0, 801, 796, 1, 0, 0, 0, 801, 797, 1, 0, 0, 0, 801, 798, 1, 0, 0, 0, 801, 799, 1, 0, 0, 0, 801, 800, 1, 0, 0, 0, 802, 131, 1, 0, 0, 0, 803, 810, 3, 152, 76, 0, 804, 810, 3, 156, 78, 0, 805, 810, 3, 178, 89, 0, 806, 810, 3, 174, 87, 0, 807, 810, 3, 176, 88, 0, 808, 810, 3, 180, 90, 0, 809, 803, 1, 0, 0, 0, 809, 804, 1, 0, 0, 0, 809, 805, 1, 0, 0, 0, 809, 806, 1, 0, 0, 0, 809, 807, 1, 0, 0, 0, 809, 808, 1, 0, 0, 0, 810, 133, 1, 0, 0, 0, 811, 816, 3, 136, 68, 0, 812, 813, 5, 110, 0, 0, 813, 815, 3, 136, 68, 0, 814, 812, 1, 0, 0, 0, 815, 818, 1, 0, 0, 0, 816, 814, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 820, 1, 0, 0, 0, 818, 816, 1, 0, 0, 0, 819, 811, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 135, 1, 0, 0, 0, 821, 822, 3, 220, 110, 0, 822, 823, 5, 112, 0, 0, 823, 825, 1, 0, 0, 0, 824, 821, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 826, 1, 0, 0, 0, 826, 827, 3, 94, 47, 0, 827, 137, 1, 0, 0, 0, 828, 829, 3, 140, 70, 0, 829, 830, 5, 112, 0, 0, 830, 831, 3, 150, 75, 0, 831, 139, 1, 0, 0, 0, 832, 833, 7, 5, 0, 0, 833, 141, 1, 0, 0, 0, 834, 843, 3, 146, 73, 0, 835, 836, 3, 146, 73, 0, 836, 837, 3, 144, 72, 0, 837, 843, 1, 0, 0, 0, 838, 839, 3, 146, 73, 0, 839, 840, 5, 134, 0, 0, 840, 841, 3, 144, 72, 0, 841, 843, 1, 0, 0, 0, 842, 834, 1, 0, 0, 0, 842, 835, 1, 0, 0, 0, 842, 838, 1, 0, 0, 0, 843, 143, 1, 0, 0, 0, 844, 847, 3, 194, 97, 0, 845, 847, 3, 196, 98, 0, 846, 844, 1, 0, 0, 0, 846, 845, 1, 0, 0, 0, 847, 145, 1, 0, 0, 0, 848, 851, 3, 214, 107, 0, 849, 851, 3, 192, 96, 0, 850, 848, 1, 0, 0, 0, 850, 849, 1, 0, 0, 0, 851, 147, 1, 0, 0, 0, 852, 853, 3, 150, 75, 0, 853, 149, 1, 0, 0, 0, 854, 857, 3, 214, 107, 0, 855, 857, 3, 188, 94, 0, 856, 854, 1, 0, 0, 0, 856, 855, 1, 0, 0, 0, 857, 151, 1, 0, 0, 0, 858, 882, 5, 172, 0, 0, 859, 882, 5, 173, 0, 0, 860, 882, 5, 174, 0, 0, 861, 882, 5, 175, 0, 0, 862, 882, 5, 176, 0, 0, 863, 882, 5, 177, 0, 0, 864, 882, 5, 178, 0, 0, 865, 882, 5, 179, 0, 0, 866, 882, 5, 180, 0, 0, 867, 882, 5, 181, 0, 0, 868, 882, 5, 182, 0, 0, 869, 882, 5, 183, 0, 0, 870, 882, 5, 184, 0, 0, 871, 882, 5, 185, 0, 0, 872, 882, 5, 186, 0, 0, 873, 882, 5, 188, 0, 0, 874, 882, 5, 189, 0, 0, 875, 882, 5, 190, 0, 0, 876, 882, 5, 191, 0, 0, 877, 882, 5, 192, 0, 0, 878, 882, 5, 193, 0, 0, 879, 882, 5, 194, 0, 0, 880, 882, 3, 154, 77, 0, 881, 858, 1, 0, 0, 0, 881, 859, 1, 0, 0, 0, 881, 860, 1, 0, 0, 0, 881, 861, 1, 0, 0, 0, 881, 862, 1, 0, 0, 0, 881, 863, 1, 0, 0, 0, 881, 864, 1, 0, 0, 0, 881, 865, 1, 0, 0, 0, 881, 866, 1, 0, 0, 0, 881, 867, 1, 0, 0, 0, 881, 868, 1, 0, 0, 0, 881, 869, 1, 0, 0, 0, 881, 870, 1, 0, 0, 0, 881, 871, 1, 0, 0, 0, 881, 872, 1, 0, 0, 0, 881, 873, 1, 0, 0, 0, 881, 874, 1, 0, 0, 0, 881, 875, 1, 0, 0, 0, 881, 876, 1, 0, 0, 0, 881, 877, 1, 0, 0, 0, 881, 878, 1, 0, 0, 0, 881, 879, 1, 0, 0, 0, 881, 880, 1, 0, 0, 0, 882, 153, 1, 0, 0, 0, 883, 884, 7, 6, 0, 0, 884, 155, 1, 0, 0, 0, 885, 886, 7, 7, 0, 0, 886, 157, 1, 0, 0, 0, 887, 888, 5, 226, 0, 0, 888, 889, 5, 125, 0, 0, 889, 890, 3, 160, 80, 0, 890, 891, 5, 110, 0, 0, 891, 892, 3, 136, 68, 0, 892, 893, 5, 126, 0, 0, 893, 159, 1, 0, 0, 0, 894, 895, 7, 8, 0, 0, 895, 161, 1, 0, 0, 0, 896, 897, 5, 223, 0, 0, 897, 898, 5, 125, 0, 0, 898, 899, 3, 168, 84, 0, 899, 900, 5, 5, 0, 0, 900, 901, 3, 136, 68, 0, 901, 902, 5, 126, 0, 0, 902, 163, 1, 0, 0, 0, 903, 904, 7, 9, 0, 0, 904, 165, 1, 0, 0, 0, 905, 906, 7, 10, 0, 0, 906, 167, 1, 0, 0, 0, 907, 910, 3, 164, 82, 0, 908, 910, 3, 166, 83, 0, 909, 907, 1, 0, 0, 0, 909, 908, 1, 0, 0, 0, 910, 169, 1, 0, 0, 0, 911, 912, 3, 172, 86, 0, 912, 913, 5, 125, 0, 0, 913, 914, 3, 164, 82, 0, 914, 915, 5, 110, 0, 0, 915, 916, 3, 136, 68, 0, 916, 917, 5, 110, 0, 0, 917, 918, 3, 136, 68, 0, 918, 919, 5, 126, 0, 0, 919, 171, 1, 0, 0, 0, 920, 921, 7, 11, 0, 0, 921, 173, 1, 0, 0, 0, 922, 923, 7, 12, 0, 0, 923, 175, 1, 0, 0, 0, 924, 925, 5, 281, 0, 0, 925, 177, 1, 0, 0, 0, 926, 927, 7, 13, 0, 0, 927, 179, 1, 0, 0, 0, 928, 929, 5, 187, 0, 0, 929, 181, 1, 0, 0, 0, 930, 931, 7, 14, 0, 0, 931, 183, 1, 0, 0, 0, 932, 933, 7, 15, 0, 0, 933, 185, 1, 0, 0, 0, 934, 935, 7, 16, 0, 0, 935, 187, 1, 0, 0, 0, 936, 943, 3, 190, 95, 0, 937, 943, 3, 192, 96, 0, 938, 943, 3, 194, 97, 0, 939, 943, 3, 196, 98, 0, 940, 943, 3, 198, 99, 0, 941, 943, 3, 200, 100, 0, 942, 936, 1, 0, 0, 0, 942, 937, 1, 0, 0, 0, 942, 938, 1, 0, 0, 0, 942, 939, 1, 0, 0, 0, 942, 940, 1, 0, 0, 0, 942, 941, 1, 0, 0, 0, 943, 189, 1, 0, 0, 0, 944, 945, 5, 81, 0, 0, 945, 946, 3, 94, 47, 0, 946, 947, 3, 208, 104, 0, 947, 191, 1, 0, 0, 0, 948, 949, 7, 17, 0, 0, 949, 193, 1, 0, 0, 0, 950, 952, 7, 0, 0, 0, 951, 950, 1, 0, 0, 0, 951, 952, 1, 0, 0, 0, 952, 953, 1, 0, 0, 0, 953, 954, 5, 330, 0, 0, 954, 195, 1, 0, 0, 0, 955, 957, 7, 0, 0, 0, 956, 955, 1, 0, 0, 0, 956, 957, 1, 0, 0, 0, 957, 958, 1, 0, 0, 0, 958, 959, 5, 331, 0, 0, 959, 197, 1, 0, 0, 0, 960, 961, 7, 18, 0, 0, 961, 199, 1, 0, 0, 0, 962, 966, 3, 202, 101, 0, 963, 966, 3, 204, 102, 0, 964, 966, 3, 206, 103, 0, 965, 962, 1, 0, 0, 0, 965, 963, 1, 0, 0, 0, 965, 964, 1, 0, 0, 0, 966, 201, 1, 0, 0, 0, 967, 968, 5, 212, 0, 0, 968, 969, 3, 192, 96, 0, 969, 203, 1, 0, 0, 0, 970, 971, 5, 241, 0, 0, 971, 972, 3, 192, 96, 0, 972, 205, 1, 0, 0, 0, 973, 974, 5, 243, 0, 0, 974, 975, 3, 192, 96, 0, 975, 207, 1, 0, 0, 0, 976, 977, 7, 19, 0, 0, 977, 209, 1, 0, 0, 0, 978, 979, 7, 20, 0, 0, 979, 211, 1, 0, 0, 0, 980, 981, 5, 125, 0, 0, 981, 986, 3, 188, 94, 0, 982, 983, 5, 110, 0, 0, 983, 985, 3, 188, 94, 0, 984, 982, 1, 0, 0, 0, 985, 988, 1, 0, 0, 0, 986, 984, 1, 0, 0, 0, 986, 987, 1, 0, 0, 0, 987, 989, 1, 0, 0, 0, 988, 986, 1, 0, 0, 0, 989, 990, 5, 126, 0, 0, 990, 213, 1, 0, 0, 0, 991, 996, 3, 220, 110, 0, 992, 993, 5, 111, 0, 0, 993, 995, 3, 220, 110, 0, 994, 992, 1, 0, 0, 0, 995, 998, 1, 0, 0, 0, 996, 994, 1, 0, 0, 0, 996, 997, 1, 0, 0, 0, 997, 215, 1, 0, 0, 0, 998, 996, 1, 0, 0, 0, 999, 1004, 3, 222, 111, 0, 1000, 1001, 5, 111, 0, 0, 1001, 1003, 3, 220, 110, 0, 1002, 1000, 1, 0, 0, 0, 1003, 1006, 1, 0, 0, 0, 1004, 1002, 1, 0, 0, 0, 1004, 1005, 1, 0, 0, 0, 1005, 217, 1, 0, 0, 0, 1006, 1004, 1, 0, 0, 0, 1007, 1012, 3, 224, 112, 0, 1008, 1009, 5, 111, 0, 0, 1009, 1011, 3, 224, 112, 0, 1010, 1008, 1, 0, 0, 0, 1011, 1014, 1, 0, 0, 0, 1012, 1010, 1, 0, 0, 0, 1012, 1013, 1, 0, 0, 0, 1013, 219, 1, 0, 0, 0, 1014, 1012, 1, 0, 0, 0, 1015, 1017, 5, 111, 0, 0, 1016, 1015, 1, 0, 0, 0, 1016, 1017, 1, 0, 0, 0, 1017, 1018, 1, 0, 0, 0, 1018, 1026, 5, 328, 0, 0, 1019, 1020, 5, 131, 0, 0, 1020, 1021, 3, 220, 110, 0, 1021, 1022, 5, 131, 0, 0, 1022, 1026, 1, 0, 0, 0, 1023, 1026, 5, 335, 0, 0, 1024, 1026, 3, 226, 113, 0, 1025, 1016, 1, 0, 0, 0, 1025, 1019, 1, 0, 0, 0, 1025, 1023, 1, 0, 0, 0, 1025, 1024, 1, 0, 0, 0, 1026, 221, 1, 0, 0, 0, 1027, 1029, 5, 329, 0, 0, 1028, 1027, 1, 0, 0, 0, 1028, 1029, 1, 0, 0, 0, 1029, 1030, 1, 0, 0, 0, 1030, 1031, 3, 220, 110, 0, 1031, 223, 1, 0, 0, 0, 1032, 1037, 3, 220, 110, 0, 1033, 1034, 5, 122, 0, 0, 1034, 1036, 3, 220, 110, 0, 1035, 1033, 1, 0, 0, 0, 1036, 1039, 1, 0, 0, 0, 1037, 1035, 1, 0, 0, 0, 1037, 1038, 1, 0, 0, 0, 1038, 1041, 1, 0, 0, 0, 1039, 1037, 1, 0, 0, 0, 1040, 1042, 5, 122, 0, 0, 1041, 1040, 1, 0, 0, 0, 1041, 1042, 1, 0, 0, 0, 1042, 1056, 1, 0, 0, 0, 1043, 1044, 5, 129, 0, 0, 1044, 1045, 3, 224, 112, 0, 1045, 1046, 5, 129, 0, 0, 1046, 1056, 1, 0, 0, 0, 1047, 1048, 5, 130, 0, 0, 1048, 1049, 3, 224, 112, 0, 1049, 1050, 5, 130, 0, 0, 1050, 1056, 1, 0, 0, 0, 1051, 1052, 5, 131, 0, 0, 1052, 1053, 3, 224, 112, 0, 1053, 1054, 5, 131, 0, 0, 1054, 1056, 1, 0, 0, 0, 1055, 1032, 1, 0, 0, 0, 1055, 1043, 1, 0, 0, 0, 1055, 1047, 1, 0, 0, 0, 1055, 1051, 1, 0, 0, 0, 1056, 225, 1, 0, 0, 0, 1057, 1158, 5, 31, 0, 0, 1058, 1158, 3, 210, 105, 0, 1059, 1158, 5, 320, 0, 0, 1060, 1158, 3, 132, 66, 0, 1061, 1158, 3, 140, 70, 0, 1062, 1158, 3, 208, 104, 0, 1063, 1158, 3, 156, 78, 0, 1064, 1158, 3, 178, 89, 0, 1065, 1158, 3, 152, 76, 0, 1066, 1158, 3, 180, 90, 0, 1067, 1158, 5, 2, 0, 0, 1068, 1158, 5, 3, 0, 0, 1069, 1158, 5, 4, 0, 0, 1070, 1158, 5, 5, 0, 0, 1071, 1158, 5, 6, 0, 0, 1072, 1158, 5, 7, 0, 0, 1073, 1158, 5, 8, 0, 0, 1074, 1158, 5, 9, 0, 0, 1075, 1158, 5, 10, 0, 0, 1076, 1158, 5, 11, 0, 0, 1077, 1158, 5, 12, 0, 0, 1078, 1158, 5, 13, 0, 0, 1079, 1158, 5, 14, 0, 0, 1080, 1158, 5, 15, 0, 0, 1081, 1158, 5, 16, 0, 0, 1082, 1158, 5, 17, 0, 0, 1083, 1158, 5, 18, 0, 0, 1084, 1158, 5, 19, 0, 0, 1085, 1158, 5, 20, 0, 0, 1086, 1158, 5, 21, 0, 0, 1087, 1158, 5, 22, 0, 0, 1088, 1158, 5, 23, 0, 0, 1089, 1158, 5, 24, 0, 0, 1090, 1158, 5, 25, 0, 0, 1091, 1158, 5, 26, 0, 0, 1092, 1158, 5, 29, 0, 0, 1093, 1158, 5, 30, 0, 0, 1094, 1158, 5, 32, 0, 0, 1095, 1158, 5, 33, 0, 0, 1096, 1158, 5, 34, 0, 0, 1097, 1158, 5, 36, 0, 0, 1098, 1158, 5, 37, 0, 0, 1099, 1158, 5, 38, 0, 0, 1100, 1158, 5, 39, 0, 0, 1101, 1158, 5, 40, 0, 0, 1102, 1158, 5, 41, 0, 0, 1103, 1158, 5, 42, 0, 0, 1104, 1158, 5, 43, 0, 0, 1105, 1158, 5, 44, 0, 0, 1106, 1158, 5, 45, 0, 0, 1107, 1158, 5, 46, 0, 0, 1108, 1158, 5, 47, 0, 0, 1109, 1158, 5, 48, 0, 0, 1110, 1158, 5, 49, 0, 0, 1111, 1158, 5, 50, 0, 0, 1112, 1158, 5, 51, 0, 0, 1113, 1158, 5, 52, 0, 0, 1114, 1158, 5, 53, 0, 0, 1115, 1158, 5, 54, 0, 0, 1116, 1158, 5, 55, 0, 0, 1117, 1158, 5, 56, 0, 0, 1118, 1158, 5, 57, 0, 0, 1119, 1158, 5, 58, 0, 0, 1120, 1158, 5, 135, 0, 0, 1121, 1158, 5, 136, 0, 0, 1122, 1158, 5, 137, 0, 0, 1123, 1158, 5, 138, 0, 0, 1124, 1158, 5, 139, 0, 0, 1125, 1158, 5, 140, 0, 0, 1126, 1158, 5, 141, 0, 0, 1127, 1158, 5, 142, 0, 0, 1128, 1158, 5, 143, 0, 0, 1129, 1158, 5, 144, 0, 0, 1130, 1158, 5, 145, 0, 0, 1131, 1158, 5, 146, 0, 0, 1132, 1158, 5, 147, 0, 0, 1133, 1158, 5, 148, 0, 0, 1134, 1158, 5, 149, 0, 0, 1135, 1158, 5, 150, 0, 0, 1136, 1158, 5, 151, 0, 0, 1137, 1158, 5, 152, 0, 0, 1138, 1158, 5, 153, 0, 0, 1139, 1158, 5, 154, 0, 0, 1140, 1158, 5, 155, 0, 0, 1141, 1158, 5, 156, 0, 0, 1142, 1158, 5, 157, 0, 0, 1143, 1158, 5, 158, 0, 0, 1144, 1158, 5, 159, 0, 0, 1145, 1158, 5, 160, 0, 0, 1146, 1158, 5, 161, 0, 0, 1147, 1158, 5, 162, 0, 0, 1148, 1158, 5, 163, 0, 0, 1149, 1158, 5, 164, 0, 0, 1150, 1158, 5, 165, 0, 0, 1151, 1158, 5, 166, 0, 0, 1152, 1158, 5, 167, 0, 0, 1153, 1158, 5, 168, 0, 0, 1154, 1158, 5, 169, 0, 0, 1155, 1158, 5, 170, 0, 0, 1156, 1158, 5, 171, 0, 0, 1157, 1057, 1, 0, 0, 0, 1157, 1058, 1, 0, 0, 0, 1157, 1059, 1, 0, 0, 0, 1157, 1060, 1, 0, 0, 0, 1157, 1061, 1, 0, 0, 0, 1157, 1062, 1, 0, 0, 0, 1157, 1063, 1, 0, 0, 0, 1157, 1064, 1, 0, 0, 0, 1157, 1065, 1, 0, 0, 0, 1157, 1066, 1, 0, 0, 0, 1157, 1067, 1, 0, 0, 0, 1157, 1068, 1, 0, 0, 0, 1157, 1069, 1, 0, 0, 0, 1157, 1070, 1, 0, 0, 0, 1157, 1071, 1, 0, 0, 0, 1157, 1072, 1, 0, 0, 0, 1157, 1073, 1, 0, 0, 0, 1157, 1074, 1, 0, 0, 0, 1157, 1075, 1, 0, 0, 0, 1157, 1076, 1, 0, 0, 0, 1157, 1077, 1, 0, 0, 0, 1157, 1078, 1, 0, 0, 0, 1157, 1079, 1, 0, 0, 0, 1157, 1080, 1, 0, 0, 0, 1157, 1081, 1, 0, 0, 0, 1157, 1082, 1, 0, 0, 0, 1157, 1083, 1, 0, 0, 0, 1157, 1084, 1, 0, 0, 0, 1157, 1085, 1, 0, 0, 0, 1157, 1086, 1, 0, 0, 0, 1157, 1087, 1, 0, 0, 0, 1157, 1088, 1, 0, 0, 0, 1157, 1089, 1, 0, 0, 0, 1157, 1090, 1, 0, 0, 0, 1157, 1091, 1, 0, 0, 0, 1157, 1092, 1, 0, 0, 0, 1157, 1093, 1, 0, 0, 0, 1157, 1094, 1, 0, 0, 0, 1157, 1095, 1, 0, 0, 0, 1157, 1096, 1, 0, 0, 0, 1157, 1097, 1, 0, 0, 0, 1157, 1098, 1, 0, 0, 0, 1157, 1099, 1, 0, 0, 0, 1157, 1100, 1, 0, 0, 0, 1157, 1101, 1, 0, 0, 0, 1157, 1102, 1, 0, 0, 0, 1157, 1103, 1, 0, 0, 0, 1157, 1104, 1, 0, 0, 0, 1157, 1105, 1, 0, 0, 0, 1157, 1106, 1, 0, 0, 0, 1157, 1107, 1, 0, 0, 0, 1157, 1108, 1, 0, 0, 0, 1157, 1109, 1, 0, 0, 0, 1157, 1110, 1, 0, 0, 0, 1157, 1111, 1, 0, 0, 0, 1157, 1112, 1, 0, 0, 0, 1157, 1113, 1, 0, 0, 0, 1157, 1114, 1, 0, 0, 0, 1157, 1115, 1, 0, 0, 0, 1157, 1116, 1, 0, 0, 0, 1157, 1117, 1, 0, 0, 0, 1157, 1118, 1, 0, 0, 0, 1157, 1119, 1, 0, 0, 0, 1157, 1120, 1, 0, 0, 0, 1157, 1121, 1, 0, 0, 0, 1157, 1122, 1, 0, 0, 0, 1157, 1123, 1, 0, 0, 0, 1157, 1124, 1, 0, 0, 0, 1157, 1125, 1, 0, 0, 0, 1157, 1126, 1, 0, 0, 0, 1157, 1127, 1, 0, 0, 0, 1157, 1128, 1, 0, 0, 0, 1157, 1129, 1, 0, 0, 0, 1157, 1130, 1, 0, 0, 0, 1157, 1131, 1, 0, 0, 0, 1157, 1132, 1, 0, 0, 0, 1157, 1133, 1, 0, 0, 0, 1157, 1134, 1, 0, 0, 0, 1157, 1135, 1, 0, 0, 0, 1157, 1136, 1, 0, 0, 0, 1157, 1137, 1, 0, 0, 0, 1157, 1138, 1, 0, 0, 0, 1157, 1139, 1, 0, 0, 0, 1157, 1140, 1, 0, 0, 0, 1157, 1141, 1, 0, 0, 0, 1157, 1142, 1, 0, 0, 0, 1157, 1143, 1, 0, 0, 0, 1157, 1144, 1, 0, 0, 0, 1157, 1145, 1, 0, 0, 0, 1157, 1146, 1, 0, 0, 0, 1157, 1147, 1, 0, 0, 0, 1157, 1148, 1, 0, 0, 0, 1157, 1149, 1, 0, 0, 0, 1157, 1150, 1, 0, 0, 0, 1157, 1151, 1, 0, 0, 0, 1157, 1152, 1, 0, 0, 0, 1157, 1153, 1, 0, 0, 0, 1157, 1154, 1, 0, 0, 0, 1157, 1155, 1, 0, 0, 0, 1157, 1156, 1, 0, 0, 0, 1158, 227, 1, 0, 0, 0, 86, 229, 242, 248, 266, 269, 273, 279, 284, 297, 307, 314, 319, 324, 331, 335, 340, 344, 350, 355, 366, 371, 375, 379, 383, 388, 402, 413, 421, 433, 439, 478, 484, 503, 510, 529, 534, 542, 551, 561, 578, 587, 602, 610, 617, 623, 625, 636, 648, 656, 658, 665, 678, 689, 702, 712, 719, 731, 739, 743, 768, 801, 809, 816, 819, 824, 842, 846, 850, 856, 881, 909, 942, 951, 956, 965, 986, 996, 1004, 1012, 1016, 1025, 1028, 1037, 1041, 1055, 1157] \ No newline at end of file diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.tokens b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.tokens new file mode 100644 index 000000000000..4779948fd379 --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.tokens @@ -0,0 +1,659 @@ +SPACE=1 +SEARCH=2 +DESCRIBE=3 +SHOW=4 +FROM=5 +WHERE=6 +FIELDS=7 +RENAME=8 +STATS=9 +DEDUP=10 +SORT=11 +EVAL=12 +HEAD=13 +TOP=14 +RARE=15 +PARSE=16 +METHOD=17 +REGEX=18 +PUNCT=19 +GROK=20 +PATTERN=21 +PATTERNS=22 +NEW_FIELD=23 +KMEANS=24 +AD=25 +ML=26 +AS=27 +BY=28 +SOURCE=29 +INDEX=30 +D=31 +DESC=32 +DATASOURCES=33 +SORTBY=34 +AUTO=35 +STR=36 +IP=37 +NUM=38 +KEEPEMPTY=39 +CONSECUTIVE=40 +DEDUP_SPLITVALUES=41 +PARTITIONS=42 +ALLNUM=43 +DELIM=44 +CENTROIDS=45 +ITERATIONS=46 +DISTANCE_TYPE=47 +NUMBER_OF_TREES=48 +SHINGLE_SIZE=49 +SAMPLE_SIZE=50 +OUTPUT_AFTER=51 +TIME_DECAY=52 +ANOMALY_RATE=53 +CATEGORY_FIELD=54 +TIME_FIELD=55 +TIME_ZONE=56 +TRAINING_DATA_SIZE=57 +ANOMALY_SCORE_THRESHOLD=58 +CASE=59 +IN=60 +NOT=61 +OR=62 +AND=63 +XOR=64 +TRUE=65 +FALSE=66 +REGEXP=67 +CONVERT_TZ=68 +DATETIME=69 +DAY=70 +DAY_HOUR=71 +DAY_MICROSECOND=72 +DAY_MINUTE=73 +DAY_OF_YEAR=74 +DAY_SECOND=75 +HOUR=76 +HOUR_MICROSECOND=77 +HOUR_MINUTE=78 +HOUR_OF_DAY=79 +HOUR_SECOND=80 +INTERVAL=81 +MICROSECOND=82 +MILLISECOND=83 +MINUTE=84 +MINUTE_MICROSECOND=85 +MINUTE_OF_DAY=86 +MINUTE_OF_HOUR=87 +MINUTE_SECOND=88 +MONTH=89 +MONTH_OF_YEAR=90 +QUARTER=91 +SECOND=92 +SECOND_MICROSECOND=93 +SECOND_OF_MINUTE=94 +WEEK=95 +WEEK_OF_YEAR=96 +YEAR=97 +YEAR_MONTH=98 +DATAMODEL=99 +LOOKUP=100 +SAVEDSEARCH=101 +INT=102 +INTEGER=103 +DOUBLE=104 +LONG=105 +FLOAT=106 +STRING=107 +BOOLEAN=108 +PIPE=109 +COMMA=110 +DOT=111 +EQUAL=112 +GREATER=113 +LESS=114 +NOT_GREATER=115 +NOT_LESS=116 +NOT_EQUAL=117 +PLUS=118 +MINUS=119 +STAR=120 +DIVIDE=121 +MODULE=122 +EXCLAMATION_SYMBOL=123 +COLON=124 +LT_PRTHS=125 +RT_PRTHS=126 +LT_SQR_PRTHS=127 +RT_SQR_PRTHS=128 +SINGLE_QUOTE=129 +DOUBLE_QUOTE=130 +BACKTICK=131 +BIT_NOT_OP=132 +BIT_AND_OP=133 +BIT_XOR_OP=134 +AVG=135 +COUNT=136 +DISTINCT_COUNT=137 +ESTDC=138 +ESTDC_ERROR=139 +MAX=140 +MEAN=141 +MEDIAN=142 +MIN=143 +MODE=144 +RANGE=145 +STDEV=146 +STDEVP=147 +SUM=148 +SUMSQ=149 +VAR_SAMP=150 +VAR_POP=151 +STDDEV_SAMP=152 +STDDEV_POP=153 +PERCENTILE=154 +TAKE=155 +FIRST=156 +LAST=157 +LIST=158 +VALUES=159 +EARLIEST=160 +EARLIEST_TIME=161 +LATEST=162 +LATEST_TIME=163 +PER_DAY=164 +PER_HOUR=165 +PER_MINUTE=166 +PER_SECOND=167 +RATE=168 +SPARKLINE=169 +C=170 +DC=171 +ABS=172 +CBRT=173 +CEIL=174 +CEILING=175 +CONV=176 +CRC32=177 +E=178 +EXP=179 +FLOOR=180 +LN=181 +LOG=182 +LOG10=183 +LOG2=184 +MOD=185 +PI=186 +POSITION=187 +POW=188 +POWER=189 +RAND=190 +ROUND=191 +SIGN=192 +SQRT=193 +TRUNCATE=194 +ACOS=195 +ASIN=196 +ATAN=197 +ATAN2=198 +COS=199 +COT=200 +DEGREES=201 +RADIANS=202 +SIN=203 +TAN=204 +ADDDATE=205 +ADDTIME=206 +CURDATE=207 +CURRENT_DATE=208 +CURRENT_TIME=209 +CURRENT_TIMESTAMP=210 +CURTIME=211 +DATE=212 +DATEDIFF=213 +DATE_ADD=214 +DATE_FORMAT=215 +DATE_SUB=216 +DAYNAME=217 +DAYOFMONTH=218 +DAYOFWEEK=219 +DAYOFYEAR=220 +DAY_OF_MONTH=221 +DAY_OF_WEEK=222 +EXTRACT=223 +FROM_DAYS=224 +FROM_UNIXTIME=225 +GET_FORMAT=226 +LAST_DAY=227 +LOCALTIME=228 +LOCALTIMESTAMP=229 +MAKEDATE=230 +MAKETIME=231 +MONTHNAME=232 +NOW=233 +PERIOD_ADD=234 +PERIOD_DIFF=235 +SEC_TO_TIME=236 +STR_TO_DATE=237 +SUBDATE=238 +SUBTIME=239 +SYSDATE=240 +TIME=241 +TIMEDIFF=242 +TIMESTAMP=243 +TIMESTAMPADD=244 +TIMESTAMPDIFF=245 +TIME_FORMAT=246 +TIME_TO_SEC=247 +TO_DAYS=248 +TO_SECONDS=249 +UNIX_TIMESTAMP=250 +UTC_DATE=251 +UTC_TIME=252 +UTC_TIMESTAMP=253 +WEEKDAY=254 +YEARWEEK=255 +SUBSTR=256 +SUBSTRING=257 +LTRIM=258 +RTRIM=259 +TRIM=260 +TO=261 +LOWER=262 +UPPER=263 +CONCAT=264 +CONCAT_WS=265 +LENGTH=266 +STRCMP=267 +RIGHT=268 +LEFT=269 +ASCII=270 +LOCATE=271 +REPLACE=272 +REVERSE=273 +CAST=274 +LIKE=275 +ISNULL=276 +ISNOTNULL=277 +IFNULL=278 +NULLIF=279 +IF=280 +TYPEOF=281 +MATCH=282 +MATCH_PHRASE=283 +MATCH_PHRASE_PREFIX=284 +MATCH_BOOL_PREFIX=285 +SIMPLE_QUERY_STRING=286 +MULTI_MATCH=287 +QUERY_STRING=288 +ALLOW_LEADING_WILDCARD=289 +ANALYZE_WILDCARD=290 +ANALYZER=291 +AUTO_GENERATE_SYNONYMS_PHRASE_QUERY=292 +BOOST=293 +CUTOFF_FREQUENCY=294 +DEFAULT_FIELD=295 +DEFAULT_OPERATOR=296 +ENABLE_POSITION_INCREMENTS=297 +ESCAPE=298 +FLAGS=299 +FUZZY_MAX_EXPANSIONS=300 +FUZZY_PREFIX_LENGTH=301 +FUZZY_TRANSPOSITIONS=302 +FUZZY_REWRITE=303 +FUZZINESS=304 +LENIENT=305 +LOW_FREQ_OPERATOR=306 +MAX_DETERMINIZED_STATES=307 +MAX_EXPANSIONS=308 +MINIMUM_SHOULD_MATCH=309 +OPERATOR=310 +PHRASE_SLOP=311 +PREFIX_LENGTH=312 +QUOTE_ANALYZER=313 +QUOTE_FIELD_SUFFIX=314 +REWRITE=315 +SLOP=316 +TIE_BREAKER=317 +TYPE=318 +ZERO_TERMS_QUERY=319 +SPAN=320 +MS=321 +S=322 +M=323 +H=324 +W=325 +Q=326 +Y=327 +ID=328 +CLUSTER=329 +INTEGER_LITERAL=330 +DECIMAL_LITERAL=331 +ID_DATE_SUFFIX=332 +DQUOTA_STRING=333 +SQUOTA_STRING=334 +BQUOTA_STRING=335 +ERROR_RECOGNITION=336 +'SEARCH'=2 +'DESCRIBE'=3 +'SHOW'=4 +'FROM'=5 +'WHERE'=6 +'FIELDS'=7 +'RENAME'=8 +'STATS'=9 +'DEDUP'=10 +'SORT'=11 +'EVAL'=12 +'HEAD'=13 +'TOP'=14 +'RARE'=15 +'PARSE'=16 +'METHOD'=17 +'REGEX'=18 +'PUNCT'=19 +'GROK'=20 +'PATTERN'=21 +'PATTERNS'=22 +'NEW_FIELD'=23 +'KMEANS'=24 +'AD'=25 +'ML'=26 +'AS'=27 +'BY'=28 +'SOURCE'=29 +'INDEX'=30 +'D'=31 +'DESC'=32 +'DATASOURCES'=33 +'SORTBY'=34 +'AUTO'=35 +'STR'=36 +'IP'=37 +'NUM'=38 +'KEEPEMPTY'=39 +'CONSECUTIVE'=40 +'DEDUP_SPLITVALUES'=41 +'PARTITIONS'=42 +'ALLNUM'=43 +'DELIM'=44 +'CENTROIDS'=45 +'ITERATIONS'=46 +'DISTANCE_TYPE'=47 +'NUMBER_OF_TREES'=48 +'SHINGLE_SIZE'=49 +'SAMPLE_SIZE'=50 +'OUTPUT_AFTER'=51 +'TIME_DECAY'=52 +'ANOMALY_RATE'=53 +'CATEGORY_FIELD'=54 +'TIME_FIELD'=55 +'TIME_ZONE'=56 +'TRAINING_DATA_SIZE'=57 +'ANOMALY_SCORE_THRESHOLD'=58 +'CASE'=59 +'IN'=60 +'NOT'=61 +'OR'=62 +'AND'=63 +'XOR'=64 +'TRUE'=65 +'FALSE'=66 +'REGEXP'=67 +'CONVERT_TZ'=68 +'DATETIME'=69 +'DAY'=70 +'DAY_HOUR'=71 +'DAY_MICROSECOND'=72 +'DAY_MINUTE'=73 +'DAY_OF_YEAR'=74 +'DAY_SECOND'=75 +'HOUR'=76 +'HOUR_MICROSECOND'=77 +'HOUR_MINUTE'=78 +'HOUR_OF_DAY'=79 +'HOUR_SECOND'=80 +'INTERVAL'=81 +'MICROSECOND'=82 +'MILLISECOND'=83 +'MINUTE'=84 +'MINUTE_MICROSECOND'=85 +'MINUTE_OF_DAY'=86 +'MINUTE_OF_HOUR'=87 +'MINUTE_SECOND'=88 +'MONTH'=89 +'MONTH_OF_YEAR'=90 +'QUARTER'=91 +'SECOND'=92 +'SECOND_MICROSECOND'=93 +'SECOND_OF_MINUTE'=94 +'WEEK'=95 +'WEEK_OF_YEAR'=96 +'YEAR'=97 +'YEAR_MONTH'=98 +'DATAMODEL'=99 +'LOOKUP'=100 +'SAVEDSEARCH'=101 +'INT'=102 +'INTEGER'=103 +'DOUBLE'=104 +'LONG'=105 +'FLOAT'=106 +'STRING'=107 +'BOOLEAN'=108 +'|'=109 +','=110 +'.'=111 +'='=112 +'>'=113 +'<'=114 +'+'=118 +'-'=119 +'*'=120 +'/'=121 +'%'=122 +'!'=123 +':'=124 +'('=125 +')'=126 +'['=127 +']'=128 +'\''=129 +'"'=130 +'`'=131 +'~'=132 +'&'=133 +'^'=134 +'AVG'=135 +'COUNT'=136 +'DISTINCT_COUNT'=137 +'ESTDC'=138 +'ESTDC_ERROR'=139 +'MAX'=140 +'MEAN'=141 +'MEDIAN'=142 +'MIN'=143 +'MODE'=144 +'RANGE'=145 +'STDEV'=146 +'STDEVP'=147 +'SUM'=148 +'SUMSQ'=149 +'VAR_SAMP'=150 +'VAR_POP'=151 +'STDDEV_SAMP'=152 +'STDDEV_POP'=153 +'PERCENTILE'=154 +'TAKE'=155 +'FIRST'=156 +'LAST'=157 +'LIST'=158 +'VALUES'=159 +'EARLIEST'=160 +'EARLIEST_TIME'=161 +'LATEST'=162 +'LATEST_TIME'=163 +'PER_DAY'=164 +'PER_HOUR'=165 +'PER_MINUTE'=166 +'PER_SECOND'=167 +'RATE'=168 +'SPARKLINE'=169 +'C'=170 +'DC'=171 +'ABS'=172 +'CBRT'=173 +'CEIL'=174 +'CEILING'=175 +'CONV'=176 +'CRC32'=177 +'E'=178 +'EXP'=179 +'FLOOR'=180 +'LN'=181 +'LOG'=182 +'LOG10'=183 +'LOG2'=184 +'MOD'=185 +'PI'=186 +'POSITION'=187 +'POW'=188 +'POWER'=189 +'RAND'=190 +'ROUND'=191 +'SIGN'=192 +'SQRT'=193 +'TRUNCATE'=194 +'ACOS'=195 +'ASIN'=196 +'ATAN'=197 +'ATAN2'=198 +'COS'=199 +'COT'=200 +'DEGREES'=201 +'RADIANS'=202 +'SIN'=203 +'TAN'=204 +'ADDDATE'=205 +'ADDTIME'=206 +'CURDATE'=207 +'CURRENT_DATE'=208 +'CURRENT_TIME'=209 +'CURRENT_TIMESTAMP'=210 +'CURTIME'=211 +'DATE'=212 +'DATEDIFF'=213 +'DATE_ADD'=214 +'DATE_FORMAT'=215 +'DATE_SUB'=216 +'DAYNAME'=217 +'DAYOFMONTH'=218 +'DAYOFWEEK'=219 +'DAYOFYEAR'=220 +'DAY_OF_MONTH'=221 +'DAY_OF_WEEK'=222 +'EXTRACT'=223 +'FROM_DAYS'=224 +'FROM_UNIXTIME'=225 +'GET_FORMAT'=226 +'LAST_DAY'=227 +'LOCALTIME'=228 +'LOCALTIMESTAMP'=229 +'MAKEDATE'=230 +'MAKETIME'=231 +'MONTHNAME'=232 +'NOW'=233 +'PERIOD_ADD'=234 +'PERIOD_DIFF'=235 +'SEC_TO_TIME'=236 +'STR_TO_DATE'=237 +'SUBDATE'=238 +'SUBTIME'=239 +'SYSDATE'=240 +'TIME'=241 +'TIMEDIFF'=242 +'TIMESTAMP'=243 +'TIMESTAMPADD'=244 +'TIMESTAMPDIFF'=245 +'TIME_FORMAT'=246 +'TIME_TO_SEC'=247 +'TO_DAYS'=248 +'TO_SECONDS'=249 +'UNIX_TIMESTAMP'=250 +'UTC_DATE'=251 +'UTC_TIME'=252 +'UTC_TIMESTAMP'=253 +'WEEKDAY'=254 +'YEARWEEK'=255 +'SUBSTR'=256 +'SUBSTRING'=257 +'LTRIM'=258 +'RTRIM'=259 +'TRIM'=260 +'TO'=261 +'LOWER'=262 +'UPPER'=263 +'CONCAT'=264 +'CONCAT_WS'=265 +'LENGTH'=266 +'STRCMP'=267 +'RIGHT'=268 +'LEFT'=269 +'ASCII'=270 +'LOCATE'=271 +'REPLACE'=272 +'REVERSE'=273 +'CAST'=274 +'LIKE'=275 +'ISNULL'=276 +'ISNOTNULL'=277 +'IFNULL'=278 +'NULLIF'=279 +'IF'=280 +'TYPEOF'=281 +'MATCH'=282 +'MATCH_PHRASE'=283 +'MATCH_PHRASE_PREFIX'=284 +'MATCH_BOOL_PREFIX'=285 +'SIMPLE_QUERY_STRING'=286 +'MULTI_MATCH'=287 +'QUERY_STRING'=288 +'ALLOW_LEADING_WILDCARD'=289 +'ANALYZE_WILDCARD'=290 +'ANALYZER'=291 +'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY'=292 +'BOOST'=293 +'CUTOFF_FREQUENCY'=294 +'DEFAULT_FIELD'=295 +'DEFAULT_OPERATOR'=296 +'ENABLE_POSITION_INCREMENTS'=297 +'ESCAPE'=298 +'FLAGS'=299 +'FUZZY_MAX_EXPANSIONS'=300 +'FUZZY_PREFIX_LENGTH'=301 +'FUZZY_TRANSPOSITIONS'=302 +'FUZZY_REWRITE'=303 +'FUZZINESS'=304 +'LENIENT'=305 +'LOW_FREQ_OPERATOR'=306 +'MAX_DETERMINIZED_STATES'=307 +'MAX_EXPANSIONS'=308 +'MINIMUM_SHOULD_MATCH'=309 +'OPERATOR'=310 +'PHRASE_SLOP'=311 +'PREFIX_LENGTH'=312 +'QUOTE_ANALYZER'=313 +'QUOTE_FIELD_SUFFIX'=314 +'REWRITE'=315 +'SLOP'=316 +'TIE_BREAKER'=317 +'TYPE'=318 +'ZERO_TERMS_QUERY'=319 +'SPAN'=320 +'MS'=321 +'S'=322 +'M'=323 +'H'=324 +'W'=325 +'Q'=326 +'Y'=327 diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.ts b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.ts new file mode 100644 index 000000000000..a3fa6b2219d1 --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParser.ts @@ -0,0 +1,12797 @@ +// Generated from ./src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4 by ANTLR 4.13.1 + +import * as antlr from "antlr4ng"; +import { Token } from "antlr4ng"; + +import { OpenSearchPPLParserVisitor } from "./OpenSearchPPLParserVisitor.js"; + +// for running tests with parameters, TODO: discuss strategy for typed parameters in CI +// eslint-disable-next-line no-unused-vars +type int = number; + + +export class OpenSearchPPLParser extends antlr.Parser { + public static readonly SPACE = 1; + public static readonly SEARCH = 2; + public static readonly DESCRIBE = 3; + public static readonly SHOW = 4; + public static readonly FROM = 5; + public static readonly WHERE = 6; + public static readonly FIELDS = 7; + public static readonly RENAME = 8; + public static readonly STATS = 9; + public static readonly DEDUP = 10; + public static readonly SORT = 11; + public static readonly EVAL = 12; + public static readonly HEAD = 13; + public static readonly TOP = 14; + public static readonly RARE = 15; + public static readonly PARSE = 16; + public static readonly METHOD = 17; + public static readonly REGEX = 18; + public static readonly PUNCT = 19; + public static readonly GROK = 20; + public static readonly PATTERN = 21; + public static readonly PATTERNS = 22; + public static readonly NEW_FIELD = 23; + public static readonly KMEANS = 24; + public static readonly AD = 25; + public static readonly ML = 26; + public static readonly AS = 27; + public static readonly BY = 28; + public static readonly SOURCE = 29; + public static readonly INDEX = 30; + public static readonly D = 31; + public static readonly DESC = 32; + public static readonly DATASOURCES = 33; + public static readonly SORTBY = 34; + public static readonly AUTO = 35; + public static readonly STR = 36; + public static readonly IP = 37; + public static readonly NUM = 38; + public static readonly KEEPEMPTY = 39; + public static readonly CONSECUTIVE = 40; + public static readonly DEDUP_SPLITVALUES = 41; + public static readonly PARTITIONS = 42; + public static readonly ALLNUM = 43; + public static readonly DELIM = 44; + public static readonly CENTROIDS = 45; + public static readonly ITERATIONS = 46; + public static readonly DISTANCE_TYPE = 47; + public static readonly NUMBER_OF_TREES = 48; + public static readonly SHINGLE_SIZE = 49; + public static readonly SAMPLE_SIZE = 50; + public static readonly OUTPUT_AFTER = 51; + public static readonly TIME_DECAY = 52; + public static readonly ANOMALY_RATE = 53; + public static readonly CATEGORY_FIELD = 54; + public static readonly TIME_FIELD = 55; + public static readonly TIME_ZONE = 56; + public static readonly TRAINING_DATA_SIZE = 57; + public static readonly ANOMALY_SCORE_THRESHOLD = 58; + public static readonly CASE = 59; + public static readonly IN = 60; + public static readonly NOT = 61; + public static readonly OR = 62; + public static readonly AND = 63; + public static readonly XOR = 64; + public static readonly TRUE = 65; + public static readonly FALSE = 66; + public static readonly REGEXP = 67; + public static readonly CONVERT_TZ = 68; + public static readonly DATETIME = 69; + public static readonly DAY = 70; + public static readonly DAY_HOUR = 71; + public static readonly DAY_MICROSECOND = 72; + public static readonly DAY_MINUTE = 73; + public static readonly DAY_OF_YEAR = 74; + public static readonly DAY_SECOND = 75; + public static readonly HOUR = 76; + public static readonly HOUR_MICROSECOND = 77; + public static readonly HOUR_MINUTE = 78; + public static readonly HOUR_OF_DAY = 79; + public static readonly HOUR_SECOND = 80; + public static readonly INTERVAL = 81; + public static readonly MICROSECOND = 82; + public static readonly MILLISECOND = 83; + public static readonly MINUTE = 84; + public static readonly MINUTE_MICROSECOND = 85; + public static readonly MINUTE_OF_DAY = 86; + public static readonly MINUTE_OF_HOUR = 87; + public static readonly MINUTE_SECOND = 88; + public static readonly MONTH = 89; + public static readonly MONTH_OF_YEAR = 90; + public static readonly QUARTER = 91; + public static readonly SECOND = 92; + public static readonly SECOND_MICROSECOND = 93; + public static readonly SECOND_OF_MINUTE = 94; + public static readonly WEEK = 95; + public static readonly WEEK_OF_YEAR = 96; + public static readonly YEAR = 97; + public static readonly YEAR_MONTH = 98; + public static readonly DATAMODEL = 99; + public static readonly LOOKUP = 100; + public static readonly SAVEDSEARCH = 101; + public static readonly INT = 102; + public static readonly INTEGER = 103; + public static readonly DOUBLE = 104; + public static readonly LONG = 105; + public static readonly FLOAT = 106; + public static readonly STRING = 107; + public static readonly BOOLEAN = 108; + public static readonly PIPE = 109; + public static readonly COMMA = 110; + public static readonly DOT = 111; + public static readonly EQUAL = 112; + public static readonly GREATER = 113; + public static readonly LESS = 114; + public static readonly NOT_GREATER = 115; + public static readonly NOT_LESS = 116; + public static readonly NOT_EQUAL = 117; + public static readonly PLUS = 118; + public static readonly MINUS = 119; + public static readonly STAR = 120; + public static readonly DIVIDE = 121; + public static readonly MODULE = 122; + public static readonly EXCLAMATION_SYMBOL = 123; + public static readonly COLON = 124; + public static readonly LT_PRTHS = 125; + public static readonly RT_PRTHS = 126; + public static readonly LT_SQR_PRTHS = 127; + public static readonly RT_SQR_PRTHS = 128; + public static readonly SINGLE_QUOTE = 129; + public static readonly DOUBLE_QUOTE = 130; + public static readonly BACKTICK = 131; + public static readonly BIT_NOT_OP = 132; + public static readonly BIT_AND_OP = 133; + public static readonly BIT_XOR_OP = 134; + public static readonly AVG = 135; + public static readonly COUNT = 136; + public static readonly DISTINCT_COUNT = 137; + public static readonly ESTDC = 138; + public static readonly ESTDC_ERROR = 139; + public static readonly MAX = 140; + public static readonly MEAN = 141; + public static readonly MEDIAN = 142; + public static readonly MIN = 143; + public static readonly MODE = 144; + public static readonly RANGE = 145; + public static readonly STDEV = 146; + public static readonly STDEVP = 147; + public static readonly SUM = 148; + public static readonly SUMSQ = 149; + public static readonly VAR_SAMP = 150; + public static readonly VAR_POP = 151; + public static readonly STDDEV_SAMP = 152; + public static readonly STDDEV_POP = 153; + public static readonly PERCENTILE = 154; + public static readonly TAKE = 155; + public static readonly FIRST = 156; + public static readonly LAST = 157; + public static readonly LIST = 158; + public static readonly VALUES = 159; + public static readonly EARLIEST = 160; + public static readonly EARLIEST_TIME = 161; + public static readonly LATEST = 162; + public static readonly LATEST_TIME = 163; + public static readonly PER_DAY = 164; + public static readonly PER_HOUR = 165; + public static readonly PER_MINUTE = 166; + public static readonly PER_SECOND = 167; + public static readonly RATE = 168; + public static readonly SPARKLINE = 169; + public static readonly C = 170; + public static readonly DC = 171; + public static readonly ABS = 172; + public static readonly CBRT = 173; + public static readonly CEIL = 174; + public static readonly CEILING = 175; + public static readonly CONV = 176; + public static readonly CRC32 = 177; + public static readonly E = 178; + public static readonly EXP = 179; + public static readonly FLOOR = 180; + public static readonly LN = 181; + public static readonly LOG = 182; + public static readonly LOG10 = 183; + public static readonly LOG2 = 184; + public static readonly MOD = 185; + public static readonly PI = 186; + public static readonly POSITION = 187; + public static readonly POW = 188; + public static readonly POWER = 189; + public static readonly RAND = 190; + public static readonly ROUND = 191; + public static readonly SIGN = 192; + public static readonly SQRT = 193; + public static readonly TRUNCATE = 194; + public static readonly ACOS = 195; + public static readonly ASIN = 196; + public static readonly ATAN = 197; + public static readonly ATAN2 = 198; + public static readonly COS = 199; + public static readonly COT = 200; + public static readonly DEGREES = 201; + public static readonly RADIANS = 202; + public static readonly SIN = 203; + public static readonly TAN = 204; + public static readonly ADDDATE = 205; + public static readonly ADDTIME = 206; + public static readonly CURDATE = 207; + public static readonly CURRENT_DATE = 208; + public static readonly CURRENT_TIME = 209; + public static readonly CURRENT_TIMESTAMP = 210; + public static readonly CURTIME = 211; + public static readonly DATE = 212; + public static readonly DATEDIFF = 213; + public static readonly DATE_ADD = 214; + public static readonly DATE_FORMAT = 215; + public static readonly DATE_SUB = 216; + public static readonly DAYNAME = 217; + public static readonly DAYOFMONTH = 218; + public static readonly DAYOFWEEK = 219; + public static readonly DAYOFYEAR = 220; + public static readonly DAY_OF_MONTH = 221; + public static readonly DAY_OF_WEEK = 222; + public static readonly EXTRACT = 223; + public static readonly FROM_DAYS = 224; + public static readonly FROM_UNIXTIME = 225; + public static readonly GET_FORMAT = 226; + public static readonly LAST_DAY = 227; + public static readonly LOCALTIME = 228; + public static readonly LOCALTIMESTAMP = 229; + public static readonly MAKEDATE = 230; + public static readonly MAKETIME = 231; + public static readonly MONTHNAME = 232; + public static readonly NOW = 233; + public static readonly PERIOD_ADD = 234; + public static readonly PERIOD_DIFF = 235; + public static readonly SEC_TO_TIME = 236; + public static readonly STR_TO_DATE = 237; + public static readonly SUBDATE = 238; + public static readonly SUBTIME = 239; + public static readonly SYSDATE = 240; + public static readonly TIME = 241; + public static readonly TIMEDIFF = 242; + public static readonly TIMESTAMP = 243; + public static readonly TIMESTAMPADD = 244; + public static readonly TIMESTAMPDIFF = 245; + public static readonly TIME_FORMAT = 246; + public static readonly TIME_TO_SEC = 247; + public static readonly TO_DAYS = 248; + public static readonly TO_SECONDS = 249; + public static readonly UNIX_TIMESTAMP = 250; + public static readonly UTC_DATE = 251; + public static readonly UTC_TIME = 252; + public static readonly UTC_TIMESTAMP = 253; + public static readonly WEEKDAY = 254; + public static readonly YEARWEEK = 255; + public static readonly SUBSTR = 256; + public static readonly SUBSTRING = 257; + public static readonly LTRIM = 258; + public static readonly RTRIM = 259; + public static readonly TRIM = 260; + public static readonly TO = 261; + public static readonly LOWER = 262; + public static readonly UPPER = 263; + public static readonly CONCAT = 264; + public static readonly CONCAT_WS = 265; + public static readonly LENGTH = 266; + public static readonly STRCMP = 267; + public static readonly RIGHT = 268; + public static readonly LEFT = 269; + public static readonly ASCII = 270; + public static readonly LOCATE = 271; + public static readonly REPLACE = 272; + public static readonly REVERSE = 273; + public static readonly CAST = 274; + public static readonly LIKE = 275; + public static readonly ISNULL = 276; + public static readonly ISNOTNULL = 277; + public static readonly IFNULL = 278; + public static readonly NULLIF = 279; + public static readonly IF = 280; + public static readonly TYPEOF = 281; + public static readonly MATCH = 282; + public static readonly MATCH_PHRASE = 283; + public static readonly MATCH_PHRASE_PREFIX = 284; + public static readonly MATCH_BOOL_PREFIX = 285; + public static readonly SIMPLE_QUERY_STRING = 286; + public static readonly MULTI_MATCH = 287; + public static readonly QUERY_STRING = 288; + public static readonly ALLOW_LEADING_WILDCARD = 289; + public static readonly ANALYZE_WILDCARD = 290; + public static readonly ANALYZER = 291; + public static readonly AUTO_GENERATE_SYNONYMS_PHRASE_QUERY = 292; + public static readonly BOOST = 293; + public static readonly CUTOFF_FREQUENCY = 294; + public static readonly DEFAULT_FIELD = 295; + public static readonly DEFAULT_OPERATOR = 296; + public static readonly ENABLE_POSITION_INCREMENTS = 297; + public static readonly ESCAPE = 298; + public static readonly FLAGS = 299; + public static readonly FUZZY_MAX_EXPANSIONS = 300; + public static readonly FUZZY_PREFIX_LENGTH = 301; + public static readonly FUZZY_TRANSPOSITIONS = 302; + public static readonly FUZZY_REWRITE = 303; + public static readonly FUZZINESS = 304; + public static readonly LENIENT = 305; + public static readonly LOW_FREQ_OPERATOR = 306; + public static readonly MAX_DETERMINIZED_STATES = 307; + public static readonly MAX_EXPANSIONS = 308; + public static readonly MINIMUM_SHOULD_MATCH = 309; + public static readonly OPERATOR = 310; + public static readonly PHRASE_SLOP = 311; + public static readonly PREFIX_LENGTH = 312; + public static readonly QUOTE_ANALYZER = 313; + public static readonly QUOTE_FIELD_SUFFIX = 314; + public static readonly REWRITE = 315; + public static readonly SLOP = 316; + public static readonly TIE_BREAKER = 317; + public static readonly TYPE = 318; + public static readonly ZERO_TERMS_QUERY = 319; + public static readonly SPAN = 320; + public static readonly MS = 321; + public static readonly S = 322; + public static readonly M = 323; + public static readonly H = 324; + public static readonly W = 325; + public static readonly Q = 326; + public static readonly Y = 327; + public static readonly ID = 328; + public static readonly CLUSTER = 329; + public static readonly INTEGER_LITERAL = 330; + public static readonly DECIMAL_LITERAL = 331; + public static readonly ID_DATE_SUFFIX = 332; + public static readonly DQUOTA_STRING = 333; + public static readonly SQUOTA_STRING = 334; + public static readonly BQUOTA_STRING = 335; + public static readonly ERROR_RECOGNITION = 336; + public static readonly RULE_root = 0; + public static readonly RULE_pplStatement = 1; + public static readonly RULE_dmlStatement = 2; + public static readonly RULE_queryStatement = 3; + public static readonly RULE_pplCommands = 4; + public static readonly RULE_commands = 5; + public static readonly RULE_searchCommand = 6; + public static readonly RULE_describeCommand = 7; + public static readonly RULE_showDataSourcesCommand = 8; + public static readonly RULE_whereCommand = 9; + public static readonly RULE_fieldsCommand = 10; + public static readonly RULE_renameCommand = 11; + public static readonly RULE_statsCommand = 12; + public static readonly RULE_dedupCommand = 13; + public static readonly RULE_sortCommand = 14; + public static readonly RULE_evalCommand = 15; + public static readonly RULE_headCommand = 16; + public static readonly RULE_topCommand = 17; + public static readonly RULE_rareCommand = 18; + public static readonly RULE_grokCommand = 19; + public static readonly RULE_parseCommand = 20; + public static readonly RULE_patternsCommand = 21; + public static readonly RULE_patternsParameter = 22; + public static readonly RULE_patternsMethod = 23; + public static readonly RULE_kmeansCommand = 24; + public static readonly RULE_kmeansParameter = 25; + public static readonly RULE_adCommand = 26; + public static readonly RULE_adParameter = 27; + public static readonly RULE_mlCommand = 28; + public static readonly RULE_mlArg = 29; + public static readonly RULE_fromClause = 30; + public static readonly RULE_tableSourceClause = 31; + public static readonly RULE_renameClasue = 32; + public static readonly RULE_byClause = 33; + public static readonly RULE_statsByClause = 34; + public static readonly RULE_bySpanClause = 35; + public static readonly RULE_spanClause = 36; + public static readonly RULE_sortbyClause = 37; + public static readonly RULE_evalClause = 38; + public static readonly RULE_statsAggTerm = 39; + public static readonly RULE_statsFunction = 40; + public static readonly RULE_statsFunctionName = 41; + public static readonly RULE_takeAggFunction = 42; + public static readonly RULE_percentileAggFunction = 43; + public static readonly RULE_expression = 44; + public static readonly RULE_logicalExpression = 45; + public static readonly RULE_comparisonExpression = 46; + public static readonly RULE_valueExpression = 47; + public static readonly RULE_primaryExpression = 48; + public static readonly RULE_positionFunction = 49; + public static readonly RULE_booleanExpression = 50; + public static readonly RULE_relevanceExpression = 51; + public static readonly RULE_singleFieldRelevanceFunction = 52; + public static readonly RULE_multiFieldRelevanceFunction = 53; + public static readonly RULE_tableSource = 54; + public static readonly RULE_tableFunction = 55; + public static readonly RULE_fieldList = 56; + public static readonly RULE_wcFieldList = 57; + public static readonly RULE_sortField = 58; + public static readonly RULE_sortFieldExpression = 59; + public static readonly RULE_fieldExpression = 60; + public static readonly RULE_wcFieldExpression = 61; + public static readonly RULE_evalFunctionCall = 62; + public static readonly RULE_dataTypeFunctionCall = 63; + public static readonly RULE_booleanFunctionCall = 64; + public static readonly RULE_convertedDataType = 65; + public static readonly RULE_evalFunctionName = 66; + public static readonly RULE_functionArgs = 67; + public static readonly RULE_functionArg = 68; + public static readonly RULE_relevanceArg = 69; + public static readonly RULE_relevanceArgName = 70; + public static readonly RULE_relevanceFieldAndWeight = 71; + public static readonly RULE_relevanceFieldWeight = 72; + public static readonly RULE_relevanceField = 73; + public static readonly RULE_relevanceQuery = 74; + public static readonly RULE_relevanceArgValue = 75; + public static readonly RULE_mathematicalFunctionName = 76; + public static readonly RULE_trigonometricFunctionName = 77; + public static readonly RULE_dateTimeFunctionName = 78; + public static readonly RULE_getFormatFunction = 79; + public static readonly RULE_getFormatType = 80; + public static readonly RULE_extractFunction = 81; + public static readonly RULE_simpleDateTimePart = 82; + public static readonly RULE_complexDateTimePart = 83; + public static readonly RULE_datetimePart = 84; + public static readonly RULE_timestampFunction = 85; + public static readonly RULE_timestampFunctionName = 86; + public static readonly RULE_conditionFunctionBase = 87; + public static readonly RULE_systemFunctionName = 88; + public static readonly RULE_textFunctionName = 89; + public static readonly RULE_positionFunctionName = 90; + public static readonly RULE_comparisonOperator = 91; + public static readonly RULE_singleFieldRelevanceFunctionName = 92; + public static readonly RULE_multiFieldRelevanceFunctionName = 93; + public static readonly RULE_literalValue = 94; + public static readonly RULE_intervalLiteral = 95; + public static readonly RULE_stringLiteral = 96; + public static readonly RULE_integerLiteral = 97; + public static readonly RULE_decimalLiteral = 98; + public static readonly RULE_booleanLiteral = 99; + public static readonly RULE_datetimeLiteral = 100; + public static readonly RULE_dateLiteral = 101; + public static readonly RULE_timeLiteral = 102; + public static readonly RULE_timestampLiteral = 103; + public static readonly RULE_intervalUnit = 104; + public static readonly RULE_timespanUnit = 105; + public static readonly RULE_valueList = 106; + public static readonly RULE_qualifiedName = 107; + public static readonly RULE_tableQualifiedName = 108; + public static readonly RULE_wcQualifiedName = 109; + public static readonly RULE_ident = 110; + public static readonly RULE_tableIdent = 111; + public static readonly RULE_wildcard = 112; + public static readonly RULE_keywordsCanBeId = 113; + + public static readonly literalNames = [ + null, null, "'SEARCH'", "'DESCRIBE'", "'SHOW'", "'FROM'", "'WHERE'", + "'FIELDS'", "'RENAME'", "'STATS'", "'DEDUP'", "'SORT'", "'EVAL'", + "'HEAD'", "'TOP'", "'RARE'", "'PARSE'", "'METHOD'", "'REGEX'", "'PUNCT'", + "'GROK'", "'PATTERN'", "'PATTERNS'", "'NEW_FIELD'", "'KMEANS'", + "'AD'", "'ML'", "'AS'", "'BY'", "'SOURCE'", "'INDEX'", "'D'", "'DESC'", + "'DATASOURCES'", "'SORTBY'", "'AUTO'", "'STR'", "'IP'", "'NUM'", + "'KEEPEMPTY'", "'CONSECUTIVE'", "'DEDUP_SPLITVALUES'", "'PARTITIONS'", + "'ALLNUM'", "'DELIM'", "'CENTROIDS'", "'ITERATIONS'", "'DISTANCE_TYPE'", + "'NUMBER_OF_TREES'", "'SHINGLE_SIZE'", "'SAMPLE_SIZE'", "'OUTPUT_AFTER'", + "'TIME_DECAY'", "'ANOMALY_RATE'", "'CATEGORY_FIELD'", "'TIME_FIELD'", + "'TIME_ZONE'", "'TRAINING_DATA_SIZE'", "'ANOMALY_SCORE_THRESHOLD'", + "'CASE'", "'IN'", "'NOT'", "'OR'", "'AND'", "'XOR'", "'TRUE'", "'FALSE'", + "'REGEXP'", "'CONVERT_TZ'", "'DATETIME'", "'DAY'", "'DAY_HOUR'", + "'DAY_MICROSECOND'", "'DAY_MINUTE'", "'DAY_OF_YEAR'", "'DAY_SECOND'", + "'HOUR'", "'HOUR_MICROSECOND'", "'HOUR_MINUTE'", "'HOUR_OF_DAY'", + "'HOUR_SECOND'", "'INTERVAL'", "'MICROSECOND'", "'MILLISECOND'", + "'MINUTE'", "'MINUTE_MICROSECOND'", "'MINUTE_OF_DAY'", "'MINUTE_OF_HOUR'", + "'MINUTE_SECOND'", "'MONTH'", "'MONTH_OF_YEAR'", "'QUARTER'", "'SECOND'", + "'SECOND_MICROSECOND'", "'SECOND_OF_MINUTE'", "'WEEK'", "'WEEK_OF_YEAR'", + "'YEAR'", "'YEAR_MONTH'", "'DATAMODEL'", "'LOOKUP'", "'SAVEDSEARCH'", + "'INT'", "'INTEGER'", "'DOUBLE'", "'LONG'", "'FLOAT'", "'STRING'", + "'BOOLEAN'", "'|'", "','", "'.'", "'='", "'>'", "'<'", null, null, + null, "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "':'", "'('", "')'", + "'['", "']'", "'''", "'\"'", "'`'", "'~'", "'&'", "'^'", "'AVG'", + "'COUNT'", "'DISTINCT_COUNT'", "'ESTDC'", "'ESTDC_ERROR'", "'MAX'", + "'MEAN'", "'MEDIAN'", "'MIN'", "'MODE'", "'RANGE'", "'STDEV'", "'STDEVP'", + "'SUM'", "'SUMSQ'", "'VAR_SAMP'", "'VAR_POP'", "'STDDEV_SAMP'", + "'STDDEV_POP'", "'PERCENTILE'", "'TAKE'", "'FIRST'", "'LAST'", "'LIST'", + "'VALUES'", "'EARLIEST'", "'EARLIEST_TIME'", "'LATEST'", "'LATEST_TIME'", + "'PER_DAY'", "'PER_HOUR'", "'PER_MINUTE'", "'PER_SECOND'", "'RATE'", + "'SPARKLINE'", "'C'", "'DC'", "'ABS'", "'CBRT'", "'CEIL'", "'CEILING'", + "'CONV'", "'CRC32'", "'E'", "'EXP'", "'FLOOR'", "'LN'", "'LOG'", + "'LOG10'", "'LOG2'", "'MOD'", "'PI'", "'POSITION'", "'POW'", "'POWER'", + "'RAND'", "'ROUND'", "'SIGN'", "'SQRT'", "'TRUNCATE'", "'ACOS'", + "'ASIN'", "'ATAN'", "'ATAN2'", "'COS'", "'COT'", "'DEGREES'", "'RADIANS'", + "'SIN'", "'TAN'", "'ADDDATE'", "'ADDTIME'", "'CURDATE'", "'CURRENT_DATE'", + "'CURRENT_TIME'", "'CURRENT_TIMESTAMP'", "'CURTIME'", "'DATE'", + "'DATEDIFF'", "'DATE_ADD'", "'DATE_FORMAT'", "'DATE_SUB'", "'DAYNAME'", + "'DAYOFMONTH'", "'DAYOFWEEK'", "'DAYOFYEAR'", "'DAY_OF_MONTH'", + "'DAY_OF_WEEK'", "'EXTRACT'", "'FROM_DAYS'", "'FROM_UNIXTIME'", + "'GET_FORMAT'", "'LAST_DAY'", "'LOCALTIME'", "'LOCALTIMESTAMP'", + "'MAKEDATE'", "'MAKETIME'", "'MONTHNAME'", "'NOW'", "'PERIOD_ADD'", + "'PERIOD_DIFF'", "'SEC_TO_TIME'", "'STR_TO_DATE'", "'SUBDATE'", + "'SUBTIME'", "'SYSDATE'", "'TIME'", "'TIMEDIFF'", "'TIMESTAMP'", + "'TIMESTAMPADD'", "'TIMESTAMPDIFF'", "'TIME_FORMAT'", "'TIME_TO_SEC'", + "'TO_DAYS'", "'TO_SECONDS'", "'UNIX_TIMESTAMP'", "'UTC_DATE'", "'UTC_TIME'", + "'UTC_TIMESTAMP'", "'WEEKDAY'", "'YEARWEEK'", "'SUBSTR'", "'SUBSTRING'", + "'LTRIM'", "'RTRIM'", "'TRIM'", "'TO'", "'LOWER'", "'UPPER'", "'CONCAT'", + "'CONCAT_WS'", "'LENGTH'", "'STRCMP'", "'RIGHT'", "'LEFT'", "'ASCII'", + "'LOCATE'", "'REPLACE'", "'REVERSE'", "'CAST'", "'LIKE'", "'ISNULL'", + "'ISNOTNULL'", "'IFNULL'", "'NULLIF'", "'IF'", "'TYPEOF'", "'MATCH'", + "'MATCH_PHRASE'", "'MATCH_PHRASE_PREFIX'", "'MATCH_BOOL_PREFIX'", + "'SIMPLE_QUERY_STRING'", "'MULTI_MATCH'", "'QUERY_STRING'", "'ALLOW_LEADING_WILDCARD'", + "'ANALYZE_WILDCARD'", "'ANALYZER'", "'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY'", + "'BOOST'", "'CUTOFF_FREQUENCY'", "'DEFAULT_FIELD'", "'DEFAULT_OPERATOR'", + "'ENABLE_POSITION_INCREMENTS'", "'ESCAPE'", "'FLAGS'", "'FUZZY_MAX_EXPANSIONS'", + "'FUZZY_PREFIX_LENGTH'", "'FUZZY_TRANSPOSITIONS'", "'FUZZY_REWRITE'", + "'FUZZINESS'", "'LENIENT'", "'LOW_FREQ_OPERATOR'", "'MAX_DETERMINIZED_STATES'", + "'MAX_EXPANSIONS'", "'MINIMUM_SHOULD_MATCH'", "'OPERATOR'", "'PHRASE_SLOP'", + "'PREFIX_LENGTH'", "'QUOTE_ANALYZER'", "'QUOTE_FIELD_SUFFIX'", "'REWRITE'", + "'SLOP'", "'TIE_BREAKER'", "'TYPE'", "'ZERO_TERMS_QUERY'", "'SPAN'", + "'MS'", "'S'", "'M'", "'H'", "'W'", "'Q'", "'Y'" + ]; + + public static readonly symbolicNames = [ + null, "SPACE", "SEARCH", "DESCRIBE", "SHOW", "FROM", "WHERE", "FIELDS", + "RENAME", "STATS", "DEDUP", "SORT", "EVAL", "HEAD", "TOP", "RARE", + "PARSE", "METHOD", "REGEX", "PUNCT", "GROK", "PATTERN", "PATTERNS", + "NEW_FIELD", "KMEANS", "AD", "ML", "AS", "BY", "SOURCE", "INDEX", + "D", "DESC", "DATASOURCES", "SORTBY", "AUTO", "STR", "IP", "NUM", + "KEEPEMPTY", "CONSECUTIVE", "DEDUP_SPLITVALUES", "PARTITIONS", "ALLNUM", + "DELIM", "CENTROIDS", "ITERATIONS", "DISTANCE_TYPE", "NUMBER_OF_TREES", + "SHINGLE_SIZE", "SAMPLE_SIZE", "OUTPUT_AFTER", "TIME_DECAY", "ANOMALY_RATE", + "CATEGORY_FIELD", "TIME_FIELD", "TIME_ZONE", "TRAINING_DATA_SIZE", + "ANOMALY_SCORE_THRESHOLD", "CASE", "IN", "NOT", "OR", "AND", "XOR", + "TRUE", "FALSE", "REGEXP", "CONVERT_TZ", "DATETIME", "DAY", "DAY_HOUR", + "DAY_MICROSECOND", "DAY_MINUTE", "DAY_OF_YEAR", "DAY_SECOND", "HOUR", + "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_OF_DAY", "HOUR_SECOND", + "INTERVAL", "MICROSECOND", "MILLISECOND", "MINUTE", "MINUTE_MICROSECOND", + "MINUTE_OF_DAY", "MINUTE_OF_HOUR", "MINUTE_SECOND", "MONTH", "MONTH_OF_YEAR", + "QUARTER", "SECOND", "SECOND_MICROSECOND", "SECOND_OF_MINUTE", "WEEK", + "WEEK_OF_YEAR", "YEAR", "YEAR_MONTH", "DATAMODEL", "LOOKUP", "SAVEDSEARCH", + "INT", "INTEGER", "DOUBLE", "LONG", "FLOAT", "STRING", "BOOLEAN", + "PIPE", "COMMA", "DOT", "EQUAL", "GREATER", "LESS", "NOT_GREATER", + "NOT_LESS", "NOT_EQUAL", "PLUS", "MINUS", "STAR", "DIVIDE", "MODULE", + "EXCLAMATION_SYMBOL", "COLON", "LT_PRTHS", "RT_PRTHS", "LT_SQR_PRTHS", + "RT_SQR_PRTHS", "SINGLE_QUOTE", "DOUBLE_QUOTE", "BACKTICK", "BIT_NOT_OP", + "BIT_AND_OP", "BIT_XOR_OP", "AVG", "COUNT", "DISTINCT_COUNT", "ESTDC", + "ESTDC_ERROR", "MAX", "MEAN", "MEDIAN", "MIN", "MODE", "RANGE", + "STDEV", "STDEVP", "SUM", "SUMSQ", "VAR_SAMP", "VAR_POP", "STDDEV_SAMP", + "STDDEV_POP", "PERCENTILE", "TAKE", "FIRST", "LAST", "LIST", "VALUES", + "EARLIEST", "EARLIEST_TIME", "LATEST", "LATEST_TIME", "PER_DAY", + "PER_HOUR", "PER_MINUTE", "PER_SECOND", "RATE", "SPARKLINE", "C", + "DC", "ABS", "CBRT", "CEIL", "CEILING", "CONV", "CRC32", "E", "EXP", + "FLOOR", "LN", "LOG", "LOG10", "LOG2", "MOD", "PI", "POSITION", + "POW", "POWER", "RAND", "ROUND", "SIGN", "SQRT", "TRUNCATE", "ACOS", + "ASIN", "ATAN", "ATAN2", "COS", "COT", "DEGREES", "RADIANS", "SIN", + "TAN", "ADDDATE", "ADDTIME", "CURDATE", "CURRENT_DATE", "CURRENT_TIME", + "CURRENT_TIMESTAMP", "CURTIME", "DATE", "DATEDIFF", "DATE_ADD", + "DATE_FORMAT", "DATE_SUB", "DAYNAME", "DAYOFMONTH", "DAYOFWEEK", + "DAYOFYEAR", "DAY_OF_MONTH", "DAY_OF_WEEK", "EXTRACT", "FROM_DAYS", + "FROM_UNIXTIME", "GET_FORMAT", "LAST_DAY", "LOCALTIME", "LOCALTIMESTAMP", + "MAKEDATE", "MAKETIME", "MONTHNAME", "NOW", "PERIOD_ADD", "PERIOD_DIFF", + "SEC_TO_TIME", "STR_TO_DATE", "SUBDATE", "SUBTIME", "SYSDATE", "TIME", + "TIMEDIFF", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TIME_FORMAT", + "TIME_TO_SEC", "TO_DAYS", "TO_SECONDS", "UNIX_TIMESTAMP", "UTC_DATE", + "UTC_TIME", "UTC_TIMESTAMP", "WEEKDAY", "YEARWEEK", "SUBSTR", "SUBSTRING", + "LTRIM", "RTRIM", "TRIM", "TO", "LOWER", "UPPER", "CONCAT", "CONCAT_WS", + "LENGTH", "STRCMP", "RIGHT", "LEFT", "ASCII", "LOCATE", "REPLACE", + "REVERSE", "CAST", "LIKE", "ISNULL", "ISNOTNULL", "IFNULL", "NULLIF", + "IF", "TYPEOF", "MATCH", "MATCH_PHRASE", "MATCH_PHRASE_PREFIX", + "MATCH_BOOL_PREFIX", "SIMPLE_QUERY_STRING", "MULTI_MATCH", "QUERY_STRING", + "ALLOW_LEADING_WILDCARD", "ANALYZE_WILDCARD", "ANALYZER", "AUTO_GENERATE_SYNONYMS_PHRASE_QUERY", + "BOOST", "CUTOFF_FREQUENCY", "DEFAULT_FIELD", "DEFAULT_OPERATOR", + "ENABLE_POSITION_INCREMENTS", "ESCAPE", "FLAGS", "FUZZY_MAX_EXPANSIONS", + "FUZZY_PREFIX_LENGTH", "FUZZY_TRANSPOSITIONS", "FUZZY_REWRITE", + "FUZZINESS", "LENIENT", "LOW_FREQ_OPERATOR", "MAX_DETERMINIZED_STATES", + "MAX_EXPANSIONS", "MINIMUM_SHOULD_MATCH", "OPERATOR", "PHRASE_SLOP", + "PREFIX_LENGTH", "QUOTE_ANALYZER", "QUOTE_FIELD_SUFFIX", "REWRITE", + "SLOP", "TIE_BREAKER", "TYPE", "ZERO_TERMS_QUERY", "SPAN", "MS", + "S", "M", "H", "W", "Q", "Y", "ID", "CLUSTER", "INTEGER_LITERAL", + "DECIMAL_LITERAL", "ID_DATE_SUFFIX", "DQUOTA_STRING", "SQUOTA_STRING", + "BQUOTA_STRING", "ERROR_RECOGNITION" + ]; + public static readonly ruleNames = [ + "root", "pplStatement", "dmlStatement", "queryStatement", "pplCommands", + "commands", "searchCommand", "describeCommand", "showDataSourcesCommand", + "whereCommand", "fieldsCommand", "renameCommand", "statsCommand", + "dedupCommand", "sortCommand", "evalCommand", "headCommand", "topCommand", + "rareCommand", "grokCommand", "parseCommand", "patternsCommand", + "patternsParameter", "patternsMethod", "kmeansCommand", "kmeansParameter", + "adCommand", "adParameter", "mlCommand", "mlArg", "fromClause", + "tableSourceClause", "renameClasue", "byClause", "statsByClause", + "bySpanClause", "spanClause", "sortbyClause", "evalClause", "statsAggTerm", + "statsFunction", "statsFunctionName", "takeAggFunction", "percentileAggFunction", + "expression", "logicalExpression", "comparisonExpression", "valueExpression", + "primaryExpression", "positionFunction", "booleanExpression", "relevanceExpression", + "singleFieldRelevanceFunction", "multiFieldRelevanceFunction", "tableSource", + "tableFunction", "fieldList", "wcFieldList", "sortField", "sortFieldExpression", + "fieldExpression", "wcFieldExpression", "evalFunctionCall", "dataTypeFunctionCall", + "booleanFunctionCall", "convertedDataType", "evalFunctionName", + "functionArgs", "functionArg", "relevanceArg", "relevanceArgName", + "relevanceFieldAndWeight", "relevanceFieldWeight", "relevanceField", + "relevanceQuery", "relevanceArgValue", "mathematicalFunctionName", + "trigonometricFunctionName", "dateTimeFunctionName", "getFormatFunction", + "getFormatType", "extractFunction", "simpleDateTimePart", "complexDateTimePart", + "datetimePart", "timestampFunction", "timestampFunctionName", "conditionFunctionBase", + "systemFunctionName", "textFunctionName", "positionFunctionName", + "comparisonOperator", "singleFieldRelevanceFunctionName", "multiFieldRelevanceFunctionName", + "literalValue", "intervalLiteral", "stringLiteral", "integerLiteral", + "decimalLiteral", "booleanLiteral", "datetimeLiteral", "dateLiteral", + "timeLiteral", "timestampLiteral", "intervalUnit", "timespanUnit", + "valueList", "qualifiedName", "tableQualifiedName", "wcQualifiedName", + "ident", "tableIdent", "wildcard", "keywordsCanBeId", + ]; + + public get grammarFileName(): string { return "OpenSearchPPLParser.g4"; } + public get literalNames(): (string | null)[] { return OpenSearchPPLParser.literalNames; } + public get symbolicNames(): (string | null)[] { return OpenSearchPPLParser.symbolicNames; } + public get ruleNames(): string[] { return OpenSearchPPLParser.ruleNames; } + public get serializedATN(): number[] { return OpenSearchPPLParser._serializedATN; } + + protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException { + return new antlr.FailedPredicateException(this, predicate, message); + } + + public constructor(input: antlr.TokenStream) { + super(input); + this.interpreter = new antlr.ParserATNSimulator(this, OpenSearchPPLParser._ATN, OpenSearchPPLParser.decisionsToDFA, new antlr.PredictionContextCache()); + } + public root(): RootContext { + let localContext = new RootContext(this.context, this.state); + this.enterRule(localContext, 0, OpenSearchPPLParser.RULE_root); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 229; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3892314108) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 671088631) !== 0) || ((((_la - 65)) & ~0x1F) === 0 && ((1 << (_la - 65)) & 4294967291) !== 0) || ((((_la - 97)) & ~0x1F) === 0 && ((1 << (_la - 97)) & 274743299) !== 0) || ((((_la - 131)) & ~0x1F) === 0 && ((1 << (_la - 131)) & 4294967281) !== 0) || ((((_la - 163)) & ~0x1F) === 0 && ((1 << (_la - 163)) & 4294967295) !== 0) || ((((_la - 195)) & ~0x1F) === 0 && ((1 << (_la - 195)) & 4294967295) !== 0) || ((((_la - 227)) & ~0x1F) === 0 && ((1 << (_la - 227)) & 4294967295) !== 0) || ((((_la - 259)) & ~0x1F) === 0 && ((1 << (_la - 259)) & 4294967291) !== 0) || ((((_la - 291)) & ~0x1F) === 0 && ((1 << (_la - 291)) & 4294967295) !== 0) || ((((_la - 323)) & ~0x1F) === 0 && ((1 << (_la - 323)) & 7615) !== 0)) { + { + this.state = 228; + this.pplStatement(); + } + } + + this.state = 231; + this.match(OpenSearchPPLParser.EOF); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public pplStatement(): PplStatementContext { + let localContext = new PplStatementContext(this.context, this.state); + this.enterRule(localContext, 2, OpenSearchPPLParser.RULE_pplStatement); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 233; + this.dmlStatement(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public dmlStatement(): DmlStatementContext { + let localContext = new DmlStatementContext(this.context, this.state); + this.enterRule(localContext, 4, OpenSearchPPLParser.RULE_dmlStatement); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 235; + this.queryStatement(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public queryStatement(): QueryStatementContext { + let localContext = new QueryStatementContext(this.context, this.state); + this.enterRule(localContext, 6, OpenSearchPPLParser.RULE_queryStatement); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 237; + this.pplCommands(); + this.state = 242; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 109) { + { + { + this.state = 238; + this.match(OpenSearchPPLParser.PIPE); + this.state = 239; + this.commands(); + } + } + this.state = 244; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public pplCommands(): PplCommandsContext { + let localContext = new PplCommandsContext(this.context, this.state); + this.enterRule(localContext, 8, OpenSearchPPLParser.RULE_pplCommands); + try { + this.state = 248; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 2, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 245; + this.searchCommand(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 246; + this.describeCommand(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 247; + this.showDataSourcesCommand(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public commands(): CommandsContext { + let localContext = new CommandsContext(this.context, this.state); + this.enterRule(localContext, 10, OpenSearchPPLParser.RULE_commands); + try { + this.state = 266; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.WHERE: + this.enterOuterAlt(localContext, 1); + { + this.state = 250; + this.whereCommand(); + } + break; + case OpenSearchPPLParser.FIELDS: + this.enterOuterAlt(localContext, 2); + { + this.state = 251; + this.fieldsCommand(); + } + break; + case OpenSearchPPLParser.RENAME: + this.enterOuterAlt(localContext, 3); + { + this.state = 252; + this.renameCommand(); + } + break; + case OpenSearchPPLParser.STATS: + this.enterOuterAlt(localContext, 4); + { + this.state = 253; + this.statsCommand(); + } + break; + case OpenSearchPPLParser.DEDUP: + this.enterOuterAlt(localContext, 5); + { + this.state = 254; + this.dedupCommand(); + } + break; + case OpenSearchPPLParser.SORT: + this.enterOuterAlt(localContext, 6); + { + this.state = 255; + this.sortCommand(); + } + break; + case OpenSearchPPLParser.EVAL: + this.enterOuterAlt(localContext, 7); + { + this.state = 256; + this.evalCommand(); + } + break; + case OpenSearchPPLParser.HEAD: + this.enterOuterAlt(localContext, 8); + { + this.state = 257; + this.headCommand(); + } + break; + case OpenSearchPPLParser.TOP: + this.enterOuterAlt(localContext, 9); + { + this.state = 258; + this.topCommand(); + } + break; + case OpenSearchPPLParser.RARE: + this.enterOuterAlt(localContext, 10); + { + this.state = 259; + this.rareCommand(); + } + break; + case OpenSearchPPLParser.GROK: + this.enterOuterAlt(localContext, 11); + { + this.state = 260; + this.grokCommand(); + } + break; + case OpenSearchPPLParser.PARSE: + this.enterOuterAlt(localContext, 12); + { + this.state = 261; + this.parseCommand(); + } + break; + case OpenSearchPPLParser.PATTERNS: + this.enterOuterAlt(localContext, 13); + { + this.state = 262; + this.patternsCommand(); + } + break; + case OpenSearchPPLParser.KMEANS: + this.enterOuterAlt(localContext, 14); + { + this.state = 263; + this.kmeansCommand(); + } + break; + case OpenSearchPPLParser.AD: + this.enterOuterAlt(localContext, 15); + { + this.state = 264; + this.adCommand(); + } + break; + case OpenSearchPPLParser.ML: + this.enterOuterAlt(localContext, 16); + { + this.state = 265; + this.mlCommand(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public searchCommand(): SearchCommandContext { + let localContext = new SearchCommandContext(this.context, this.state); + this.enterRule(localContext, 12, OpenSearchPPLParser.RULE_searchCommand); + let _la: number; + try { + this.state = 284; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 7, this.context) ) { + case 1: + localContext = new SearchFromContext(localContext); + this.enterOuterAlt(localContext, 1); + { + this.state = 269; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 2) { + { + this.state = 268; + this.match(OpenSearchPPLParser.SEARCH); + } + } + + this.state = 271; + this.fromClause(); + } + break; + case 2: + localContext = new SearchFromFilterContext(localContext); + this.enterOuterAlt(localContext, 2); + { + this.state = 273; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 2) { + { + this.state = 272; + this.match(OpenSearchPPLParser.SEARCH); + } + } + + this.state = 275; + this.fromClause(); + this.state = 276; + this.logicalExpression(0); + } + break; + case 3: + localContext = new SearchFilterFromContext(localContext); + this.enterOuterAlt(localContext, 3); + { + this.state = 279; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 6, this.context) ) { + case 1: + { + this.state = 278; + this.match(OpenSearchPPLParser.SEARCH); + } + break; + } + this.state = 281; + this.logicalExpression(0); + this.state = 282; + this.fromClause(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public describeCommand(): DescribeCommandContext { + let localContext = new DescribeCommandContext(this.context, this.state); + this.enterRule(localContext, 14, OpenSearchPPLParser.RULE_describeCommand); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 286; + this.match(OpenSearchPPLParser.DESCRIBE); + this.state = 287; + this.tableSourceClause(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public showDataSourcesCommand(): ShowDataSourcesCommandContext { + let localContext = new ShowDataSourcesCommandContext(this.context, this.state); + this.enterRule(localContext, 16, OpenSearchPPLParser.RULE_showDataSourcesCommand); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 289; + this.match(OpenSearchPPLParser.SHOW); + this.state = 290; + this.match(OpenSearchPPLParser.DATASOURCES); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public whereCommand(): WhereCommandContext { + let localContext = new WhereCommandContext(this.context, this.state); + this.enterRule(localContext, 18, OpenSearchPPLParser.RULE_whereCommand); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 292; + this.match(OpenSearchPPLParser.WHERE); + this.state = 293; + this.logicalExpression(0); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public fieldsCommand(): FieldsCommandContext { + let localContext = new FieldsCommandContext(this.context, this.state); + this.enterRule(localContext, 20, OpenSearchPPLParser.RULE_fieldsCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 295; + this.match(OpenSearchPPLParser.FIELDS); + this.state = 297; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119) { + { + this.state = 296; + _la = this.tokenStream.LA(1); + if(!(_la === 118 || _la === 119)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + + this.state = 299; + this.fieldList(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public renameCommand(): RenameCommandContext { + let localContext = new RenameCommandContext(this.context, this.state); + this.enterRule(localContext, 22, OpenSearchPPLParser.RULE_renameCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 301; + this.match(OpenSearchPPLParser.RENAME); + this.state = 302; + this.renameClasue(); + this.state = 307; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 303; + this.match(OpenSearchPPLParser.COMMA); + this.state = 304; + this.renameClasue(); + } + } + this.state = 309; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public statsCommand(): StatsCommandContext { + let localContext = new StatsCommandContext(this.context, this.state); + this.enterRule(localContext, 24, OpenSearchPPLParser.RULE_statsCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 310; + this.match(OpenSearchPPLParser.STATS); + this.state = 314; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 42) { + { + this.state = 311; + this.match(OpenSearchPPLParser.PARTITIONS); + this.state = 312; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 313; + localContext._partitions = this.integerLiteral(); + } + } + + this.state = 319; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 43) { + { + this.state = 316; + this.match(OpenSearchPPLParser.ALLNUM); + this.state = 317; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 318; + localContext._allnum = this.booleanLiteral(); + } + } + + this.state = 324; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 44) { + { + this.state = 321; + this.match(OpenSearchPPLParser.DELIM); + this.state = 322; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 323; + localContext._delim = this.stringLiteral(); + } + } + + this.state = 326; + this.statsAggTerm(); + this.state = 331; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 327; + this.match(OpenSearchPPLParser.COMMA); + this.state = 328; + this.statsAggTerm(); + } + } + this.state = 333; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 335; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 28) { + { + this.state = 334; + this.statsByClause(); + } + } + + this.state = 340; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 41) { + { + this.state = 337; + this.match(OpenSearchPPLParser.DEDUP_SPLITVALUES); + this.state = 338; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 339; + localContext._dedupsplit = this.booleanLiteral(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public dedupCommand(): DedupCommandContext { + let localContext = new DedupCommandContext(this.context, this.state); + this.enterRule(localContext, 26, OpenSearchPPLParser.RULE_dedupCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 342; + this.match(OpenSearchPPLParser.DEDUP); + this.state = 344; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119 || _la === 330) { + { + this.state = 343; + localContext._number_ = this.integerLiteral(); + } + } + + this.state = 346; + this.fieldList(); + this.state = 350; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 39) { + { + this.state = 347; + this.match(OpenSearchPPLParser.KEEPEMPTY); + this.state = 348; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 349; + localContext._keepempty = this.booleanLiteral(); + } + } + + this.state = 355; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 40) { + { + this.state = 352; + this.match(OpenSearchPPLParser.CONSECUTIVE); + this.state = 353; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 354; + localContext._consecutive = this.booleanLiteral(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public sortCommand(): SortCommandContext { + let localContext = new SortCommandContext(this.context, this.state); + this.enterRule(localContext, 28, OpenSearchPPLParser.RULE_sortCommand); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 357; + this.match(OpenSearchPPLParser.SORT); + this.state = 358; + this.sortbyClause(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public evalCommand(): EvalCommandContext { + let localContext = new EvalCommandContext(this.context, this.state); + this.enterRule(localContext, 30, OpenSearchPPLParser.RULE_evalCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 360; + this.match(OpenSearchPPLParser.EVAL); + this.state = 361; + this.evalClause(); + this.state = 366; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 362; + this.match(OpenSearchPPLParser.COMMA); + this.state = 363; + this.evalClause(); + } + } + this.state = 368; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public headCommand(): HeadCommandContext { + let localContext = new HeadCommandContext(this.context, this.state); + this.enterRule(localContext, 32, OpenSearchPPLParser.RULE_headCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 369; + this.match(OpenSearchPPLParser.HEAD); + this.state = 371; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119 || _la === 330) { + { + this.state = 370; + localContext._number_ = this.integerLiteral(); + } + } + + this.state = 375; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 5) { + { + this.state = 373; + this.match(OpenSearchPPLParser.FROM); + this.state = 374; + localContext._from_ = this.integerLiteral(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public topCommand(): TopCommandContext { + let localContext = new TopCommandContext(this.context, this.state); + this.enterRule(localContext, 34, OpenSearchPPLParser.RULE_topCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 377; + this.match(OpenSearchPPLParser.TOP); + this.state = 379; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119 || _la === 330) { + { + this.state = 378; + localContext._number_ = this.integerLiteral(); + } + } + + this.state = 381; + this.fieldList(); + this.state = 383; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 28) { + { + this.state = 382; + this.byClause(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public rareCommand(): RareCommandContext { + let localContext = new RareCommandContext(this.context, this.state); + this.enterRule(localContext, 36, OpenSearchPPLParser.RULE_rareCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 385; + this.match(OpenSearchPPLParser.RARE); + this.state = 386; + this.fieldList(); + this.state = 388; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 28) { + { + this.state = 387; + this.byClause(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public grokCommand(): GrokCommandContext { + let localContext = new GrokCommandContext(this.context, this.state); + this.enterRule(localContext, 38, OpenSearchPPLParser.RULE_grokCommand); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 390; + this.match(OpenSearchPPLParser.GROK); + { + this.state = 391; + localContext._source_field = this.expression(); + } + { + this.state = 392; + localContext._pattern = this.stringLiteral(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public parseCommand(): ParseCommandContext { + let localContext = new ParseCommandContext(this.context, this.state); + this.enterRule(localContext, 40, OpenSearchPPLParser.RULE_parseCommand); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 394; + this.match(OpenSearchPPLParser.PARSE); + { + this.state = 395; + localContext._source_field = this.expression(); + } + { + this.state = 396; + localContext._pattern = this.stringLiteral(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public patternsCommand(): PatternsCommandContext { + let localContext = new PatternsCommandContext(this.context, this.state); + this.enterRule(localContext, 42, OpenSearchPPLParser.RULE_patternsCommand); + try { + let alternative: number; + this.enterOuterAlt(localContext, 1); + { + this.state = 398; + this.match(OpenSearchPPLParser.PATTERNS); + this.state = 402; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 25, this.context); + while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { + if (alternative === 1) { + { + { + this.state = 399; + this.patternsParameter(); + } + } + } + this.state = 404; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 25, this.context); + } + { + this.state = 405; + localContext._source_field = this.expression(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public patternsParameter(): PatternsParameterContext { + let localContext = new PatternsParameterContext(this.context, this.state); + this.enterRule(localContext, 44, OpenSearchPPLParser.RULE_patternsParameter); + try { + this.state = 413; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.NEW_FIELD: + this.enterOuterAlt(localContext, 1); + { + { + this.state = 407; + this.match(OpenSearchPPLParser.NEW_FIELD); + this.state = 408; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 409; + localContext._new_field = this.stringLiteral(); + } + } + break; + case OpenSearchPPLParser.PATTERN: + this.enterOuterAlt(localContext, 2); + { + { + this.state = 410; + this.match(OpenSearchPPLParser.PATTERN); + this.state = 411; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 412; + localContext._pattern = this.stringLiteral(); + } + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public patternsMethod(): PatternsMethodContext { + let localContext = new PatternsMethodContext(this.context, this.state); + this.enterRule(localContext, 46, OpenSearchPPLParser.RULE_patternsMethod); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 415; + _la = this.tokenStream.LA(1); + if(!(_la === 18 || _la === 19)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public kmeansCommand(): KmeansCommandContext { + let localContext = new KmeansCommandContext(this.context, this.state); + this.enterRule(localContext, 48, OpenSearchPPLParser.RULE_kmeansCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 417; + this.match(OpenSearchPPLParser.KMEANS); + this.state = 421; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (((((_la - 45)) & ~0x1F) === 0 && ((1 << (_la - 45)) & 7) !== 0)) { + { + { + this.state = 418; + this.kmeansParameter(); + } + } + this.state = 423; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public kmeansParameter(): KmeansParameterContext { + let localContext = new KmeansParameterContext(this.context, this.state); + this.enterRule(localContext, 50, OpenSearchPPLParser.RULE_kmeansParameter); + try { + this.state = 433; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.CENTROIDS: + this.enterOuterAlt(localContext, 1); + { + { + this.state = 424; + this.match(OpenSearchPPLParser.CENTROIDS); + this.state = 425; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 426; + localContext._centroids = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.ITERATIONS: + this.enterOuterAlt(localContext, 2); + { + { + this.state = 427; + this.match(OpenSearchPPLParser.ITERATIONS); + this.state = 428; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 429; + localContext._iterations = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.DISTANCE_TYPE: + this.enterOuterAlt(localContext, 3); + { + { + this.state = 430; + this.match(OpenSearchPPLParser.DISTANCE_TYPE); + this.state = 431; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 432; + localContext._distance_type = this.stringLiteral(); + } + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public adCommand(): AdCommandContext { + let localContext = new AdCommandContext(this.context, this.state); + this.enterRule(localContext, 52, OpenSearchPPLParser.RULE_adCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 435; + this.match(OpenSearchPPLParser.AD); + this.state = 439; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (((((_la - 48)) & ~0x1F) === 0 && ((1 << (_la - 48)) & 2047) !== 0) || _la === 215) { + { + { + this.state = 436; + this.adParameter(); + } + } + this.state = 441; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public adParameter(): AdParameterContext { + let localContext = new AdParameterContext(this.context, this.state); + this.enterRule(localContext, 54, OpenSearchPPLParser.RULE_adParameter); + try { + this.state = 478; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.NUMBER_OF_TREES: + this.enterOuterAlt(localContext, 1); + { + { + this.state = 442; + this.match(OpenSearchPPLParser.NUMBER_OF_TREES); + this.state = 443; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 444; + localContext._number_of_trees = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.SHINGLE_SIZE: + this.enterOuterAlt(localContext, 2); + { + { + this.state = 445; + this.match(OpenSearchPPLParser.SHINGLE_SIZE); + this.state = 446; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 447; + localContext._shingle_size = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.SAMPLE_SIZE: + this.enterOuterAlt(localContext, 3); + { + { + this.state = 448; + this.match(OpenSearchPPLParser.SAMPLE_SIZE); + this.state = 449; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 450; + localContext._sample_size = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.OUTPUT_AFTER: + this.enterOuterAlt(localContext, 4); + { + { + this.state = 451; + this.match(OpenSearchPPLParser.OUTPUT_AFTER); + this.state = 452; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 453; + localContext._output_after = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.TIME_DECAY: + this.enterOuterAlt(localContext, 5); + { + { + this.state = 454; + this.match(OpenSearchPPLParser.TIME_DECAY); + this.state = 455; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 456; + localContext._time_decay = this.decimalLiteral(); + } + } + break; + case OpenSearchPPLParser.ANOMALY_RATE: + this.enterOuterAlt(localContext, 6); + { + { + this.state = 457; + this.match(OpenSearchPPLParser.ANOMALY_RATE); + this.state = 458; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 459; + localContext._anomaly_rate = this.decimalLiteral(); + } + } + break; + case OpenSearchPPLParser.CATEGORY_FIELD: + this.enterOuterAlt(localContext, 7); + { + { + this.state = 460; + this.match(OpenSearchPPLParser.CATEGORY_FIELD); + this.state = 461; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 462; + localContext._category_field = this.stringLiteral(); + } + } + break; + case OpenSearchPPLParser.TIME_FIELD: + this.enterOuterAlt(localContext, 8); + { + { + this.state = 463; + this.match(OpenSearchPPLParser.TIME_FIELD); + this.state = 464; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 465; + localContext._time_field = this.stringLiteral(); + } + } + break; + case OpenSearchPPLParser.DATE_FORMAT: + this.enterOuterAlt(localContext, 9); + { + { + this.state = 466; + this.match(OpenSearchPPLParser.DATE_FORMAT); + this.state = 467; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 468; + localContext._date_format = this.stringLiteral(); + } + } + break; + case OpenSearchPPLParser.TIME_ZONE: + this.enterOuterAlt(localContext, 10); + { + { + this.state = 469; + this.match(OpenSearchPPLParser.TIME_ZONE); + this.state = 470; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 471; + localContext._time_zone = this.stringLiteral(); + } + } + break; + case OpenSearchPPLParser.TRAINING_DATA_SIZE: + this.enterOuterAlt(localContext, 11); + { + { + this.state = 472; + this.match(OpenSearchPPLParser.TRAINING_DATA_SIZE); + this.state = 473; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 474; + localContext._training_data_size = this.integerLiteral(); + } + } + break; + case OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD: + this.enterOuterAlt(localContext, 12); + { + { + this.state = 475; + this.match(OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD); + this.state = 476; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 477; + localContext._anomaly_score_threshold = this.decimalLiteral(); + } + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public mlCommand(): MlCommandContext { + let localContext = new MlCommandContext(this.context, this.state); + this.enterRule(localContext, 56, OpenSearchPPLParser.RULE_mlCommand); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 480; + this.match(OpenSearchPPLParser.ML); + this.state = 484; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3892314108) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 134217719) !== 0) || ((((_la - 68)) & ~0x1F) === 0 && ((1 << (_la - 68)) & 2147475455) !== 0) || ((((_la - 111)) & ~0x1F) === 0 && ((1 << (_la - 111)) & 4279238657) !== 0) || ((((_la - 143)) & ~0x1F) === 0 && ((1 << (_la - 143)) & 4294967295) !== 0) || ((((_la - 175)) & ~0x1F) === 0 && ((1 << (_la - 175)) & 4294967295) !== 0) || ((((_la - 207)) & ~0x1F) === 0 && ((1 << (_la - 207)) & 4294377471) !== 0) || ((((_la - 239)) & ~0x1F) === 0 && ((1 << (_la - 239)) & 4290772895) !== 0) || ((((_la - 271)) & ~0x1F) === 0 && ((1 << (_la - 271)) & 4294707191) !== 0) || ((((_la - 303)) & ~0x1F) === 0 && ((1 << (_la - 303)) & 67108863) !== 0) || _la === 335) { + { + { + this.state = 481; + this.mlArg(); + } + } + this.state = 486; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public mlArg(): MlArgContext { + let localContext = new MlArgContext(this.context, this.state); + this.enterRule(localContext, 58, OpenSearchPPLParser.RULE_mlArg); + try { + this.enterOuterAlt(localContext, 1); + { + { + this.state = 487; + localContext._argName = this.ident(); + this.state = 488; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 489; + localContext._argValue = this.literalValue(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public fromClause(): FromClauseContext { + let localContext = new FromClauseContext(this.context, this.state); + this.enterRule(localContext, 60, OpenSearchPPLParser.RULE_fromClause); + try { + this.state = 503; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 32, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 491; + this.match(OpenSearchPPLParser.SOURCE); + this.state = 492; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 493; + this.tableSourceClause(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 494; + this.match(OpenSearchPPLParser.INDEX); + this.state = 495; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 496; + this.tableSourceClause(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 497; + this.match(OpenSearchPPLParser.SOURCE); + this.state = 498; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 499; + this.tableFunction(); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 500; + this.match(OpenSearchPPLParser.INDEX); + this.state = 501; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 502; + this.tableFunction(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public tableSourceClause(): TableSourceClauseContext { + let localContext = new TableSourceClauseContext(this.context, this.state); + this.enterRule(localContext, 62, OpenSearchPPLParser.RULE_tableSourceClause); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 505; + this.tableSource(); + this.state = 510; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 506; + this.match(OpenSearchPPLParser.COMMA); + this.state = 507; + this.tableSource(); + } + } + this.state = 512; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public renameClasue(): RenameClasueContext { + let localContext = new RenameClasueContext(this.context, this.state); + this.enterRule(localContext, 64, OpenSearchPPLParser.RULE_renameClasue); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 513; + localContext._orignalField = this.wcFieldExpression(); + this.state = 514; + this.match(OpenSearchPPLParser.AS); + this.state = 515; + localContext._renamedField = this.wcFieldExpression(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public byClause(): ByClauseContext { + let localContext = new ByClauseContext(this.context, this.state); + this.enterRule(localContext, 66, OpenSearchPPLParser.RULE_byClause); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 517; + this.match(OpenSearchPPLParser.BY); + this.state = 518; + this.fieldList(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public statsByClause(): StatsByClauseContext { + let localContext = new StatsByClauseContext(this.context, this.state); + this.enterRule(localContext, 68, OpenSearchPPLParser.RULE_statsByClause); + try { + this.state = 529; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 34, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 520; + this.match(OpenSearchPPLParser.BY); + this.state = 521; + this.fieldList(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 522; + this.match(OpenSearchPPLParser.BY); + this.state = 523; + this.bySpanClause(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 524; + this.match(OpenSearchPPLParser.BY); + this.state = 525; + this.bySpanClause(); + this.state = 526; + this.match(OpenSearchPPLParser.COMMA); + this.state = 527; + this.fieldList(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public bySpanClause(): BySpanClauseContext { + let localContext = new BySpanClauseContext(this.context, this.state); + this.enterRule(localContext, 70, OpenSearchPPLParser.RULE_bySpanClause); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 531; + this.spanClause(); + this.state = 534; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 27) { + { + this.state = 532; + this.match(OpenSearchPPLParser.AS); + this.state = 533; + localContext._alias = this.qualifiedName(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public spanClause(): SpanClauseContext { + let localContext = new SpanClauseContext(this.context, this.state); + this.enterRule(localContext, 72, OpenSearchPPLParser.RULE_spanClause); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 536; + this.match(OpenSearchPPLParser.SPAN); + this.state = 537; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 538; + this.fieldExpression(); + this.state = 539; + this.match(OpenSearchPPLParser.COMMA); + this.state = 540; + localContext._value = this.literalValue(); + this.state = 542; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 31 || ((((_la - 70)) & ~0x1F) === 0 && ((1 << (_la - 70)) & 174612545) !== 0) || ((((_la - 321)) & ~0x1F) === 0 && ((1 << (_la - 321)) & 127) !== 0)) { + { + this.state = 541; + localContext._unit = this.timespanUnit(); + } + } + + this.state = 544; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public sortbyClause(): SortbyClauseContext { + let localContext = new SortbyClauseContext(this.context, this.state); + this.enterRule(localContext, 74, OpenSearchPPLParser.RULE_sortbyClause); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 546; + this.sortField(); + this.state = 551; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 547; + this.match(OpenSearchPPLParser.COMMA); + this.state = 548; + this.sortField(); + } + } + this.state = 553; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public evalClause(): EvalClauseContext { + let localContext = new EvalClauseContext(this.context, this.state); + this.enterRule(localContext, 76, OpenSearchPPLParser.RULE_evalClause); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 554; + this.fieldExpression(); + this.state = 555; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 556; + this.expression(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public statsAggTerm(): StatsAggTermContext { + let localContext = new StatsAggTermContext(this.context, this.state); + this.enterRule(localContext, 78, OpenSearchPPLParser.RULE_statsAggTerm); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 558; + this.statsFunction(); + this.state = 561; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 27) { + { + this.state = 559; + this.match(OpenSearchPPLParser.AS); + this.state = 560; + localContext._alias = this.wcFieldExpression(); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public statsFunction(): StatsFunctionContext { + let localContext = new StatsFunctionContext(this.context, this.state); + this.enterRule(localContext, 80, OpenSearchPPLParser.RULE_statsFunction); + let _la: number; + try { + this.state = 578; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 39, this.context) ) { + case 1: + localContext = new StatsFunctionCallContext(localContext); + this.enterOuterAlt(localContext, 1); + { + this.state = 563; + this.statsFunctionName(); + this.state = 564; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 565; + this.valueExpression(0); + this.state = 566; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + case 2: + localContext = new CountAllFunctionCallContext(localContext); + this.enterOuterAlt(localContext, 2); + { + this.state = 568; + this.match(OpenSearchPPLParser.COUNT); + this.state = 569; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 570; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + case 3: + localContext = new DistinctCountFunctionCallContext(localContext); + this.enterOuterAlt(localContext, 3); + { + this.state = 571; + _la = this.tokenStream.LA(1); + if(!(_la === 137 || _la === 171)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + this.state = 572; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 573; + this.valueExpression(0); + this.state = 574; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + case 4: + localContext = new PercentileAggFunctionCallContext(localContext); + this.enterOuterAlt(localContext, 4); + { + this.state = 576; + this.percentileAggFunction(); + } + break; + case 5: + localContext = new TakeAggFunctionCallContext(localContext); + this.enterOuterAlt(localContext, 5); + { + this.state = 577; + this.takeAggFunction(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public statsFunctionName(): StatsFunctionNameContext { + let localContext = new StatsFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 82, OpenSearchPPLParser.RULE_statsFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 580; + _la = this.tokenStream.LA(1); + if(!(((((_la - 135)) & ~0x1F) === 0 && ((1 << (_la - 135)) & 500003) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public takeAggFunction(): TakeAggFunctionContext { + let localContext = new TakeAggFunctionContext(this.context, this.state); + this.enterRule(localContext, 84, OpenSearchPPLParser.RULE_takeAggFunction); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 582; + this.match(OpenSearchPPLParser.TAKE); + this.state = 583; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 584; + this.fieldExpression(); + this.state = 587; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 110) { + { + this.state = 585; + this.match(OpenSearchPPLParser.COMMA); + this.state = 586; + localContext._size = this.integerLiteral(); + } + } + + this.state = 589; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public percentileAggFunction(): PercentileAggFunctionContext { + let localContext = new PercentileAggFunctionContext(this.context, this.state); + this.enterRule(localContext, 86, OpenSearchPPLParser.RULE_percentileAggFunction); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 591; + this.match(OpenSearchPPLParser.PERCENTILE); + this.state = 592; + this.match(OpenSearchPPLParser.LESS); + this.state = 593; + localContext._value = this.integerLiteral(); + this.state = 594; + this.match(OpenSearchPPLParser.GREATER); + this.state = 595; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 596; + localContext._aggField = this.fieldExpression(); + this.state = 597; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public expression(): ExpressionContext { + let localContext = new ExpressionContext(this.context, this.state); + this.enterRule(localContext, 88, OpenSearchPPLParser.RULE_expression); + try { + this.state = 602; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 41, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 599; + this.logicalExpression(0); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 600; + this.comparisonExpression(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 601; + this.valueExpression(0); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + + public logicalExpression(): LogicalExpressionContext; + public logicalExpression(_p: number): LogicalExpressionContext; + public logicalExpression(_p?: number): LogicalExpressionContext { + if (_p === undefined) { + _p = 0; + } + + let parentContext = this.context; + let parentState = this.state; + let localContext = new LogicalExpressionContext(this.context, parentState); + let previousContext = localContext; + let _startState = 90; + this.enterRecursionRule(localContext, 90, OpenSearchPPLParser.RULE_logicalExpression, _p); + let _la: number; + try { + let alternative: number; + this.enterOuterAlt(localContext, 1); + { + this.state = 610; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 42, this.context) ) { + case 1: + { + localContext = new ComparsionContext(localContext); + this.context = localContext; + previousContext = localContext; + + this.state = 605; + this.comparisonExpression(); + } + break; + case 2: + { + localContext = new LogicalNotContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 606; + this.match(OpenSearchPPLParser.NOT); + this.state = 607; + this.logicalExpression(6); + } + break; + case 3: + { + localContext = new BooleanExprContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 608; + this.booleanExpression(); + } + break; + case 4: + { + localContext = new RelevanceExprContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 609; + this.relevanceExpression(); + } + break; + } + this.context!.stop = this.tokenStream.LT(-1); + this.state = 625; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 45, this.context); + while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { + if (alternative === 1) { + if (this.parseListeners != null) { + this.triggerExitRuleEvent(); + } + previousContext = localContext; + { + this.state = 623; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 44, this.context) ) { + case 1: + { + localContext = new LogicalOrContext(new LogicalExpressionContext(parentContext, parentState)); + (localContext as LogicalOrContext)._left = previousContext; + this.pushNewRecursionContext(localContext, _startState, OpenSearchPPLParser.RULE_logicalExpression); + this.state = 612; + if (!(this.precpred(this.context, 5))) { + throw this.createFailedPredicateException("this.precpred(this.context, 5)"); + } + this.state = 613; + this.match(OpenSearchPPLParser.OR); + this.state = 614; + (localContext as LogicalOrContext)._right = this.logicalExpression(6); + } + break; + case 2: + { + localContext = new LogicalAndContext(new LogicalExpressionContext(parentContext, parentState)); + (localContext as LogicalAndContext)._left = previousContext; + this.pushNewRecursionContext(localContext, _startState, OpenSearchPPLParser.RULE_logicalExpression); + this.state = 615; + if (!(this.precpred(this.context, 4))) { + throw this.createFailedPredicateException("this.precpred(this.context, 4)"); + } + this.state = 617; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 63) { + { + this.state = 616; + this.match(OpenSearchPPLParser.AND); + } + } + + this.state = 619; + (localContext as LogicalAndContext)._right = this.logicalExpression(5); + } + break; + case 3: + { + localContext = new LogicalXorContext(new LogicalExpressionContext(parentContext, parentState)); + (localContext as LogicalXorContext)._left = previousContext; + this.pushNewRecursionContext(localContext, _startState, OpenSearchPPLParser.RULE_logicalExpression); + this.state = 620; + if (!(this.precpred(this.context, 3))) { + throw this.createFailedPredicateException("this.precpred(this.context, 3)"); + } + this.state = 621; + this.match(OpenSearchPPLParser.XOR); + this.state = 622; + (localContext as LogicalXorContext)._right = this.logicalExpression(4); + } + break; + } + } + } + this.state = 627; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 45, this.context); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.unrollRecursionContexts(parentContext); + } + return localContext; + } + public comparisonExpression(): ComparisonExpressionContext { + let localContext = new ComparisonExpressionContext(this.context, this.state); + this.enterRule(localContext, 92, OpenSearchPPLParser.RULE_comparisonExpression); + try { + this.state = 636; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 46, this.context) ) { + case 1: + localContext = new CompareExprContext(localContext); + this.enterOuterAlt(localContext, 1); + { + this.state = 628; + (localContext as CompareExprContext)._left = this.valueExpression(0); + this.state = 629; + this.comparisonOperator(); + this.state = 630; + (localContext as CompareExprContext)._right = this.valueExpression(0); + } + break; + case 2: + localContext = new InExprContext(localContext); + this.enterOuterAlt(localContext, 2); + { + this.state = 632; + this.valueExpression(0); + this.state = 633; + this.match(OpenSearchPPLParser.IN); + this.state = 634; + this.valueList(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + + public valueExpression(): ValueExpressionContext; + public valueExpression(_p: number): ValueExpressionContext; + public valueExpression(_p?: number): ValueExpressionContext { + if (_p === undefined) { + _p = 0; + } + + let parentContext = this.context; + let parentState = this.state; + let localContext = new ValueExpressionContext(this.context, parentState); + let previousContext = localContext; + let _startState = 94; + this.enterRecursionRule(localContext, 94, OpenSearchPPLParser.RULE_valueExpression, _p); + let _la: number; + try { + let alternative: number; + this.enterOuterAlt(localContext, 1); + { + this.state = 648; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 47, this.context) ) { + case 1: + { + localContext = new ValueExpressionDefaultContext(localContext); + this.context = localContext; + previousContext = localContext; + + this.state = 639; + this.primaryExpression(); + } + break; + case 2: + { + localContext = new PositionFunctionCallContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 640; + this.positionFunction(); + } + break; + case 3: + { + localContext = new ExtractFunctionCallContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 641; + this.extractFunction(); + } + break; + case 4: + { + localContext = new GetFormatFunctionCallContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 642; + this.getFormatFunction(); + } + break; + case 5: + { + localContext = new TimestampFunctionCallContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 643; + this.timestampFunction(); + } + break; + case 6: + { + localContext = new ParentheticValueExprContext(localContext); + this.context = localContext; + previousContext = localContext; + this.state = 644; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 645; + this.valueExpression(0); + this.state = 646; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + } + this.context!.stop = this.tokenStream.LT(-1); + this.state = 658; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 49, this.context); + while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { + if (alternative === 1) { + if (this.parseListeners != null) { + this.triggerExitRuleEvent(); + } + previousContext = localContext; + { + this.state = 656; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 48, this.context) ) { + case 1: + { + localContext = new BinaryArithmeticContext(new ValueExpressionContext(parentContext, parentState)); + (localContext as BinaryArithmeticContext)._left = previousContext; + this.pushNewRecursionContext(localContext, _startState, OpenSearchPPLParser.RULE_valueExpression); + this.state = 650; + if (!(this.precpred(this.context, 8))) { + throw this.createFailedPredicateException("this.precpred(this.context, 8)"); + } + this.state = 651; + (localContext as BinaryArithmeticContext)._binaryOperator = this.tokenStream.LT(1); + _la = this.tokenStream.LA(1); + if(!(((((_la - 120)) & ~0x1F) === 0 && ((1 << (_la - 120)) & 7) !== 0))) { + (localContext as BinaryArithmeticContext)._binaryOperator = this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + this.state = 652; + (localContext as BinaryArithmeticContext)._right = this.valueExpression(9); + } + break; + case 2: + { + localContext = new BinaryArithmeticContext(new ValueExpressionContext(parentContext, parentState)); + (localContext as BinaryArithmeticContext)._left = previousContext; + this.pushNewRecursionContext(localContext, _startState, OpenSearchPPLParser.RULE_valueExpression); + this.state = 653; + if (!(this.precpred(this.context, 7))) { + throw this.createFailedPredicateException("this.precpred(this.context, 7)"); + } + this.state = 654; + (localContext as BinaryArithmeticContext)._binaryOperator = this.tokenStream.LT(1); + _la = this.tokenStream.LA(1); + if(!(_la === 118 || _la === 119)) { + (localContext as BinaryArithmeticContext)._binaryOperator = this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + this.state = 655; + (localContext as BinaryArithmeticContext)._right = this.valueExpression(8); + } + break; + } + } + } + this.state = 660; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 49, this.context); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.unrollRecursionContexts(parentContext); + } + return localContext; + } + public primaryExpression(): PrimaryExpressionContext { + let localContext = new PrimaryExpressionContext(this.context, this.state); + this.enterRule(localContext, 96, OpenSearchPPLParser.RULE_primaryExpression); + try { + this.state = 665; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 50, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 661; + this.evalFunctionCall(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 662; + this.dataTypeFunctionCall(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 663; + this.fieldExpression(); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 664; + this.literalValue(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public positionFunction(): PositionFunctionContext { + let localContext = new PositionFunctionContext(this.context, this.state); + this.enterRule(localContext, 98, OpenSearchPPLParser.RULE_positionFunction); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 667; + this.positionFunctionName(); + this.state = 668; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 669; + this.functionArg(); + this.state = 670; + this.match(OpenSearchPPLParser.IN); + this.state = 671; + this.functionArg(); + this.state = 672; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public booleanExpression(): BooleanExpressionContext { + let localContext = new BooleanExpressionContext(this.context, this.state); + this.enterRule(localContext, 100, OpenSearchPPLParser.RULE_booleanExpression); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 674; + this.booleanFunctionCall(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceExpression(): RelevanceExpressionContext { + let localContext = new RelevanceExpressionContext(this.context, this.state); + this.enterRule(localContext, 102, OpenSearchPPLParser.RULE_relevanceExpression); + try { + this.state = 678; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.MATCH: + case OpenSearchPPLParser.MATCH_PHRASE: + case OpenSearchPPLParser.MATCH_PHRASE_PREFIX: + case OpenSearchPPLParser.MATCH_BOOL_PREFIX: + this.enterOuterAlt(localContext, 1); + { + this.state = 676; + this.singleFieldRelevanceFunction(); + } + break; + case OpenSearchPPLParser.SIMPLE_QUERY_STRING: + case OpenSearchPPLParser.MULTI_MATCH: + case OpenSearchPPLParser.QUERY_STRING: + this.enterOuterAlt(localContext, 2); + { + this.state = 677; + this.multiFieldRelevanceFunction(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public singleFieldRelevanceFunction(): SingleFieldRelevanceFunctionContext { + let localContext = new SingleFieldRelevanceFunctionContext(this.context, this.state); + this.enterRule(localContext, 104, OpenSearchPPLParser.RULE_singleFieldRelevanceFunction); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 680; + this.singleFieldRelevanceFunctionName(); + this.state = 681; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 682; + localContext._field = this.relevanceField(); + this.state = 683; + this.match(OpenSearchPPLParser.COMMA); + this.state = 684; + localContext._query = this.relevanceQuery(); + this.state = 689; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 685; + this.match(OpenSearchPPLParser.COMMA); + this.state = 686; + this.relevanceArg(); + } + } + this.state = 691; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 692; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public multiFieldRelevanceFunction(): MultiFieldRelevanceFunctionContext { + let localContext = new MultiFieldRelevanceFunctionContext(this.context, this.state); + this.enterRule(localContext, 106, OpenSearchPPLParser.RULE_multiFieldRelevanceFunction); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 694; + this.multiFieldRelevanceFunctionName(); + this.state = 695; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 696; + this.match(OpenSearchPPLParser.LT_SQR_PRTHS); + this.state = 697; + localContext._field = this.relevanceFieldAndWeight(); + this.state = 702; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 698; + this.match(OpenSearchPPLParser.COMMA); + this.state = 699; + localContext._field = this.relevanceFieldAndWeight(); + } + } + this.state = 704; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 705; + this.match(OpenSearchPPLParser.RT_SQR_PRTHS); + this.state = 706; + this.match(OpenSearchPPLParser.COMMA); + this.state = 707; + localContext._query = this.relevanceQuery(); + this.state = 712; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 708; + this.match(OpenSearchPPLParser.COMMA); + this.state = 709; + this.relevanceArg(); + } + } + this.state = 714; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 715; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public tableSource(): TableSourceContext { + let localContext = new TableSourceContext(this.context, this.state); + this.enterRule(localContext, 108, OpenSearchPPLParser.RULE_tableSource); + try { + this.state = 719; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.SEARCH: + case OpenSearchPPLParser.DESCRIBE: + case OpenSearchPPLParser.SHOW: + case OpenSearchPPLParser.FROM: + case OpenSearchPPLParser.WHERE: + case OpenSearchPPLParser.FIELDS: + case OpenSearchPPLParser.RENAME: + case OpenSearchPPLParser.STATS: + case OpenSearchPPLParser.DEDUP: + case OpenSearchPPLParser.SORT: + case OpenSearchPPLParser.EVAL: + case OpenSearchPPLParser.HEAD: + case OpenSearchPPLParser.TOP: + case OpenSearchPPLParser.RARE: + case OpenSearchPPLParser.PARSE: + case OpenSearchPPLParser.METHOD: + case OpenSearchPPLParser.REGEX: + case OpenSearchPPLParser.PUNCT: + case OpenSearchPPLParser.GROK: + case OpenSearchPPLParser.PATTERN: + case OpenSearchPPLParser.PATTERNS: + case OpenSearchPPLParser.NEW_FIELD: + case OpenSearchPPLParser.KMEANS: + case OpenSearchPPLParser.AD: + case OpenSearchPPLParser.ML: + case OpenSearchPPLParser.SOURCE: + case OpenSearchPPLParser.INDEX: + case OpenSearchPPLParser.D: + case OpenSearchPPLParser.DESC: + case OpenSearchPPLParser.DATASOURCES: + case OpenSearchPPLParser.SORTBY: + case OpenSearchPPLParser.STR: + case OpenSearchPPLParser.IP: + case OpenSearchPPLParser.NUM: + case OpenSearchPPLParser.KEEPEMPTY: + case OpenSearchPPLParser.CONSECUTIVE: + case OpenSearchPPLParser.DEDUP_SPLITVALUES: + case OpenSearchPPLParser.PARTITIONS: + case OpenSearchPPLParser.ALLNUM: + case OpenSearchPPLParser.DELIM: + case OpenSearchPPLParser.CENTROIDS: + case OpenSearchPPLParser.ITERATIONS: + case OpenSearchPPLParser.DISTANCE_TYPE: + case OpenSearchPPLParser.NUMBER_OF_TREES: + case OpenSearchPPLParser.SHINGLE_SIZE: + case OpenSearchPPLParser.SAMPLE_SIZE: + case OpenSearchPPLParser.OUTPUT_AFTER: + case OpenSearchPPLParser.TIME_DECAY: + case OpenSearchPPLParser.ANOMALY_RATE: + case OpenSearchPPLParser.CATEGORY_FIELD: + case OpenSearchPPLParser.TIME_FIELD: + case OpenSearchPPLParser.TIME_ZONE: + case OpenSearchPPLParser.TRAINING_DATA_SIZE: + case OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD: + case OpenSearchPPLParser.CONVERT_TZ: + case OpenSearchPPLParser.DATETIME: + case OpenSearchPPLParser.DAY: + case OpenSearchPPLParser.DAY_HOUR: + case OpenSearchPPLParser.DAY_MICROSECOND: + case OpenSearchPPLParser.DAY_MINUTE: + case OpenSearchPPLParser.DAY_OF_YEAR: + case OpenSearchPPLParser.DAY_SECOND: + case OpenSearchPPLParser.HOUR: + case OpenSearchPPLParser.HOUR_MICROSECOND: + case OpenSearchPPLParser.HOUR_MINUTE: + case OpenSearchPPLParser.HOUR_OF_DAY: + case OpenSearchPPLParser.HOUR_SECOND: + case OpenSearchPPLParser.MICROSECOND: + case OpenSearchPPLParser.MILLISECOND: + case OpenSearchPPLParser.MINUTE: + case OpenSearchPPLParser.MINUTE_MICROSECOND: + case OpenSearchPPLParser.MINUTE_OF_DAY: + case OpenSearchPPLParser.MINUTE_OF_HOUR: + case OpenSearchPPLParser.MINUTE_SECOND: + case OpenSearchPPLParser.MONTH: + case OpenSearchPPLParser.MONTH_OF_YEAR: + case OpenSearchPPLParser.QUARTER: + case OpenSearchPPLParser.SECOND: + case OpenSearchPPLParser.SECOND_MICROSECOND: + case OpenSearchPPLParser.SECOND_OF_MINUTE: + case OpenSearchPPLParser.WEEK: + case OpenSearchPPLParser.WEEK_OF_YEAR: + case OpenSearchPPLParser.YEAR: + case OpenSearchPPLParser.YEAR_MONTH: + case OpenSearchPPLParser.DOT: + case OpenSearchPPLParser.BACKTICK: + case OpenSearchPPLParser.AVG: + case OpenSearchPPLParser.COUNT: + case OpenSearchPPLParser.DISTINCT_COUNT: + case OpenSearchPPLParser.ESTDC: + case OpenSearchPPLParser.ESTDC_ERROR: + case OpenSearchPPLParser.MAX: + case OpenSearchPPLParser.MEAN: + case OpenSearchPPLParser.MEDIAN: + case OpenSearchPPLParser.MIN: + case OpenSearchPPLParser.MODE: + case OpenSearchPPLParser.RANGE: + case OpenSearchPPLParser.STDEV: + case OpenSearchPPLParser.STDEVP: + case OpenSearchPPLParser.SUM: + case OpenSearchPPLParser.SUMSQ: + case OpenSearchPPLParser.VAR_SAMP: + case OpenSearchPPLParser.VAR_POP: + case OpenSearchPPLParser.STDDEV_SAMP: + case OpenSearchPPLParser.STDDEV_POP: + case OpenSearchPPLParser.PERCENTILE: + case OpenSearchPPLParser.TAKE: + case OpenSearchPPLParser.FIRST: + case OpenSearchPPLParser.LAST: + case OpenSearchPPLParser.LIST: + case OpenSearchPPLParser.VALUES: + case OpenSearchPPLParser.EARLIEST: + case OpenSearchPPLParser.EARLIEST_TIME: + case OpenSearchPPLParser.LATEST: + case OpenSearchPPLParser.LATEST_TIME: + case OpenSearchPPLParser.PER_DAY: + case OpenSearchPPLParser.PER_HOUR: + case OpenSearchPPLParser.PER_MINUTE: + case OpenSearchPPLParser.PER_SECOND: + case OpenSearchPPLParser.RATE: + case OpenSearchPPLParser.SPARKLINE: + case OpenSearchPPLParser.C: + case OpenSearchPPLParser.DC: + case OpenSearchPPLParser.ABS: + case OpenSearchPPLParser.CBRT: + case OpenSearchPPLParser.CEIL: + case OpenSearchPPLParser.CEILING: + case OpenSearchPPLParser.CONV: + case OpenSearchPPLParser.CRC32: + case OpenSearchPPLParser.E: + case OpenSearchPPLParser.EXP: + case OpenSearchPPLParser.FLOOR: + case OpenSearchPPLParser.LN: + case OpenSearchPPLParser.LOG: + case OpenSearchPPLParser.LOG10: + case OpenSearchPPLParser.LOG2: + case OpenSearchPPLParser.MOD: + case OpenSearchPPLParser.PI: + case OpenSearchPPLParser.POSITION: + case OpenSearchPPLParser.POW: + case OpenSearchPPLParser.POWER: + case OpenSearchPPLParser.RAND: + case OpenSearchPPLParser.ROUND: + case OpenSearchPPLParser.SIGN: + case OpenSearchPPLParser.SQRT: + case OpenSearchPPLParser.TRUNCATE: + case OpenSearchPPLParser.ACOS: + case OpenSearchPPLParser.ASIN: + case OpenSearchPPLParser.ATAN: + case OpenSearchPPLParser.ATAN2: + case OpenSearchPPLParser.COS: + case OpenSearchPPLParser.COT: + case OpenSearchPPLParser.DEGREES: + case OpenSearchPPLParser.RADIANS: + case OpenSearchPPLParser.SIN: + case OpenSearchPPLParser.TAN: + case OpenSearchPPLParser.ADDDATE: + case OpenSearchPPLParser.ADDTIME: + case OpenSearchPPLParser.CURDATE: + case OpenSearchPPLParser.CURRENT_DATE: + case OpenSearchPPLParser.CURRENT_TIME: + case OpenSearchPPLParser.CURRENT_TIMESTAMP: + case OpenSearchPPLParser.CURTIME: + case OpenSearchPPLParser.DATE: + case OpenSearchPPLParser.DATEDIFF: + case OpenSearchPPLParser.DATE_ADD: + case OpenSearchPPLParser.DATE_FORMAT: + case OpenSearchPPLParser.DATE_SUB: + case OpenSearchPPLParser.DAYNAME: + case OpenSearchPPLParser.DAYOFMONTH: + case OpenSearchPPLParser.DAYOFWEEK: + case OpenSearchPPLParser.DAYOFYEAR: + case OpenSearchPPLParser.DAY_OF_MONTH: + case OpenSearchPPLParser.DAY_OF_WEEK: + case OpenSearchPPLParser.FROM_DAYS: + case OpenSearchPPLParser.FROM_UNIXTIME: + case OpenSearchPPLParser.LAST_DAY: + case OpenSearchPPLParser.LOCALTIME: + case OpenSearchPPLParser.LOCALTIMESTAMP: + case OpenSearchPPLParser.MAKEDATE: + case OpenSearchPPLParser.MAKETIME: + case OpenSearchPPLParser.MONTHNAME: + case OpenSearchPPLParser.NOW: + case OpenSearchPPLParser.PERIOD_ADD: + case OpenSearchPPLParser.PERIOD_DIFF: + case OpenSearchPPLParser.SEC_TO_TIME: + case OpenSearchPPLParser.STR_TO_DATE: + case OpenSearchPPLParser.SUBDATE: + case OpenSearchPPLParser.SUBTIME: + case OpenSearchPPLParser.SYSDATE: + case OpenSearchPPLParser.TIME: + case OpenSearchPPLParser.TIMEDIFF: + case OpenSearchPPLParser.TIMESTAMP: + case OpenSearchPPLParser.TIME_FORMAT: + case OpenSearchPPLParser.TIME_TO_SEC: + case OpenSearchPPLParser.TO_DAYS: + case OpenSearchPPLParser.TO_SECONDS: + case OpenSearchPPLParser.UNIX_TIMESTAMP: + case OpenSearchPPLParser.UTC_DATE: + case OpenSearchPPLParser.UTC_TIME: + case OpenSearchPPLParser.UTC_TIMESTAMP: + case OpenSearchPPLParser.WEEKDAY: + case OpenSearchPPLParser.YEARWEEK: + case OpenSearchPPLParser.SUBSTR: + case OpenSearchPPLParser.SUBSTRING: + case OpenSearchPPLParser.LTRIM: + case OpenSearchPPLParser.RTRIM: + case OpenSearchPPLParser.TRIM: + case OpenSearchPPLParser.LOWER: + case OpenSearchPPLParser.UPPER: + case OpenSearchPPLParser.CONCAT: + case OpenSearchPPLParser.CONCAT_WS: + case OpenSearchPPLParser.LENGTH: + case OpenSearchPPLParser.STRCMP: + case OpenSearchPPLParser.RIGHT: + case OpenSearchPPLParser.LEFT: + case OpenSearchPPLParser.ASCII: + case OpenSearchPPLParser.LOCATE: + case OpenSearchPPLParser.REPLACE: + case OpenSearchPPLParser.REVERSE: + case OpenSearchPPLParser.LIKE: + case OpenSearchPPLParser.ISNULL: + case OpenSearchPPLParser.ISNOTNULL: + case OpenSearchPPLParser.IFNULL: + case OpenSearchPPLParser.NULLIF: + case OpenSearchPPLParser.IF: + case OpenSearchPPLParser.TYPEOF: + case OpenSearchPPLParser.ALLOW_LEADING_WILDCARD: + case OpenSearchPPLParser.ANALYZE_WILDCARD: + case OpenSearchPPLParser.ANALYZER: + case OpenSearchPPLParser.AUTO_GENERATE_SYNONYMS_PHRASE_QUERY: + case OpenSearchPPLParser.BOOST: + case OpenSearchPPLParser.CUTOFF_FREQUENCY: + case OpenSearchPPLParser.DEFAULT_FIELD: + case OpenSearchPPLParser.DEFAULT_OPERATOR: + case OpenSearchPPLParser.ENABLE_POSITION_INCREMENTS: + case OpenSearchPPLParser.ESCAPE: + case OpenSearchPPLParser.FLAGS: + case OpenSearchPPLParser.FUZZY_MAX_EXPANSIONS: + case OpenSearchPPLParser.FUZZY_PREFIX_LENGTH: + case OpenSearchPPLParser.FUZZY_TRANSPOSITIONS: + case OpenSearchPPLParser.FUZZY_REWRITE: + case OpenSearchPPLParser.FUZZINESS: + case OpenSearchPPLParser.LENIENT: + case OpenSearchPPLParser.LOW_FREQ_OPERATOR: + case OpenSearchPPLParser.MAX_DETERMINIZED_STATES: + case OpenSearchPPLParser.MAX_EXPANSIONS: + case OpenSearchPPLParser.MINIMUM_SHOULD_MATCH: + case OpenSearchPPLParser.OPERATOR: + case OpenSearchPPLParser.PHRASE_SLOP: + case OpenSearchPPLParser.PREFIX_LENGTH: + case OpenSearchPPLParser.QUOTE_ANALYZER: + case OpenSearchPPLParser.QUOTE_FIELD_SUFFIX: + case OpenSearchPPLParser.REWRITE: + case OpenSearchPPLParser.SLOP: + case OpenSearchPPLParser.TIE_BREAKER: + case OpenSearchPPLParser.TYPE: + case OpenSearchPPLParser.ZERO_TERMS_QUERY: + case OpenSearchPPLParser.SPAN: + case OpenSearchPPLParser.MS: + case OpenSearchPPLParser.S: + case OpenSearchPPLParser.M: + case OpenSearchPPLParser.H: + case OpenSearchPPLParser.W: + case OpenSearchPPLParser.Q: + case OpenSearchPPLParser.Y: + case OpenSearchPPLParser.ID: + case OpenSearchPPLParser.CLUSTER: + case OpenSearchPPLParser.BQUOTA_STRING: + this.enterOuterAlt(localContext, 1); + { + this.state = 717; + this.tableQualifiedName(); + } + break; + case OpenSearchPPLParser.ID_DATE_SUFFIX: + this.enterOuterAlt(localContext, 2); + { + this.state = 718; + this.match(OpenSearchPPLParser.ID_DATE_SUFFIX); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public tableFunction(): TableFunctionContext { + let localContext = new TableFunctionContext(this.context, this.state); + this.enterRule(localContext, 110, OpenSearchPPLParser.RULE_tableFunction); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 721; + this.qualifiedName(); + this.state = 722; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 723; + this.functionArgs(); + this.state = 724; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public fieldList(): FieldListContext { + let localContext = new FieldListContext(this.context, this.state); + this.enterRule(localContext, 112, OpenSearchPPLParser.RULE_fieldList); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 726; + this.fieldExpression(); + this.state = 731; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 727; + this.match(OpenSearchPPLParser.COMMA); + this.state = 728; + this.fieldExpression(); + } + } + this.state = 733; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public wcFieldList(): WcFieldListContext { + let localContext = new WcFieldListContext(this.context, this.state); + this.enterRule(localContext, 114, OpenSearchPPLParser.RULE_wcFieldList); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 734; + this.wcFieldExpression(); + this.state = 739; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 735; + this.match(OpenSearchPPLParser.COMMA); + this.state = 736; + this.wcFieldExpression(); + } + } + this.state = 741; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public sortField(): SortFieldContext { + let localContext = new SortFieldContext(this.context, this.state); + this.enterRule(localContext, 116, OpenSearchPPLParser.RULE_sortField); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 743; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119) { + { + this.state = 742; + _la = this.tokenStream.LA(1); + if(!(_la === 118 || _la === 119)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + + this.state = 745; + this.sortFieldExpression(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public sortFieldExpression(): SortFieldExpressionContext { + let localContext = new SortFieldExpressionContext(this.context, this.state); + this.enterRule(localContext, 118, OpenSearchPPLParser.RULE_sortFieldExpression); + try { + this.state = 768; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 59, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 747; + this.fieldExpression(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 748; + this.match(OpenSearchPPLParser.AUTO); + this.state = 749; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 750; + this.fieldExpression(); + this.state = 751; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 753; + this.match(OpenSearchPPLParser.STR); + this.state = 754; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 755; + this.fieldExpression(); + this.state = 756; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 758; + this.match(OpenSearchPPLParser.IP); + this.state = 759; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 760; + this.fieldExpression(); + this.state = 761; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + case 5: + this.enterOuterAlt(localContext, 5); + { + this.state = 763; + this.match(OpenSearchPPLParser.NUM); + this.state = 764; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 765; + this.fieldExpression(); + this.state = 766; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public fieldExpression(): FieldExpressionContext { + let localContext = new FieldExpressionContext(this.context, this.state); + this.enterRule(localContext, 120, OpenSearchPPLParser.RULE_fieldExpression); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 770; + this.qualifiedName(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public wcFieldExpression(): WcFieldExpressionContext { + let localContext = new WcFieldExpressionContext(this.context, this.state); + this.enterRule(localContext, 122, OpenSearchPPLParser.RULE_wcFieldExpression); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 772; + this.wcQualifiedName(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public evalFunctionCall(): EvalFunctionCallContext { + let localContext = new EvalFunctionCallContext(this.context, this.state); + this.enterRule(localContext, 124, OpenSearchPPLParser.RULE_evalFunctionCall); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 774; + this.evalFunctionName(); + this.state = 775; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 776; + this.functionArgs(); + this.state = 777; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public dataTypeFunctionCall(): DataTypeFunctionCallContext { + let localContext = new DataTypeFunctionCallContext(this.context, this.state); + this.enterRule(localContext, 126, OpenSearchPPLParser.RULE_dataTypeFunctionCall); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 779; + this.match(OpenSearchPPLParser.CAST); + this.state = 780; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 781; + this.expression(); + this.state = 782; + this.match(OpenSearchPPLParser.AS); + this.state = 783; + this.convertedDataType(); + this.state = 784; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public booleanFunctionCall(): BooleanFunctionCallContext { + let localContext = new BooleanFunctionCallContext(this.context, this.state); + this.enterRule(localContext, 128, OpenSearchPPLParser.RULE_booleanFunctionCall); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 786; + this.conditionFunctionBase(); + this.state = 787; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 788; + this.functionArgs(); + this.state = 789; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public convertedDataType(): ConvertedDataTypeContext { + let localContext = new ConvertedDataTypeContext(this.context, this.state); + this.enterRule(localContext, 130, OpenSearchPPLParser.RULE_convertedDataType); + try { + this.state = 801; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.DATE: + this.enterOuterAlt(localContext, 1); + { + this.state = 791; + localContext._typeName = this.match(OpenSearchPPLParser.DATE); + } + break; + case OpenSearchPPLParser.TIME: + this.enterOuterAlt(localContext, 2); + { + this.state = 792; + localContext._typeName = this.match(OpenSearchPPLParser.TIME); + } + break; + case OpenSearchPPLParser.TIMESTAMP: + this.enterOuterAlt(localContext, 3); + { + this.state = 793; + localContext._typeName = this.match(OpenSearchPPLParser.TIMESTAMP); + } + break; + case OpenSearchPPLParser.INT: + this.enterOuterAlt(localContext, 4); + { + this.state = 794; + localContext._typeName = this.match(OpenSearchPPLParser.INT); + } + break; + case OpenSearchPPLParser.INTEGER: + this.enterOuterAlt(localContext, 5); + { + this.state = 795; + localContext._typeName = this.match(OpenSearchPPLParser.INTEGER); + } + break; + case OpenSearchPPLParser.DOUBLE: + this.enterOuterAlt(localContext, 6); + { + this.state = 796; + localContext._typeName = this.match(OpenSearchPPLParser.DOUBLE); + } + break; + case OpenSearchPPLParser.LONG: + this.enterOuterAlt(localContext, 7); + { + this.state = 797; + localContext._typeName = this.match(OpenSearchPPLParser.LONG); + } + break; + case OpenSearchPPLParser.FLOAT: + this.enterOuterAlt(localContext, 8); + { + this.state = 798; + localContext._typeName = this.match(OpenSearchPPLParser.FLOAT); + } + break; + case OpenSearchPPLParser.STRING: + this.enterOuterAlt(localContext, 9); + { + this.state = 799; + localContext._typeName = this.match(OpenSearchPPLParser.STRING); + } + break; + case OpenSearchPPLParser.BOOLEAN: + this.enterOuterAlt(localContext, 10); + { + this.state = 800; + localContext._typeName = this.match(OpenSearchPPLParser.BOOLEAN); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public evalFunctionName(): EvalFunctionNameContext { + let localContext = new EvalFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 132, OpenSearchPPLParser.RULE_evalFunctionName); + try { + this.state = 809; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.ABS: + case OpenSearchPPLParser.CBRT: + case OpenSearchPPLParser.CEIL: + case OpenSearchPPLParser.CEILING: + case OpenSearchPPLParser.CONV: + case OpenSearchPPLParser.CRC32: + case OpenSearchPPLParser.E: + case OpenSearchPPLParser.EXP: + case OpenSearchPPLParser.FLOOR: + case OpenSearchPPLParser.LN: + case OpenSearchPPLParser.LOG: + case OpenSearchPPLParser.LOG10: + case OpenSearchPPLParser.LOG2: + case OpenSearchPPLParser.MOD: + case OpenSearchPPLParser.PI: + case OpenSearchPPLParser.POW: + case OpenSearchPPLParser.POWER: + case OpenSearchPPLParser.RAND: + case OpenSearchPPLParser.ROUND: + case OpenSearchPPLParser.SIGN: + case OpenSearchPPLParser.SQRT: + case OpenSearchPPLParser.TRUNCATE: + case OpenSearchPPLParser.ACOS: + case OpenSearchPPLParser.ASIN: + case OpenSearchPPLParser.ATAN: + case OpenSearchPPLParser.ATAN2: + case OpenSearchPPLParser.COS: + case OpenSearchPPLParser.COT: + case OpenSearchPPLParser.DEGREES: + case OpenSearchPPLParser.RADIANS: + case OpenSearchPPLParser.SIN: + case OpenSearchPPLParser.TAN: + this.enterOuterAlt(localContext, 1); + { + this.state = 803; + this.mathematicalFunctionName(); + } + break; + case OpenSearchPPLParser.CONVERT_TZ: + case OpenSearchPPLParser.DATETIME: + case OpenSearchPPLParser.DAY: + case OpenSearchPPLParser.DAY_OF_YEAR: + case OpenSearchPPLParser.HOUR: + case OpenSearchPPLParser.HOUR_OF_DAY: + case OpenSearchPPLParser.MICROSECOND: + case OpenSearchPPLParser.MINUTE: + case OpenSearchPPLParser.MINUTE_OF_DAY: + case OpenSearchPPLParser.MINUTE_OF_HOUR: + case OpenSearchPPLParser.MONTH: + case OpenSearchPPLParser.MONTH_OF_YEAR: + case OpenSearchPPLParser.QUARTER: + case OpenSearchPPLParser.SECOND: + case OpenSearchPPLParser.SECOND_OF_MINUTE: + case OpenSearchPPLParser.WEEK: + case OpenSearchPPLParser.WEEK_OF_YEAR: + case OpenSearchPPLParser.YEAR: + case OpenSearchPPLParser.ADDDATE: + case OpenSearchPPLParser.ADDTIME: + case OpenSearchPPLParser.CURDATE: + case OpenSearchPPLParser.CURRENT_DATE: + case OpenSearchPPLParser.CURRENT_TIME: + case OpenSearchPPLParser.CURRENT_TIMESTAMP: + case OpenSearchPPLParser.CURTIME: + case OpenSearchPPLParser.DATE: + case OpenSearchPPLParser.DATEDIFF: + case OpenSearchPPLParser.DATE_ADD: + case OpenSearchPPLParser.DATE_FORMAT: + case OpenSearchPPLParser.DATE_SUB: + case OpenSearchPPLParser.DAYNAME: + case OpenSearchPPLParser.DAYOFMONTH: + case OpenSearchPPLParser.DAYOFWEEK: + case OpenSearchPPLParser.DAYOFYEAR: + case OpenSearchPPLParser.DAY_OF_MONTH: + case OpenSearchPPLParser.DAY_OF_WEEK: + case OpenSearchPPLParser.FROM_DAYS: + case OpenSearchPPLParser.FROM_UNIXTIME: + case OpenSearchPPLParser.LAST_DAY: + case OpenSearchPPLParser.LOCALTIME: + case OpenSearchPPLParser.LOCALTIMESTAMP: + case OpenSearchPPLParser.MAKEDATE: + case OpenSearchPPLParser.MAKETIME: + case OpenSearchPPLParser.MONTHNAME: + case OpenSearchPPLParser.NOW: + case OpenSearchPPLParser.PERIOD_ADD: + case OpenSearchPPLParser.PERIOD_DIFF: + case OpenSearchPPLParser.SEC_TO_TIME: + case OpenSearchPPLParser.STR_TO_DATE: + case OpenSearchPPLParser.SUBDATE: + case OpenSearchPPLParser.SUBTIME: + case OpenSearchPPLParser.SYSDATE: + case OpenSearchPPLParser.TIME: + case OpenSearchPPLParser.TIMEDIFF: + case OpenSearchPPLParser.TIMESTAMP: + case OpenSearchPPLParser.TIME_FORMAT: + case OpenSearchPPLParser.TIME_TO_SEC: + case OpenSearchPPLParser.TO_DAYS: + case OpenSearchPPLParser.TO_SECONDS: + case OpenSearchPPLParser.UNIX_TIMESTAMP: + case OpenSearchPPLParser.UTC_DATE: + case OpenSearchPPLParser.UTC_TIME: + case OpenSearchPPLParser.UTC_TIMESTAMP: + case OpenSearchPPLParser.WEEKDAY: + case OpenSearchPPLParser.YEARWEEK: + this.enterOuterAlt(localContext, 2); + { + this.state = 804; + this.dateTimeFunctionName(); + } + break; + case OpenSearchPPLParser.SUBSTR: + case OpenSearchPPLParser.SUBSTRING: + case OpenSearchPPLParser.LTRIM: + case OpenSearchPPLParser.RTRIM: + case OpenSearchPPLParser.TRIM: + case OpenSearchPPLParser.LOWER: + case OpenSearchPPLParser.UPPER: + case OpenSearchPPLParser.CONCAT: + case OpenSearchPPLParser.CONCAT_WS: + case OpenSearchPPLParser.LENGTH: + case OpenSearchPPLParser.STRCMP: + case OpenSearchPPLParser.RIGHT: + case OpenSearchPPLParser.LEFT: + case OpenSearchPPLParser.ASCII: + case OpenSearchPPLParser.LOCATE: + case OpenSearchPPLParser.REPLACE: + case OpenSearchPPLParser.REVERSE: + this.enterOuterAlt(localContext, 3); + { + this.state = 805; + this.textFunctionName(); + } + break; + case OpenSearchPPLParser.LIKE: + case OpenSearchPPLParser.ISNULL: + case OpenSearchPPLParser.ISNOTNULL: + case OpenSearchPPLParser.IFNULL: + case OpenSearchPPLParser.NULLIF: + case OpenSearchPPLParser.IF: + this.enterOuterAlt(localContext, 4); + { + this.state = 806; + this.conditionFunctionBase(); + } + break; + case OpenSearchPPLParser.TYPEOF: + this.enterOuterAlt(localContext, 5); + { + this.state = 807; + this.systemFunctionName(); + } + break; + case OpenSearchPPLParser.POSITION: + this.enterOuterAlt(localContext, 6); + { + this.state = 808; + this.positionFunctionName(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public functionArgs(): FunctionArgsContext { + let localContext = new FunctionArgsContext(this.context, this.state); + this.enterRule(localContext, 134, OpenSearchPPLParser.RULE_functionArgs); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 819; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3892314108) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 134217719) !== 0) || ((((_la - 65)) & ~0x1F) === 0 && ((1 << (_la - 65)) & 4294967291) !== 0) || ((((_la - 97)) & ~0x1F) === 0 && ((1 << (_la - 97)) & 274743299) !== 0) || ((((_la - 131)) & ~0x1F) === 0 && ((1 << (_la - 131)) & 4294967281) !== 0) || ((((_la - 163)) & ~0x1F) === 0 && ((1 << (_la - 163)) & 4294967295) !== 0) || ((((_la - 195)) & ~0x1F) === 0 && ((1 << (_la - 195)) & 4294967295) !== 0) || ((((_la - 227)) & ~0x1F) === 0 && ((1 << (_la - 227)) & 4294967295) !== 0) || ((((_la - 259)) & ~0x1F) === 0 && ((1 << (_la - 259)) & 3229614075) !== 0) || ((((_la - 291)) & ~0x1F) === 0 && ((1 << (_la - 291)) & 4294967295) !== 0) || ((((_la - 323)) & ~0x1F) === 0 && ((1 << (_la - 323)) & 7615) !== 0)) { + { + this.state = 811; + this.functionArg(); + this.state = 816; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 812; + this.match(OpenSearchPPLParser.COMMA); + this.state = 813; + this.functionArg(); + } + } + this.state = 818; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public functionArg(): FunctionArgContext { + let localContext = new FunctionArgContext(this.context, this.state); + this.enterRule(localContext, 136, OpenSearchPPLParser.RULE_functionArg); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 824; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 64, this.context) ) { + case 1: + { + this.state = 821; + this.ident(); + this.state = 822; + this.match(OpenSearchPPLParser.EQUAL); + } + break; + } + this.state = 826; + this.valueExpression(0); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceArg(): RelevanceArgContext { + let localContext = new RelevanceArgContext(this.context, this.state); + this.enterRule(localContext, 138, OpenSearchPPLParser.RULE_relevanceArg); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 828; + this.relevanceArgName(); + this.state = 829; + this.match(OpenSearchPPLParser.EQUAL); + this.state = 830; + this.relevanceArgValue(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceArgName(): RelevanceArgNameContext { + let localContext = new RelevanceArgNameContext(this.context, this.state); + this.enterRule(localContext, 140, OpenSearchPPLParser.RULE_relevanceArgName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 832; + _la = this.tokenStream.LA(1); + if(!(_la === 7 || _la === 56 || ((((_la - 289)) & ~0x1F) === 0 && ((1 << (_la - 289)) & 2147483647) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceFieldAndWeight(): RelevanceFieldAndWeightContext { + let localContext = new RelevanceFieldAndWeightContext(this.context, this.state); + this.enterRule(localContext, 142, OpenSearchPPLParser.RULE_relevanceFieldAndWeight); + try { + this.state = 842; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 65, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 834; + localContext._field = this.relevanceField(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 835; + localContext._field = this.relevanceField(); + this.state = 836; + localContext._weight = this.relevanceFieldWeight(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 838; + localContext._field = this.relevanceField(); + this.state = 839; + this.match(OpenSearchPPLParser.BIT_XOR_OP); + this.state = 840; + localContext._weight = this.relevanceFieldWeight(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceFieldWeight(): RelevanceFieldWeightContext { + let localContext = new RelevanceFieldWeightContext(this.context, this.state); + this.enterRule(localContext, 144, OpenSearchPPLParser.RULE_relevanceFieldWeight); + try { + this.state = 846; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 66, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 844; + this.integerLiteral(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 845; + this.decimalLiteral(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceField(): RelevanceFieldContext { + let localContext = new RelevanceFieldContext(this.context, this.state); + this.enterRule(localContext, 146, OpenSearchPPLParser.RULE_relevanceField); + try { + this.state = 850; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.SEARCH: + case OpenSearchPPLParser.DESCRIBE: + case OpenSearchPPLParser.SHOW: + case OpenSearchPPLParser.FROM: + case OpenSearchPPLParser.WHERE: + case OpenSearchPPLParser.FIELDS: + case OpenSearchPPLParser.RENAME: + case OpenSearchPPLParser.STATS: + case OpenSearchPPLParser.DEDUP: + case OpenSearchPPLParser.SORT: + case OpenSearchPPLParser.EVAL: + case OpenSearchPPLParser.HEAD: + case OpenSearchPPLParser.TOP: + case OpenSearchPPLParser.RARE: + case OpenSearchPPLParser.PARSE: + case OpenSearchPPLParser.METHOD: + case OpenSearchPPLParser.REGEX: + case OpenSearchPPLParser.PUNCT: + case OpenSearchPPLParser.GROK: + case OpenSearchPPLParser.PATTERN: + case OpenSearchPPLParser.PATTERNS: + case OpenSearchPPLParser.NEW_FIELD: + case OpenSearchPPLParser.KMEANS: + case OpenSearchPPLParser.AD: + case OpenSearchPPLParser.ML: + case OpenSearchPPLParser.SOURCE: + case OpenSearchPPLParser.INDEX: + case OpenSearchPPLParser.D: + case OpenSearchPPLParser.DESC: + case OpenSearchPPLParser.DATASOURCES: + case OpenSearchPPLParser.SORTBY: + case OpenSearchPPLParser.STR: + case OpenSearchPPLParser.IP: + case OpenSearchPPLParser.NUM: + case OpenSearchPPLParser.KEEPEMPTY: + case OpenSearchPPLParser.CONSECUTIVE: + case OpenSearchPPLParser.DEDUP_SPLITVALUES: + case OpenSearchPPLParser.PARTITIONS: + case OpenSearchPPLParser.ALLNUM: + case OpenSearchPPLParser.DELIM: + case OpenSearchPPLParser.CENTROIDS: + case OpenSearchPPLParser.ITERATIONS: + case OpenSearchPPLParser.DISTANCE_TYPE: + case OpenSearchPPLParser.NUMBER_OF_TREES: + case OpenSearchPPLParser.SHINGLE_SIZE: + case OpenSearchPPLParser.SAMPLE_SIZE: + case OpenSearchPPLParser.OUTPUT_AFTER: + case OpenSearchPPLParser.TIME_DECAY: + case OpenSearchPPLParser.ANOMALY_RATE: + case OpenSearchPPLParser.CATEGORY_FIELD: + case OpenSearchPPLParser.TIME_FIELD: + case OpenSearchPPLParser.TIME_ZONE: + case OpenSearchPPLParser.TRAINING_DATA_SIZE: + case OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD: + case OpenSearchPPLParser.CONVERT_TZ: + case OpenSearchPPLParser.DATETIME: + case OpenSearchPPLParser.DAY: + case OpenSearchPPLParser.DAY_HOUR: + case OpenSearchPPLParser.DAY_MICROSECOND: + case OpenSearchPPLParser.DAY_MINUTE: + case OpenSearchPPLParser.DAY_OF_YEAR: + case OpenSearchPPLParser.DAY_SECOND: + case OpenSearchPPLParser.HOUR: + case OpenSearchPPLParser.HOUR_MICROSECOND: + case OpenSearchPPLParser.HOUR_MINUTE: + case OpenSearchPPLParser.HOUR_OF_DAY: + case OpenSearchPPLParser.HOUR_SECOND: + case OpenSearchPPLParser.MICROSECOND: + case OpenSearchPPLParser.MILLISECOND: + case OpenSearchPPLParser.MINUTE: + case OpenSearchPPLParser.MINUTE_MICROSECOND: + case OpenSearchPPLParser.MINUTE_OF_DAY: + case OpenSearchPPLParser.MINUTE_OF_HOUR: + case OpenSearchPPLParser.MINUTE_SECOND: + case OpenSearchPPLParser.MONTH: + case OpenSearchPPLParser.MONTH_OF_YEAR: + case OpenSearchPPLParser.QUARTER: + case OpenSearchPPLParser.SECOND: + case OpenSearchPPLParser.SECOND_MICROSECOND: + case OpenSearchPPLParser.SECOND_OF_MINUTE: + case OpenSearchPPLParser.WEEK: + case OpenSearchPPLParser.WEEK_OF_YEAR: + case OpenSearchPPLParser.YEAR: + case OpenSearchPPLParser.YEAR_MONTH: + case OpenSearchPPLParser.DOT: + case OpenSearchPPLParser.BACKTICK: + case OpenSearchPPLParser.AVG: + case OpenSearchPPLParser.COUNT: + case OpenSearchPPLParser.DISTINCT_COUNT: + case OpenSearchPPLParser.ESTDC: + case OpenSearchPPLParser.ESTDC_ERROR: + case OpenSearchPPLParser.MAX: + case OpenSearchPPLParser.MEAN: + case OpenSearchPPLParser.MEDIAN: + case OpenSearchPPLParser.MIN: + case OpenSearchPPLParser.MODE: + case OpenSearchPPLParser.RANGE: + case OpenSearchPPLParser.STDEV: + case OpenSearchPPLParser.STDEVP: + case OpenSearchPPLParser.SUM: + case OpenSearchPPLParser.SUMSQ: + case OpenSearchPPLParser.VAR_SAMP: + case OpenSearchPPLParser.VAR_POP: + case OpenSearchPPLParser.STDDEV_SAMP: + case OpenSearchPPLParser.STDDEV_POP: + case OpenSearchPPLParser.PERCENTILE: + case OpenSearchPPLParser.TAKE: + case OpenSearchPPLParser.FIRST: + case OpenSearchPPLParser.LAST: + case OpenSearchPPLParser.LIST: + case OpenSearchPPLParser.VALUES: + case OpenSearchPPLParser.EARLIEST: + case OpenSearchPPLParser.EARLIEST_TIME: + case OpenSearchPPLParser.LATEST: + case OpenSearchPPLParser.LATEST_TIME: + case OpenSearchPPLParser.PER_DAY: + case OpenSearchPPLParser.PER_HOUR: + case OpenSearchPPLParser.PER_MINUTE: + case OpenSearchPPLParser.PER_SECOND: + case OpenSearchPPLParser.RATE: + case OpenSearchPPLParser.SPARKLINE: + case OpenSearchPPLParser.C: + case OpenSearchPPLParser.DC: + case OpenSearchPPLParser.ABS: + case OpenSearchPPLParser.CBRT: + case OpenSearchPPLParser.CEIL: + case OpenSearchPPLParser.CEILING: + case OpenSearchPPLParser.CONV: + case OpenSearchPPLParser.CRC32: + case OpenSearchPPLParser.E: + case OpenSearchPPLParser.EXP: + case OpenSearchPPLParser.FLOOR: + case OpenSearchPPLParser.LN: + case OpenSearchPPLParser.LOG: + case OpenSearchPPLParser.LOG10: + case OpenSearchPPLParser.LOG2: + case OpenSearchPPLParser.MOD: + case OpenSearchPPLParser.PI: + case OpenSearchPPLParser.POSITION: + case OpenSearchPPLParser.POW: + case OpenSearchPPLParser.POWER: + case OpenSearchPPLParser.RAND: + case OpenSearchPPLParser.ROUND: + case OpenSearchPPLParser.SIGN: + case OpenSearchPPLParser.SQRT: + case OpenSearchPPLParser.TRUNCATE: + case OpenSearchPPLParser.ACOS: + case OpenSearchPPLParser.ASIN: + case OpenSearchPPLParser.ATAN: + case OpenSearchPPLParser.ATAN2: + case OpenSearchPPLParser.COS: + case OpenSearchPPLParser.COT: + case OpenSearchPPLParser.DEGREES: + case OpenSearchPPLParser.RADIANS: + case OpenSearchPPLParser.SIN: + case OpenSearchPPLParser.TAN: + case OpenSearchPPLParser.ADDDATE: + case OpenSearchPPLParser.ADDTIME: + case OpenSearchPPLParser.CURDATE: + case OpenSearchPPLParser.CURRENT_DATE: + case OpenSearchPPLParser.CURRENT_TIME: + case OpenSearchPPLParser.CURRENT_TIMESTAMP: + case OpenSearchPPLParser.CURTIME: + case OpenSearchPPLParser.DATE: + case OpenSearchPPLParser.DATEDIFF: + case OpenSearchPPLParser.DATE_ADD: + case OpenSearchPPLParser.DATE_FORMAT: + case OpenSearchPPLParser.DATE_SUB: + case OpenSearchPPLParser.DAYNAME: + case OpenSearchPPLParser.DAYOFMONTH: + case OpenSearchPPLParser.DAYOFWEEK: + case OpenSearchPPLParser.DAYOFYEAR: + case OpenSearchPPLParser.DAY_OF_MONTH: + case OpenSearchPPLParser.DAY_OF_WEEK: + case OpenSearchPPLParser.FROM_DAYS: + case OpenSearchPPLParser.FROM_UNIXTIME: + case OpenSearchPPLParser.LAST_DAY: + case OpenSearchPPLParser.LOCALTIME: + case OpenSearchPPLParser.LOCALTIMESTAMP: + case OpenSearchPPLParser.MAKEDATE: + case OpenSearchPPLParser.MAKETIME: + case OpenSearchPPLParser.MONTHNAME: + case OpenSearchPPLParser.NOW: + case OpenSearchPPLParser.PERIOD_ADD: + case OpenSearchPPLParser.PERIOD_DIFF: + case OpenSearchPPLParser.SEC_TO_TIME: + case OpenSearchPPLParser.STR_TO_DATE: + case OpenSearchPPLParser.SUBDATE: + case OpenSearchPPLParser.SUBTIME: + case OpenSearchPPLParser.SYSDATE: + case OpenSearchPPLParser.TIME: + case OpenSearchPPLParser.TIMEDIFF: + case OpenSearchPPLParser.TIMESTAMP: + case OpenSearchPPLParser.TIME_FORMAT: + case OpenSearchPPLParser.TIME_TO_SEC: + case OpenSearchPPLParser.TO_DAYS: + case OpenSearchPPLParser.TO_SECONDS: + case OpenSearchPPLParser.UNIX_TIMESTAMP: + case OpenSearchPPLParser.UTC_DATE: + case OpenSearchPPLParser.UTC_TIME: + case OpenSearchPPLParser.UTC_TIMESTAMP: + case OpenSearchPPLParser.WEEKDAY: + case OpenSearchPPLParser.YEARWEEK: + case OpenSearchPPLParser.SUBSTR: + case OpenSearchPPLParser.SUBSTRING: + case OpenSearchPPLParser.LTRIM: + case OpenSearchPPLParser.RTRIM: + case OpenSearchPPLParser.TRIM: + case OpenSearchPPLParser.LOWER: + case OpenSearchPPLParser.UPPER: + case OpenSearchPPLParser.CONCAT: + case OpenSearchPPLParser.CONCAT_WS: + case OpenSearchPPLParser.LENGTH: + case OpenSearchPPLParser.STRCMP: + case OpenSearchPPLParser.RIGHT: + case OpenSearchPPLParser.LEFT: + case OpenSearchPPLParser.ASCII: + case OpenSearchPPLParser.LOCATE: + case OpenSearchPPLParser.REPLACE: + case OpenSearchPPLParser.REVERSE: + case OpenSearchPPLParser.LIKE: + case OpenSearchPPLParser.ISNULL: + case OpenSearchPPLParser.ISNOTNULL: + case OpenSearchPPLParser.IFNULL: + case OpenSearchPPLParser.NULLIF: + case OpenSearchPPLParser.IF: + case OpenSearchPPLParser.TYPEOF: + case OpenSearchPPLParser.ALLOW_LEADING_WILDCARD: + case OpenSearchPPLParser.ANALYZE_WILDCARD: + case OpenSearchPPLParser.ANALYZER: + case OpenSearchPPLParser.AUTO_GENERATE_SYNONYMS_PHRASE_QUERY: + case OpenSearchPPLParser.BOOST: + case OpenSearchPPLParser.CUTOFF_FREQUENCY: + case OpenSearchPPLParser.DEFAULT_FIELD: + case OpenSearchPPLParser.DEFAULT_OPERATOR: + case OpenSearchPPLParser.ENABLE_POSITION_INCREMENTS: + case OpenSearchPPLParser.ESCAPE: + case OpenSearchPPLParser.FLAGS: + case OpenSearchPPLParser.FUZZY_MAX_EXPANSIONS: + case OpenSearchPPLParser.FUZZY_PREFIX_LENGTH: + case OpenSearchPPLParser.FUZZY_TRANSPOSITIONS: + case OpenSearchPPLParser.FUZZY_REWRITE: + case OpenSearchPPLParser.FUZZINESS: + case OpenSearchPPLParser.LENIENT: + case OpenSearchPPLParser.LOW_FREQ_OPERATOR: + case OpenSearchPPLParser.MAX_DETERMINIZED_STATES: + case OpenSearchPPLParser.MAX_EXPANSIONS: + case OpenSearchPPLParser.MINIMUM_SHOULD_MATCH: + case OpenSearchPPLParser.OPERATOR: + case OpenSearchPPLParser.PHRASE_SLOP: + case OpenSearchPPLParser.PREFIX_LENGTH: + case OpenSearchPPLParser.QUOTE_ANALYZER: + case OpenSearchPPLParser.QUOTE_FIELD_SUFFIX: + case OpenSearchPPLParser.REWRITE: + case OpenSearchPPLParser.SLOP: + case OpenSearchPPLParser.TIE_BREAKER: + case OpenSearchPPLParser.TYPE: + case OpenSearchPPLParser.ZERO_TERMS_QUERY: + case OpenSearchPPLParser.SPAN: + case OpenSearchPPLParser.MS: + case OpenSearchPPLParser.S: + case OpenSearchPPLParser.M: + case OpenSearchPPLParser.H: + case OpenSearchPPLParser.W: + case OpenSearchPPLParser.Q: + case OpenSearchPPLParser.Y: + case OpenSearchPPLParser.ID: + case OpenSearchPPLParser.BQUOTA_STRING: + this.enterOuterAlt(localContext, 1); + { + this.state = 848; + this.qualifiedName(); + } + break; + case OpenSearchPPLParser.DQUOTA_STRING: + case OpenSearchPPLParser.SQUOTA_STRING: + this.enterOuterAlt(localContext, 2); + { + this.state = 849; + this.stringLiteral(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceQuery(): RelevanceQueryContext { + let localContext = new RelevanceQueryContext(this.context, this.state); + this.enterRule(localContext, 148, OpenSearchPPLParser.RULE_relevanceQuery); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 852; + this.relevanceArgValue(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public relevanceArgValue(): RelevanceArgValueContext { + let localContext = new RelevanceArgValueContext(this.context, this.state); + this.enterRule(localContext, 150, OpenSearchPPLParser.RULE_relevanceArgValue); + try { + this.state = 856; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 68, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 854; + this.qualifiedName(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 855; + this.literalValue(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public mathematicalFunctionName(): MathematicalFunctionNameContext { + let localContext = new MathematicalFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 152, OpenSearchPPLParser.RULE_mathematicalFunctionName); + try { + this.state = 881; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.ABS: + this.enterOuterAlt(localContext, 1); + { + this.state = 858; + this.match(OpenSearchPPLParser.ABS); + } + break; + case OpenSearchPPLParser.CBRT: + this.enterOuterAlt(localContext, 2); + { + this.state = 859; + this.match(OpenSearchPPLParser.CBRT); + } + break; + case OpenSearchPPLParser.CEIL: + this.enterOuterAlt(localContext, 3); + { + this.state = 860; + this.match(OpenSearchPPLParser.CEIL); + } + break; + case OpenSearchPPLParser.CEILING: + this.enterOuterAlt(localContext, 4); + { + this.state = 861; + this.match(OpenSearchPPLParser.CEILING); + } + break; + case OpenSearchPPLParser.CONV: + this.enterOuterAlt(localContext, 5); + { + this.state = 862; + this.match(OpenSearchPPLParser.CONV); + } + break; + case OpenSearchPPLParser.CRC32: + this.enterOuterAlt(localContext, 6); + { + this.state = 863; + this.match(OpenSearchPPLParser.CRC32); + } + break; + case OpenSearchPPLParser.E: + this.enterOuterAlt(localContext, 7); + { + this.state = 864; + this.match(OpenSearchPPLParser.E); + } + break; + case OpenSearchPPLParser.EXP: + this.enterOuterAlt(localContext, 8); + { + this.state = 865; + this.match(OpenSearchPPLParser.EXP); + } + break; + case OpenSearchPPLParser.FLOOR: + this.enterOuterAlt(localContext, 9); + { + this.state = 866; + this.match(OpenSearchPPLParser.FLOOR); + } + break; + case OpenSearchPPLParser.LN: + this.enterOuterAlt(localContext, 10); + { + this.state = 867; + this.match(OpenSearchPPLParser.LN); + } + break; + case OpenSearchPPLParser.LOG: + this.enterOuterAlt(localContext, 11); + { + this.state = 868; + this.match(OpenSearchPPLParser.LOG); + } + break; + case OpenSearchPPLParser.LOG10: + this.enterOuterAlt(localContext, 12); + { + this.state = 869; + this.match(OpenSearchPPLParser.LOG10); + } + break; + case OpenSearchPPLParser.LOG2: + this.enterOuterAlt(localContext, 13); + { + this.state = 870; + this.match(OpenSearchPPLParser.LOG2); + } + break; + case OpenSearchPPLParser.MOD: + this.enterOuterAlt(localContext, 14); + { + this.state = 871; + this.match(OpenSearchPPLParser.MOD); + } + break; + case OpenSearchPPLParser.PI: + this.enterOuterAlt(localContext, 15); + { + this.state = 872; + this.match(OpenSearchPPLParser.PI); + } + break; + case OpenSearchPPLParser.POW: + this.enterOuterAlt(localContext, 16); + { + this.state = 873; + this.match(OpenSearchPPLParser.POW); + } + break; + case OpenSearchPPLParser.POWER: + this.enterOuterAlt(localContext, 17); + { + this.state = 874; + this.match(OpenSearchPPLParser.POWER); + } + break; + case OpenSearchPPLParser.RAND: + this.enterOuterAlt(localContext, 18); + { + this.state = 875; + this.match(OpenSearchPPLParser.RAND); + } + break; + case OpenSearchPPLParser.ROUND: + this.enterOuterAlt(localContext, 19); + { + this.state = 876; + this.match(OpenSearchPPLParser.ROUND); + } + break; + case OpenSearchPPLParser.SIGN: + this.enterOuterAlt(localContext, 20); + { + this.state = 877; + this.match(OpenSearchPPLParser.SIGN); + } + break; + case OpenSearchPPLParser.SQRT: + this.enterOuterAlt(localContext, 21); + { + this.state = 878; + this.match(OpenSearchPPLParser.SQRT); + } + break; + case OpenSearchPPLParser.TRUNCATE: + this.enterOuterAlt(localContext, 22); + { + this.state = 879; + this.match(OpenSearchPPLParser.TRUNCATE); + } + break; + case OpenSearchPPLParser.ACOS: + case OpenSearchPPLParser.ASIN: + case OpenSearchPPLParser.ATAN: + case OpenSearchPPLParser.ATAN2: + case OpenSearchPPLParser.COS: + case OpenSearchPPLParser.COT: + case OpenSearchPPLParser.DEGREES: + case OpenSearchPPLParser.RADIANS: + case OpenSearchPPLParser.SIN: + case OpenSearchPPLParser.TAN: + this.enterOuterAlt(localContext, 23); + { + this.state = 880; + this.trigonometricFunctionName(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public trigonometricFunctionName(): TrigonometricFunctionNameContext { + let localContext = new TrigonometricFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 154, OpenSearchPPLParser.RULE_trigonometricFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 883; + _la = this.tokenStream.LA(1); + if(!(((((_la - 195)) & ~0x1F) === 0 && ((1 << (_la - 195)) & 1023) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public dateTimeFunctionName(): DateTimeFunctionNameContext { + let localContext = new DateTimeFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 156, OpenSearchPPLParser.RULE_dateTimeFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 885; + _la = this.tokenStream.LA(1); + if(!(((((_la - 68)) & ~0x1F) === 0 && ((1 << (_la - 68)) & 1038960967) !== 0) || ((((_la - 205)) & ~0x1F) === 0 && ((1 << (_la - 205)) & 4292607999) !== 0) || ((((_la - 237)) & ~0x1F) === 0 && ((1 << (_la - 237)) & 523903) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public getFormatFunction(): GetFormatFunctionContext { + let localContext = new GetFormatFunctionContext(this.context, this.state); + this.enterRule(localContext, 158, OpenSearchPPLParser.RULE_getFormatFunction); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 887; + this.match(OpenSearchPPLParser.GET_FORMAT); + this.state = 888; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 889; + this.getFormatType(); + this.state = 890; + this.match(OpenSearchPPLParser.COMMA); + this.state = 891; + this.functionArg(); + this.state = 892; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public getFormatType(): GetFormatTypeContext { + let localContext = new GetFormatTypeContext(this.context, this.state); + this.enterRule(localContext, 160, OpenSearchPPLParser.RULE_getFormatType); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 894; + _la = this.tokenStream.LA(1); + if(!(_la === 69 || ((((_la - 212)) & ~0x1F) === 0 && ((1 << (_la - 212)) & 2684354561) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public extractFunction(): ExtractFunctionContext { + let localContext = new ExtractFunctionContext(this.context, this.state); + this.enterRule(localContext, 162, OpenSearchPPLParser.RULE_extractFunction); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 896; + this.match(OpenSearchPPLParser.EXTRACT); + this.state = 897; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 898; + this.datetimePart(); + this.state = 899; + this.match(OpenSearchPPLParser.FROM); + this.state = 900; + this.functionArg(); + this.state = 901; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public simpleDateTimePart(): SimpleDateTimePartContext { + let localContext = new SimpleDateTimePartContext(this.context, this.state); + this.enterRule(localContext, 164, OpenSearchPPLParser.RULE_simpleDateTimePart); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 903; + _la = this.tokenStream.LA(1); + if(!(((((_la - 70)) & ~0x1F) === 0 && ((1 << (_la - 70)) & 174608449) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public complexDateTimePart(): ComplexDateTimePartContext { + let localContext = new ComplexDateTimePartContext(this.context, this.state); + this.enterRule(localContext, 166, OpenSearchPPLParser.RULE_complexDateTimePart); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 905; + _la = this.tokenStream.LA(1); + if(!(((((_la - 71)) & ~0x1F) === 0 && ((1 << (_la - 71)) & 138560215) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public datetimePart(): DatetimePartContext { + let localContext = new DatetimePartContext(this.context, this.state); + this.enterRule(localContext, 168, OpenSearchPPLParser.RULE_datetimePart); + try { + this.state = 909; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.DAY: + case OpenSearchPPLParser.HOUR: + case OpenSearchPPLParser.MICROSECOND: + case OpenSearchPPLParser.MINUTE: + case OpenSearchPPLParser.MONTH: + case OpenSearchPPLParser.QUARTER: + case OpenSearchPPLParser.SECOND: + case OpenSearchPPLParser.WEEK: + case OpenSearchPPLParser.YEAR: + this.enterOuterAlt(localContext, 1); + { + this.state = 907; + this.simpleDateTimePart(); + } + break; + case OpenSearchPPLParser.DAY_HOUR: + case OpenSearchPPLParser.DAY_MICROSECOND: + case OpenSearchPPLParser.DAY_MINUTE: + case OpenSearchPPLParser.DAY_SECOND: + case OpenSearchPPLParser.HOUR_MICROSECOND: + case OpenSearchPPLParser.HOUR_MINUTE: + case OpenSearchPPLParser.HOUR_SECOND: + case OpenSearchPPLParser.MINUTE_MICROSECOND: + case OpenSearchPPLParser.MINUTE_SECOND: + case OpenSearchPPLParser.SECOND_MICROSECOND: + case OpenSearchPPLParser.YEAR_MONTH: + this.enterOuterAlt(localContext, 2); + { + this.state = 908; + this.complexDateTimePart(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public timestampFunction(): TimestampFunctionContext { + let localContext = new TimestampFunctionContext(this.context, this.state); + this.enterRule(localContext, 170, OpenSearchPPLParser.RULE_timestampFunction); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 911; + this.timestampFunctionName(); + this.state = 912; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 913; + this.simpleDateTimePart(); + this.state = 914; + this.match(OpenSearchPPLParser.COMMA); + this.state = 915; + localContext._firstArg = this.functionArg(); + this.state = 916; + this.match(OpenSearchPPLParser.COMMA); + this.state = 917; + localContext._secondArg = this.functionArg(); + this.state = 918; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public timestampFunctionName(): TimestampFunctionNameContext { + let localContext = new TimestampFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 172, OpenSearchPPLParser.RULE_timestampFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 920; + _la = this.tokenStream.LA(1); + if(!(_la === 244 || _la === 245)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public conditionFunctionBase(): ConditionFunctionBaseContext { + let localContext = new ConditionFunctionBaseContext(this.context, this.state); + this.enterRule(localContext, 174, OpenSearchPPLParser.RULE_conditionFunctionBase); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 922; + _la = this.tokenStream.LA(1); + if(!(((((_la - 275)) & ~0x1F) === 0 && ((1 << (_la - 275)) & 63) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public systemFunctionName(): SystemFunctionNameContext { + let localContext = new SystemFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 176, OpenSearchPPLParser.RULE_systemFunctionName); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 924; + this.match(OpenSearchPPLParser.TYPEOF); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public textFunctionName(): TextFunctionNameContext { + let localContext = new TextFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 178, OpenSearchPPLParser.RULE_textFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 926; + _la = this.tokenStream.LA(1); + if(!(((((_la - 256)) & ~0x1F) === 0 && ((1 << (_la - 256)) & 262111) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public positionFunctionName(): PositionFunctionNameContext { + let localContext = new PositionFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 180, OpenSearchPPLParser.RULE_positionFunctionName); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 928; + this.match(OpenSearchPPLParser.POSITION); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public comparisonOperator(): ComparisonOperatorContext { + let localContext = new ComparisonOperatorContext(this.context, this.state); + this.enterRule(localContext, 182, OpenSearchPPLParser.RULE_comparisonOperator); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 930; + _la = this.tokenStream.LA(1); + if(!(_la === 67 || ((((_la - 112)) & ~0x1F) === 0 && ((1 << (_la - 112)) & 63) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public singleFieldRelevanceFunctionName(): SingleFieldRelevanceFunctionNameContext { + let localContext = new SingleFieldRelevanceFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 184, OpenSearchPPLParser.RULE_singleFieldRelevanceFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 932; + _la = this.tokenStream.LA(1); + if(!(((((_la - 282)) & ~0x1F) === 0 && ((1 << (_la - 282)) & 15) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public multiFieldRelevanceFunctionName(): MultiFieldRelevanceFunctionNameContext { + let localContext = new MultiFieldRelevanceFunctionNameContext(this.context, this.state); + this.enterRule(localContext, 186, OpenSearchPPLParser.RULE_multiFieldRelevanceFunctionName); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 934; + _la = this.tokenStream.LA(1); + if(!(((((_la - 286)) & ~0x1F) === 0 && ((1 << (_la - 286)) & 7) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public literalValue(): LiteralValueContext { + let localContext = new LiteralValueContext(this.context, this.state); + this.enterRule(localContext, 188, OpenSearchPPLParser.RULE_literalValue); + try { + this.state = 942; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 71, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 936; + this.intervalLiteral(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 937; + this.stringLiteral(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 938; + this.integerLiteral(); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 939; + this.decimalLiteral(); + } + break; + case 5: + this.enterOuterAlt(localContext, 5); + { + this.state = 940; + this.booleanLiteral(); + } + break; + case 6: + this.enterOuterAlt(localContext, 6); + { + this.state = 941; + this.datetimeLiteral(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public intervalLiteral(): IntervalLiteralContext { + let localContext = new IntervalLiteralContext(this.context, this.state); + this.enterRule(localContext, 190, OpenSearchPPLParser.RULE_intervalLiteral); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 944; + this.match(OpenSearchPPLParser.INTERVAL); + this.state = 945; + this.valueExpression(0); + this.state = 946; + this.intervalUnit(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public stringLiteral(): StringLiteralContext { + let localContext = new StringLiteralContext(this.context, this.state); + this.enterRule(localContext, 192, OpenSearchPPLParser.RULE_stringLiteral); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 948; + _la = this.tokenStream.LA(1); + if(!(_la === 333 || _la === 334)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public integerLiteral(): IntegerLiteralContext { + let localContext = new IntegerLiteralContext(this.context, this.state); + this.enterRule(localContext, 194, OpenSearchPPLParser.RULE_integerLiteral); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 951; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119) { + { + this.state = 950; + _la = this.tokenStream.LA(1); + if(!(_la === 118 || _la === 119)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + + this.state = 953; + this.match(OpenSearchPPLParser.INTEGER_LITERAL); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public decimalLiteral(): DecimalLiteralContext { + let localContext = new DecimalLiteralContext(this.context, this.state); + this.enterRule(localContext, 196, OpenSearchPPLParser.RULE_decimalLiteral); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 956; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 118 || _la === 119) { + { + this.state = 955; + _la = this.tokenStream.LA(1); + if(!(_la === 118 || _la === 119)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + + this.state = 958; + this.match(OpenSearchPPLParser.DECIMAL_LITERAL); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public booleanLiteral(): BooleanLiteralContext { + let localContext = new BooleanLiteralContext(this.context, this.state); + this.enterRule(localContext, 198, OpenSearchPPLParser.RULE_booleanLiteral); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 960; + _la = this.tokenStream.LA(1); + if(!(_la === 65 || _la === 66)) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public datetimeLiteral(): DatetimeLiteralContext { + let localContext = new DatetimeLiteralContext(this.context, this.state); + this.enterRule(localContext, 200, OpenSearchPPLParser.RULE_datetimeLiteral); + try { + this.state = 965; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.DATE: + this.enterOuterAlt(localContext, 1); + { + this.state = 962; + this.dateLiteral(); + } + break; + case OpenSearchPPLParser.TIME: + this.enterOuterAlt(localContext, 2); + { + this.state = 963; + this.timeLiteral(); + } + break; + case OpenSearchPPLParser.TIMESTAMP: + this.enterOuterAlt(localContext, 3); + { + this.state = 964; + this.timestampLiteral(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public dateLiteral(): DateLiteralContext { + let localContext = new DateLiteralContext(this.context, this.state); + this.enterRule(localContext, 202, OpenSearchPPLParser.RULE_dateLiteral); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 967; + this.match(OpenSearchPPLParser.DATE); + this.state = 968; + localContext._date = this.stringLiteral(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public timeLiteral(): TimeLiteralContext { + let localContext = new TimeLiteralContext(this.context, this.state); + this.enterRule(localContext, 204, OpenSearchPPLParser.RULE_timeLiteral); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 970; + this.match(OpenSearchPPLParser.TIME); + this.state = 971; + localContext._time = this.stringLiteral(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public timestampLiteral(): TimestampLiteralContext { + let localContext = new TimestampLiteralContext(this.context, this.state); + this.enterRule(localContext, 206, OpenSearchPPLParser.RULE_timestampLiteral); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 973; + this.match(OpenSearchPPLParser.TIMESTAMP); + this.state = 974; + localContext._timestamp = this.stringLiteral(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public intervalUnit(): IntervalUnitContext { + let localContext = new IntervalUnitContext(this.context, this.state); + this.enterRule(localContext, 208, OpenSearchPPLParser.RULE_intervalUnit); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 976; + _la = this.tokenStream.LA(1); + if(!(((((_la - 70)) & ~0x1F) === 0 && ((1 << (_la - 70)) & 451728879) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public timespanUnit(): TimespanUnitContext { + let localContext = new TimespanUnitContext(this.context, this.state); + this.enterRule(localContext, 210, OpenSearchPPLParser.RULE_timespanUnit); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 978; + _la = this.tokenStream.LA(1); + if(!(_la === 31 || ((((_la - 70)) & ~0x1F) === 0 && ((1 << (_la - 70)) & 174612545) !== 0) || ((((_la - 321)) & ~0x1F) === 0 && ((1 << (_la - 321)) & 127) !== 0))) { + this.errorHandler.recoverInline(this); + } + else { + this.errorHandler.reportMatch(this); + this.consume(); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public valueList(): ValueListContext { + let localContext = new ValueListContext(this.context, this.state); + this.enterRule(localContext, 212, OpenSearchPPLParser.RULE_valueList); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 980; + this.match(OpenSearchPPLParser.LT_PRTHS); + this.state = 981; + this.literalValue(); + this.state = 986; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 110) { + { + { + this.state = 982; + this.match(OpenSearchPPLParser.COMMA); + this.state = 983; + this.literalValue(); + } + } + this.state = 988; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 989; + this.match(OpenSearchPPLParser.RT_PRTHS); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public qualifiedName(): QualifiedNameContext { + let localContext = new QualifiedNameContext(this.context, this.state); + this.enterRule(localContext, 214, OpenSearchPPLParser.RULE_qualifiedName); + try { + let alternative: number; + localContext = new IdentsAsQualifiedNameContext(localContext); + this.enterOuterAlt(localContext, 1); + { + this.state = 991; + this.ident(); + this.state = 996; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 76, this.context); + while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { + if (alternative === 1) { + { + { + this.state = 992; + this.match(OpenSearchPPLParser.DOT); + this.state = 993; + this.ident(); + } + } + } + this.state = 998; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 76, this.context); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public tableQualifiedName(): TableQualifiedNameContext { + let localContext = new TableQualifiedNameContext(this.context, this.state); + this.enterRule(localContext, 216, OpenSearchPPLParser.RULE_tableQualifiedName); + try { + let alternative: number; + localContext = new IdentsAsTableQualifiedNameContext(localContext); + this.enterOuterAlt(localContext, 1); + { + this.state = 999; + this.tableIdent(); + this.state = 1004; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 77, this.context); + while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { + if (alternative === 1) { + { + { + this.state = 1000; + this.match(OpenSearchPPLParser.DOT); + this.state = 1001; + this.ident(); + } + } + } + this.state = 1006; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 77, this.context); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public wcQualifiedName(): WcQualifiedNameContext { + let localContext = new WcQualifiedNameContext(this.context, this.state); + this.enterRule(localContext, 218, OpenSearchPPLParser.RULE_wcQualifiedName); + let _la: number; + try { + localContext = new IdentsAsWildcardQualifiedNameContext(localContext); + this.enterOuterAlt(localContext, 1); + { + this.state = 1007; + this.wildcard(); + this.state = 1012; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (_la === 111) { + { + { + this.state = 1008; + this.match(OpenSearchPPLParser.DOT); + this.state = 1009; + this.wildcard(); + } + } + this.state = 1014; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public ident(): IdentContext { + let localContext = new IdentContext(this.context, this.state); + this.enterRule(localContext, 220, OpenSearchPPLParser.RULE_ident); + let _la: number; + try { + this.state = 1025; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case OpenSearchPPLParser.DOT: + case OpenSearchPPLParser.ID: + this.enterOuterAlt(localContext, 1); + { + this.state = 1016; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 111) { + { + this.state = 1015; + this.match(OpenSearchPPLParser.DOT); + } + } + + this.state = 1018; + this.match(OpenSearchPPLParser.ID); + } + break; + case OpenSearchPPLParser.BACKTICK: + this.enterOuterAlt(localContext, 2); + { + this.state = 1019; + this.match(OpenSearchPPLParser.BACKTICK); + this.state = 1020; + this.ident(); + this.state = 1021; + this.match(OpenSearchPPLParser.BACKTICK); + } + break; + case OpenSearchPPLParser.BQUOTA_STRING: + this.enterOuterAlt(localContext, 3); + { + this.state = 1023; + this.match(OpenSearchPPLParser.BQUOTA_STRING); + } + break; + case OpenSearchPPLParser.SEARCH: + case OpenSearchPPLParser.DESCRIBE: + case OpenSearchPPLParser.SHOW: + case OpenSearchPPLParser.FROM: + case OpenSearchPPLParser.WHERE: + case OpenSearchPPLParser.FIELDS: + case OpenSearchPPLParser.RENAME: + case OpenSearchPPLParser.STATS: + case OpenSearchPPLParser.DEDUP: + case OpenSearchPPLParser.SORT: + case OpenSearchPPLParser.EVAL: + case OpenSearchPPLParser.HEAD: + case OpenSearchPPLParser.TOP: + case OpenSearchPPLParser.RARE: + case OpenSearchPPLParser.PARSE: + case OpenSearchPPLParser.METHOD: + case OpenSearchPPLParser.REGEX: + case OpenSearchPPLParser.PUNCT: + case OpenSearchPPLParser.GROK: + case OpenSearchPPLParser.PATTERN: + case OpenSearchPPLParser.PATTERNS: + case OpenSearchPPLParser.NEW_FIELD: + case OpenSearchPPLParser.KMEANS: + case OpenSearchPPLParser.AD: + case OpenSearchPPLParser.ML: + case OpenSearchPPLParser.SOURCE: + case OpenSearchPPLParser.INDEX: + case OpenSearchPPLParser.D: + case OpenSearchPPLParser.DESC: + case OpenSearchPPLParser.DATASOURCES: + case OpenSearchPPLParser.SORTBY: + case OpenSearchPPLParser.STR: + case OpenSearchPPLParser.IP: + case OpenSearchPPLParser.NUM: + case OpenSearchPPLParser.KEEPEMPTY: + case OpenSearchPPLParser.CONSECUTIVE: + case OpenSearchPPLParser.DEDUP_SPLITVALUES: + case OpenSearchPPLParser.PARTITIONS: + case OpenSearchPPLParser.ALLNUM: + case OpenSearchPPLParser.DELIM: + case OpenSearchPPLParser.CENTROIDS: + case OpenSearchPPLParser.ITERATIONS: + case OpenSearchPPLParser.DISTANCE_TYPE: + case OpenSearchPPLParser.NUMBER_OF_TREES: + case OpenSearchPPLParser.SHINGLE_SIZE: + case OpenSearchPPLParser.SAMPLE_SIZE: + case OpenSearchPPLParser.OUTPUT_AFTER: + case OpenSearchPPLParser.TIME_DECAY: + case OpenSearchPPLParser.ANOMALY_RATE: + case OpenSearchPPLParser.CATEGORY_FIELD: + case OpenSearchPPLParser.TIME_FIELD: + case OpenSearchPPLParser.TIME_ZONE: + case OpenSearchPPLParser.TRAINING_DATA_SIZE: + case OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD: + case OpenSearchPPLParser.CONVERT_TZ: + case OpenSearchPPLParser.DATETIME: + case OpenSearchPPLParser.DAY: + case OpenSearchPPLParser.DAY_HOUR: + case OpenSearchPPLParser.DAY_MICROSECOND: + case OpenSearchPPLParser.DAY_MINUTE: + case OpenSearchPPLParser.DAY_OF_YEAR: + case OpenSearchPPLParser.DAY_SECOND: + case OpenSearchPPLParser.HOUR: + case OpenSearchPPLParser.HOUR_MICROSECOND: + case OpenSearchPPLParser.HOUR_MINUTE: + case OpenSearchPPLParser.HOUR_OF_DAY: + case OpenSearchPPLParser.HOUR_SECOND: + case OpenSearchPPLParser.MICROSECOND: + case OpenSearchPPLParser.MILLISECOND: + case OpenSearchPPLParser.MINUTE: + case OpenSearchPPLParser.MINUTE_MICROSECOND: + case OpenSearchPPLParser.MINUTE_OF_DAY: + case OpenSearchPPLParser.MINUTE_OF_HOUR: + case OpenSearchPPLParser.MINUTE_SECOND: + case OpenSearchPPLParser.MONTH: + case OpenSearchPPLParser.MONTH_OF_YEAR: + case OpenSearchPPLParser.QUARTER: + case OpenSearchPPLParser.SECOND: + case OpenSearchPPLParser.SECOND_MICROSECOND: + case OpenSearchPPLParser.SECOND_OF_MINUTE: + case OpenSearchPPLParser.WEEK: + case OpenSearchPPLParser.WEEK_OF_YEAR: + case OpenSearchPPLParser.YEAR: + case OpenSearchPPLParser.YEAR_MONTH: + case OpenSearchPPLParser.AVG: + case OpenSearchPPLParser.COUNT: + case OpenSearchPPLParser.DISTINCT_COUNT: + case OpenSearchPPLParser.ESTDC: + case OpenSearchPPLParser.ESTDC_ERROR: + case OpenSearchPPLParser.MAX: + case OpenSearchPPLParser.MEAN: + case OpenSearchPPLParser.MEDIAN: + case OpenSearchPPLParser.MIN: + case OpenSearchPPLParser.MODE: + case OpenSearchPPLParser.RANGE: + case OpenSearchPPLParser.STDEV: + case OpenSearchPPLParser.STDEVP: + case OpenSearchPPLParser.SUM: + case OpenSearchPPLParser.SUMSQ: + case OpenSearchPPLParser.VAR_SAMP: + case OpenSearchPPLParser.VAR_POP: + case OpenSearchPPLParser.STDDEV_SAMP: + case OpenSearchPPLParser.STDDEV_POP: + case OpenSearchPPLParser.PERCENTILE: + case OpenSearchPPLParser.TAKE: + case OpenSearchPPLParser.FIRST: + case OpenSearchPPLParser.LAST: + case OpenSearchPPLParser.LIST: + case OpenSearchPPLParser.VALUES: + case OpenSearchPPLParser.EARLIEST: + case OpenSearchPPLParser.EARLIEST_TIME: + case OpenSearchPPLParser.LATEST: + case OpenSearchPPLParser.LATEST_TIME: + case OpenSearchPPLParser.PER_DAY: + case OpenSearchPPLParser.PER_HOUR: + case OpenSearchPPLParser.PER_MINUTE: + case OpenSearchPPLParser.PER_SECOND: + case OpenSearchPPLParser.RATE: + case OpenSearchPPLParser.SPARKLINE: + case OpenSearchPPLParser.C: + case OpenSearchPPLParser.DC: + case OpenSearchPPLParser.ABS: + case OpenSearchPPLParser.CBRT: + case OpenSearchPPLParser.CEIL: + case OpenSearchPPLParser.CEILING: + case OpenSearchPPLParser.CONV: + case OpenSearchPPLParser.CRC32: + case OpenSearchPPLParser.E: + case OpenSearchPPLParser.EXP: + case OpenSearchPPLParser.FLOOR: + case OpenSearchPPLParser.LN: + case OpenSearchPPLParser.LOG: + case OpenSearchPPLParser.LOG10: + case OpenSearchPPLParser.LOG2: + case OpenSearchPPLParser.MOD: + case OpenSearchPPLParser.PI: + case OpenSearchPPLParser.POSITION: + case OpenSearchPPLParser.POW: + case OpenSearchPPLParser.POWER: + case OpenSearchPPLParser.RAND: + case OpenSearchPPLParser.ROUND: + case OpenSearchPPLParser.SIGN: + case OpenSearchPPLParser.SQRT: + case OpenSearchPPLParser.TRUNCATE: + case OpenSearchPPLParser.ACOS: + case OpenSearchPPLParser.ASIN: + case OpenSearchPPLParser.ATAN: + case OpenSearchPPLParser.ATAN2: + case OpenSearchPPLParser.COS: + case OpenSearchPPLParser.COT: + case OpenSearchPPLParser.DEGREES: + case OpenSearchPPLParser.RADIANS: + case OpenSearchPPLParser.SIN: + case OpenSearchPPLParser.TAN: + case OpenSearchPPLParser.ADDDATE: + case OpenSearchPPLParser.ADDTIME: + case OpenSearchPPLParser.CURDATE: + case OpenSearchPPLParser.CURRENT_DATE: + case OpenSearchPPLParser.CURRENT_TIME: + case OpenSearchPPLParser.CURRENT_TIMESTAMP: + case OpenSearchPPLParser.CURTIME: + case OpenSearchPPLParser.DATE: + case OpenSearchPPLParser.DATEDIFF: + case OpenSearchPPLParser.DATE_ADD: + case OpenSearchPPLParser.DATE_FORMAT: + case OpenSearchPPLParser.DATE_SUB: + case OpenSearchPPLParser.DAYNAME: + case OpenSearchPPLParser.DAYOFMONTH: + case OpenSearchPPLParser.DAYOFWEEK: + case OpenSearchPPLParser.DAYOFYEAR: + case OpenSearchPPLParser.DAY_OF_MONTH: + case OpenSearchPPLParser.DAY_OF_WEEK: + case OpenSearchPPLParser.FROM_DAYS: + case OpenSearchPPLParser.FROM_UNIXTIME: + case OpenSearchPPLParser.LAST_DAY: + case OpenSearchPPLParser.LOCALTIME: + case OpenSearchPPLParser.LOCALTIMESTAMP: + case OpenSearchPPLParser.MAKEDATE: + case OpenSearchPPLParser.MAKETIME: + case OpenSearchPPLParser.MONTHNAME: + case OpenSearchPPLParser.NOW: + case OpenSearchPPLParser.PERIOD_ADD: + case OpenSearchPPLParser.PERIOD_DIFF: + case OpenSearchPPLParser.SEC_TO_TIME: + case OpenSearchPPLParser.STR_TO_DATE: + case OpenSearchPPLParser.SUBDATE: + case OpenSearchPPLParser.SUBTIME: + case OpenSearchPPLParser.SYSDATE: + case OpenSearchPPLParser.TIME: + case OpenSearchPPLParser.TIMEDIFF: + case OpenSearchPPLParser.TIMESTAMP: + case OpenSearchPPLParser.TIME_FORMAT: + case OpenSearchPPLParser.TIME_TO_SEC: + case OpenSearchPPLParser.TO_DAYS: + case OpenSearchPPLParser.TO_SECONDS: + case OpenSearchPPLParser.UNIX_TIMESTAMP: + case OpenSearchPPLParser.UTC_DATE: + case OpenSearchPPLParser.UTC_TIME: + case OpenSearchPPLParser.UTC_TIMESTAMP: + case OpenSearchPPLParser.WEEKDAY: + case OpenSearchPPLParser.YEARWEEK: + case OpenSearchPPLParser.SUBSTR: + case OpenSearchPPLParser.SUBSTRING: + case OpenSearchPPLParser.LTRIM: + case OpenSearchPPLParser.RTRIM: + case OpenSearchPPLParser.TRIM: + case OpenSearchPPLParser.LOWER: + case OpenSearchPPLParser.UPPER: + case OpenSearchPPLParser.CONCAT: + case OpenSearchPPLParser.CONCAT_WS: + case OpenSearchPPLParser.LENGTH: + case OpenSearchPPLParser.STRCMP: + case OpenSearchPPLParser.RIGHT: + case OpenSearchPPLParser.LEFT: + case OpenSearchPPLParser.ASCII: + case OpenSearchPPLParser.LOCATE: + case OpenSearchPPLParser.REPLACE: + case OpenSearchPPLParser.REVERSE: + case OpenSearchPPLParser.LIKE: + case OpenSearchPPLParser.ISNULL: + case OpenSearchPPLParser.ISNOTNULL: + case OpenSearchPPLParser.IFNULL: + case OpenSearchPPLParser.NULLIF: + case OpenSearchPPLParser.IF: + case OpenSearchPPLParser.TYPEOF: + case OpenSearchPPLParser.ALLOW_LEADING_WILDCARD: + case OpenSearchPPLParser.ANALYZE_WILDCARD: + case OpenSearchPPLParser.ANALYZER: + case OpenSearchPPLParser.AUTO_GENERATE_SYNONYMS_PHRASE_QUERY: + case OpenSearchPPLParser.BOOST: + case OpenSearchPPLParser.CUTOFF_FREQUENCY: + case OpenSearchPPLParser.DEFAULT_FIELD: + case OpenSearchPPLParser.DEFAULT_OPERATOR: + case OpenSearchPPLParser.ENABLE_POSITION_INCREMENTS: + case OpenSearchPPLParser.ESCAPE: + case OpenSearchPPLParser.FLAGS: + case OpenSearchPPLParser.FUZZY_MAX_EXPANSIONS: + case OpenSearchPPLParser.FUZZY_PREFIX_LENGTH: + case OpenSearchPPLParser.FUZZY_TRANSPOSITIONS: + case OpenSearchPPLParser.FUZZY_REWRITE: + case OpenSearchPPLParser.FUZZINESS: + case OpenSearchPPLParser.LENIENT: + case OpenSearchPPLParser.LOW_FREQ_OPERATOR: + case OpenSearchPPLParser.MAX_DETERMINIZED_STATES: + case OpenSearchPPLParser.MAX_EXPANSIONS: + case OpenSearchPPLParser.MINIMUM_SHOULD_MATCH: + case OpenSearchPPLParser.OPERATOR: + case OpenSearchPPLParser.PHRASE_SLOP: + case OpenSearchPPLParser.PREFIX_LENGTH: + case OpenSearchPPLParser.QUOTE_ANALYZER: + case OpenSearchPPLParser.QUOTE_FIELD_SUFFIX: + case OpenSearchPPLParser.REWRITE: + case OpenSearchPPLParser.SLOP: + case OpenSearchPPLParser.TIE_BREAKER: + case OpenSearchPPLParser.TYPE: + case OpenSearchPPLParser.ZERO_TERMS_QUERY: + case OpenSearchPPLParser.SPAN: + case OpenSearchPPLParser.MS: + case OpenSearchPPLParser.S: + case OpenSearchPPLParser.M: + case OpenSearchPPLParser.H: + case OpenSearchPPLParser.W: + case OpenSearchPPLParser.Q: + case OpenSearchPPLParser.Y: + this.enterOuterAlt(localContext, 4); + { + this.state = 1024; + this.keywordsCanBeId(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public tableIdent(): TableIdentContext { + let localContext = new TableIdentContext(this.context, this.state); + this.enterRule(localContext, 222, OpenSearchPPLParser.RULE_tableIdent); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 1028; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 329) { + { + this.state = 1027; + this.match(OpenSearchPPLParser.CLUSTER); + } + } + + this.state = 1030; + this.ident(); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public wildcard(): WildcardContext { + let localContext = new WildcardContext(this.context, this.state); + this.enterRule(localContext, 224, OpenSearchPPLParser.RULE_wildcard); + let _la: number; + try { + let alternative: number; + this.state = 1055; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 84, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 1032; + this.ident(); + this.state = 1037; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 82, this.context); + while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { + if (alternative === 1) { + { + { + this.state = 1033; + this.match(OpenSearchPPLParser.MODULE); + this.state = 1034; + this.ident(); + } + } + } + this.state = 1039; + this.errorHandler.sync(this); + alternative = this.interpreter.adaptivePredict(this.tokenStream, 82, this.context); + } + this.state = 1041; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 122) { + { + this.state = 1040; + this.match(OpenSearchPPLParser.MODULE); + } + } + + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 1043; + this.match(OpenSearchPPLParser.SINGLE_QUOTE); + this.state = 1044; + this.wildcard(); + this.state = 1045; + this.match(OpenSearchPPLParser.SINGLE_QUOTE); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 1047; + this.match(OpenSearchPPLParser.DOUBLE_QUOTE); + this.state = 1048; + this.wildcard(); + this.state = 1049; + this.match(OpenSearchPPLParser.DOUBLE_QUOTE); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 1051; + this.match(OpenSearchPPLParser.BACKTICK); + this.state = 1052; + this.wildcard(); + this.state = 1053; + this.match(OpenSearchPPLParser.BACKTICK); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public keywordsCanBeId(): KeywordsCanBeIdContext { + let localContext = new KeywordsCanBeIdContext(this.context, this.state); + this.enterRule(localContext, 226, OpenSearchPPLParser.RULE_keywordsCanBeId); + try { + this.state = 1157; + this.errorHandler.sync(this); + switch (this.interpreter.adaptivePredict(this.tokenStream, 85, this.context) ) { + case 1: + this.enterOuterAlt(localContext, 1); + { + this.state = 1057; + this.match(OpenSearchPPLParser.D); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 1058; + this.timespanUnit(); + } + break; + case 3: + this.enterOuterAlt(localContext, 3); + { + this.state = 1059; + this.match(OpenSearchPPLParser.SPAN); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 1060; + this.evalFunctionName(); + } + break; + case 5: + this.enterOuterAlt(localContext, 5); + { + this.state = 1061; + this.relevanceArgName(); + } + break; + case 6: + this.enterOuterAlt(localContext, 6); + { + this.state = 1062; + this.intervalUnit(); + } + break; + case 7: + this.enterOuterAlt(localContext, 7); + { + this.state = 1063; + this.dateTimeFunctionName(); + } + break; + case 8: + this.enterOuterAlt(localContext, 8); + { + this.state = 1064; + this.textFunctionName(); + } + break; + case 9: + this.enterOuterAlt(localContext, 9); + { + this.state = 1065; + this.mathematicalFunctionName(); + } + break; + case 10: + this.enterOuterAlt(localContext, 10); + { + this.state = 1066; + this.positionFunctionName(); + } + break; + case 11: + this.enterOuterAlt(localContext, 11); + { + this.state = 1067; + this.match(OpenSearchPPLParser.SEARCH); + } + break; + case 12: + this.enterOuterAlt(localContext, 12); + { + this.state = 1068; + this.match(OpenSearchPPLParser.DESCRIBE); + } + break; + case 13: + this.enterOuterAlt(localContext, 13); + { + this.state = 1069; + this.match(OpenSearchPPLParser.SHOW); + } + break; + case 14: + this.enterOuterAlt(localContext, 14); + { + this.state = 1070; + this.match(OpenSearchPPLParser.FROM); + } + break; + case 15: + this.enterOuterAlt(localContext, 15); + { + this.state = 1071; + this.match(OpenSearchPPLParser.WHERE); + } + break; + case 16: + this.enterOuterAlt(localContext, 16); + { + this.state = 1072; + this.match(OpenSearchPPLParser.FIELDS); + } + break; + case 17: + this.enterOuterAlt(localContext, 17); + { + this.state = 1073; + this.match(OpenSearchPPLParser.RENAME); + } + break; + case 18: + this.enterOuterAlt(localContext, 18); + { + this.state = 1074; + this.match(OpenSearchPPLParser.STATS); + } + break; + case 19: + this.enterOuterAlt(localContext, 19); + { + this.state = 1075; + this.match(OpenSearchPPLParser.DEDUP); + } + break; + case 20: + this.enterOuterAlt(localContext, 20); + { + this.state = 1076; + this.match(OpenSearchPPLParser.SORT); + } + break; + case 21: + this.enterOuterAlt(localContext, 21); + { + this.state = 1077; + this.match(OpenSearchPPLParser.EVAL); + } + break; + case 22: + this.enterOuterAlt(localContext, 22); + { + this.state = 1078; + this.match(OpenSearchPPLParser.HEAD); + } + break; + case 23: + this.enterOuterAlt(localContext, 23); + { + this.state = 1079; + this.match(OpenSearchPPLParser.TOP); + } + break; + case 24: + this.enterOuterAlt(localContext, 24); + { + this.state = 1080; + this.match(OpenSearchPPLParser.RARE); + } + break; + case 25: + this.enterOuterAlt(localContext, 25); + { + this.state = 1081; + this.match(OpenSearchPPLParser.PARSE); + } + break; + case 26: + this.enterOuterAlt(localContext, 26); + { + this.state = 1082; + this.match(OpenSearchPPLParser.METHOD); + } + break; + case 27: + this.enterOuterAlt(localContext, 27); + { + this.state = 1083; + this.match(OpenSearchPPLParser.REGEX); + } + break; + case 28: + this.enterOuterAlt(localContext, 28); + { + this.state = 1084; + this.match(OpenSearchPPLParser.PUNCT); + } + break; + case 29: + this.enterOuterAlt(localContext, 29); + { + this.state = 1085; + this.match(OpenSearchPPLParser.GROK); + } + break; + case 30: + this.enterOuterAlt(localContext, 30); + { + this.state = 1086; + this.match(OpenSearchPPLParser.PATTERN); + } + break; + case 31: + this.enterOuterAlt(localContext, 31); + { + this.state = 1087; + this.match(OpenSearchPPLParser.PATTERNS); + } + break; + case 32: + this.enterOuterAlt(localContext, 32); + { + this.state = 1088; + this.match(OpenSearchPPLParser.NEW_FIELD); + } + break; + case 33: + this.enterOuterAlt(localContext, 33); + { + this.state = 1089; + this.match(OpenSearchPPLParser.KMEANS); + } + break; + case 34: + this.enterOuterAlt(localContext, 34); + { + this.state = 1090; + this.match(OpenSearchPPLParser.AD); + } + break; + case 35: + this.enterOuterAlt(localContext, 35); + { + this.state = 1091; + this.match(OpenSearchPPLParser.ML); + } + break; + case 36: + this.enterOuterAlt(localContext, 36); + { + this.state = 1092; + this.match(OpenSearchPPLParser.SOURCE); + } + break; + case 37: + this.enterOuterAlt(localContext, 37); + { + this.state = 1093; + this.match(OpenSearchPPLParser.INDEX); + } + break; + case 38: + this.enterOuterAlt(localContext, 38); + { + this.state = 1094; + this.match(OpenSearchPPLParser.DESC); + } + break; + case 39: + this.enterOuterAlt(localContext, 39); + { + this.state = 1095; + this.match(OpenSearchPPLParser.DATASOURCES); + } + break; + case 40: + this.enterOuterAlt(localContext, 40); + { + this.state = 1096; + this.match(OpenSearchPPLParser.SORTBY); + } + break; + case 41: + this.enterOuterAlt(localContext, 41); + { + this.state = 1097; + this.match(OpenSearchPPLParser.STR); + } + break; + case 42: + this.enterOuterAlt(localContext, 42); + { + this.state = 1098; + this.match(OpenSearchPPLParser.IP); + } + break; + case 43: + this.enterOuterAlt(localContext, 43); + { + this.state = 1099; + this.match(OpenSearchPPLParser.NUM); + } + break; + case 44: + this.enterOuterAlt(localContext, 44); + { + this.state = 1100; + this.match(OpenSearchPPLParser.KEEPEMPTY); + } + break; + case 45: + this.enterOuterAlt(localContext, 45); + { + this.state = 1101; + this.match(OpenSearchPPLParser.CONSECUTIVE); + } + break; + case 46: + this.enterOuterAlt(localContext, 46); + { + this.state = 1102; + this.match(OpenSearchPPLParser.DEDUP_SPLITVALUES); + } + break; + case 47: + this.enterOuterAlt(localContext, 47); + { + this.state = 1103; + this.match(OpenSearchPPLParser.PARTITIONS); + } + break; + case 48: + this.enterOuterAlt(localContext, 48); + { + this.state = 1104; + this.match(OpenSearchPPLParser.ALLNUM); + } + break; + case 49: + this.enterOuterAlt(localContext, 49); + { + this.state = 1105; + this.match(OpenSearchPPLParser.DELIM); + } + break; + case 50: + this.enterOuterAlt(localContext, 50); + { + this.state = 1106; + this.match(OpenSearchPPLParser.CENTROIDS); + } + break; + case 51: + this.enterOuterAlt(localContext, 51); + { + this.state = 1107; + this.match(OpenSearchPPLParser.ITERATIONS); + } + break; + case 52: + this.enterOuterAlt(localContext, 52); + { + this.state = 1108; + this.match(OpenSearchPPLParser.DISTANCE_TYPE); + } + break; + case 53: + this.enterOuterAlt(localContext, 53); + { + this.state = 1109; + this.match(OpenSearchPPLParser.NUMBER_OF_TREES); + } + break; + case 54: + this.enterOuterAlt(localContext, 54); + { + this.state = 1110; + this.match(OpenSearchPPLParser.SHINGLE_SIZE); + } + break; + case 55: + this.enterOuterAlt(localContext, 55); + { + this.state = 1111; + this.match(OpenSearchPPLParser.SAMPLE_SIZE); + } + break; + case 56: + this.enterOuterAlt(localContext, 56); + { + this.state = 1112; + this.match(OpenSearchPPLParser.OUTPUT_AFTER); + } + break; + case 57: + this.enterOuterAlt(localContext, 57); + { + this.state = 1113; + this.match(OpenSearchPPLParser.TIME_DECAY); + } + break; + case 58: + this.enterOuterAlt(localContext, 58); + { + this.state = 1114; + this.match(OpenSearchPPLParser.ANOMALY_RATE); + } + break; + case 59: + this.enterOuterAlt(localContext, 59); + { + this.state = 1115; + this.match(OpenSearchPPLParser.CATEGORY_FIELD); + } + break; + case 60: + this.enterOuterAlt(localContext, 60); + { + this.state = 1116; + this.match(OpenSearchPPLParser.TIME_FIELD); + } + break; + case 61: + this.enterOuterAlt(localContext, 61); + { + this.state = 1117; + this.match(OpenSearchPPLParser.TIME_ZONE); + } + break; + case 62: + this.enterOuterAlt(localContext, 62); + { + this.state = 1118; + this.match(OpenSearchPPLParser.TRAINING_DATA_SIZE); + } + break; + case 63: + this.enterOuterAlt(localContext, 63); + { + this.state = 1119; + this.match(OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD); + } + break; + case 64: + this.enterOuterAlt(localContext, 64); + { + this.state = 1120; + this.match(OpenSearchPPLParser.AVG); + } + break; + case 65: + this.enterOuterAlt(localContext, 65); + { + this.state = 1121; + this.match(OpenSearchPPLParser.COUNT); + } + break; + case 66: + this.enterOuterAlt(localContext, 66); + { + this.state = 1122; + this.match(OpenSearchPPLParser.DISTINCT_COUNT); + } + break; + case 67: + this.enterOuterAlt(localContext, 67); + { + this.state = 1123; + this.match(OpenSearchPPLParser.ESTDC); + } + break; + case 68: + this.enterOuterAlt(localContext, 68); + { + this.state = 1124; + this.match(OpenSearchPPLParser.ESTDC_ERROR); + } + break; + case 69: + this.enterOuterAlt(localContext, 69); + { + this.state = 1125; + this.match(OpenSearchPPLParser.MAX); + } + break; + case 70: + this.enterOuterAlt(localContext, 70); + { + this.state = 1126; + this.match(OpenSearchPPLParser.MEAN); + } + break; + case 71: + this.enterOuterAlt(localContext, 71); + { + this.state = 1127; + this.match(OpenSearchPPLParser.MEDIAN); + } + break; + case 72: + this.enterOuterAlt(localContext, 72); + { + this.state = 1128; + this.match(OpenSearchPPLParser.MIN); + } + break; + case 73: + this.enterOuterAlt(localContext, 73); + { + this.state = 1129; + this.match(OpenSearchPPLParser.MODE); + } + break; + case 74: + this.enterOuterAlt(localContext, 74); + { + this.state = 1130; + this.match(OpenSearchPPLParser.RANGE); + } + break; + case 75: + this.enterOuterAlt(localContext, 75); + { + this.state = 1131; + this.match(OpenSearchPPLParser.STDEV); + } + break; + case 76: + this.enterOuterAlt(localContext, 76); + { + this.state = 1132; + this.match(OpenSearchPPLParser.STDEVP); + } + break; + case 77: + this.enterOuterAlt(localContext, 77); + { + this.state = 1133; + this.match(OpenSearchPPLParser.SUM); + } + break; + case 78: + this.enterOuterAlt(localContext, 78); + { + this.state = 1134; + this.match(OpenSearchPPLParser.SUMSQ); + } + break; + case 79: + this.enterOuterAlt(localContext, 79); + { + this.state = 1135; + this.match(OpenSearchPPLParser.VAR_SAMP); + } + break; + case 80: + this.enterOuterAlt(localContext, 80); + { + this.state = 1136; + this.match(OpenSearchPPLParser.VAR_POP); + } + break; + case 81: + this.enterOuterAlt(localContext, 81); + { + this.state = 1137; + this.match(OpenSearchPPLParser.STDDEV_SAMP); + } + break; + case 82: + this.enterOuterAlt(localContext, 82); + { + this.state = 1138; + this.match(OpenSearchPPLParser.STDDEV_POP); + } + break; + case 83: + this.enterOuterAlt(localContext, 83); + { + this.state = 1139; + this.match(OpenSearchPPLParser.PERCENTILE); + } + break; + case 84: + this.enterOuterAlt(localContext, 84); + { + this.state = 1140; + this.match(OpenSearchPPLParser.TAKE); + } + break; + case 85: + this.enterOuterAlt(localContext, 85); + { + this.state = 1141; + this.match(OpenSearchPPLParser.FIRST); + } + break; + case 86: + this.enterOuterAlt(localContext, 86); + { + this.state = 1142; + this.match(OpenSearchPPLParser.LAST); + } + break; + case 87: + this.enterOuterAlt(localContext, 87); + { + this.state = 1143; + this.match(OpenSearchPPLParser.LIST); + } + break; + case 88: + this.enterOuterAlt(localContext, 88); + { + this.state = 1144; + this.match(OpenSearchPPLParser.VALUES); + } + break; + case 89: + this.enterOuterAlt(localContext, 89); + { + this.state = 1145; + this.match(OpenSearchPPLParser.EARLIEST); + } + break; + case 90: + this.enterOuterAlt(localContext, 90); + { + this.state = 1146; + this.match(OpenSearchPPLParser.EARLIEST_TIME); + } + break; + case 91: + this.enterOuterAlt(localContext, 91); + { + this.state = 1147; + this.match(OpenSearchPPLParser.LATEST); + } + break; + case 92: + this.enterOuterAlt(localContext, 92); + { + this.state = 1148; + this.match(OpenSearchPPLParser.LATEST_TIME); + } + break; + case 93: + this.enterOuterAlt(localContext, 93); + { + this.state = 1149; + this.match(OpenSearchPPLParser.PER_DAY); + } + break; + case 94: + this.enterOuterAlt(localContext, 94); + { + this.state = 1150; + this.match(OpenSearchPPLParser.PER_HOUR); + } + break; + case 95: + this.enterOuterAlt(localContext, 95); + { + this.state = 1151; + this.match(OpenSearchPPLParser.PER_MINUTE); + } + break; + case 96: + this.enterOuterAlt(localContext, 96); + { + this.state = 1152; + this.match(OpenSearchPPLParser.PER_SECOND); + } + break; + case 97: + this.enterOuterAlt(localContext, 97); + { + this.state = 1153; + this.match(OpenSearchPPLParser.RATE); + } + break; + case 98: + this.enterOuterAlt(localContext, 98); + { + this.state = 1154; + this.match(OpenSearchPPLParser.SPARKLINE); + } + break; + case 99: + this.enterOuterAlt(localContext, 99); + { + this.state = 1155; + this.match(OpenSearchPPLParser.C); + } + break; + case 100: + this.enterOuterAlt(localContext, 100); + { + this.state = 1156; + this.match(OpenSearchPPLParser.DC); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + + public override sempred(localContext: antlr.ParserRuleContext | null, ruleIndex: number, predIndex: number): boolean { + switch (ruleIndex) { + case 45: + return this.logicalExpression_sempred(localContext as LogicalExpressionContext, predIndex); + case 47: + return this.valueExpression_sempred(localContext as ValueExpressionContext, predIndex); + } + return true; + } + private logicalExpression_sempred(localContext: LogicalExpressionContext | null, predIndex: number): boolean { + switch (predIndex) { + case 0: + return this.precpred(this.context, 5); + case 1: + return this.precpred(this.context, 4); + case 2: + return this.precpred(this.context, 3); + } + return true; + } + private valueExpression_sempred(localContext: ValueExpressionContext | null, predIndex: number): boolean { + switch (predIndex) { + case 3: + return this.precpred(this.context, 8); + case 4: + return this.precpred(this.context, 7); + } + return true; + } + + public static readonly _serializedATN: number[] = [ + 4,1,336,1160,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,2,91,7, + 91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2, + 98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103, + 2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109, + 7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,1,0,3,0,230, + 8,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,5,3,241,8,3,10,3,12,3,244, + 9,3,1,4,1,4,1,4,3,4,249,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5, + 1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,267,8,5,1,6,3,6,270,8,6,1,6,1,6, + 3,6,274,8,6,1,6,1,6,1,6,1,6,3,6,280,8,6,1,6,1,6,1,6,3,6,285,8,6, + 1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,3,10,298,8,10,1,10, + 1,10,1,11,1,11,1,11,1,11,5,11,306,8,11,10,11,12,11,309,9,11,1,12, + 1,12,1,12,1,12,3,12,315,8,12,1,12,1,12,1,12,3,12,320,8,12,1,12,1, + 12,1,12,3,12,325,8,12,1,12,1,12,1,12,5,12,330,8,12,10,12,12,12,333, + 9,12,1,12,3,12,336,8,12,1,12,1,12,1,12,3,12,341,8,12,1,13,1,13,3, + 13,345,8,13,1,13,1,13,1,13,1,13,3,13,351,8,13,1,13,1,13,1,13,3,13, + 356,8,13,1,14,1,14,1,14,1,15,1,15,1,15,1,15,5,15,365,8,15,10,15, + 12,15,368,9,15,1,16,1,16,3,16,372,8,16,1,16,1,16,3,16,376,8,16,1, + 17,1,17,3,17,380,8,17,1,17,1,17,3,17,384,8,17,1,18,1,18,1,18,3,18, + 389,8,18,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,21,1,21,5,21, + 401,8,21,10,21,12,21,404,9,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22, + 1,22,3,22,414,8,22,1,23,1,23,1,24,1,24,5,24,420,8,24,10,24,12,24, + 423,9,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,3,25,434,8, + 25,1,26,1,26,5,26,438,8,26,10,26,12,26,441,9,26,1,27,1,27,1,27,1, + 27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1, + 27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1, + 27,1,27,1,27,1,27,1,27,1,27,1,27,3,27,479,8,27,1,28,1,28,5,28,483, + 8,28,10,28,12,28,486,9,28,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30, + 1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,3,30,504,8,30,1,31,1,31, + 1,31,5,31,509,8,31,10,31,12,31,512,9,31,1,32,1,32,1,32,1,32,1,33, + 1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,530, + 8,34,1,35,1,35,1,35,3,35,535,8,35,1,36,1,36,1,36,1,36,1,36,1,36, + 3,36,543,8,36,1,36,1,36,1,37,1,37,1,37,5,37,550,8,37,10,37,12,37, + 553,9,37,1,38,1,38,1,38,1,38,1,39,1,39,1,39,3,39,562,8,39,1,40,1, + 40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1, + 40,3,40,579,8,40,1,41,1,41,1,42,1,42,1,42,1,42,1,42,3,42,588,8,42, + 1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44, + 3,44,603,8,44,1,45,1,45,1,45,1,45,1,45,1,45,3,45,611,8,45,1,45,1, + 45,1,45,1,45,1,45,3,45,618,8,45,1,45,1,45,1,45,1,45,5,45,624,8,45, + 10,45,12,45,627,9,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46, + 637,8,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47, + 649,8,47,1,47,1,47,1,47,1,47,1,47,1,47,5,47,657,8,47,10,47,12,47, + 660,9,47,1,48,1,48,1,48,1,48,3,48,666,8,48,1,49,1,49,1,49,1,49,1, + 49,1,49,1,49,1,50,1,50,1,51,1,51,3,51,679,8,51,1,52,1,52,1,52,1, + 52,1,52,1,52,1,52,5,52,688,8,52,10,52,12,52,691,9,52,1,52,1,52,1, + 53,1,53,1,53,1,53,1,53,1,53,5,53,701,8,53,10,53,12,53,704,9,53,1, + 53,1,53,1,53,1,53,1,53,5,53,711,8,53,10,53,12,53,714,9,53,1,53,1, + 53,1,54,1,54,3,54,720,8,54,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1, + 56,5,56,730,8,56,10,56,12,56,733,9,56,1,57,1,57,1,57,5,57,738,8, + 57,10,57,12,57,741,9,57,1,58,3,58,744,8,58,1,58,1,58,1,59,1,59,1, + 59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1, + 59,1,59,1,59,1,59,1,59,1,59,3,59,769,8,59,1,60,1,60,1,61,1,61,1, + 62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1, + 64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1, + 65,3,65,802,8,65,1,66,1,66,1,66,1,66,1,66,1,66,3,66,810,8,66,1,67, + 1,67,1,67,5,67,815,8,67,10,67,12,67,818,9,67,3,67,820,8,67,1,68, + 1,68,1,68,3,68,825,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70, + 1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,843,8,71,1,72,1,72, + 3,72,847,8,72,1,73,1,73,3,73,851,8,73,1,74,1,74,1,75,1,75,3,75,857, + 8,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76, + 1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,3,76,882, + 8,76,1,77,1,77,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,80, + 1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,83,1,83,1,84, + 1,84,3,84,910,8,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85, + 1,86,1,86,1,87,1,87,1,88,1,88,1,89,1,89,1,90,1,90,1,91,1,91,1,92, + 1,92,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,3,94,943,8,94,1,95, + 1,95,1,95,1,95,1,96,1,96,1,97,3,97,952,8,97,1,97,1,97,1,98,3,98, + 957,8,98,1,98,1,98,1,99,1,99,1,100,1,100,1,100,3,100,966,8,100,1, + 101,1,101,1,101,1,102,1,102,1,102,1,103,1,103,1,103,1,104,1,104, + 1,105,1,105,1,106,1,106,1,106,1,106,5,106,985,8,106,10,106,12,106, + 988,9,106,1,106,1,106,1,107,1,107,1,107,5,107,995,8,107,10,107,12, + 107,998,9,107,1,108,1,108,1,108,5,108,1003,8,108,10,108,12,108,1006, + 9,108,1,109,1,109,1,109,5,109,1011,8,109,10,109,12,109,1014,9,109, + 1,110,3,110,1017,8,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110, + 3,110,1026,8,110,1,111,3,111,1029,8,111,1,111,1,111,1,112,1,112, + 1,112,5,112,1036,8,112,10,112,12,112,1039,9,112,1,112,3,112,1042, + 8,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112, + 1,112,1,112,3,112,1056,8,112,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113, + 1,113,1,113,1,113,1,113,1,113,1,113,3,113,1158,8,113,1,113,0,2,90, + 94,114,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,182,184, + 186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216, + 218,220,222,224,226,0,21,1,0,118,119,1,0,18,19,2,0,137,137,171,171, + 5,0,135,136,140,140,143,143,148,148,150,153,1,0,120,122,3,0,7,7, + 56,56,289,319,1,0,195,204,13,0,68,70,74,74,76,76,79,79,82,82,84, + 84,86,87,89,92,94,97,205,222,224,225,227,243,246,255,4,0,69,69,212, + 212,241,241,243,243,8,0,70,70,76,76,82,82,84,84,89,89,91,92,95,95, + 97,97,8,0,71,73,75,75,77,78,80,80,85,85,88,88,93,93,98,98,1,0,244, + 245,1,0,275,280,2,0,256,260,262,273,2,0,67,67,112,117,1,0,282,285, + 1,0,286,288,1,0,333,334,1,0,65,66,9,0,70,73,75,78,80,80,82,82,84, + 85,88,89,91,93,95,95,97,98,9,0,31,31,70,70,76,76,83,84,89,89,91, + 92,95,95,97,97,321,327,1318,0,229,1,0,0,0,2,233,1,0,0,0,4,235,1, + 0,0,0,6,237,1,0,0,0,8,248,1,0,0,0,10,266,1,0,0,0,12,284,1,0,0,0, + 14,286,1,0,0,0,16,289,1,0,0,0,18,292,1,0,0,0,20,295,1,0,0,0,22,301, + 1,0,0,0,24,310,1,0,0,0,26,342,1,0,0,0,28,357,1,0,0,0,30,360,1,0, + 0,0,32,369,1,0,0,0,34,377,1,0,0,0,36,385,1,0,0,0,38,390,1,0,0,0, + 40,394,1,0,0,0,42,398,1,0,0,0,44,413,1,0,0,0,46,415,1,0,0,0,48,417, + 1,0,0,0,50,433,1,0,0,0,52,435,1,0,0,0,54,478,1,0,0,0,56,480,1,0, + 0,0,58,487,1,0,0,0,60,503,1,0,0,0,62,505,1,0,0,0,64,513,1,0,0,0, + 66,517,1,0,0,0,68,529,1,0,0,0,70,531,1,0,0,0,72,536,1,0,0,0,74,546, + 1,0,0,0,76,554,1,0,0,0,78,558,1,0,0,0,80,578,1,0,0,0,82,580,1,0, + 0,0,84,582,1,0,0,0,86,591,1,0,0,0,88,602,1,0,0,0,90,610,1,0,0,0, + 92,636,1,0,0,0,94,648,1,0,0,0,96,665,1,0,0,0,98,667,1,0,0,0,100, + 674,1,0,0,0,102,678,1,0,0,0,104,680,1,0,0,0,106,694,1,0,0,0,108, + 719,1,0,0,0,110,721,1,0,0,0,112,726,1,0,0,0,114,734,1,0,0,0,116, + 743,1,0,0,0,118,768,1,0,0,0,120,770,1,0,0,0,122,772,1,0,0,0,124, + 774,1,0,0,0,126,779,1,0,0,0,128,786,1,0,0,0,130,801,1,0,0,0,132, + 809,1,0,0,0,134,819,1,0,0,0,136,824,1,0,0,0,138,828,1,0,0,0,140, + 832,1,0,0,0,142,842,1,0,0,0,144,846,1,0,0,0,146,850,1,0,0,0,148, + 852,1,0,0,0,150,856,1,0,0,0,152,881,1,0,0,0,154,883,1,0,0,0,156, + 885,1,0,0,0,158,887,1,0,0,0,160,894,1,0,0,0,162,896,1,0,0,0,164, + 903,1,0,0,0,166,905,1,0,0,0,168,909,1,0,0,0,170,911,1,0,0,0,172, + 920,1,0,0,0,174,922,1,0,0,0,176,924,1,0,0,0,178,926,1,0,0,0,180, + 928,1,0,0,0,182,930,1,0,0,0,184,932,1,0,0,0,186,934,1,0,0,0,188, + 942,1,0,0,0,190,944,1,0,0,0,192,948,1,0,0,0,194,951,1,0,0,0,196, + 956,1,0,0,0,198,960,1,0,0,0,200,965,1,0,0,0,202,967,1,0,0,0,204, + 970,1,0,0,0,206,973,1,0,0,0,208,976,1,0,0,0,210,978,1,0,0,0,212, + 980,1,0,0,0,214,991,1,0,0,0,216,999,1,0,0,0,218,1007,1,0,0,0,220, + 1025,1,0,0,0,222,1028,1,0,0,0,224,1055,1,0,0,0,226,1157,1,0,0,0, + 228,230,3,2,1,0,229,228,1,0,0,0,229,230,1,0,0,0,230,231,1,0,0,0, + 231,232,5,0,0,1,232,1,1,0,0,0,233,234,3,4,2,0,234,3,1,0,0,0,235, + 236,3,6,3,0,236,5,1,0,0,0,237,242,3,8,4,0,238,239,5,109,0,0,239, + 241,3,10,5,0,240,238,1,0,0,0,241,244,1,0,0,0,242,240,1,0,0,0,242, + 243,1,0,0,0,243,7,1,0,0,0,244,242,1,0,0,0,245,249,3,12,6,0,246,249, + 3,14,7,0,247,249,3,16,8,0,248,245,1,0,0,0,248,246,1,0,0,0,248,247, + 1,0,0,0,249,9,1,0,0,0,250,267,3,18,9,0,251,267,3,20,10,0,252,267, + 3,22,11,0,253,267,3,24,12,0,254,267,3,26,13,0,255,267,3,28,14,0, + 256,267,3,30,15,0,257,267,3,32,16,0,258,267,3,34,17,0,259,267,3, + 36,18,0,260,267,3,38,19,0,261,267,3,40,20,0,262,267,3,42,21,0,263, + 267,3,48,24,0,264,267,3,52,26,0,265,267,3,56,28,0,266,250,1,0,0, + 0,266,251,1,0,0,0,266,252,1,0,0,0,266,253,1,0,0,0,266,254,1,0,0, + 0,266,255,1,0,0,0,266,256,1,0,0,0,266,257,1,0,0,0,266,258,1,0,0, + 0,266,259,1,0,0,0,266,260,1,0,0,0,266,261,1,0,0,0,266,262,1,0,0, + 0,266,263,1,0,0,0,266,264,1,0,0,0,266,265,1,0,0,0,267,11,1,0,0,0, + 268,270,5,2,0,0,269,268,1,0,0,0,269,270,1,0,0,0,270,271,1,0,0,0, + 271,285,3,60,30,0,272,274,5,2,0,0,273,272,1,0,0,0,273,274,1,0,0, + 0,274,275,1,0,0,0,275,276,3,60,30,0,276,277,3,90,45,0,277,285,1, + 0,0,0,278,280,5,2,0,0,279,278,1,0,0,0,279,280,1,0,0,0,280,281,1, + 0,0,0,281,282,3,90,45,0,282,283,3,60,30,0,283,285,1,0,0,0,284,269, + 1,0,0,0,284,273,1,0,0,0,284,279,1,0,0,0,285,13,1,0,0,0,286,287,5, + 3,0,0,287,288,3,62,31,0,288,15,1,0,0,0,289,290,5,4,0,0,290,291,5, + 33,0,0,291,17,1,0,0,0,292,293,5,6,0,0,293,294,3,90,45,0,294,19,1, + 0,0,0,295,297,5,7,0,0,296,298,7,0,0,0,297,296,1,0,0,0,297,298,1, + 0,0,0,298,299,1,0,0,0,299,300,3,112,56,0,300,21,1,0,0,0,301,302, + 5,8,0,0,302,307,3,64,32,0,303,304,5,110,0,0,304,306,3,64,32,0,305, + 303,1,0,0,0,306,309,1,0,0,0,307,305,1,0,0,0,307,308,1,0,0,0,308, + 23,1,0,0,0,309,307,1,0,0,0,310,314,5,9,0,0,311,312,5,42,0,0,312, + 313,5,112,0,0,313,315,3,194,97,0,314,311,1,0,0,0,314,315,1,0,0,0, + 315,319,1,0,0,0,316,317,5,43,0,0,317,318,5,112,0,0,318,320,3,198, + 99,0,319,316,1,0,0,0,319,320,1,0,0,0,320,324,1,0,0,0,321,322,5,44, + 0,0,322,323,5,112,0,0,323,325,3,192,96,0,324,321,1,0,0,0,324,325, + 1,0,0,0,325,326,1,0,0,0,326,331,3,78,39,0,327,328,5,110,0,0,328, + 330,3,78,39,0,329,327,1,0,0,0,330,333,1,0,0,0,331,329,1,0,0,0,331, + 332,1,0,0,0,332,335,1,0,0,0,333,331,1,0,0,0,334,336,3,68,34,0,335, + 334,1,0,0,0,335,336,1,0,0,0,336,340,1,0,0,0,337,338,5,41,0,0,338, + 339,5,112,0,0,339,341,3,198,99,0,340,337,1,0,0,0,340,341,1,0,0,0, + 341,25,1,0,0,0,342,344,5,10,0,0,343,345,3,194,97,0,344,343,1,0,0, + 0,344,345,1,0,0,0,345,346,1,0,0,0,346,350,3,112,56,0,347,348,5,39, + 0,0,348,349,5,112,0,0,349,351,3,198,99,0,350,347,1,0,0,0,350,351, + 1,0,0,0,351,355,1,0,0,0,352,353,5,40,0,0,353,354,5,112,0,0,354,356, + 3,198,99,0,355,352,1,0,0,0,355,356,1,0,0,0,356,27,1,0,0,0,357,358, + 5,11,0,0,358,359,3,74,37,0,359,29,1,0,0,0,360,361,5,12,0,0,361,366, + 3,76,38,0,362,363,5,110,0,0,363,365,3,76,38,0,364,362,1,0,0,0,365, + 368,1,0,0,0,366,364,1,0,0,0,366,367,1,0,0,0,367,31,1,0,0,0,368,366, + 1,0,0,0,369,371,5,13,0,0,370,372,3,194,97,0,371,370,1,0,0,0,371, + 372,1,0,0,0,372,375,1,0,0,0,373,374,5,5,0,0,374,376,3,194,97,0,375, + 373,1,0,0,0,375,376,1,0,0,0,376,33,1,0,0,0,377,379,5,14,0,0,378, + 380,3,194,97,0,379,378,1,0,0,0,379,380,1,0,0,0,380,381,1,0,0,0,381, + 383,3,112,56,0,382,384,3,66,33,0,383,382,1,0,0,0,383,384,1,0,0,0, + 384,35,1,0,0,0,385,386,5,15,0,0,386,388,3,112,56,0,387,389,3,66, + 33,0,388,387,1,0,0,0,388,389,1,0,0,0,389,37,1,0,0,0,390,391,5,20, + 0,0,391,392,3,88,44,0,392,393,3,192,96,0,393,39,1,0,0,0,394,395, + 5,16,0,0,395,396,3,88,44,0,396,397,3,192,96,0,397,41,1,0,0,0,398, + 402,5,22,0,0,399,401,3,44,22,0,400,399,1,0,0,0,401,404,1,0,0,0,402, + 400,1,0,0,0,402,403,1,0,0,0,403,405,1,0,0,0,404,402,1,0,0,0,405, + 406,3,88,44,0,406,43,1,0,0,0,407,408,5,23,0,0,408,409,5,112,0,0, + 409,414,3,192,96,0,410,411,5,21,0,0,411,412,5,112,0,0,412,414,3, + 192,96,0,413,407,1,0,0,0,413,410,1,0,0,0,414,45,1,0,0,0,415,416, + 7,1,0,0,416,47,1,0,0,0,417,421,5,24,0,0,418,420,3,50,25,0,419,418, + 1,0,0,0,420,423,1,0,0,0,421,419,1,0,0,0,421,422,1,0,0,0,422,49,1, + 0,0,0,423,421,1,0,0,0,424,425,5,45,0,0,425,426,5,112,0,0,426,434, + 3,194,97,0,427,428,5,46,0,0,428,429,5,112,0,0,429,434,3,194,97,0, + 430,431,5,47,0,0,431,432,5,112,0,0,432,434,3,192,96,0,433,424,1, + 0,0,0,433,427,1,0,0,0,433,430,1,0,0,0,434,51,1,0,0,0,435,439,5,25, + 0,0,436,438,3,54,27,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,53,1,0,0,0,441,439,1,0,0,0,442,443,5,48, + 0,0,443,444,5,112,0,0,444,479,3,194,97,0,445,446,5,49,0,0,446,447, + 5,112,0,0,447,479,3,194,97,0,448,449,5,50,0,0,449,450,5,112,0,0, + 450,479,3,194,97,0,451,452,5,51,0,0,452,453,5,112,0,0,453,479,3, + 194,97,0,454,455,5,52,0,0,455,456,5,112,0,0,456,479,3,196,98,0,457, + 458,5,53,0,0,458,459,5,112,0,0,459,479,3,196,98,0,460,461,5,54,0, + 0,461,462,5,112,0,0,462,479,3,192,96,0,463,464,5,55,0,0,464,465, + 5,112,0,0,465,479,3,192,96,0,466,467,5,215,0,0,467,468,5,112,0,0, + 468,479,3,192,96,0,469,470,5,56,0,0,470,471,5,112,0,0,471,479,3, + 192,96,0,472,473,5,57,0,0,473,474,5,112,0,0,474,479,3,194,97,0,475, + 476,5,58,0,0,476,477,5,112,0,0,477,479,3,196,98,0,478,442,1,0,0, + 0,478,445,1,0,0,0,478,448,1,0,0,0,478,451,1,0,0,0,478,454,1,0,0, + 0,478,457,1,0,0,0,478,460,1,0,0,0,478,463,1,0,0,0,478,466,1,0,0, + 0,478,469,1,0,0,0,478,472,1,0,0,0,478,475,1,0,0,0,479,55,1,0,0,0, + 480,484,5,26,0,0,481,483,3,58,29,0,482,481,1,0,0,0,483,486,1,0,0, + 0,484,482,1,0,0,0,484,485,1,0,0,0,485,57,1,0,0,0,486,484,1,0,0,0, + 487,488,3,220,110,0,488,489,5,112,0,0,489,490,3,188,94,0,490,59, + 1,0,0,0,491,492,5,29,0,0,492,493,5,112,0,0,493,504,3,62,31,0,494, + 495,5,30,0,0,495,496,5,112,0,0,496,504,3,62,31,0,497,498,5,29,0, + 0,498,499,5,112,0,0,499,504,3,110,55,0,500,501,5,30,0,0,501,502, + 5,112,0,0,502,504,3,110,55,0,503,491,1,0,0,0,503,494,1,0,0,0,503, + 497,1,0,0,0,503,500,1,0,0,0,504,61,1,0,0,0,505,510,3,108,54,0,506, + 507,5,110,0,0,507,509,3,108,54,0,508,506,1,0,0,0,509,512,1,0,0,0, + 510,508,1,0,0,0,510,511,1,0,0,0,511,63,1,0,0,0,512,510,1,0,0,0,513, + 514,3,122,61,0,514,515,5,27,0,0,515,516,3,122,61,0,516,65,1,0,0, + 0,517,518,5,28,0,0,518,519,3,112,56,0,519,67,1,0,0,0,520,521,5,28, + 0,0,521,530,3,112,56,0,522,523,5,28,0,0,523,530,3,70,35,0,524,525, + 5,28,0,0,525,526,3,70,35,0,526,527,5,110,0,0,527,528,3,112,56,0, + 528,530,1,0,0,0,529,520,1,0,0,0,529,522,1,0,0,0,529,524,1,0,0,0, + 530,69,1,0,0,0,531,534,3,72,36,0,532,533,5,27,0,0,533,535,3,214, + 107,0,534,532,1,0,0,0,534,535,1,0,0,0,535,71,1,0,0,0,536,537,5,320, + 0,0,537,538,5,125,0,0,538,539,3,120,60,0,539,540,5,110,0,0,540,542, + 3,188,94,0,541,543,3,210,105,0,542,541,1,0,0,0,542,543,1,0,0,0,543, + 544,1,0,0,0,544,545,5,126,0,0,545,73,1,0,0,0,546,551,3,116,58,0, + 547,548,5,110,0,0,548,550,3,116,58,0,549,547,1,0,0,0,550,553,1,0, + 0,0,551,549,1,0,0,0,551,552,1,0,0,0,552,75,1,0,0,0,553,551,1,0,0, + 0,554,555,3,120,60,0,555,556,5,112,0,0,556,557,3,88,44,0,557,77, + 1,0,0,0,558,561,3,80,40,0,559,560,5,27,0,0,560,562,3,122,61,0,561, + 559,1,0,0,0,561,562,1,0,0,0,562,79,1,0,0,0,563,564,3,82,41,0,564, + 565,5,125,0,0,565,566,3,94,47,0,566,567,5,126,0,0,567,579,1,0,0, + 0,568,569,5,136,0,0,569,570,5,125,0,0,570,579,5,126,0,0,571,572, + 7,2,0,0,572,573,5,125,0,0,573,574,3,94,47,0,574,575,5,126,0,0,575, + 579,1,0,0,0,576,579,3,86,43,0,577,579,3,84,42,0,578,563,1,0,0,0, + 578,568,1,0,0,0,578,571,1,0,0,0,578,576,1,0,0,0,578,577,1,0,0,0, + 579,81,1,0,0,0,580,581,7,3,0,0,581,83,1,0,0,0,582,583,5,155,0,0, + 583,584,5,125,0,0,584,587,3,120,60,0,585,586,5,110,0,0,586,588,3, + 194,97,0,587,585,1,0,0,0,587,588,1,0,0,0,588,589,1,0,0,0,589,590, + 5,126,0,0,590,85,1,0,0,0,591,592,5,154,0,0,592,593,5,114,0,0,593, + 594,3,194,97,0,594,595,5,113,0,0,595,596,5,125,0,0,596,597,3,120, + 60,0,597,598,5,126,0,0,598,87,1,0,0,0,599,603,3,90,45,0,600,603, + 3,92,46,0,601,603,3,94,47,0,602,599,1,0,0,0,602,600,1,0,0,0,602, + 601,1,0,0,0,603,89,1,0,0,0,604,605,6,45,-1,0,605,611,3,92,46,0,606, + 607,5,61,0,0,607,611,3,90,45,6,608,611,3,100,50,0,609,611,3,102, + 51,0,610,604,1,0,0,0,610,606,1,0,0,0,610,608,1,0,0,0,610,609,1,0, + 0,0,611,625,1,0,0,0,612,613,10,5,0,0,613,614,5,62,0,0,614,624,3, + 90,45,6,615,617,10,4,0,0,616,618,5,63,0,0,617,616,1,0,0,0,617,618, + 1,0,0,0,618,619,1,0,0,0,619,624,3,90,45,5,620,621,10,3,0,0,621,622, + 5,64,0,0,622,624,3,90,45,4,623,612,1,0,0,0,623,615,1,0,0,0,623,620, + 1,0,0,0,624,627,1,0,0,0,625,623,1,0,0,0,625,626,1,0,0,0,626,91,1, + 0,0,0,627,625,1,0,0,0,628,629,3,94,47,0,629,630,3,182,91,0,630,631, + 3,94,47,0,631,637,1,0,0,0,632,633,3,94,47,0,633,634,5,60,0,0,634, + 635,3,212,106,0,635,637,1,0,0,0,636,628,1,0,0,0,636,632,1,0,0,0, + 637,93,1,0,0,0,638,639,6,47,-1,0,639,649,3,96,48,0,640,649,3,98, + 49,0,641,649,3,162,81,0,642,649,3,158,79,0,643,649,3,170,85,0,644, + 645,5,125,0,0,645,646,3,94,47,0,646,647,5,126,0,0,647,649,1,0,0, + 0,648,638,1,0,0,0,648,640,1,0,0,0,648,641,1,0,0,0,648,642,1,0,0, + 0,648,643,1,0,0,0,648,644,1,0,0,0,649,658,1,0,0,0,650,651,10,8,0, + 0,651,652,7,4,0,0,652,657,3,94,47,9,653,654,10,7,0,0,654,655,7,0, + 0,0,655,657,3,94,47,8,656,650,1,0,0,0,656,653,1,0,0,0,657,660,1, + 0,0,0,658,656,1,0,0,0,658,659,1,0,0,0,659,95,1,0,0,0,660,658,1,0, + 0,0,661,666,3,124,62,0,662,666,3,126,63,0,663,666,3,120,60,0,664, + 666,3,188,94,0,665,661,1,0,0,0,665,662,1,0,0,0,665,663,1,0,0,0,665, + 664,1,0,0,0,666,97,1,0,0,0,667,668,3,180,90,0,668,669,5,125,0,0, + 669,670,3,136,68,0,670,671,5,60,0,0,671,672,3,136,68,0,672,673,5, + 126,0,0,673,99,1,0,0,0,674,675,3,128,64,0,675,101,1,0,0,0,676,679, + 3,104,52,0,677,679,3,106,53,0,678,676,1,0,0,0,678,677,1,0,0,0,679, + 103,1,0,0,0,680,681,3,184,92,0,681,682,5,125,0,0,682,683,3,146,73, + 0,683,684,5,110,0,0,684,689,3,148,74,0,685,686,5,110,0,0,686,688, + 3,138,69,0,687,685,1,0,0,0,688,691,1,0,0,0,689,687,1,0,0,0,689,690, + 1,0,0,0,690,692,1,0,0,0,691,689,1,0,0,0,692,693,5,126,0,0,693,105, + 1,0,0,0,694,695,3,186,93,0,695,696,5,125,0,0,696,697,5,127,0,0,697, + 702,3,142,71,0,698,699,5,110,0,0,699,701,3,142,71,0,700,698,1,0, + 0,0,701,704,1,0,0,0,702,700,1,0,0,0,702,703,1,0,0,0,703,705,1,0, + 0,0,704,702,1,0,0,0,705,706,5,128,0,0,706,707,5,110,0,0,707,712, + 3,148,74,0,708,709,5,110,0,0,709,711,3,138,69,0,710,708,1,0,0,0, + 711,714,1,0,0,0,712,710,1,0,0,0,712,713,1,0,0,0,713,715,1,0,0,0, + 714,712,1,0,0,0,715,716,5,126,0,0,716,107,1,0,0,0,717,720,3,216, + 108,0,718,720,5,332,0,0,719,717,1,0,0,0,719,718,1,0,0,0,720,109, + 1,0,0,0,721,722,3,214,107,0,722,723,5,125,0,0,723,724,3,134,67,0, + 724,725,5,126,0,0,725,111,1,0,0,0,726,731,3,120,60,0,727,728,5,110, + 0,0,728,730,3,120,60,0,729,727,1,0,0,0,730,733,1,0,0,0,731,729,1, + 0,0,0,731,732,1,0,0,0,732,113,1,0,0,0,733,731,1,0,0,0,734,739,3, + 122,61,0,735,736,5,110,0,0,736,738,3,122,61,0,737,735,1,0,0,0,738, + 741,1,0,0,0,739,737,1,0,0,0,739,740,1,0,0,0,740,115,1,0,0,0,741, + 739,1,0,0,0,742,744,7,0,0,0,743,742,1,0,0,0,743,744,1,0,0,0,744, + 745,1,0,0,0,745,746,3,118,59,0,746,117,1,0,0,0,747,769,3,120,60, + 0,748,749,5,35,0,0,749,750,5,125,0,0,750,751,3,120,60,0,751,752, + 5,126,0,0,752,769,1,0,0,0,753,754,5,36,0,0,754,755,5,125,0,0,755, + 756,3,120,60,0,756,757,5,126,0,0,757,769,1,0,0,0,758,759,5,37,0, + 0,759,760,5,125,0,0,760,761,3,120,60,0,761,762,5,126,0,0,762,769, + 1,0,0,0,763,764,5,38,0,0,764,765,5,125,0,0,765,766,3,120,60,0,766, + 767,5,126,0,0,767,769,1,0,0,0,768,747,1,0,0,0,768,748,1,0,0,0,768, + 753,1,0,0,0,768,758,1,0,0,0,768,763,1,0,0,0,769,119,1,0,0,0,770, + 771,3,214,107,0,771,121,1,0,0,0,772,773,3,218,109,0,773,123,1,0, + 0,0,774,775,3,132,66,0,775,776,5,125,0,0,776,777,3,134,67,0,777, + 778,5,126,0,0,778,125,1,0,0,0,779,780,5,274,0,0,780,781,5,125,0, + 0,781,782,3,88,44,0,782,783,5,27,0,0,783,784,3,130,65,0,784,785, + 5,126,0,0,785,127,1,0,0,0,786,787,3,174,87,0,787,788,5,125,0,0,788, + 789,3,134,67,0,789,790,5,126,0,0,790,129,1,0,0,0,791,802,5,212,0, + 0,792,802,5,241,0,0,793,802,5,243,0,0,794,802,5,102,0,0,795,802, + 5,103,0,0,796,802,5,104,0,0,797,802,5,105,0,0,798,802,5,106,0,0, + 799,802,5,107,0,0,800,802,5,108,0,0,801,791,1,0,0,0,801,792,1,0, + 0,0,801,793,1,0,0,0,801,794,1,0,0,0,801,795,1,0,0,0,801,796,1,0, + 0,0,801,797,1,0,0,0,801,798,1,0,0,0,801,799,1,0,0,0,801,800,1,0, + 0,0,802,131,1,0,0,0,803,810,3,152,76,0,804,810,3,156,78,0,805,810, + 3,178,89,0,806,810,3,174,87,0,807,810,3,176,88,0,808,810,3,180,90, + 0,809,803,1,0,0,0,809,804,1,0,0,0,809,805,1,0,0,0,809,806,1,0,0, + 0,809,807,1,0,0,0,809,808,1,0,0,0,810,133,1,0,0,0,811,816,3,136, + 68,0,812,813,5,110,0,0,813,815,3,136,68,0,814,812,1,0,0,0,815,818, + 1,0,0,0,816,814,1,0,0,0,816,817,1,0,0,0,817,820,1,0,0,0,818,816, + 1,0,0,0,819,811,1,0,0,0,819,820,1,0,0,0,820,135,1,0,0,0,821,822, + 3,220,110,0,822,823,5,112,0,0,823,825,1,0,0,0,824,821,1,0,0,0,824, + 825,1,0,0,0,825,826,1,0,0,0,826,827,3,94,47,0,827,137,1,0,0,0,828, + 829,3,140,70,0,829,830,5,112,0,0,830,831,3,150,75,0,831,139,1,0, + 0,0,832,833,7,5,0,0,833,141,1,0,0,0,834,843,3,146,73,0,835,836,3, + 146,73,0,836,837,3,144,72,0,837,843,1,0,0,0,838,839,3,146,73,0,839, + 840,5,134,0,0,840,841,3,144,72,0,841,843,1,0,0,0,842,834,1,0,0,0, + 842,835,1,0,0,0,842,838,1,0,0,0,843,143,1,0,0,0,844,847,3,194,97, + 0,845,847,3,196,98,0,846,844,1,0,0,0,846,845,1,0,0,0,847,145,1,0, + 0,0,848,851,3,214,107,0,849,851,3,192,96,0,850,848,1,0,0,0,850,849, + 1,0,0,0,851,147,1,0,0,0,852,853,3,150,75,0,853,149,1,0,0,0,854,857, + 3,214,107,0,855,857,3,188,94,0,856,854,1,0,0,0,856,855,1,0,0,0,857, + 151,1,0,0,0,858,882,5,172,0,0,859,882,5,173,0,0,860,882,5,174,0, + 0,861,882,5,175,0,0,862,882,5,176,0,0,863,882,5,177,0,0,864,882, + 5,178,0,0,865,882,5,179,0,0,866,882,5,180,0,0,867,882,5,181,0,0, + 868,882,5,182,0,0,869,882,5,183,0,0,870,882,5,184,0,0,871,882,5, + 185,0,0,872,882,5,186,0,0,873,882,5,188,0,0,874,882,5,189,0,0,875, + 882,5,190,0,0,876,882,5,191,0,0,877,882,5,192,0,0,878,882,5,193, + 0,0,879,882,5,194,0,0,880,882,3,154,77,0,881,858,1,0,0,0,881,859, + 1,0,0,0,881,860,1,0,0,0,881,861,1,0,0,0,881,862,1,0,0,0,881,863, + 1,0,0,0,881,864,1,0,0,0,881,865,1,0,0,0,881,866,1,0,0,0,881,867, + 1,0,0,0,881,868,1,0,0,0,881,869,1,0,0,0,881,870,1,0,0,0,881,871, + 1,0,0,0,881,872,1,0,0,0,881,873,1,0,0,0,881,874,1,0,0,0,881,875, + 1,0,0,0,881,876,1,0,0,0,881,877,1,0,0,0,881,878,1,0,0,0,881,879, + 1,0,0,0,881,880,1,0,0,0,882,153,1,0,0,0,883,884,7,6,0,0,884,155, + 1,0,0,0,885,886,7,7,0,0,886,157,1,0,0,0,887,888,5,226,0,0,888,889, + 5,125,0,0,889,890,3,160,80,0,890,891,5,110,0,0,891,892,3,136,68, + 0,892,893,5,126,0,0,893,159,1,0,0,0,894,895,7,8,0,0,895,161,1,0, + 0,0,896,897,5,223,0,0,897,898,5,125,0,0,898,899,3,168,84,0,899,900, + 5,5,0,0,900,901,3,136,68,0,901,902,5,126,0,0,902,163,1,0,0,0,903, + 904,7,9,0,0,904,165,1,0,0,0,905,906,7,10,0,0,906,167,1,0,0,0,907, + 910,3,164,82,0,908,910,3,166,83,0,909,907,1,0,0,0,909,908,1,0,0, + 0,910,169,1,0,0,0,911,912,3,172,86,0,912,913,5,125,0,0,913,914,3, + 164,82,0,914,915,5,110,0,0,915,916,3,136,68,0,916,917,5,110,0,0, + 917,918,3,136,68,0,918,919,5,126,0,0,919,171,1,0,0,0,920,921,7,11, + 0,0,921,173,1,0,0,0,922,923,7,12,0,0,923,175,1,0,0,0,924,925,5,281, + 0,0,925,177,1,0,0,0,926,927,7,13,0,0,927,179,1,0,0,0,928,929,5,187, + 0,0,929,181,1,0,0,0,930,931,7,14,0,0,931,183,1,0,0,0,932,933,7,15, + 0,0,933,185,1,0,0,0,934,935,7,16,0,0,935,187,1,0,0,0,936,943,3,190, + 95,0,937,943,3,192,96,0,938,943,3,194,97,0,939,943,3,196,98,0,940, + 943,3,198,99,0,941,943,3,200,100,0,942,936,1,0,0,0,942,937,1,0,0, + 0,942,938,1,0,0,0,942,939,1,0,0,0,942,940,1,0,0,0,942,941,1,0,0, + 0,943,189,1,0,0,0,944,945,5,81,0,0,945,946,3,94,47,0,946,947,3,208, + 104,0,947,191,1,0,0,0,948,949,7,17,0,0,949,193,1,0,0,0,950,952,7, + 0,0,0,951,950,1,0,0,0,951,952,1,0,0,0,952,953,1,0,0,0,953,954,5, + 330,0,0,954,195,1,0,0,0,955,957,7,0,0,0,956,955,1,0,0,0,956,957, + 1,0,0,0,957,958,1,0,0,0,958,959,5,331,0,0,959,197,1,0,0,0,960,961, + 7,18,0,0,961,199,1,0,0,0,962,966,3,202,101,0,963,966,3,204,102,0, + 964,966,3,206,103,0,965,962,1,0,0,0,965,963,1,0,0,0,965,964,1,0, + 0,0,966,201,1,0,0,0,967,968,5,212,0,0,968,969,3,192,96,0,969,203, + 1,0,0,0,970,971,5,241,0,0,971,972,3,192,96,0,972,205,1,0,0,0,973, + 974,5,243,0,0,974,975,3,192,96,0,975,207,1,0,0,0,976,977,7,19,0, + 0,977,209,1,0,0,0,978,979,7,20,0,0,979,211,1,0,0,0,980,981,5,125, + 0,0,981,986,3,188,94,0,982,983,5,110,0,0,983,985,3,188,94,0,984, + 982,1,0,0,0,985,988,1,0,0,0,986,984,1,0,0,0,986,987,1,0,0,0,987, + 989,1,0,0,0,988,986,1,0,0,0,989,990,5,126,0,0,990,213,1,0,0,0,991, + 996,3,220,110,0,992,993,5,111,0,0,993,995,3,220,110,0,994,992,1, + 0,0,0,995,998,1,0,0,0,996,994,1,0,0,0,996,997,1,0,0,0,997,215,1, + 0,0,0,998,996,1,0,0,0,999,1004,3,222,111,0,1000,1001,5,111,0,0,1001, + 1003,3,220,110,0,1002,1000,1,0,0,0,1003,1006,1,0,0,0,1004,1002,1, + 0,0,0,1004,1005,1,0,0,0,1005,217,1,0,0,0,1006,1004,1,0,0,0,1007, + 1012,3,224,112,0,1008,1009,5,111,0,0,1009,1011,3,224,112,0,1010, + 1008,1,0,0,0,1011,1014,1,0,0,0,1012,1010,1,0,0,0,1012,1013,1,0,0, + 0,1013,219,1,0,0,0,1014,1012,1,0,0,0,1015,1017,5,111,0,0,1016,1015, + 1,0,0,0,1016,1017,1,0,0,0,1017,1018,1,0,0,0,1018,1026,5,328,0,0, + 1019,1020,5,131,0,0,1020,1021,3,220,110,0,1021,1022,5,131,0,0,1022, + 1026,1,0,0,0,1023,1026,5,335,0,0,1024,1026,3,226,113,0,1025,1016, + 1,0,0,0,1025,1019,1,0,0,0,1025,1023,1,0,0,0,1025,1024,1,0,0,0,1026, + 221,1,0,0,0,1027,1029,5,329,0,0,1028,1027,1,0,0,0,1028,1029,1,0, + 0,0,1029,1030,1,0,0,0,1030,1031,3,220,110,0,1031,223,1,0,0,0,1032, + 1037,3,220,110,0,1033,1034,5,122,0,0,1034,1036,3,220,110,0,1035, + 1033,1,0,0,0,1036,1039,1,0,0,0,1037,1035,1,0,0,0,1037,1038,1,0,0, + 0,1038,1041,1,0,0,0,1039,1037,1,0,0,0,1040,1042,5,122,0,0,1041,1040, + 1,0,0,0,1041,1042,1,0,0,0,1042,1056,1,0,0,0,1043,1044,5,129,0,0, + 1044,1045,3,224,112,0,1045,1046,5,129,0,0,1046,1056,1,0,0,0,1047, + 1048,5,130,0,0,1048,1049,3,224,112,0,1049,1050,5,130,0,0,1050,1056, + 1,0,0,0,1051,1052,5,131,0,0,1052,1053,3,224,112,0,1053,1054,5,131, + 0,0,1054,1056,1,0,0,0,1055,1032,1,0,0,0,1055,1043,1,0,0,0,1055,1047, + 1,0,0,0,1055,1051,1,0,0,0,1056,225,1,0,0,0,1057,1158,5,31,0,0,1058, + 1158,3,210,105,0,1059,1158,5,320,0,0,1060,1158,3,132,66,0,1061,1158, + 3,140,70,0,1062,1158,3,208,104,0,1063,1158,3,156,78,0,1064,1158, + 3,178,89,0,1065,1158,3,152,76,0,1066,1158,3,180,90,0,1067,1158,5, + 2,0,0,1068,1158,5,3,0,0,1069,1158,5,4,0,0,1070,1158,5,5,0,0,1071, + 1158,5,6,0,0,1072,1158,5,7,0,0,1073,1158,5,8,0,0,1074,1158,5,9,0, + 0,1075,1158,5,10,0,0,1076,1158,5,11,0,0,1077,1158,5,12,0,0,1078, + 1158,5,13,0,0,1079,1158,5,14,0,0,1080,1158,5,15,0,0,1081,1158,5, + 16,0,0,1082,1158,5,17,0,0,1083,1158,5,18,0,0,1084,1158,5,19,0,0, + 1085,1158,5,20,0,0,1086,1158,5,21,0,0,1087,1158,5,22,0,0,1088,1158, + 5,23,0,0,1089,1158,5,24,0,0,1090,1158,5,25,0,0,1091,1158,5,26,0, + 0,1092,1158,5,29,0,0,1093,1158,5,30,0,0,1094,1158,5,32,0,0,1095, + 1158,5,33,0,0,1096,1158,5,34,0,0,1097,1158,5,36,0,0,1098,1158,5, + 37,0,0,1099,1158,5,38,0,0,1100,1158,5,39,0,0,1101,1158,5,40,0,0, + 1102,1158,5,41,0,0,1103,1158,5,42,0,0,1104,1158,5,43,0,0,1105,1158, + 5,44,0,0,1106,1158,5,45,0,0,1107,1158,5,46,0,0,1108,1158,5,47,0, + 0,1109,1158,5,48,0,0,1110,1158,5,49,0,0,1111,1158,5,50,0,0,1112, + 1158,5,51,0,0,1113,1158,5,52,0,0,1114,1158,5,53,0,0,1115,1158,5, + 54,0,0,1116,1158,5,55,0,0,1117,1158,5,56,0,0,1118,1158,5,57,0,0, + 1119,1158,5,58,0,0,1120,1158,5,135,0,0,1121,1158,5,136,0,0,1122, + 1158,5,137,0,0,1123,1158,5,138,0,0,1124,1158,5,139,0,0,1125,1158, + 5,140,0,0,1126,1158,5,141,0,0,1127,1158,5,142,0,0,1128,1158,5,143, + 0,0,1129,1158,5,144,0,0,1130,1158,5,145,0,0,1131,1158,5,146,0,0, + 1132,1158,5,147,0,0,1133,1158,5,148,0,0,1134,1158,5,149,0,0,1135, + 1158,5,150,0,0,1136,1158,5,151,0,0,1137,1158,5,152,0,0,1138,1158, + 5,153,0,0,1139,1158,5,154,0,0,1140,1158,5,155,0,0,1141,1158,5,156, + 0,0,1142,1158,5,157,0,0,1143,1158,5,158,0,0,1144,1158,5,159,0,0, + 1145,1158,5,160,0,0,1146,1158,5,161,0,0,1147,1158,5,162,0,0,1148, + 1158,5,163,0,0,1149,1158,5,164,0,0,1150,1158,5,165,0,0,1151,1158, + 5,166,0,0,1152,1158,5,167,0,0,1153,1158,5,168,0,0,1154,1158,5,169, + 0,0,1155,1158,5,170,0,0,1156,1158,5,171,0,0,1157,1057,1,0,0,0,1157, + 1058,1,0,0,0,1157,1059,1,0,0,0,1157,1060,1,0,0,0,1157,1061,1,0,0, + 0,1157,1062,1,0,0,0,1157,1063,1,0,0,0,1157,1064,1,0,0,0,1157,1065, + 1,0,0,0,1157,1066,1,0,0,0,1157,1067,1,0,0,0,1157,1068,1,0,0,0,1157, + 1069,1,0,0,0,1157,1070,1,0,0,0,1157,1071,1,0,0,0,1157,1072,1,0,0, + 0,1157,1073,1,0,0,0,1157,1074,1,0,0,0,1157,1075,1,0,0,0,1157,1076, + 1,0,0,0,1157,1077,1,0,0,0,1157,1078,1,0,0,0,1157,1079,1,0,0,0,1157, + 1080,1,0,0,0,1157,1081,1,0,0,0,1157,1082,1,0,0,0,1157,1083,1,0,0, + 0,1157,1084,1,0,0,0,1157,1085,1,0,0,0,1157,1086,1,0,0,0,1157,1087, + 1,0,0,0,1157,1088,1,0,0,0,1157,1089,1,0,0,0,1157,1090,1,0,0,0,1157, + 1091,1,0,0,0,1157,1092,1,0,0,0,1157,1093,1,0,0,0,1157,1094,1,0,0, + 0,1157,1095,1,0,0,0,1157,1096,1,0,0,0,1157,1097,1,0,0,0,1157,1098, + 1,0,0,0,1157,1099,1,0,0,0,1157,1100,1,0,0,0,1157,1101,1,0,0,0,1157, + 1102,1,0,0,0,1157,1103,1,0,0,0,1157,1104,1,0,0,0,1157,1105,1,0,0, + 0,1157,1106,1,0,0,0,1157,1107,1,0,0,0,1157,1108,1,0,0,0,1157,1109, + 1,0,0,0,1157,1110,1,0,0,0,1157,1111,1,0,0,0,1157,1112,1,0,0,0,1157, + 1113,1,0,0,0,1157,1114,1,0,0,0,1157,1115,1,0,0,0,1157,1116,1,0,0, + 0,1157,1117,1,0,0,0,1157,1118,1,0,0,0,1157,1119,1,0,0,0,1157,1120, + 1,0,0,0,1157,1121,1,0,0,0,1157,1122,1,0,0,0,1157,1123,1,0,0,0,1157, + 1124,1,0,0,0,1157,1125,1,0,0,0,1157,1126,1,0,0,0,1157,1127,1,0,0, + 0,1157,1128,1,0,0,0,1157,1129,1,0,0,0,1157,1130,1,0,0,0,1157,1131, + 1,0,0,0,1157,1132,1,0,0,0,1157,1133,1,0,0,0,1157,1134,1,0,0,0,1157, + 1135,1,0,0,0,1157,1136,1,0,0,0,1157,1137,1,0,0,0,1157,1138,1,0,0, + 0,1157,1139,1,0,0,0,1157,1140,1,0,0,0,1157,1141,1,0,0,0,1157,1142, + 1,0,0,0,1157,1143,1,0,0,0,1157,1144,1,0,0,0,1157,1145,1,0,0,0,1157, + 1146,1,0,0,0,1157,1147,1,0,0,0,1157,1148,1,0,0,0,1157,1149,1,0,0, + 0,1157,1150,1,0,0,0,1157,1151,1,0,0,0,1157,1152,1,0,0,0,1157,1153, + 1,0,0,0,1157,1154,1,0,0,0,1157,1155,1,0,0,0,1157,1156,1,0,0,0,1158, + 227,1,0,0,0,86,229,242,248,266,269,273,279,284,297,307,314,319,324, + 331,335,340,344,350,355,366,371,375,379,383,388,402,413,421,433, + 439,478,484,503,510,529,534,542,551,561,578,587,602,610,617,623, + 625,636,648,656,658,665,678,689,702,712,719,731,739,743,768,801, + 809,816,819,824,842,846,850,856,881,909,942,951,956,965,986,996, + 1004,1012,1016,1025,1028,1037,1041,1055,1157 + ]; + + private static __ATN: antlr.ATN; + public static get _ATN(): antlr.ATN { + if (!OpenSearchPPLParser.__ATN) { + OpenSearchPPLParser.__ATN = new antlr.ATNDeserializer().deserialize(OpenSearchPPLParser._serializedATN); + } + + return OpenSearchPPLParser.__ATN; + } + + + private static readonly vocabulary = new antlr.Vocabulary(OpenSearchPPLParser.literalNames, OpenSearchPPLParser.symbolicNames, []); + + public override get vocabulary(): antlr.Vocabulary { + return OpenSearchPPLParser.vocabulary; + } + + private static readonly decisionsToDFA = OpenSearchPPLParser._ATN.decisionToState.map( (ds: antlr.DecisionState, index: number) => new antlr.DFA(ds, index) ); +} + +export class RootContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public EOF(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.EOF, 0)!; + } + public pplStatement(): PplStatementContext | null { + return this.getRuleContext(0, PplStatementContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_root; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRoot) { + return visitor.visitRoot(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PplStatementContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public dmlStatement(): DmlStatementContext { + return this.getRuleContext(0, DmlStatementContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_pplStatement; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPplStatement) { + return visitor.visitPplStatement(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DmlStatementContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public queryStatement(): QueryStatementContext { + return this.getRuleContext(0, QueryStatementContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_dmlStatement; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDmlStatement) { + return visitor.visitDmlStatement(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class QueryStatementContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public pplCommands(): PplCommandsContext { + return this.getRuleContext(0, PplCommandsContext)!; + } + public PIPE(): antlr.TerminalNode[]; + public PIPE(i: number): antlr.TerminalNode | null; + public PIPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.PIPE); + } else { + return this.getToken(OpenSearchPPLParser.PIPE, i); + } + } + public commands(): CommandsContext[]; + public commands(i: number): CommandsContext | null; + public commands(i?: number): CommandsContext[] | CommandsContext | null { + if (i === undefined) { + return this.getRuleContexts(CommandsContext); + } + + return this.getRuleContext(i, CommandsContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_queryStatement; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitQueryStatement) { + return visitor.visitQueryStatement(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PplCommandsContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public searchCommand(): SearchCommandContext | null { + return this.getRuleContext(0, SearchCommandContext); + } + public describeCommand(): DescribeCommandContext | null { + return this.getRuleContext(0, DescribeCommandContext); + } + public showDataSourcesCommand(): ShowDataSourcesCommandContext | null { + return this.getRuleContext(0, ShowDataSourcesCommandContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_pplCommands; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPplCommands) { + return visitor.visitPplCommands(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class CommandsContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public whereCommand(): WhereCommandContext | null { + return this.getRuleContext(0, WhereCommandContext); + } + public fieldsCommand(): FieldsCommandContext | null { + return this.getRuleContext(0, FieldsCommandContext); + } + public renameCommand(): RenameCommandContext | null { + return this.getRuleContext(0, RenameCommandContext); + } + public statsCommand(): StatsCommandContext | null { + return this.getRuleContext(0, StatsCommandContext); + } + public dedupCommand(): DedupCommandContext | null { + return this.getRuleContext(0, DedupCommandContext); + } + public sortCommand(): SortCommandContext | null { + return this.getRuleContext(0, SortCommandContext); + } + public evalCommand(): EvalCommandContext | null { + return this.getRuleContext(0, EvalCommandContext); + } + public headCommand(): HeadCommandContext | null { + return this.getRuleContext(0, HeadCommandContext); + } + public topCommand(): TopCommandContext | null { + return this.getRuleContext(0, TopCommandContext); + } + public rareCommand(): RareCommandContext | null { + return this.getRuleContext(0, RareCommandContext); + } + public grokCommand(): GrokCommandContext | null { + return this.getRuleContext(0, GrokCommandContext); + } + public parseCommand(): ParseCommandContext | null { + return this.getRuleContext(0, ParseCommandContext); + } + public patternsCommand(): PatternsCommandContext | null { + return this.getRuleContext(0, PatternsCommandContext); + } + public kmeansCommand(): KmeansCommandContext | null { + return this.getRuleContext(0, KmeansCommandContext); + } + public adCommand(): AdCommandContext | null { + return this.getRuleContext(0, AdCommandContext); + } + public mlCommand(): MlCommandContext | null { + return this.getRuleContext(0, MlCommandContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_commands; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitCommands) { + return visitor.visitCommands(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SearchCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_searchCommand; + } + public override copyFrom(ctx: SearchCommandContext): void { + super.copyFrom(ctx); + } +} +export class SearchFromFilterContext extends SearchCommandContext { + public constructor(ctx: SearchCommandContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public fromClause(): FromClauseContext { + return this.getRuleContext(0, FromClauseContext)!; + } + public logicalExpression(): LogicalExpressionContext { + return this.getRuleContext(0, LogicalExpressionContext)!; + } + public SEARCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SEARCH, 0); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSearchFromFilter) { + return visitor.visitSearchFromFilter(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class SearchFromContext extends SearchCommandContext { + public constructor(ctx: SearchCommandContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public fromClause(): FromClauseContext { + return this.getRuleContext(0, FromClauseContext)!; + } + public SEARCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SEARCH, 0); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSearchFrom) { + return visitor.visitSearchFrom(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class SearchFilterFromContext extends SearchCommandContext { + public constructor(ctx: SearchCommandContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public logicalExpression(): LogicalExpressionContext { + return this.getRuleContext(0, LogicalExpressionContext)!; + } + public fromClause(): FromClauseContext { + return this.getRuleContext(0, FromClauseContext)!; + } + public SEARCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SEARCH, 0); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSearchFilterFrom) { + return visitor.visitSearchFilterFrom(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DescribeCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DESCRIBE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.DESCRIBE, 0)!; + } + public tableSourceClause(): TableSourceClauseContext { + return this.getRuleContext(0, TableSourceClauseContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_describeCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDescribeCommand) { + return visitor.visitDescribeCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ShowDataSourcesCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SHOW(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.SHOW, 0)!; + } + public DATASOURCES(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.DATASOURCES, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_showDataSourcesCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitShowDataSourcesCommand) { + return visitor.visitShowDataSourcesCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class WhereCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public WHERE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.WHERE, 0)!; + } + public logicalExpression(): LogicalExpressionContext { + return this.getRuleContext(0, LogicalExpressionContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_whereCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitWhereCommand) { + return visitor.visitWhereCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class FieldsCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public FIELDS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.FIELDS, 0)!; + } + public fieldList(): FieldListContext { + return this.getRuleContext(0, FieldListContext)!; + } + public PLUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PLUS, 0); + } + public MINUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUS, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_fieldsCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitFieldsCommand) { + return visitor.visitFieldsCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RenameCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public RENAME(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RENAME, 0)!; + } + public renameClasue(): RenameClasueContext[]; + public renameClasue(i: number): RenameClasueContext | null; + public renameClasue(i?: number): RenameClasueContext[] | RenameClasueContext | null { + if (i === undefined) { + return this.getRuleContexts(RenameClasueContext); + } + + return this.getRuleContext(i, RenameClasueContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_renameCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRenameCommand) { + return visitor.visitRenameCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class StatsCommandContext extends antlr.ParserRuleContext { + public _partitions?: IntegerLiteralContext; + public _allnum?: BooleanLiteralContext; + public _delim?: StringLiteralContext; + public _dedupsplit?: BooleanLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public STATS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.STATS, 0)!; + } + public statsAggTerm(): StatsAggTermContext[]; + public statsAggTerm(i: number): StatsAggTermContext | null; + public statsAggTerm(i?: number): StatsAggTermContext[] | StatsAggTermContext | null { + if (i === undefined) { + return this.getRuleContexts(StatsAggTermContext); + } + + return this.getRuleContext(i, StatsAggTermContext); + } + public PARTITIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PARTITIONS, 0); + } + public EQUAL(): antlr.TerminalNode[]; + public EQUAL(i: number): antlr.TerminalNode | null; + public EQUAL(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.EQUAL); + } else { + return this.getToken(OpenSearchPPLParser.EQUAL, i); + } + } + public ALLNUM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ALLNUM, 0); + } + public DELIM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DELIM, 0); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public statsByClause(): StatsByClauseContext | null { + return this.getRuleContext(0, StatsByClauseContext); + } + public DEDUP_SPLITVALUES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DEDUP_SPLITVALUES, 0); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public booleanLiteral(): BooleanLiteralContext[]; + public booleanLiteral(i: number): BooleanLiteralContext | null; + public booleanLiteral(i?: number): BooleanLiteralContext[] | BooleanLiteralContext | null { + if (i === undefined) { + return this.getRuleContexts(BooleanLiteralContext); + } + + return this.getRuleContext(i, BooleanLiteralContext); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_statsCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitStatsCommand) { + return visitor.visitStatsCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DedupCommandContext extends antlr.ParserRuleContext { + public _number_?: IntegerLiteralContext; + public _keepempty?: BooleanLiteralContext; + public _consecutive?: BooleanLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DEDUP(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.DEDUP, 0)!; + } + public fieldList(): FieldListContext { + return this.getRuleContext(0, FieldListContext)!; + } + public KEEPEMPTY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.KEEPEMPTY, 0); + } + public EQUAL(): antlr.TerminalNode[]; + public EQUAL(i: number): antlr.TerminalNode | null; + public EQUAL(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.EQUAL); + } else { + return this.getToken(OpenSearchPPLParser.EQUAL, i); + } + } + public CONSECUTIVE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CONSECUTIVE, 0); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public booleanLiteral(): BooleanLiteralContext[]; + public booleanLiteral(i: number): BooleanLiteralContext | null; + public booleanLiteral(i?: number): BooleanLiteralContext[] | BooleanLiteralContext | null { + if (i === undefined) { + return this.getRuleContexts(BooleanLiteralContext); + } + + return this.getRuleContext(i, BooleanLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_dedupCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDedupCommand) { + return visitor.visitDedupCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SortCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SORT(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.SORT, 0)!; + } + public sortbyClause(): SortbyClauseContext { + return this.getRuleContext(0, SortbyClauseContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_sortCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSortCommand) { + return visitor.visitSortCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class EvalCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public EVAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.EVAL, 0)!; + } + public evalClause(): EvalClauseContext[]; + public evalClause(i: number): EvalClauseContext | null; + public evalClause(i?: number): EvalClauseContext[] | EvalClauseContext | null { + if (i === undefined) { + return this.getRuleContexts(EvalClauseContext); + } + + return this.getRuleContext(i, EvalClauseContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_evalCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitEvalCommand) { + return visitor.visitEvalCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class HeadCommandContext extends antlr.ParserRuleContext { + public _number_?: IntegerLiteralContext; + public _from_?: IntegerLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public HEAD(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.HEAD, 0)!; + } + public FROM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FROM, 0); + } + public integerLiteral(): IntegerLiteralContext[]; + public integerLiteral(i: number): IntegerLiteralContext | null; + public integerLiteral(i?: number): IntegerLiteralContext[] | IntegerLiteralContext | null { + if (i === undefined) { + return this.getRuleContexts(IntegerLiteralContext); + } + + return this.getRuleContext(i, IntegerLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_headCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitHeadCommand) { + return visitor.visitHeadCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TopCommandContext extends antlr.ParserRuleContext { + public _number_?: IntegerLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TOP(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.TOP, 0)!; + } + public fieldList(): FieldListContext { + return this.getRuleContext(0, FieldListContext)!; + } + public byClause(): ByClauseContext | null { + return this.getRuleContext(0, ByClauseContext); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_topCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTopCommand) { + return visitor.visitTopCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RareCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public RARE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RARE, 0)!; + } + public fieldList(): FieldListContext { + return this.getRuleContext(0, FieldListContext)!; + } + public byClause(): ByClauseContext | null { + return this.getRuleContext(0, ByClauseContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_rareCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRareCommand) { + return visitor.visitRareCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class GrokCommandContext extends antlr.ParserRuleContext { + public _source_field?: ExpressionContext; + public _pattern?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public GROK(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.GROK, 0)!; + } + public expression(): ExpressionContext | null { + return this.getRuleContext(0, ExpressionContext); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_grokCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitGrokCommand) { + return visitor.visitGrokCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ParseCommandContext extends antlr.ParserRuleContext { + public _source_field?: ExpressionContext; + public _pattern?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public PARSE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.PARSE, 0)!; + } + public expression(): ExpressionContext | null { + return this.getRuleContext(0, ExpressionContext); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_parseCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitParseCommand) { + return visitor.visitParseCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PatternsCommandContext extends antlr.ParserRuleContext { + public _source_field?: ExpressionContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public PATTERNS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.PATTERNS, 0)!; + } + public patternsParameter(): PatternsParameterContext[]; + public patternsParameter(i: number): PatternsParameterContext | null; + public patternsParameter(i?: number): PatternsParameterContext[] | PatternsParameterContext | null { + if (i === undefined) { + return this.getRuleContexts(PatternsParameterContext); + } + + return this.getRuleContext(i, PatternsParameterContext); + } + public expression(): ExpressionContext | null { + return this.getRuleContext(0, ExpressionContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_patternsCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPatternsCommand) { + return visitor.visitPatternsCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PatternsParameterContext extends antlr.ParserRuleContext { + public _new_field?: StringLiteralContext; + public _pattern?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public NEW_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NEW_FIELD, 0); + } + public EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EQUAL, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public PATTERN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PATTERN, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_patternsParameter; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPatternsParameter) { + return visitor.visitPatternsParameter(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PatternsMethodContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public PUNCT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PUNCT, 0); + } + public REGEX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.REGEX, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_patternsMethod; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPatternsMethod) { + return visitor.visitPatternsMethod(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class KmeansCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public KMEANS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.KMEANS, 0)!; + } + public kmeansParameter(): KmeansParameterContext[]; + public kmeansParameter(i: number): KmeansParameterContext | null; + public kmeansParameter(i?: number): KmeansParameterContext[] | KmeansParameterContext | null { + if (i === undefined) { + return this.getRuleContexts(KmeansParameterContext); + } + + return this.getRuleContext(i, KmeansParameterContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_kmeansCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitKmeansCommand) { + return visitor.visitKmeansCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class KmeansParameterContext extends antlr.ParserRuleContext { + public _centroids?: IntegerLiteralContext; + public _iterations?: IntegerLiteralContext; + public _distance_type?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public CENTROIDS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CENTROIDS, 0); + } + public EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EQUAL, 0); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public ITERATIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ITERATIONS, 0); + } + public DISTANCE_TYPE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DISTANCE_TYPE, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_kmeansParameter; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitKmeansParameter) { + return visitor.visitKmeansParameter(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class AdCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public AD(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.AD, 0)!; + } + public adParameter(): AdParameterContext[]; + public adParameter(i: number): AdParameterContext | null; + public adParameter(i?: number): AdParameterContext[] | AdParameterContext | null { + if (i === undefined) { + return this.getRuleContexts(AdParameterContext); + } + + return this.getRuleContext(i, AdParameterContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_adCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitAdCommand) { + return visitor.visitAdCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class AdParameterContext extends antlr.ParserRuleContext { + public _number_of_trees?: IntegerLiteralContext; + public _shingle_size?: IntegerLiteralContext; + public _sample_size?: IntegerLiteralContext; + public _output_after?: IntegerLiteralContext; + public _time_decay?: DecimalLiteralContext; + public _anomaly_rate?: DecimalLiteralContext; + public _category_field?: StringLiteralContext; + public _time_field?: StringLiteralContext; + public _date_format?: StringLiteralContext; + public _time_zone?: StringLiteralContext; + public _training_data_size?: IntegerLiteralContext; + public _anomaly_score_threshold?: DecimalLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public NUMBER_OF_TREES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NUMBER_OF_TREES, 0); + } + public EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EQUAL, 0); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public SHINGLE_SIZE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SHINGLE_SIZE, 0); + } + public SAMPLE_SIZE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SAMPLE_SIZE, 0); + } + public OUTPUT_AFTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.OUTPUT_AFTER, 0); + } + public TIME_DECAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_DECAY, 0); + } + public decimalLiteral(): DecimalLiteralContext | null { + return this.getRuleContext(0, DecimalLiteralContext); + } + public ANOMALY_RATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ANOMALY_RATE, 0); + } + public CATEGORY_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CATEGORY_FIELD, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public TIME_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_FIELD, 0); + } + public DATE_FORMAT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE_FORMAT, 0); + } + public TIME_ZONE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_ZONE, 0); + } + public TRAINING_DATA_SIZE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TRAINING_DATA_SIZE, 0); + } + public ANOMALY_SCORE_THRESHOLD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_adParameter; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitAdParameter) { + return visitor.visitAdParameter(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class MlCommandContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ML(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.ML, 0)!; + } + public mlArg(): MlArgContext[]; + public mlArg(i: number): MlArgContext | null; + public mlArg(i?: number): MlArgContext[] | MlArgContext | null { + if (i === undefined) { + return this.getRuleContexts(MlArgContext); + } + + return this.getRuleContext(i, MlArgContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_mlCommand; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitMlCommand) { + return visitor.visitMlCommand(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class MlArgContext extends antlr.ParserRuleContext { + public _argName?: IdentContext; + public _argValue?: LiteralValueContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EQUAL, 0); + } + public ident(): IdentContext | null { + return this.getRuleContext(0, IdentContext); + } + public literalValue(): LiteralValueContext | null { + return this.getRuleContext(0, LiteralValueContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_mlArg; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitMlArg) { + return visitor.visitMlArg(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class FromClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SOURCE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SOURCE, 0); + } + public EQUAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.EQUAL, 0)!; + } + public tableSourceClause(): TableSourceClauseContext | null { + return this.getRuleContext(0, TableSourceClauseContext); + } + public INDEX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.INDEX, 0); + } + public tableFunction(): TableFunctionContext | null { + return this.getRuleContext(0, TableFunctionContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_fromClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitFromClause) { + return visitor.visitFromClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TableSourceClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public tableSource(): TableSourceContext[]; + public tableSource(i: number): TableSourceContext | null; + public tableSource(i?: number): TableSourceContext[] | TableSourceContext | null { + if (i === undefined) { + return this.getRuleContexts(TableSourceContext); + } + + return this.getRuleContext(i, TableSourceContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_tableSourceClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTableSourceClause) { + return visitor.visitTableSourceClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RenameClasueContext extends antlr.ParserRuleContext { + public _orignalField?: WcFieldExpressionContext; + public _renamedField?: WcFieldExpressionContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public AS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.AS, 0)!; + } + public wcFieldExpression(): WcFieldExpressionContext[]; + public wcFieldExpression(i: number): WcFieldExpressionContext | null; + public wcFieldExpression(i?: number): WcFieldExpressionContext[] | WcFieldExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(WcFieldExpressionContext); + } + + return this.getRuleContext(i, WcFieldExpressionContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_renameClasue; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRenameClasue) { + return visitor.visitRenameClasue(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ByClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public BY(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.BY, 0)!; + } + public fieldList(): FieldListContext { + return this.getRuleContext(0, FieldListContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_byClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitByClause) { + return visitor.visitByClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class StatsByClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public BY(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.BY, 0)!; + } + public fieldList(): FieldListContext | null { + return this.getRuleContext(0, FieldListContext); + } + public bySpanClause(): BySpanClauseContext | null { + return this.getRuleContext(0, BySpanClauseContext); + } + public COMMA(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.COMMA, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_statsByClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitStatsByClause) { + return visitor.visitStatsByClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class BySpanClauseContext extends antlr.ParserRuleContext { + public _alias?: QualifiedNameContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public spanClause(): SpanClauseContext { + return this.getRuleContext(0, SpanClauseContext)!; + } + public AS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AS, 0); + } + public qualifiedName(): QualifiedNameContext | null { + return this.getRuleContext(0, QualifiedNameContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_bySpanClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitBySpanClause) { + return visitor.visitBySpanClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SpanClauseContext extends antlr.ParserRuleContext { + public _value?: LiteralValueContext; + public _unit?: TimespanUnitContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SPAN(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.SPAN, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public fieldExpression(): FieldExpressionContext { + return this.getRuleContext(0, FieldExpressionContext)!; + } + public COMMA(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.COMMA, 0)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public literalValue(): LiteralValueContext { + return this.getRuleContext(0, LiteralValueContext)!; + } + public timespanUnit(): TimespanUnitContext | null { + return this.getRuleContext(0, TimespanUnitContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_spanClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSpanClause) { + return visitor.visitSpanClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SortbyClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public sortField(): SortFieldContext[]; + public sortField(i: number): SortFieldContext | null; + public sortField(i?: number): SortFieldContext[] | SortFieldContext | null { + if (i === undefined) { + return this.getRuleContexts(SortFieldContext); + } + + return this.getRuleContext(i, SortFieldContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_sortbyClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSortbyClause) { + return visitor.visitSortbyClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class EvalClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public fieldExpression(): FieldExpressionContext { + return this.getRuleContext(0, FieldExpressionContext)!; + } + public EQUAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.EQUAL, 0)!; + } + public expression(): ExpressionContext { + return this.getRuleContext(0, ExpressionContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_evalClause; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitEvalClause) { + return visitor.visitEvalClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class StatsAggTermContext extends antlr.ParserRuleContext { + public _alias?: WcFieldExpressionContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public statsFunction(): StatsFunctionContext { + return this.getRuleContext(0, StatsFunctionContext)!; + } + public AS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AS, 0); + } + public wcFieldExpression(): WcFieldExpressionContext | null { + return this.getRuleContext(0, WcFieldExpressionContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_statsAggTerm; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitStatsAggTerm) { + return visitor.visitStatsAggTerm(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class StatsFunctionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_statsFunction; + } + public override copyFrom(ctx: StatsFunctionContext): void { + super.copyFrom(ctx); + } +} +export class DistinctCountFunctionCallContext extends StatsFunctionContext { + public constructor(ctx: StatsFunctionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public valueExpression(): ValueExpressionContext { + return this.getRuleContext(0, ValueExpressionContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public DISTINCT_COUNT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DISTINCT_COUNT, 0); + } + public DC(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DC, 0); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDistinctCountFunctionCall) { + return visitor.visitDistinctCountFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class StatsFunctionCallContext extends StatsFunctionContext { + public constructor(ctx: StatsFunctionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public statsFunctionName(): StatsFunctionNameContext { + return this.getRuleContext(0, StatsFunctionNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public valueExpression(): ValueExpressionContext { + return this.getRuleContext(0, ValueExpressionContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitStatsFunctionCall) { + return visitor.visitStatsFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class CountAllFunctionCallContext extends StatsFunctionContext { + public constructor(ctx: StatsFunctionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public COUNT(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.COUNT, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitCountAllFunctionCall) { + return visitor.visitCountAllFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class PercentileAggFunctionCallContext extends StatsFunctionContext { + public constructor(ctx: StatsFunctionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public percentileAggFunction(): PercentileAggFunctionContext { + return this.getRuleContext(0, PercentileAggFunctionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPercentileAggFunctionCall) { + return visitor.visitPercentileAggFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class TakeAggFunctionCallContext extends StatsFunctionContext { + public constructor(ctx: StatsFunctionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public takeAggFunction(): TakeAggFunctionContext { + return this.getRuleContext(0, TakeAggFunctionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTakeAggFunctionCall) { + return visitor.visitTakeAggFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class StatsFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public AVG(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AVG, 0); + } + public COUNT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.COUNT, 0); + } + public SUM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUM, 0); + } + public MIN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MIN, 0); + } + public MAX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MAX, 0); + } + public VAR_SAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.VAR_SAMP, 0); + } + public VAR_POP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.VAR_POP, 0); + } + public STDDEV_SAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STDDEV_SAMP, 0); + } + public STDDEV_POP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STDDEV_POP, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_statsFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitStatsFunctionName) { + return visitor.visitStatsFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TakeAggFunctionContext extends antlr.ParserRuleContext { + public _size?: IntegerLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TAKE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.TAKE, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public fieldExpression(): FieldExpressionContext { + return this.getRuleContext(0, FieldExpressionContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public COMMA(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.COMMA, 0); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_takeAggFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTakeAggFunction) { + return visitor.visitTakeAggFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PercentileAggFunctionContext extends antlr.ParserRuleContext { + public _value?: IntegerLiteralContext; + public _aggField?: FieldExpressionContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public PERCENTILE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.PERCENTILE, 0)!; + } + public LESS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LESS, 0)!; + } + public GREATER(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.GREATER, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public integerLiteral(): IntegerLiteralContext { + return this.getRuleContext(0, IntegerLiteralContext)!; + } + public fieldExpression(): FieldExpressionContext { + return this.getRuleContext(0, FieldExpressionContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_percentileAggFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPercentileAggFunction) { + return visitor.visitPercentileAggFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public logicalExpression(): LogicalExpressionContext | null { + return this.getRuleContext(0, LogicalExpressionContext); + } + public comparisonExpression(): ComparisonExpressionContext | null { + return this.getRuleContext(0, ComparisonExpressionContext); + } + public valueExpression(): ValueExpressionContext | null { + return this.getRuleContext(0, ValueExpressionContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_expression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitExpression) { + return visitor.visitExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class LogicalExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_logicalExpression; + } + public override copyFrom(ctx: LogicalExpressionContext): void { + super.copyFrom(ctx); + } +} +export class RelevanceExprContext extends LogicalExpressionContext { + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public relevanceExpression(): RelevanceExpressionContext { + return this.getRuleContext(0, RelevanceExpressionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceExpr) { + return visitor.visitRelevanceExpr(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class LogicalNotContext extends LogicalExpressionContext { + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public NOT(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.NOT, 0)!; + } + public logicalExpression(): LogicalExpressionContext { + return this.getRuleContext(0, LogicalExpressionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitLogicalNot) { + return visitor.visitLogicalNot(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class BooleanExprContext extends LogicalExpressionContext { + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public booleanExpression(): BooleanExpressionContext { + return this.getRuleContext(0, BooleanExpressionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitBooleanExpr) { + return visitor.visitBooleanExpr(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class LogicalAndContext extends LogicalExpressionContext { + public _left?: LogicalExpressionContext; + public _right?: LogicalExpressionContext; + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public logicalExpression(): LogicalExpressionContext[]; + public logicalExpression(i: number): LogicalExpressionContext | null; + public logicalExpression(i?: number): LogicalExpressionContext[] | LogicalExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(LogicalExpressionContext); + } + + return this.getRuleContext(i, LogicalExpressionContext); + } + public AND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AND, 0); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitLogicalAnd) { + return visitor.visitLogicalAnd(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class ComparsionContext extends LogicalExpressionContext { + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public comparisonExpression(): ComparisonExpressionContext { + return this.getRuleContext(0, ComparisonExpressionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitComparsion) { + return visitor.visitComparsion(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class LogicalXorContext extends LogicalExpressionContext { + public _left?: LogicalExpressionContext; + public _right?: LogicalExpressionContext; + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public XOR(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.XOR, 0)!; + } + public logicalExpression(): LogicalExpressionContext[]; + public logicalExpression(i: number): LogicalExpressionContext | null; + public logicalExpression(i?: number): LogicalExpressionContext[] | LogicalExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(LogicalExpressionContext); + } + + return this.getRuleContext(i, LogicalExpressionContext); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitLogicalXor) { + return visitor.visitLogicalXor(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class LogicalOrContext extends LogicalExpressionContext { + public _left?: LogicalExpressionContext; + public _right?: LogicalExpressionContext; + public constructor(ctx: LogicalExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public OR(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.OR, 0)!; + } + public logicalExpression(): LogicalExpressionContext[]; + public logicalExpression(i: number): LogicalExpressionContext | null; + public logicalExpression(i?: number): LogicalExpressionContext[] | LogicalExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(LogicalExpressionContext); + } + + return this.getRuleContext(i, LogicalExpressionContext); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitLogicalOr) { + return visitor.visitLogicalOr(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ComparisonExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_comparisonExpression; + } + public override copyFrom(ctx: ComparisonExpressionContext): void { + super.copyFrom(ctx); + } +} +export class InExprContext extends ComparisonExpressionContext { + public constructor(ctx: ComparisonExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public valueExpression(): ValueExpressionContext { + return this.getRuleContext(0, ValueExpressionContext)!; + } + public IN(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.IN, 0)!; + } + public valueList(): ValueListContext { + return this.getRuleContext(0, ValueListContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitInExpr) { + return visitor.visitInExpr(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class CompareExprContext extends ComparisonExpressionContext { + public _left?: ValueExpressionContext; + public _right?: ValueExpressionContext; + public constructor(ctx: ComparisonExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public comparisonOperator(): ComparisonOperatorContext { + return this.getRuleContext(0, ComparisonOperatorContext)!; + } + public valueExpression(): ValueExpressionContext[]; + public valueExpression(i: number): ValueExpressionContext | null; + public valueExpression(i?: number): ValueExpressionContext[] | ValueExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(ValueExpressionContext); + } + + return this.getRuleContext(i, ValueExpressionContext); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitCompareExpr) { + return visitor.visitCompareExpr(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ValueExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_valueExpression; + } + public override copyFrom(ctx: ValueExpressionContext): void { + super.copyFrom(ctx); + } +} +export class PositionFunctionCallContext extends ValueExpressionContext { + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public positionFunction(): PositionFunctionContext { + return this.getRuleContext(0, PositionFunctionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPositionFunctionCall) { + return visitor.visitPositionFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class ValueExpressionDefaultContext extends ValueExpressionContext { + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public primaryExpression(): PrimaryExpressionContext { + return this.getRuleContext(0, PrimaryExpressionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitValueExpressionDefault) { + return visitor.visitValueExpressionDefault(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class ParentheticValueExprContext extends ValueExpressionContext { + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public valueExpression(): ValueExpressionContext { + return this.getRuleContext(0, ValueExpressionContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitParentheticValueExpr) { + return visitor.visitParentheticValueExpr(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class GetFormatFunctionCallContext extends ValueExpressionContext { + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public getFormatFunction(): GetFormatFunctionContext { + return this.getRuleContext(0, GetFormatFunctionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitGetFormatFunctionCall) { + return visitor.visitGetFormatFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class ExtractFunctionCallContext extends ValueExpressionContext { + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public extractFunction(): ExtractFunctionContext { + return this.getRuleContext(0, ExtractFunctionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitExtractFunctionCall) { + return visitor.visitExtractFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class BinaryArithmeticContext extends ValueExpressionContext { + public _left?: ValueExpressionContext; + public _binaryOperator?: Token | null; + public _right?: ValueExpressionContext; + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public valueExpression(): ValueExpressionContext[]; + public valueExpression(i: number): ValueExpressionContext | null; + public valueExpression(i?: number): ValueExpressionContext[] | ValueExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(ValueExpressionContext); + } + + return this.getRuleContext(i, ValueExpressionContext); + } + public STAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STAR, 0); + } + public DIVIDE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DIVIDE, 0); + } + public MODULE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MODULE, 0); + } + public PLUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PLUS, 0); + } + public MINUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUS, 0); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitBinaryArithmetic) { + return visitor.visitBinaryArithmetic(this); + } else { + return visitor.visitChildren(this); + } + } +} +export class TimestampFunctionCallContext extends ValueExpressionContext { + public constructor(ctx: ValueExpressionContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public timestampFunction(): TimestampFunctionContext { + return this.getRuleContext(0, TimestampFunctionContext)!; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTimestampFunctionCall) { + return visitor.visitTimestampFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PrimaryExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public evalFunctionCall(): EvalFunctionCallContext | null { + return this.getRuleContext(0, EvalFunctionCallContext); + } + public dataTypeFunctionCall(): DataTypeFunctionCallContext | null { + return this.getRuleContext(0, DataTypeFunctionCallContext); + } + public fieldExpression(): FieldExpressionContext | null { + return this.getRuleContext(0, FieldExpressionContext); + } + public literalValue(): LiteralValueContext | null { + return this.getRuleContext(0, LiteralValueContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_primaryExpression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPrimaryExpression) { + return visitor.visitPrimaryExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PositionFunctionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public positionFunctionName(): PositionFunctionNameContext { + return this.getRuleContext(0, PositionFunctionNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public functionArg(): FunctionArgContext[]; + public functionArg(i: number): FunctionArgContext | null; + public functionArg(i?: number): FunctionArgContext[] | FunctionArgContext | null { + if (i === undefined) { + return this.getRuleContexts(FunctionArgContext); + } + + return this.getRuleContext(i, FunctionArgContext); + } + public IN(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.IN, 0)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_positionFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPositionFunction) { + return visitor.visitPositionFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class BooleanExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public booleanFunctionCall(): BooleanFunctionCallContext { + return this.getRuleContext(0, BooleanFunctionCallContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_booleanExpression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitBooleanExpression) { + return visitor.visitBooleanExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public singleFieldRelevanceFunction(): SingleFieldRelevanceFunctionContext | null { + return this.getRuleContext(0, SingleFieldRelevanceFunctionContext); + } + public multiFieldRelevanceFunction(): MultiFieldRelevanceFunctionContext | null { + return this.getRuleContext(0, MultiFieldRelevanceFunctionContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceExpression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceExpression) { + return visitor.visitRelevanceExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SingleFieldRelevanceFunctionContext extends antlr.ParserRuleContext { + public _field?: RelevanceFieldContext; + public _query?: RelevanceQueryContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public singleFieldRelevanceFunctionName(): SingleFieldRelevanceFunctionNameContext { + return this.getRuleContext(0, SingleFieldRelevanceFunctionNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public relevanceField(): RelevanceFieldContext { + return this.getRuleContext(0, RelevanceFieldContext)!; + } + public relevanceQuery(): RelevanceQueryContext { + return this.getRuleContext(0, RelevanceQueryContext)!; + } + public relevanceArg(): RelevanceArgContext[]; + public relevanceArg(i: number): RelevanceArgContext | null; + public relevanceArg(i?: number): RelevanceArgContext[] | RelevanceArgContext | null { + if (i === undefined) { + return this.getRuleContexts(RelevanceArgContext); + } + + return this.getRuleContext(i, RelevanceArgContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_singleFieldRelevanceFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSingleFieldRelevanceFunction) { + return visitor.visitSingleFieldRelevanceFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class MultiFieldRelevanceFunctionContext extends antlr.ParserRuleContext { + public _field?: RelevanceFieldAndWeightContext; + public _query?: RelevanceQueryContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public multiFieldRelevanceFunctionName(): MultiFieldRelevanceFunctionNameContext { + return this.getRuleContext(0, MultiFieldRelevanceFunctionNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public LT_SQR_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_SQR_PRTHS, 0)!; + } + public RT_SQR_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_SQR_PRTHS, 0)!; + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public relevanceFieldAndWeight(): RelevanceFieldAndWeightContext[]; + public relevanceFieldAndWeight(i: number): RelevanceFieldAndWeightContext | null; + public relevanceFieldAndWeight(i?: number): RelevanceFieldAndWeightContext[] | RelevanceFieldAndWeightContext | null { + if (i === undefined) { + return this.getRuleContexts(RelevanceFieldAndWeightContext); + } + + return this.getRuleContext(i, RelevanceFieldAndWeightContext); + } + public relevanceQuery(): RelevanceQueryContext { + return this.getRuleContext(0, RelevanceQueryContext)!; + } + public relevanceArg(): RelevanceArgContext[]; + public relevanceArg(i: number): RelevanceArgContext | null; + public relevanceArg(i?: number): RelevanceArgContext[] | RelevanceArgContext | null { + if (i === undefined) { + return this.getRuleContexts(RelevanceArgContext); + } + + return this.getRuleContext(i, RelevanceArgContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_multiFieldRelevanceFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitMultiFieldRelevanceFunction) { + return visitor.visitMultiFieldRelevanceFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TableSourceContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public tableQualifiedName(): TableQualifiedNameContext | null { + return this.getRuleContext(0, TableQualifiedNameContext); + } + public ID_DATE_SUFFIX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ID_DATE_SUFFIX, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_tableSource; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTableSource) { + return visitor.visitTableSource(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TableFunctionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public qualifiedName(): QualifiedNameContext { + return this.getRuleContext(0, QualifiedNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public functionArgs(): FunctionArgsContext { + return this.getRuleContext(0, FunctionArgsContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_tableFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTableFunction) { + return visitor.visitTableFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class FieldListContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public fieldExpression(): FieldExpressionContext[]; + public fieldExpression(i: number): FieldExpressionContext | null; + public fieldExpression(i?: number): FieldExpressionContext[] | FieldExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(FieldExpressionContext); + } + + return this.getRuleContext(i, FieldExpressionContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_fieldList; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitFieldList) { + return visitor.visitFieldList(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class WcFieldListContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public wcFieldExpression(): WcFieldExpressionContext[]; + public wcFieldExpression(i: number): WcFieldExpressionContext | null; + public wcFieldExpression(i?: number): WcFieldExpressionContext[] | WcFieldExpressionContext | null { + if (i === undefined) { + return this.getRuleContexts(WcFieldExpressionContext); + } + + return this.getRuleContext(i, WcFieldExpressionContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_wcFieldList; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitWcFieldList) { + return visitor.visitWcFieldList(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SortFieldContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public sortFieldExpression(): SortFieldExpressionContext { + return this.getRuleContext(0, SortFieldExpressionContext)!; + } + public PLUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PLUS, 0); + } + public MINUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUS, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_sortField; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSortField) { + return visitor.visitSortField(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SortFieldExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public fieldExpression(): FieldExpressionContext { + return this.getRuleContext(0, FieldExpressionContext)!; + } + public AUTO(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AUTO, 0); + } + public LT_PRTHS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0); + } + public RT_PRTHS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0); + } + public STR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STR, 0); + } + public IP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.IP, 0); + } + public NUM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NUM, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_sortFieldExpression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSortFieldExpression) { + return visitor.visitSortFieldExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class FieldExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public qualifiedName(): QualifiedNameContext { + return this.getRuleContext(0, QualifiedNameContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_fieldExpression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitFieldExpression) { + return visitor.visitFieldExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class WcFieldExpressionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public wcQualifiedName(): WcQualifiedNameContext { + return this.getRuleContext(0, WcQualifiedNameContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_wcFieldExpression; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitWcFieldExpression) { + return visitor.visitWcFieldExpression(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class EvalFunctionCallContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public evalFunctionName(): EvalFunctionNameContext { + return this.getRuleContext(0, EvalFunctionNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public functionArgs(): FunctionArgsContext { + return this.getRuleContext(0, FunctionArgsContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_evalFunctionCall; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitEvalFunctionCall) { + return visitor.visitEvalFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DataTypeFunctionCallContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public CAST(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.CAST, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public expression(): ExpressionContext { + return this.getRuleContext(0, ExpressionContext)!; + } + public AS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.AS, 0)!; + } + public convertedDataType(): ConvertedDataTypeContext { + return this.getRuleContext(0, ConvertedDataTypeContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_dataTypeFunctionCall; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDataTypeFunctionCall) { + return visitor.visitDataTypeFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class BooleanFunctionCallContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public conditionFunctionBase(): ConditionFunctionBaseContext { + return this.getRuleContext(0, ConditionFunctionBaseContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public functionArgs(): FunctionArgsContext { + return this.getRuleContext(0, FunctionArgsContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_booleanFunctionCall; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitBooleanFunctionCall) { + return visitor.visitBooleanFunctionCall(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ConvertedDataTypeContext extends antlr.ParserRuleContext { + public _typeName?: Token | null; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE, 0); + } + public TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME, 0); + } + public TIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIMESTAMP, 0); + } + public INT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.INT, 0); + } + public INTEGER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.INTEGER, 0); + } + public DOUBLE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DOUBLE, 0); + } + public LONG(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LONG, 0); + } + public FLOAT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FLOAT, 0); + } + public STRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STRING, 0); + } + public BOOLEAN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.BOOLEAN, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_convertedDataType; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitConvertedDataType) { + return visitor.visitConvertedDataType(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class EvalFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public mathematicalFunctionName(): MathematicalFunctionNameContext | null { + return this.getRuleContext(0, MathematicalFunctionNameContext); + } + public dateTimeFunctionName(): DateTimeFunctionNameContext | null { + return this.getRuleContext(0, DateTimeFunctionNameContext); + } + public textFunctionName(): TextFunctionNameContext | null { + return this.getRuleContext(0, TextFunctionNameContext); + } + public conditionFunctionBase(): ConditionFunctionBaseContext | null { + return this.getRuleContext(0, ConditionFunctionBaseContext); + } + public systemFunctionName(): SystemFunctionNameContext | null { + return this.getRuleContext(0, SystemFunctionNameContext); + } + public positionFunctionName(): PositionFunctionNameContext | null { + return this.getRuleContext(0, PositionFunctionNameContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_evalFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitEvalFunctionName) { + return visitor.visitEvalFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class FunctionArgsContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public functionArg(): FunctionArgContext[]; + public functionArg(i: number): FunctionArgContext | null; + public functionArg(i?: number): FunctionArgContext[] | FunctionArgContext | null { + if (i === undefined) { + return this.getRuleContexts(FunctionArgContext); + } + + return this.getRuleContext(i, FunctionArgContext); + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_functionArgs; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitFunctionArgs) { + return visitor.visitFunctionArgs(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class FunctionArgContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public valueExpression(): ValueExpressionContext { + return this.getRuleContext(0, ValueExpressionContext)!; + } + public ident(): IdentContext | null { + return this.getRuleContext(0, IdentContext); + } + public EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EQUAL, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_functionArg; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitFunctionArg) { + return visitor.visitFunctionArg(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceArgContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public relevanceArgName(): RelevanceArgNameContext { + return this.getRuleContext(0, RelevanceArgNameContext)!; + } + public EQUAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.EQUAL, 0)!; + } + public relevanceArgValue(): RelevanceArgValueContext { + return this.getRuleContext(0, RelevanceArgValueContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceArg; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceArg) { + return visitor.visitRelevanceArg(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceArgNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ALLOW_LEADING_WILDCARD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ALLOW_LEADING_WILDCARD, 0); + } + public ANALYZER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ANALYZER, 0); + } + public ANALYZE_WILDCARD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ANALYZE_WILDCARD, 0); + } + public AUTO_GENERATE_SYNONYMS_PHRASE_QUERY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AUTO_GENERATE_SYNONYMS_PHRASE_QUERY, 0); + } + public BOOST(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.BOOST, 0); + } + public CUTOFF_FREQUENCY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CUTOFF_FREQUENCY, 0); + } + public DEFAULT_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DEFAULT_FIELD, 0); + } + public DEFAULT_OPERATOR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DEFAULT_OPERATOR, 0); + } + public ENABLE_POSITION_INCREMENTS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ENABLE_POSITION_INCREMENTS, 0); + } + public ESCAPE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ESCAPE, 0); + } + public FIELDS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FIELDS, 0); + } + public FLAGS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FLAGS, 0); + } + public FUZZINESS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FUZZINESS, 0); + } + public FUZZY_MAX_EXPANSIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FUZZY_MAX_EXPANSIONS, 0); + } + public FUZZY_PREFIX_LENGTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FUZZY_PREFIX_LENGTH, 0); + } + public FUZZY_REWRITE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FUZZY_REWRITE, 0); + } + public FUZZY_TRANSPOSITIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FUZZY_TRANSPOSITIONS, 0); + } + public LENIENT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LENIENT, 0); + } + public LOW_FREQ_OPERATOR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOW_FREQ_OPERATOR, 0); + } + public MAX_DETERMINIZED_STATES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MAX_DETERMINIZED_STATES, 0); + } + public MAX_EXPANSIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MAX_EXPANSIONS, 0); + } + public MINIMUM_SHOULD_MATCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINIMUM_SHOULD_MATCH, 0); + } + public OPERATOR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.OPERATOR, 0); + } + public PHRASE_SLOP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PHRASE_SLOP, 0); + } + public PREFIX_LENGTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PREFIX_LENGTH, 0); + } + public QUOTE_ANALYZER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUOTE_ANALYZER, 0); + } + public QUOTE_FIELD_SUFFIX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUOTE_FIELD_SUFFIX, 0); + } + public REWRITE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.REWRITE, 0); + } + public SLOP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SLOP, 0); + } + public TIE_BREAKER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIE_BREAKER, 0); + } + public TIME_ZONE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_ZONE, 0); + } + public TYPE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TYPE, 0); + } + public ZERO_TERMS_QUERY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ZERO_TERMS_QUERY, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceArgName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceArgName) { + return visitor.visitRelevanceArgName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceFieldAndWeightContext extends antlr.ParserRuleContext { + public _field?: RelevanceFieldContext; + public _weight?: RelevanceFieldWeightContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public relevanceField(): RelevanceFieldContext { + return this.getRuleContext(0, RelevanceFieldContext)!; + } + public relevanceFieldWeight(): RelevanceFieldWeightContext | null { + return this.getRuleContext(0, RelevanceFieldWeightContext); + } + public BIT_XOR_OP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.BIT_XOR_OP, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceFieldAndWeight; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceFieldAndWeight) { + return visitor.visitRelevanceFieldAndWeight(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceFieldWeightContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public decimalLiteral(): DecimalLiteralContext | null { + return this.getRuleContext(0, DecimalLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceFieldWeight; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceFieldWeight) { + return visitor.visitRelevanceFieldWeight(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceFieldContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public qualifiedName(): QualifiedNameContext | null { + return this.getRuleContext(0, QualifiedNameContext); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceField; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceField) { + return visitor.visitRelevanceField(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceQueryContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public relevanceArgValue(): RelevanceArgValueContext { + return this.getRuleContext(0, RelevanceArgValueContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceQuery; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceQuery) { + return visitor.visitRelevanceQuery(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class RelevanceArgValueContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public qualifiedName(): QualifiedNameContext | null { + return this.getRuleContext(0, QualifiedNameContext); + } + public literalValue(): LiteralValueContext | null { + return this.getRuleContext(0, LiteralValueContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_relevanceArgValue; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitRelevanceArgValue) { + return visitor.visitRelevanceArgValue(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class MathematicalFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ABS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ABS, 0); + } + public CBRT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CBRT, 0); + } + public CEIL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CEIL, 0); + } + public CEILING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CEILING, 0); + } + public CONV(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CONV, 0); + } + public CRC32(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CRC32, 0); + } + public E(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.E, 0); + } + public EXP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EXP, 0); + } + public FLOOR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FLOOR, 0); + } + public LN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LN, 0); + } + public LOG(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOG, 0); + } + public LOG10(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOG10, 0); + } + public LOG2(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOG2, 0); + } + public MOD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MOD, 0); + } + public PI(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PI, 0); + } + public POW(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.POW, 0); + } + public POWER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.POWER, 0); + } + public RAND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RAND, 0); + } + public ROUND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ROUND, 0); + } + public SIGN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SIGN, 0); + } + public SQRT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SQRT, 0); + } + public TRUNCATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TRUNCATE, 0); + } + public trigonometricFunctionName(): TrigonometricFunctionNameContext | null { + return this.getRuleContext(0, TrigonometricFunctionNameContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_mathematicalFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitMathematicalFunctionName) { + return visitor.visitMathematicalFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TrigonometricFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ACOS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ACOS, 0); + } + public ASIN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ASIN, 0); + } + public ATAN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ATAN, 0); + } + public ATAN2(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ATAN2, 0); + } + public COS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.COS, 0); + } + public COT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.COT, 0); + } + public DEGREES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DEGREES, 0); + } + public RADIANS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RADIANS, 0); + } + public SIN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SIN, 0); + } + public TAN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TAN, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_trigonometricFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTrigonometricFunctionName) { + return visitor.visitTrigonometricFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DateTimeFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ADDDATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ADDDATE, 0); + } + public ADDTIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ADDTIME, 0); + } + public CONVERT_TZ(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CONVERT_TZ, 0); + } + public CURDATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CURDATE, 0); + } + public CURRENT_DATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CURRENT_DATE, 0); + } + public CURRENT_TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CURRENT_TIME, 0); + } + public CURRENT_TIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CURRENT_TIMESTAMP, 0); + } + public CURTIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CURTIME, 0); + } + public DATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE, 0); + } + public DATEDIFF(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATEDIFF, 0); + } + public DATETIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATETIME, 0); + } + public DATE_ADD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE_ADD, 0); + } + public DATE_FORMAT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE_FORMAT, 0); + } + public DATE_SUB(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE_SUB, 0); + } + public DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY, 0); + } + public DAYNAME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAYNAME, 0); + } + public DAYOFMONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAYOFMONTH, 0); + } + public DAYOFWEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAYOFWEEK, 0); + } + public DAYOFYEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAYOFYEAR, 0); + } + public DAY_OF_MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_OF_MONTH, 0); + } + public DAY_OF_WEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_OF_WEEK, 0); + } + public DAY_OF_YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_OF_YEAR, 0); + } + public FROM_DAYS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FROM_DAYS, 0); + } + public FROM_UNIXTIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FROM_UNIXTIME, 0); + } + public HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR, 0); + } + public HOUR_OF_DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_OF_DAY, 0); + } + public LAST_DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LAST_DAY, 0); + } + public LOCALTIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOCALTIME, 0); + } + public LOCALTIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOCALTIMESTAMP, 0); + } + public MAKEDATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MAKEDATE, 0); + } + public MAKETIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MAKETIME, 0); + } + public MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MICROSECOND, 0); + } + public MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE, 0); + } + public MINUTE_OF_DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE_OF_DAY, 0); + } + public MINUTE_OF_HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE_OF_HOUR, 0); + } + public MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MONTH, 0); + } + public MONTHNAME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MONTHNAME, 0); + } + public MONTH_OF_YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MONTH_OF_YEAR, 0); + } + public NOW(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NOW, 0); + } + public PERIOD_ADD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PERIOD_ADD, 0); + } + public PERIOD_DIFF(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PERIOD_DIFF, 0); + } + public QUARTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUARTER, 0); + } + public SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND, 0); + } + public SECOND_OF_MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND_OF_MINUTE, 0); + } + public SEC_TO_TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SEC_TO_TIME, 0); + } + public STR_TO_DATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STR_TO_DATE, 0); + } + public SUBDATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUBDATE, 0); + } + public SUBTIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUBTIME, 0); + } + public SYSDATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SYSDATE, 0); + } + public TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME, 0); + } + public TIMEDIFF(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIMEDIFF, 0); + } + public TIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIMESTAMP, 0); + } + public TIME_FORMAT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_FORMAT, 0); + } + public TIME_TO_SEC(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_TO_SEC, 0); + } + public TO_DAYS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TO_DAYS, 0); + } + public TO_SECONDS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TO_SECONDS, 0); + } + public UNIX_TIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.UNIX_TIMESTAMP, 0); + } + public UTC_DATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.UTC_DATE, 0); + } + public UTC_TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.UTC_TIME, 0); + } + public UTC_TIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.UTC_TIMESTAMP, 0); + } + public WEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WEEK, 0); + } + public WEEKDAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WEEKDAY, 0); + } + public WEEK_OF_YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WEEK_OF_YEAR, 0); + } + public YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEAR, 0); + } + public YEARWEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEARWEEK, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_dateTimeFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDateTimeFunctionName) { + return visitor.visitDateTimeFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class GetFormatFunctionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public GET_FORMAT(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.GET_FORMAT, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public getFormatType(): GetFormatTypeContext { + return this.getRuleContext(0, GetFormatTypeContext)!; + } + public COMMA(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.COMMA, 0)!; + } + public functionArg(): FunctionArgContext { + return this.getRuleContext(0, FunctionArgContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_getFormatFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitGetFormatFunction) { + return visitor.visitGetFormatFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class GetFormatTypeContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATE, 0); + } + public DATETIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATETIME, 0); + } + public TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME, 0); + } + public TIMESTAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIMESTAMP, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_getFormatType; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitGetFormatType) { + return visitor.visitGetFormatType(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ExtractFunctionContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public EXTRACT(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.EXTRACT, 0)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public datetimePart(): DatetimePartContext { + return this.getRuleContext(0, DatetimePartContext)!; + } + public FROM(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.FROM, 0)!; + } + public functionArg(): FunctionArgContext { + return this.getRuleContext(0, FunctionArgContext)!; + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_extractFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitExtractFunction) { + return visitor.visitExtractFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SimpleDateTimePartContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MICROSECOND, 0); + } + public SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND, 0); + } + public MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE, 0); + } + public HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR, 0); + } + public DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY, 0); + } + public WEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WEEK, 0); + } + public MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MONTH, 0); + } + public QUARTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUARTER, 0); + } + public YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEAR, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_simpleDateTimePart; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSimpleDateTimePart) { + return visitor.visitSimpleDateTimePart(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ComplexDateTimePartContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SECOND_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND_MICROSECOND, 0); + } + public MINUTE_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE_MICROSECOND, 0); + } + public MINUTE_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE_SECOND, 0); + } + public HOUR_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_MICROSECOND, 0); + } + public HOUR_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_SECOND, 0); + } + public HOUR_MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_MINUTE, 0); + } + public DAY_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_MICROSECOND, 0); + } + public DAY_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_SECOND, 0); + } + public DAY_MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_MINUTE, 0); + } + public DAY_HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_HOUR, 0); + } + public YEAR_MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEAR_MONTH, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_complexDateTimePart; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitComplexDateTimePart) { + return visitor.visitComplexDateTimePart(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DatetimePartContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public simpleDateTimePart(): SimpleDateTimePartContext | null { + return this.getRuleContext(0, SimpleDateTimePartContext); + } + public complexDateTimePart(): ComplexDateTimePartContext | null { + return this.getRuleContext(0, ComplexDateTimePartContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_datetimePart; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDatetimePart) { + return visitor.visitDatetimePart(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TimestampFunctionContext extends antlr.ParserRuleContext { + public _firstArg?: FunctionArgContext; + public _secondArg?: FunctionArgContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public timestampFunctionName(): TimestampFunctionNameContext { + return this.getRuleContext(0, TimestampFunctionNameContext)!; + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public simpleDateTimePart(): SimpleDateTimePartContext { + return this.getRuleContext(0, SimpleDateTimePartContext)!; + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public functionArg(): FunctionArgContext[]; + public functionArg(i: number): FunctionArgContext | null; + public functionArg(i?: number): FunctionArgContext[] | FunctionArgContext | null { + if (i === undefined) { + return this.getRuleContexts(FunctionArgContext); + } + + return this.getRuleContext(i, FunctionArgContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_timestampFunction; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTimestampFunction) { + return visitor.visitTimestampFunction(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TimestampFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TIMESTAMPADD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIMESTAMPADD, 0); + } + public TIMESTAMPDIFF(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIMESTAMPDIFF, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_timestampFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTimestampFunctionName) { + return visitor.visitTimestampFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ConditionFunctionBaseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public LIKE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LIKE, 0); + } + public IF(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.IF, 0); + } + public ISNULL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ISNULL, 0); + } + public ISNOTNULL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ISNOTNULL, 0); + } + public IFNULL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.IFNULL, 0); + } + public NULLIF(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NULLIF, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_conditionFunctionBase; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitConditionFunctionBase) { + return visitor.visitConditionFunctionBase(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SystemFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TYPEOF(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.TYPEOF, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_systemFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSystemFunctionName) { + return visitor.visitSystemFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TextFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SUBSTR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUBSTR, 0); + } + public SUBSTRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUBSTRING, 0); + } + public TRIM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TRIM, 0); + } + public LTRIM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LTRIM, 0); + } + public RTRIM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RTRIM, 0); + } + public LOWER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOWER, 0); + } + public UPPER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.UPPER, 0); + } + public CONCAT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CONCAT, 0); + } + public CONCAT_WS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CONCAT_WS, 0); + } + public LENGTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LENGTH, 0); + } + public STRCMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STRCMP, 0); + } + public RIGHT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RIGHT, 0); + } + public LEFT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LEFT, 0); + } + public ASCII(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ASCII, 0); + } + public LOCATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LOCATE, 0); + } + public REPLACE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.REPLACE, 0); + } + public REVERSE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.REVERSE, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_textFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTextFunctionName) { + return visitor.visitTextFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PositionFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public POSITION(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.POSITION, 0)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_positionFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitPositionFunctionName) { + return visitor.visitPositionFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ComparisonOperatorContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EQUAL, 0); + } + public NOT_EQUAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NOT_EQUAL, 0); + } + public LESS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LESS, 0); + } + public NOT_LESS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NOT_LESS, 0); + } + public GREATER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.GREATER, 0); + } + public NOT_GREATER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NOT_GREATER, 0); + } + public REGEXP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.REGEXP, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_comparisonOperator; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitComparisonOperator) { + return visitor.visitComparisonOperator(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SingleFieldRelevanceFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public MATCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MATCH, 0); + } + public MATCH_PHRASE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MATCH_PHRASE, 0); + } + public MATCH_BOOL_PREFIX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MATCH_BOOL_PREFIX, 0); + } + public MATCH_PHRASE_PREFIX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MATCH_PHRASE_PREFIX, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_singleFieldRelevanceFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitSingleFieldRelevanceFunctionName) { + return visitor.visitSingleFieldRelevanceFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class MultiFieldRelevanceFunctionNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public SIMPLE_QUERY_STRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SIMPLE_QUERY_STRING, 0); + } + public MULTI_MATCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MULTI_MATCH, 0); + } + public QUERY_STRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUERY_STRING, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_multiFieldRelevanceFunctionName; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitMultiFieldRelevanceFunctionName) { + return visitor.visitMultiFieldRelevanceFunctionName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class LiteralValueContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public intervalLiteral(): IntervalLiteralContext | null { + return this.getRuleContext(0, IntervalLiteralContext); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public integerLiteral(): IntegerLiteralContext | null { + return this.getRuleContext(0, IntegerLiteralContext); + } + public decimalLiteral(): DecimalLiteralContext | null { + return this.getRuleContext(0, DecimalLiteralContext); + } + public booleanLiteral(): BooleanLiteralContext | null { + return this.getRuleContext(0, BooleanLiteralContext); + } + public datetimeLiteral(): DatetimeLiteralContext | null { + return this.getRuleContext(0, DatetimeLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_literalValue; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitLiteralValue) { + return visitor.visitLiteralValue(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class IntervalLiteralContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public INTERVAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.INTERVAL, 0)!; + } + public valueExpression(): ValueExpressionContext { + return this.getRuleContext(0, ValueExpressionContext)!; + } + public intervalUnit(): IntervalUnitContext { + return this.getRuleContext(0, IntervalUnitContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_intervalLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIntervalLiteral) { + return visitor.visitIntervalLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class StringLiteralContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DQUOTA_STRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DQUOTA_STRING, 0); + } + public SQUOTA_STRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SQUOTA_STRING, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_stringLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitStringLiteral) { + return visitor.visitStringLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class IntegerLiteralContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public INTEGER_LITERAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.INTEGER_LITERAL, 0)!; + } + public PLUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PLUS, 0); + } + public MINUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUS, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_integerLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIntegerLiteral) { + return visitor.visitIntegerLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DecimalLiteralContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DECIMAL_LITERAL(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.DECIMAL_LITERAL, 0)!; + } + public PLUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PLUS, 0); + } + public MINUS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUS, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_decimalLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDecimalLiteral) { + return visitor.visitDecimalLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class BooleanLiteralContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TRUE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TRUE, 0); + } + public FALSE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FALSE, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_booleanLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitBooleanLiteral) { + return visitor.visitBooleanLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DatetimeLiteralContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public dateLiteral(): DateLiteralContext | null { + return this.getRuleContext(0, DateLiteralContext); + } + public timeLiteral(): TimeLiteralContext | null { + return this.getRuleContext(0, TimeLiteralContext); + } + public timestampLiteral(): TimestampLiteralContext | null { + return this.getRuleContext(0, TimestampLiteralContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_datetimeLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDatetimeLiteral) { + return visitor.visitDatetimeLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class DateLiteralContext extends antlr.ParserRuleContext { + public _date?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public DATE(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.DATE, 0)!; + } + public stringLiteral(): StringLiteralContext { + return this.getRuleContext(0, StringLiteralContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_dateLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitDateLiteral) { + return visitor.visitDateLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TimeLiteralContext extends antlr.ParserRuleContext { + public _time?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TIME(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.TIME, 0)!; + } + public stringLiteral(): StringLiteralContext { + return this.getRuleContext(0, StringLiteralContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_timeLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTimeLiteral) { + return visitor.visitTimeLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TimestampLiteralContext extends antlr.ParserRuleContext { + public _timestamp?: StringLiteralContext; + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public TIMESTAMP(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.TIMESTAMP, 0)!; + } + public stringLiteral(): StringLiteralContext { + return this.getRuleContext(0, StringLiteralContext)!; + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_timestampLiteral; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTimestampLiteral) { + return visitor.visitTimestampLiteral(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class IntervalUnitContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MICROSECOND, 0); + } + public SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND, 0); + } + public MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE, 0); + } + public HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR, 0); + } + public DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY, 0); + } + public WEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WEEK, 0); + } + public MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MONTH, 0); + } + public QUARTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUARTER, 0); + } + public YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEAR, 0); + } + public SECOND_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND_MICROSECOND, 0); + } + public MINUTE_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE_MICROSECOND, 0); + } + public MINUTE_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE_SECOND, 0); + } + public HOUR_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_MICROSECOND, 0); + } + public HOUR_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_SECOND, 0); + } + public HOUR_MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR_MINUTE, 0); + } + public DAY_MICROSECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_MICROSECOND, 0); + } + public DAY_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_SECOND, 0); + } + public DAY_MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_MINUTE, 0); + } + public DAY_HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY_HOUR, 0); + } + public YEAR_MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEAR_MONTH, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_intervalUnit; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIntervalUnit) { + return visitor.visitIntervalUnit(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TimespanUnitContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public MS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MS, 0); + } + public S(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.S, 0); + } + public M(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.M, 0); + } + public H(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.H, 0); + } + public D(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.D, 0); + } + public W(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.W, 0); + } + public Q(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.Q, 0); + } + public Y(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.Y, 0); + } + public MILLISECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MILLISECOND, 0); + } + public SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SECOND, 0); + } + public MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MINUTE, 0); + } + public HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HOUR, 0); + } + public DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DAY, 0); + } + public WEEK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WEEK, 0); + } + public MONTH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MONTH, 0); + } + public QUARTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.QUARTER, 0); + } + public YEAR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.YEAR, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_timespanUnit; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTimespanUnit) { + return visitor.visitTimespanUnit(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class ValueListContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public LT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.LT_PRTHS, 0)!; + } + public literalValue(): LiteralValueContext[]; + public literalValue(i: number): LiteralValueContext | null; + public literalValue(i?: number): LiteralValueContext[] | LiteralValueContext | null { + if (i === undefined) { + return this.getRuleContexts(LiteralValueContext); + } + + return this.getRuleContext(i, LiteralValueContext); + } + public RT_PRTHS(): antlr.TerminalNode { + return this.getToken(OpenSearchPPLParser.RT_PRTHS, 0)!; + } + public COMMA(): antlr.TerminalNode[]; + public COMMA(i: number): antlr.TerminalNode | null; + public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.COMMA); + } else { + return this.getToken(OpenSearchPPLParser.COMMA, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_valueList; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitValueList) { + return visitor.visitValueList(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class QualifiedNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_qualifiedName; + } + public override copyFrom(ctx: QualifiedNameContext): void { + super.copyFrom(ctx); + } +} +export class IdentsAsQualifiedNameContext extends QualifiedNameContext { + public constructor(ctx: QualifiedNameContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public ident(): IdentContext[]; + public ident(i: number): IdentContext | null; + public ident(i?: number): IdentContext[] | IdentContext | null { + if (i === undefined) { + return this.getRuleContexts(IdentContext); + } + + return this.getRuleContext(i, IdentContext); + } + public DOT(): antlr.TerminalNode[]; + public DOT(i: number): antlr.TerminalNode | null; + public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.DOT); + } else { + return this.getToken(OpenSearchPPLParser.DOT, i); + } + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIdentsAsQualifiedName) { + return visitor.visitIdentsAsQualifiedName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TableQualifiedNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_tableQualifiedName; + } + public override copyFrom(ctx: TableQualifiedNameContext): void { + super.copyFrom(ctx); + } +} +export class IdentsAsTableQualifiedNameContext extends TableQualifiedNameContext { + public constructor(ctx: TableQualifiedNameContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public tableIdent(): TableIdentContext { + return this.getRuleContext(0, TableIdentContext)!; + } + public DOT(): antlr.TerminalNode[]; + public DOT(i: number): antlr.TerminalNode | null; + public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.DOT); + } else { + return this.getToken(OpenSearchPPLParser.DOT, i); + } + } + public ident(): IdentContext[]; + public ident(i: number): IdentContext | null; + public ident(i?: number): IdentContext[] | IdentContext | null { + if (i === undefined) { + return this.getRuleContexts(IdentContext); + } + + return this.getRuleContext(i, IdentContext); + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIdentsAsTableQualifiedName) { + return visitor.visitIdentsAsTableQualifiedName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class WcQualifiedNameContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_wcQualifiedName; + } + public override copyFrom(ctx: WcQualifiedNameContext): void { + super.copyFrom(ctx); + } +} +export class IdentsAsWildcardQualifiedNameContext extends WcQualifiedNameContext { + public constructor(ctx: WcQualifiedNameContext) { + super(ctx.parent, ctx.invokingState); + super.copyFrom(ctx); + } + public wildcard(): WildcardContext[]; + public wildcard(i: number): WildcardContext | null; + public wildcard(i?: number): WildcardContext[] | WildcardContext | null { + if (i === undefined) { + return this.getRuleContexts(WildcardContext); + } + + return this.getRuleContext(i, WildcardContext); + } + public DOT(): antlr.TerminalNode[]; + public DOT(i: number): antlr.TerminalNode | null; + public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.DOT); + } else { + return this.getToken(OpenSearchPPLParser.DOT, i); + } + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIdentsAsWildcardQualifiedName) { + return visitor.visitIdentsAsWildcardQualifiedName(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class IdentContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ID(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ID, 0); + } + public DOT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DOT, 0); + } + public BACKTICK(): antlr.TerminalNode[]; + public BACKTICK(i: number): antlr.TerminalNode | null; + public BACKTICK(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.BACKTICK); + } else { + return this.getToken(OpenSearchPPLParser.BACKTICK, i); + } + } + public ident(): IdentContext | null { + return this.getRuleContext(0, IdentContext); + } + public BQUOTA_STRING(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.BQUOTA_STRING, 0); + } + public keywordsCanBeId(): KeywordsCanBeIdContext | null { + return this.getRuleContext(0, KeywordsCanBeIdContext); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_ident; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitIdent) { + return visitor.visitIdent(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class TableIdentContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ident(): IdentContext { + return this.getRuleContext(0, IdentContext)!; + } + public CLUSTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CLUSTER, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_tableIdent; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitTableIdent) { + return visitor.visitTableIdent(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class WildcardContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public ident(): IdentContext[]; + public ident(i: number): IdentContext | null; + public ident(i?: number): IdentContext[] | IdentContext | null { + if (i === undefined) { + return this.getRuleContexts(IdentContext); + } + + return this.getRuleContext(i, IdentContext); + } + public MODULE(): antlr.TerminalNode[]; + public MODULE(i: number): antlr.TerminalNode | null; + public MODULE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.MODULE); + } else { + return this.getToken(OpenSearchPPLParser.MODULE, i); + } + } + public SINGLE_QUOTE(): antlr.TerminalNode[]; + public SINGLE_QUOTE(i: number): antlr.TerminalNode | null; + public SINGLE_QUOTE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.SINGLE_QUOTE); + } else { + return this.getToken(OpenSearchPPLParser.SINGLE_QUOTE, i); + } + } + public wildcard(): WildcardContext | null { + return this.getRuleContext(0, WildcardContext); + } + public DOUBLE_QUOTE(): antlr.TerminalNode[]; + public DOUBLE_QUOTE(i: number): antlr.TerminalNode | null; + public DOUBLE_QUOTE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.DOUBLE_QUOTE); + } else { + return this.getToken(OpenSearchPPLParser.DOUBLE_QUOTE, i); + } + } + public BACKTICK(): antlr.TerminalNode[]; + public BACKTICK(i: number): antlr.TerminalNode | null; + public BACKTICK(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { + if (i === undefined) { + return this.getTokens(OpenSearchPPLParser.BACKTICK); + } else { + return this.getToken(OpenSearchPPLParser.BACKTICK, i); + } + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_wildcard; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitWildcard) { + return visitor.visitWildcard(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class KeywordsCanBeIdContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public D(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.D, 0); + } + public timespanUnit(): TimespanUnitContext | null { + return this.getRuleContext(0, TimespanUnitContext); + } + public SPAN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SPAN, 0); + } + public evalFunctionName(): EvalFunctionNameContext | null { + return this.getRuleContext(0, EvalFunctionNameContext); + } + public relevanceArgName(): RelevanceArgNameContext | null { + return this.getRuleContext(0, RelevanceArgNameContext); + } + public intervalUnit(): IntervalUnitContext | null { + return this.getRuleContext(0, IntervalUnitContext); + } + public dateTimeFunctionName(): DateTimeFunctionNameContext | null { + return this.getRuleContext(0, DateTimeFunctionNameContext); + } + public textFunctionName(): TextFunctionNameContext | null { + return this.getRuleContext(0, TextFunctionNameContext); + } + public mathematicalFunctionName(): MathematicalFunctionNameContext | null { + return this.getRuleContext(0, MathematicalFunctionNameContext); + } + public positionFunctionName(): PositionFunctionNameContext | null { + return this.getRuleContext(0, PositionFunctionNameContext); + } + public SEARCH(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SEARCH, 0); + } + public DESCRIBE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DESCRIBE, 0); + } + public SHOW(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SHOW, 0); + } + public FROM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FROM, 0); + } + public WHERE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.WHERE, 0); + } + public FIELDS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FIELDS, 0); + } + public RENAME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RENAME, 0); + } + public STATS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STATS, 0); + } + public DEDUP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DEDUP, 0); + } + public SORT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SORT, 0); + } + public EVAL(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EVAL, 0); + } + public HEAD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.HEAD, 0); + } + public TOP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TOP, 0); + } + public RARE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RARE, 0); + } + public PARSE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PARSE, 0); + } + public METHOD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.METHOD, 0); + } + public REGEX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.REGEX, 0); + } + public PUNCT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PUNCT, 0); + } + public GROK(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.GROK, 0); + } + public PATTERN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PATTERN, 0); + } + public PATTERNS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PATTERNS, 0); + } + public NEW_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NEW_FIELD, 0); + } + public KMEANS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.KMEANS, 0); + } + public AD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AD, 0); + } + public ML(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ML, 0); + } + public SOURCE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SOURCE, 0); + } + public INDEX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.INDEX, 0); + } + public DESC(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DESC, 0); + } + public DATASOURCES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DATASOURCES, 0); + } + public SORTBY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SORTBY, 0); + } + public STR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STR, 0); + } + public IP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.IP, 0); + } + public NUM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NUM, 0); + } + public KEEPEMPTY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.KEEPEMPTY, 0); + } + public CONSECUTIVE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CONSECUTIVE, 0); + } + public DEDUP_SPLITVALUES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DEDUP_SPLITVALUES, 0); + } + public PARTITIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PARTITIONS, 0); + } + public ALLNUM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ALLNUM, 0); + } + public DELIM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DELIM, 0); + } + public CENTROIDS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CENTROIDS, 0); + } + public ITERATIONS(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ITERATIONS, 0); + } + public DISTANCE_TYPE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DISTANCE_TYPE, 0); + } + public NUMBER_OF_TREES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.NUMBER_OF_TREES, 0); + } + public SHINGLE_SIZE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SHINGLE_SIZE, 0); + } + public SAMPLE_SIZE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SAMPLE_SIZE, 0); + } + public OUTPUT_AFTER(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.OUTPUT_AFTER, 0); + } + public TIME_DECAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_DECAY, 0); + } + public ANOMALY_RATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ANOMALY_RATE, 0); + } + public CATEGORY_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.CATEGORY_FIELD, 0); + } + public TIME_FIELD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_FIELD, 0); + } + public TIME_ZONE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TIME_ZONE, 0); + } + public TRAINING_DATA_SIZE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TRAINING_DATA_SIZE, 0); + } + public ANOMALY_SCORE_THRESHOLD(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ANOMALY_SCORE_THRESHOLD, 0); + } + public AVG(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.AVG, 0); + } + public COUNT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.COUNT, 0); + } + public DISTINCT_COUNT(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DISTINCT_COUNT, 0); + } + public ESTDC(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ESTDC, 0); + } + public ESTDC_ERROR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.ESTDC_ERROR, 0); + } + public MAX(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MAX, 0); + } + public MEAN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MEAN, 0); + } + public MEDIAN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MEDIAN, 0); + } + public MIN(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MIN, 0); + } + public MODE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.MODE, 0); + } + public RANGE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RANGE, 0); + } + public STDEV(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STDEV, 0); + } + public STDEVP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STDEVP, 0); + } + public SUM(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUM, 0); + } + public SUMSQ(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SUMSQ, 0); + } + public VAR_SAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.VAR_SAMP, 0); + } + public VAR_POP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.VAR_POP, 0); + } + public STDDEV_SAMP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STDDEV_SAMP, 0); + } + public STDDEV_POP(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.STDDEV_POP, 0); + } + public PERCENTILE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PERCENTILE, 0); + } + public TAKE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.TAKE, 0); + } + public FIRST(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.FIRST, 0); + } + public LAST(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LAST, 0); + } + public LIST(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LIST, 0); + } + public VALUES(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.VALUES, 0); + } + public EARLIEST(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EARLIEST, 0); + } + public EARLIEST_TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.EARLIEST_TIME, 0); + } + public LATEST(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LATEST, 0); + } + public LATEST_TIME(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.LATEST_TIME, 0); + } + public PER_DAY(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PER_DAY, 0); + } + public PER_HOUR(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PER_HOUR, 0); + } + public PER_MINUTE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PER_MINUTE, 0); + } + public PER_SECOND(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.PER_SECOND, 0); + } + public RATE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.RATE, 0); + } + public SPARKLINE(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.SPARKLINE, 0); + } + public C(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.C, 0); + } + public DC(): antlr.TerminalNode | null { + return this.getToken(OpenSearchPPLParser.DC, 0); + } + public override get ruleIndex(): number { + return OpenSearchPPLParser.RULE_keywordsCanBeId; + } + public override accept(visitor: OpenSearchPPLParserVisitor): Result | null { + if (visitor.visitKeywordsCanBeId) { + return visitor.visitKeywordsCanBeId(this); + } else { + return visitor.visitChildren(this); + } + } +} diff --git a/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParserVisitor.ts b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParserVisitor.ts new file mode 100644 index 000000000000..9ddb17bd038d --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/.generated/OpenSearchPPLParserVisitor.ts @@ -0,0 +1,975 @@ +// Generated from ./src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4 by ANTLR 4.13.1 + +import { AbstractParseTreeVisitor } from "antlr4ng"; + + +import { RootContext } from "./OpenSearchPPLParser.js"; +import { PplStatementContext } from "./OpenSearchPPLParser.js"; +import { DmlStatementContext } from "./OpenSearchPPLParser.js"; +import { QueryStatementContext } from "./OpenSearchPPLParser.js"; +import { PplCommandsContext } from "./OpenSearchPPLParser.js"; +import { CommandsContext } from "./OpenSearchPPLParser.js"; +import { SearchFromContext } from "./OpenSearchPPLParser.js"; +import { SearchFromFilterContext } from "./OpenSearchPPLParser.js"; +import { SearchFilterFromContext } from "./OpenSearchPPLParser.js"; +import { DescribeCommandContext } from "./OpenSearchPPLParser.js"; +import { ShowDataSourcesCommandContext } from "./OpenSearchPPLParser.js"; +import { WhereCommandContext } from "./OpenSearchPPLParser.js"; +import { FieldsCommandContext } from "./OpenSearchPPLParser.js"; +import { RenameCommandContext } from "./OpenSearchPPLParser.js"; +import { StatsCommandContext } from "./OpenSearchPPLParser.js"; +import { DedupCommandContext } from "./OpenSearchPPLParser.js"; +import { SortCommandContext } from "./OpenSearchPPLParser.js"; +import { EvalCommandContext } from "./OpenSearchPPLParser.js"; +import { HeadCommandContext } from "./OpenSearchPPLParser.js"; +import { TopCommandContext } from "./OpenSearchPPLParser.js"; +import { RareCommandContext } from "./OpenSearchPPLParser.js"; +import { GrokCommandContext } from "./OpenSearchPPLParser.js"; +import { ParseCommandContext } from "./OpenSearchPPLParser.js"; +import { PatternsCommandContext } from "./OpenSearchPPLParser.js"; +import { PatternsParameterContext } from "./OpenSearchPPLParser.js"; +import { PatternsMethodContext } from "./OpenSearchPPLParser.js"; +import { KmeansCommandContext } from "./OpenSearchPPLParser.js"; +import { KmeansParameterContext } from "./OpenSearchPPLParser.js"; +import { AdCommandContext } from "./OpenSearchPPLParser.js"; +import { AdParameterContext } from "./OpenSearchPPLParser.js"; +import { MlCommandContext } from "./OpenSearchPPLParser.js"; +import { MlArgContext } from "./OpenSearchPPLParser.js"; +import { FromClauseContext } from "./OpenSearchPPLParser.js"; +import { TableSourceClauseContext } from "./OpenSearchPPLParser.js"; +import { RenameClasueContext } from "./OpenSearchPPLParser.js"; +import { ByClauseContext } from "./OpenSearchPPLParser.js"; +import { StatsByClauseContext } from "./OpenSearchPPLParser.js"; +import { BySpanClauseContext } from "./OpenSearchPPLParser.js"; +import { SpanClauseContext } from "./OpenSearchPPLParser.js"; +import { SortbyClauseContext } from "./OpenSearchPPLParser.js"; +import { EvalClauseContext } from "./OpenSearchPPLParser.js"; +import { StatsAggTermContext } from "./OpenSearchPPLParser.js"; +import { StatsFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { CountAllFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { DistinctCountFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { PercentileAggFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { TakeAggFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { StatsFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { TakeAggFunctionContext } from "./OpenSearchPPLParser.js"; +import { PercentileAggFunctionContext } from "./OpenSearchPPLParser.js"; +import { ExpressionContext } from "./OpenSearchPPLParser.js"; +import { RelevanceExprContext } from "./OpenSearchPPLParser.js"; +import { LogicalNotContext } from "./OpenSearchPPLParser.js"; +import { BooleanExprContext } from "./OpenSearchPPLParser.js"; +import { LogicalAndContext } from "./OpenSearchPPLParser.js"; +import { ComparsionContext } from "./OpenSearchPPLParser.js"; +import { LogicalXorContext } from "./OpenSearchPPLParser.js"; +import { LogicalOrContext } from "./OpenSearchPPLParser.js"; +import { CompareExprContext } from "./OpenSearchPPLParser.js"; +import { InExprContext } from "./OpenSearchPPLParser.js"; +import { PositionFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { ValueExpressionDefaultContext } from "./OpenSearchPPLParser.js"; +import { ParentheticValueExprContext } from "./OpenSearchPPLParser.js"; +import { GetFormatFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { ExtractFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { BinaryArithmeticContext } from "./OpenSearchPPLParser.js"; +import { TimestampFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { PrimaryExpressionContext } from "./OpenSearchPPLParser.js"; +import { PositionFunctionContext } from "./OpenSearchPPLParser.js"; +import { BooleanExpressionContext } from "./OpenSearchPPLParser.js"; +import { RelevanceExpressionContext } from "./OpenSearchPPLParser.js"; +import { SingleFieldRelevanceFunctionContext } from "./OpenSearchPPLParser.js"; +import { MultiFieldRelevanceFunctionContext } from "./OpenSearchPPLParser.js"; +import { TableSourceContext } from "./OpenSearchPPLParser.js"; +import { TableFunctionContext } from "./OpenSearchPPLParser.js"; +import { FieldListContext } from "./OpenSearchPPLParser.js"; +import { WcFieldListContext } from "./OpenSearchPPLParser.js"; +import { SortFieldContext } from "./OpenSearchPPLParser.js"; +import { SortFieldExpressionContext } from "./OpenSearchPPLParser.js"; +import { FieldExpressionContext } from "./OpenSearchPPLParser.js"; +import { WcFieldExpressionContext } from "./OpenSearchPPLParser.js"; +import { EvalFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { DataTypeFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { BooleanFunctionCallContext } from "./OpenSearchPPLParser.js"; +import { ConvertedDataTypeContext } from "./OpenSearchPPLParser.js"; +import { EvalFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { FunctionArgsContext } from "./OpenSearchPPLParser.js"; +import { FunctionArgContext } from "./OpenSearchPPLParser.js"; +import { RelevanceArgContext } from "./OpenSearchPPLParser.js"; +import { RelevanceArgNameContext } from "./OpenSearchPPLParser.js"; +import { RelevanceFieldAndWeightContext } from "./OpenSearchPPLParser.js"; +import { RelevanceFieldWeightContext } from "./OpenSearchPPLParser.js"; +import { RelevanceFieldContext } from "./OpenSearchPPLParser.js"; +import { RelevanceQueryContext } from "./OpenSearchPPLParser.js"; +import { RelevanceArgValueContext } from "./OpenSearchPPLParser.js"; +import { MathematicalFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { TrigonometricFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { DateTimeFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { GetFormatFunctionContext } from "./OpenSearchPPLParser.js"; +import { GetFormatTypeContext } from "./OpenSearchPPLParser.js"; +import { ExtractFunctionContext } from "./OpenSearchPPLParser.js"; +import { SimpleDateTimePartContext } from "./OpenSearchPPLParser.js"; +import { ComplexDateTimePartContext } from "./OpenSearchPPLParser.js"; +import { DatetimePartContext } from "./OpenSearchPPLParser.js"; +import { TimestampFunctionContext } from "./OpenSearchPPLParser.js"; +import { TimestampFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { ConditionFunctionBaseContext } from "./OpenSearchPPLParser.js"; +import { SystemFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { TextFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { PositionFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { ComparisonOperatorContext } from "./OpenSearchPPLParser.js"; +import { SingleFieldRelevanceFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { MultiFieldRelevanceFunctionNameContext } from "./OpenSearchPPLParser.js"; +import { LiteralValueContext } from "./OpenSearchPPLParser.js"; +import { IntervalLiteralContext } from "./OpenSearchPPLParser.js"; +import { StringLiteralContext } from "./OpenSearchPPLParser.js"; +import { IntegerLiteralContext } from "./OpenSearchPPLParser.js"; +import { DecimalLiteralContext } from "./OpenSearchPPLParser.js"; +import { BooleanLiteralContext } from "./OpenSearchPPLParser.js"; +import { DatetimeLiteralContext } from "./OpenSearchPPLParser.js"; +import { DateLiteralContext } from "./OpenSearchPPLParser.js"; +import { TimeLiteralContext } from "./OpenSearchPPLParser.js"; +import { TimestampLiteralContext } from "./OpenSearchPPLParser.js"; +import { IntervalUnitContext } from "./OpenSearchPPLParser.js"; +import { TimespanUnitContext } from "./OpenSearchPPLParser.js"; +import { ValueListContext } from "./OpenSearchPPLParser.js"; +import { IdentsAsQualifiedNameContext } from "./OpenSearchPPLParser.js"; +import { IdentsAsTableQualifiedNameContext } from "./OpenSearchPPLParser.js"; +import { IdentsAsWildcardQualifiedNameContext } from "./OpenSearchPPLParser.js"; +import { IdentContext } from "./OpenSearchPPLParser.js"; +import { TableIdentContext } from "./OpenSearchPPLParser.js"; +import { WildcardContext } from "./OpenSearchPPLParser.js"; +import { KeywordsCanBeIdContext } from "./OpenSearchPPLParser.js"; + + +/** + * This interface defines a complete generic visitor for a parse tree produced + * by `OpenSearchPPLParser`. + * + * @param The return type of the visit operation. Use `void` for + * operations with no return type. + */ +export class OpenSearchPPLParserVisitor extends AbstractParseTreeVisitor { + /** + * Visit a parse tree produced by `OpenSearchPPLParser.root`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRoot?: (ctx: RootContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.pplStatement`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPplStatement?: (ctx: PplStatementContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.dmlStatement`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDmlStatement?: (ctx: DmlStatementContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.queryStatement`. + * @param ctx the parse tree + * @return the visitor result + */ + visitQueryStatement?: (ctx: QueryStatementContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.pplCommands`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPplCommands?: (ctx: PplCommandsContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.commands`. + * @param ctx the parse tree + * @return the visitor result + */ + visitCommands?: (ctx: CommandsContext) => Result; + /** + * Visit a parse tree produced by the `searchFrom` + * labeled alternative in `OpenSearchPPLParser.searchCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSearchFrom?: (ctx: SearchFromContext) => Result; + /** + * Visit a parse tree produced by the `searchFromFilter` + * labeled alternative in `OpenSearchPPLParser.searchCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSearchFromFilter?: (ctx: SearchFromFilterContext) => Result; + /** + * Visit a parse tree produced by the `searchFilterFrom` + * labeled alternative in `OpenSearchPPLParser.searchCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSearchFilterFrom?: (ctx: SearchFilterFromContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.describeCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDescribeCommand?: (ctx: DescribeCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.showDataSourcesCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitShowDataSourcesCommand?: (ctx: ShowDataSourcesCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.whereCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitWhereCommand?: (ctx: WhereCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.fieldsCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFieldsCommand?: (ctx: FieldsCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.renameCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRenameCommand?: (ctx: RenameCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.statsCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitStatsCommand?: (ctx: StatsCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.dedupCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDedupCommand?: (ctx: DedupCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.sortCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSortCommand?: (ctx: SortCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.evalCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitEvalCommand?: (ctx: EvalCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.headCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitHeadCommand?: (ctx: HeadCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.topCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTopCommand?: (ctx: TopCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.rareCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRareCommand?: (ctx: RareCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.grokCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitGrokCommand?: (ctx: GrokCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.parseCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitParseCommand?: (ctx: ParseCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.patternsCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPatternsCommand?: (ctx: PatternsCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.patternsParameter`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPatternsParameter?: (ctx: PatternsParameterContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.patternsMethod`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPatternsMethod?: (ctx: PatternsMethodContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.kmeansCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitKmeansCommand?: (ctx: KmeansCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.kmeansParameter`. + * @param ctx the parse tree + * @return the visitor result + */ + visitKmeansParameter?: (ctx: KmeansParameterContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.adCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitAdCommand?: (ctx: AdCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.adParameter`. + * @param ctx the parse tree + * @return the visitor result + */ + visitAdParameter?: (ctx: AdParameterContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.mlCommand`. + * @param ctx the parse tree + * @return the visitor result + */ + visitMlCommand?: (ctx: MlCommandContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.mlArg`. + * @param ctx the parse tree + * @return the visitor result + */ + visitMlArg?: (ctx: MlArgContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.fromClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFromClause?: (ctx: FromClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.tableSourceClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTableSourceClause?: (ctx: TableSourceClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.renameClasue`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRenameClasue?: (ctx: RenameClasueContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.byClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitByClause?: (ctx: ByClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.statsByClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitStatsByClause?: (ctx: StatsByClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.bySpanClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitBySpanClause?: (ctx: BySpanClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.spanClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSpanClause?: (ctx: SpanClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.sortbyClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSortbyClause?: (ctx: SortbyClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.evalClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitEvalClause?: (ctx: EvalClauseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.statsAggTerm`. + * @param ctx the parse tree + * @return the visitor result + */ + visitStatsAggTerm?: (ctx: StatsAggTermContext) => Result; + /** + * Visit a parse tree produced by the `statsFunctionCall` + * labeled alternative in `OpenSearchPPLParser.statsFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitStatsFunctionCall?: (ctx: StatsFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `countAllFunctionCall` + * labeled alternative in `OpenSearchPPLParser.statsFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitCountAllFunctionCall?: (ctx: CountAllFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `distinctCountFunctionCall` + * labeled alternative in `OpenSearchPPLParser.statsFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDistinctCountFunctionCall?: (ctx: DistinctCountFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `percentileAggFunctionCall` + * labeled alternative in `OpenSearchPPLParser.statsFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPercentileAggFunctionCall?: (ctx: PercentileAggFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `takeAggFunctionCall` + * labeled alternative in `OpenSearchPPLParser.statsFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTakeAggFunctionCall?: (ctx: TakeAggFunctionCallContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.statsFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitStatsFunctionName?: (ctx: StatsFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.takeAggFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTakeAggFunction?: (ctx: TakeAggFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.percentileAggFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPercentileAggFunction?: (ctx: PercentileAggFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.expression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitExpression?: (ctx: ExpressionContext) => Result; + /** + * Visit a parse tree produced by the `relevanceExpr` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceExpr?: (ctx: RelevanceExprContext) => Result; + /** + * Visit a parse tree produced by the `logicalNot` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitLogicalNot?: (ctx: LogicalNotContext) => Result; + /** + * Visit a parse tree produced by the `booleanExpr` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitBooleanExpr?: (ctx: BooleanExprContext) => Result; + /** + * Visit a parse tree produced by the `logicalAnd` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitLogicalAnd?: (ctx: LogicalAndContext) => Result; + /** + * Visit a parse tree produced by the `comparsion` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitComparsion?: (ctx: ComparsionContext) => Result; + /** + * Visit a parse tree produced by the `logicalXor` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitLogicalXor?: (ctx: LogicalXorContext) => Result; + /** + * Visit a parse tree produced by the `logicalOr` + * labeled alternative in `OpenSearchPPLParser.logicalExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitLogicalOr?: (ctx: LogicalOrContext) => Result; + /** + * Visit a parse tree produced by the `compareExpr` + * labeled alternative in `OpenSearchPPLParser.comparisonExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitCompareExpr?: (ctx: CompareExprContext) => Result; + /** + * Visit a parse tree produced by the `inExpr` + * labeled alternative in `OpenSearchPPLParser.comparisonExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitInExpr?: (ctx: InExprContext) => Result; + /** + * Visit a parse tree produced by the `positionFunctionCall` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPositionFunctionCall?: (ctx: PositionFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `valueExpressionDefault` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitValueExpressionDefault?: (ctx: ValueExpressionDefaultContext) => Result; + /** + * Visit a parse tree produced by the `parentheticValueExpr` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitParentheticValueExpr?: (ctx: ParentheticValueExprContext) => Result; + /** + * Visit a parse tree produced by the `getFormatFunctionCall` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitGetFormatFunctionCall?: (ctx: GetFormatFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `extractFunctionCall` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitExtractFunctionCall?: (ctx: ExtractFunctionCallContext) => Result; + /** + * Visit a parse tree produced by the `binaryArithmetic` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitBinaryArithmetic?: (ctx: BinaryArithmeticContext) => Result; + /** + * Visit a parse tree produced by the `timestampFunctionCall` + * labeled alternative in `OpenSearchPPLParser.valueExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTimestampFunctionCall?: (ctx: TimestampFunctionCallContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.primaryExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPrimaryExpression?: (ctx: PrimaryExpressionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.positionFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPositionFunction?: (ctx: PositionFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.booleanExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitBooleanExpression?: (ctx: BooleanExpressionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceExpression?: (ctx: RelevanceExpressionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.singleFieldRelevanceFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSingleFieldRelevanceFunction?: (ctx: SingleFieldRelevanceFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.multiFieldRelevanceFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitMultiFieldRelevanceFunction?: (ctx: MultiFieldRelevanceFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.tableSource`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTableSource?: (ctx: TableSourceContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.tableFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTableFunction?: (ctx: TableFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.fieldList`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFieldList?: (ctx: FieldListContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.wcFieldList`. + * @param ctx the parse tree + * @return the visitor result + */ + visitWcFieldList?: (ctx: WcFieldListContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.sortField`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSortField?: (ctx: SortFieldContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.sortFieldExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSortFieldExpression?: (ctx: SortFieldExpressionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.fieldExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFieldExpression?: (ctx: FieldExpressionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.wcFieldExpression`. + * @param ctx the parse tree + * @return the visitor result + */ + visitWcFieldExpression?: (ctx: WcFieldExpressionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.evalFunctionCall`. + * @param ctx the parse tree + * @return the visitor result + */ + visitEvalFunctionCall?: (ctx: EvalFunctionCallContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.dataTypeFunctionCall`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDataTypeFunctionCall?: (ctx: DataTypeFunctionCallContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.booleanFunctionCall`. + * @param ctx the parse tree + * @return the visitor result + */ + visitBooleanFunctionCall?: (ctx: BooleanFunctionCallContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.convertedDataType`. + * @param ctx the parse tree + * @return the visitor result + */ + visitConvertedDataType?: (ctx: ConvertedDataTypeContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.evalFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitEvalFunctionName?: (ctx: EvalFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.functionArgs`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFunctionArgs?: (ctx: FunctionArgsContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.functionArg`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFunctionArg?: (ctx: FunctionArgContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceArg`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceArg?: (ctx: RelevanceArgContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceArgName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceArgName?: (ctx: RelevanceArgNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceFieldAndWeight`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceFieldAndWeight?: (ctx: RelevanceFieldAndWeightContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceFieldWeight`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceFieldWeight?: (ctx: RelevanceFieldWeightContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceField`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceField?: (ctx: RelevanceFieldContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceQuery`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceQuery?: (ctx: RelevanceQueryContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.relevanceArgValue`. + * @param ctx the parse tree + * @return the visitor result + */ + visitRelevanceArgValue?: (ctx: RelevanceArgValueContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.mathematicalFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitMathematicalFunctionName?: (ctx: MathematicalFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.trigonometricFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTrigonometricFunctionName?: (ctx: TrigonometricFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.dateTimeFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDateTimeFunctionName?: (ctx: DateTimeFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.getFormatFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitGetFormatFunction?: (ctx: GetFormatFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.getFormatType`. + * @param ctx the parse tree + * @return the visitor result + */ + visitGetFormatType?: (ctx: GetFormatTypeContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.extractFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitExtractFunction?: (ctx: ExtractFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.simpleDateTimePart`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSimpleDateTimePart?: (ctx: SimpleDateTimePartContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.complexDateTimePart`. + * @param ctx the parse tree + * @return the visitor result + */ + visitComplexDateTimePart?: (ctx: ComplexDateTimePartContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.datetimePart`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDatetimePart?: (ctx: DatetimePartContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.timestampFunction`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTimestampFunction?: (ctx: TimestampFunctionContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.timestampFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTimestampFunctionName?: (ctx: TimestampFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.conditionFunctionBase`. + * @param ctx the parse tree + * @return the visitor result + */ + visitConditionFunctionBase?: (ctx: ConditionFunctionBaseContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.systemFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSystemFunctionName?: (ctx: SystemFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.textFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTextFunctionName?: (ctx: TextFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.positionFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPositionFunctionName?: (ctx: PositionFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.comparisonOperator`. + * @param ctx the parse tree + * @return the visitor result + */ + visitComparisonOperator?: (ctx: ComparisonOperatorContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.singleFieldRelevanceFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSingleFieldRelevanceFunctionName?: (ctx: SingleFieldRelevanceFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.multiFieldRelevanceFunctionName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitMultiFieldRelevanceFunctionName?: (ctx: MultiFieldRelevanceFunctionNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.literalValue`. + * @param ctx the parse tree + * @return the visitor result + */ + visitLiteralValue?: (ctx: LiteralValueContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.intervalLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIntervalLiteral?: (ctx: IntervalLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.stringLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitStringLiteral?: (ctx: StringLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.integerLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIntegerLiteral?: (ctx: IntegerLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.decimalLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDecimalLiteral?: (ctx: DecimalLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.booleanLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.datetimeLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDatetimeLiteral?: (ctx: DatetimeLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.dateLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitDateLiteral?: (ctx: DateLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.timeLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTimeLiteral?: (ctx: TimeLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.timestampLiteral`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTimestampLiteral?: (ctx: TimestampLiteralContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.intervalUnit`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIntervalUnit?: (ctx: IntervalUnitContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.timespanUnit`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTimespanUnit?: (ctx: TimespanUnitContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.valueList`. + * @param ctx the parse tree + * @return the visitor result + */ + visitValueList?: (ctx: ValueListContext) => Result; + /** + * Visit a parse tree produced by the `identsAsQualifiedName` + * labeled alternative in `OpenSearchPPLParser.qualifiedName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIdentsAsQualifiedName?: (ctx: IdentsAsQualifiedNameContext) => Result; + /** + * Visit a parse tree produced by the `identsAsTableQualifiedName` + * labeled alternative in `OpenSearchPPLParser.tableQualifiedName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIdentsAsTableQualifiedName?: (ctx: IdentsAsTableQualifiedNameContext) => Result; + /** + * Visit a parse tree produced by the `identsAsWildcardQualifiedName` + * labeled alternative in `OpenSearchPPLParser.wcQualifiedName`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIdentsAsWildcardQualifiedName?: (ctx: IdentsAsWildcardQualifiedNameContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.ident`. + * @param ctx the parse tree + * @return the visitor result + */ + visitIdent?: (ctx: IdentContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.tableIdent`. + * @param ctx the parse tree + * @return the visitor result + */ + visitTableIdent?: (ctx: TableIdentContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.wildcard`. + * @param ctx the parse tree + * @return the visitor result + */ + visitWildcard?: (ctx: WildcardContext) => Result; + /** + * Visit a parse tree produced by `OpenSearchPPLParser.keywordsCanBeId`. + * @param ctx the parse tree + * @return the visitor result + */ + visitKeywordsCanBeId?: (ctx: KeywordsCanBeIdContext) => Result; +} + diff --git a/src/plugins/data/public/antlr/opensearch_ppl/code_completion.ts b/src/plugins/data/public/antlr/opensearch_ppl/code_completion.ts new file mode 100644 index 000000000000..9ca2cf4f40fe --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/code_completion.ts @@ -0,0 +1,72 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + * + * Any modifications Copyright OpenSearch Contributors. See + * GitHub history for details. + */ + +import { monaco } from '@osd/monaco'; +import { CursorPosition, AutocompleteResultBase } from '../shared/types'; +import { fetchFieldSuggestions, parseQuery } from '../shared/utils'; +import { openSearchPplAutocompleteData } from './opensearch_ppl_autocomplete'; +import { QuerySuggestion, QuerySuggestionGetFnArgs } from '../../autocomplete'; +import { SuggestionItemDetailsTags } from '../shared/constants'; + +export const getSuggestions = async ({ + selectionStart, + selectionEnd, + indexPattern, + position, + query, + services, +}: QuerySuggestionGetFnArgs) => { + if (!services || !services.appName || !indexPattern) return []; + try { + const { lineNumber, column } = position || {}; + const suggestions = getOpenSearchPplAutoCompleteSuggestions(query, { + line: lineNumber || selectionStart, + column: column || selectionEnd, + }); + + const finalSuggestions: QuerySuggestion[] = []; + + if (suggestions.suggestColumns) { + finalSuggestions.push(...fetchFieldSuggestions(indexPattern)); + } + + // Fill in PPL keywords + if (suggestions.suggestKeywords?.length) { + finalSuggestions.push( + ...suggestions.suggestKeywords.map((sk) => ({ + text: sk.value, + type: monaco.languages.CompletionItemKind.Keyword, + detail: SuggestionItemDetailsTags.Keyword, + })) + ); + } + return finalSuggestions; + } catch (e) { + return []; + } +}; + +export const getOpenSearchPplAutoCompleteSuggestions = ( + query: string, + cursor: CursorPosition +): AutocompleteResultBase => { + return parseQuery({ + Lexer: openSearchPplAutocompleteData.Lexer, + Parser: openSearchPplAutocompleteData.Parser, + tokenDictionary: openSearchPplAutocompleteData.tokenDictionary, + ignoredTokens: openSearchPplAutocompleteData.ignoredTokens, + rulesToVisit: openSearchPplAutocompleteData.rulesToVisit, + getParseTree: openSearchPplAutocompleteData.getParseTree, + enrichAutocompleteResult: openSearchPplAutocompleteData.enrichAutocompleteResult, + query, + cursor, + }); +}; diff --git a/src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLLexer.g4 b/src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLLexer.g4 new file mode 100644 index 000000000000..1e08b9c61f1a --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLLexer.g4 @@ -0,0 +1,406 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + + +lexer grammar OpenSearchPPLLexer; + +channels { WHITESPACE, ERRORCHANNEL } + +options { + caseInsensitive = true; +} + +SPACE: [ \t\r\n]+ -> channel(HIDDEN); + + +// COMMAND KEYWORDS +SEARCH: 'SEARCH'; +DESCRIBE: 'DESCRIBE'; +SHOW: 'SHOW'; +FROM: 'FROM'; +WHERE: 'WHERE'; +FIELDS: 'FIELDS'; +RENAME: 'RENAME'; +STATS: 'STATS'; +DEDUP: 'DEDUP'; +SORT: 'SORT'; +EVAL: 'EVAL'; +HEAD: 'HEAD'; +TOP: 'TOP'; +RARE: 'RARE'; +PARSE: 'PARSE'; +METHOD: 'METHOD'; +REGEX: 'REGEX'; +PUNCT: 'PUNCT'; +GROK: 'GROK'; +PATTERN: 'PATTERN'; +PATTERNS: 'PATTERNS'; +NEW_FIELD: 'NEW_FIELD'; +KMEANS: 'KMEANS'; +AD: 'AD'; +ML: 'ML'; + +// COMMAND ASSIST KEYWORDS +AS: 'AS'; +BY: 'BY'; +SOURCE: 'SOURCE'; +INDEX: 'INDEX'; +D: 'D'; +DESC: 'DESC'; +DATASOURCES: 'DATASOURCES'; + +// CLAUSE KEYWORDS +SORTBY: 'SORTBY'; + +// FIELD KEYWORDS +AUTO: 'AUTO'; +STR: 'STR'; +IP: 'IP'; +NUM: 'NUM'; + +// ARGUMENT KEYWORDS +KEEPEMPTY: 'KEEPEMPTY'; +CONSECUTIVE: 'CONSECUTIVE'; +DEDUP_SPLITVALUES: 'DEDUP_SPLITVALUES'; +PARTITIONS: 'PARTITIONS'; +ALLNUM: 'ALLNUM'; +DELIM: 'DELIM'; +CENTROIDS: 'CENTROIDS'; +ITERATIONS: 'ITERATIONS'; +DISTANCE_TYPE: 'DISTANCE_TYPE'; +NUMBER_OF_TREES: 'NUMBER_OF_TREES'; +SHINGLE_SIZE: 'SHINGLE_SIZE'; +SAMPLE_SIZE: 'SAMPLE_SIZE'; +OUTPUT_AFTER: 'OUTPUT_AFTER'; +TIME_DECAY: 'TIME_DECAY'; +ANOMALY_RATE: 'ANOMALY_RATE'; +CATEGORY_FIELD: 'CATEGORY_FIELD'; +TIME_FIELD: 'TIME_FIELD'; +TIME_ZONE: 'TIME_ZONE'; +TRAINING_DATA_SIZE: 'TRAINING_DATA_SIZE'; +ANOMALY_SCORE_THRESHOLD: 'ANOMALY_SCORE_THRESHOLD'; + +// COMPARISON FUNCTION KEYWORDS +CASE: 'CASE'; +IN: 'IN'; + +// LOGICAL KEYWORDS +NOT: 'NOT'; +OR: 'OR'; +AND: 'AND'; +XOR: 'XOR'; +TRUE: 'TRUE'; +FALSE: 'FALSE'; +REGEXP: 'REGEXP'; + +// DATETIME, INTERVAL AND UNIT KEYWORDS +CONVERT_TZ: 'CONVERT_TZ'; +DATETIME: 'DATETIME'; +DAY: 'DAY'; +DAY_HOUR: 'DAY_HOUR'; +DAY_MICROSECOND: 'DAY_MICROSECOND'; +DAY_MINUTE: 'DAY_MINUTE'; +DAY_OF_YEAR: 'DAY_OF_YEAR'; +DAY_SECOND: 'DAY_SECOND'; +HOUR: 'HOUR'; +HOUR_MICROSECOND: 'HOUR_MICROSECOND'; +HOUR_MINUTE: 'HOUR_MINUTE'; +HOUR_OF_DAY: 'HOUR_OF_DAY'; +HOUR_SECOND: 'HOUR_SECOND'; +INTERVAL: 'INTERVAL'; +MICROSECOND: 'MICROSECOND'; +MILLISECOND: 'MILLISECOND'; +MINUTE: 'MINUTE'; +MINUTE_MICROSECOND: 'MINUTE_MICROSECOND'; +MINUTE_OF_DAY: 'MINUTE_OF_DAY'; +MINUTE_OF_HOUR: 'MINUTE_OF_HOUR'; +MINUTE_SECOND: 'MINUTE_SECOND'; +MONTH: 'MONTH'; +MONTH_OF_YEAR: 'MONTH_OF_YEAR'; +QUARTER: 'QUARTER'; +SECOND: 'SECOND'; +SECOND_MICROSECOND: 'SECOND_MICROSECOND'; +SECOND_OF_MINUTE: 'SECOND_OF_MINUTE'; +WEEK: 'WEEK'; +WEEK_OF_YEAR: 'WEEK_OF_YEAR'; +YEAR: 'YEAR'; +YEAR_MONTH: 'YEAR_MONTH'; + +// DATASET TYPES +DATAMODEL: 'DATAMODEL'; +LOOKUP: 'LOOKUP'; +SAVEDSEARCH: 'SAVEDSEARCH'; + +// CONVERTED DATA TYPES +INT: 'INT'; +INTEGER: 'INTEGER'; +DOUBLE: 'DOUBLE'; +LONG: 'LONG'; +FLOAT: 'FLOAT'; +STRING: 'STRING'; +BOOLEAN: 'BOOLEAN'; + +// SPECIAL CHARACTERS AND OPERATORS +PIPE: '|'; +COMMA: ','; +DOT: '.'; +EQUAL: '='; +GREATER: '>'; +LESS: '<'; +NOT_GREATER: '<' '='; +NOT_LESS: '>' '='; +NOT_EQUAL: '!' '='; +PLUS: '+'; +MINUS: '-'; +STAR: '*'; +DIVIDE: '/'; +MODULE: '%'; +EXCLAMATION_SYMBOL: '!'; +COLON: ':'; +LT_PRTHS: '('; +RT_PRTHS: ')'; +LT_SQR_PRTHS: '['; +RT_SQR_PRTHS: ']'; +SINGLE_QUOTE: '\''; +DOUBLE_QUOTE: '"'; +BACKTICK: '`'; + +// Operators. Bit + +BIT_NOT_OP: '~'; +BIT_AND_OP: '&'; +BIT_XOR_OP: '^'; + +// AGGREGATIONS +AVG: 'AVG'; +COUNT: 'COUNT'; +DISTINCT_COUNT: 'DISTINCT_COUNT'; +ESTDC: 'ESTDC'; +ESTDC_ERROR: 'ESTDC_ERROR'; +MAX: 'MAX'; +MEAN: 'MEAN'; +MEDIAN: 'MEDIAN'; +MIN: 'MIN'; +MODE: 'MODE'; +RANGE: 'RANGE'; +STDEV: 'STDEV'; +STDEVP: 'STDEVP'; +SUM: 'SUM'; +SUMSQ: 'SUMSQ'; +VAR_SAMP: 'VAR_SAMP'; +VAR_POP: 'VAR_POP'; +STDDEV_SAMP: 'STDDEV_SAMP'; +STDDEV_POP: 'STDDEV_POP'; +PERCENTILE: 'PERCENTILE'; +TAKE: 'TAKE'; +FIRST: 'FIRST'; +LAST: 'LAST'; +LIST: 'LIST'; +VALUES: 'VALUES'; +EARLIEST: 'EARLIEST'; +EARLIEST_TIME: 'EARLIEST_TIME'; +LATEST: 'LATEST'; +LATEST_TIME: 'LATEST_TIME'; +PER_DAY: 'PER_DAY'; +PER_HOUR: 'PER_HOUR'; +PER_MINUTE: 'PER_MINUTE'; +PER_SECOND: 'PER_SECOND'; +RATE: 'RATE'; +SPARKLINE: 'SPARKLINE'; +C: 'C'; +DC: 'DC'; + +// BASIC FUNCTIONS +ABS: 'ABS'; +CBRT: 'CBRT'; +CEIL: 'CEIL'; +CEILING: 'CEILING'; +CONV: 'CONV'; +CRC32: 'CRC32'; +E: 'E'; +EXP: 'EXP'; +FLOOR: 'FLOOR'; +LN: 'LN'; +LOG: 'LOG'; +LOG10: 'LOG10'; +LOG2: 'LOG2'; +MOD: 'MOD'; +PI: 'PI'; +POSITION: 'POSITION'; +POW: 'POW'; +POWER: 'POWER'; +RAND: 'RAND'; +ROUND: 'ROUND'; +SIGN: 'SIGN'; +SQRT: 'SQRT'; +TRUNCATE: 'TRUNCATE'; + +// TRIGONOMETRIC FUNCTIONS +ACOS: 'ACOS'; +ASIN: 'ASIN'; +ATAN: 'ATAN'; +ATAN2: 'ATAN2'; +COS: 'COS'; +COT: 'COT'; +DEGREES: 'DEGREES'; +RADIANS: 'RADIANS'; +SIN: 'SIN'; +TAN: 'TAN'; + +// DATE AND TIME FUNCTIONS +ADDDATE: 'ADDDATE'; +ADDTIME: 'ADDTIME'; +CURDATE: 'CURDATE'; +CURRENT_DATE: 'CURRENT_DATE'; +CURRENT_TIME: 'CURRENT_TIME'; +CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP'; +CURTIME: 'CURTIME'; +DATE: 'DATE'; +DATEDIFF: 'DATEDIFF'; +DATE_ADD: 'DATE_ADD'; +DATE_FORMAT: 'DATE_FORMAT'; +DATE_SUB: 'DATE_SUB'; +DAYNAME: 'DAYNAME'; +DAYOFMONTH: 'DAYOFMONTH'; +DAYOFWEEK: 'DAYOFWEEK'; +DAYOFYEAR: 'DAYOFYEAR'; +DAY_OF_MONTH: 'DAY_OF_MONTH'; +DAY_OF_WEEK: 'DAY_OF_WEEK'; +EXTRACT: 'EXTRACT'; +FROM_DAYS: 'FROM_DAYS'; +FROM_UNIXTIME: 'FROM_UNIXTIME'; +GET_FORMAT: 'GET_FORMAT'; +LAST_DAY: 'LAST_DAY'; +LOCALTIME: 'LOCALTIME'; +LOCALTIMESTAMP: 'LOCALTIMESTAMP'; +MAKEDATE: 'MAKEDATE'; +MAKETIME: 'MAKETIME'; +MONTHNAME: 'MONTHNAME'; +NOW: 'NOW'; +PERIOD_ADD: 'PERIOD_ADD'; +PERIOD_DIFF: 'PERIOD_DIFF'; +SEC_TO_TIME: 'SEC_TO_TIME'; +STR_TO_DATE: 'STR_TO_DATE'; +SUBDATE: 'SUBDATE'; +SUBTIME: 'SUBTIME'; +SYSDATE: 'SYSDATE'; +TIME: 'TIME'; +TIMEDIFF: 'TIMEDIFF'; +TIMESTAMP: 'TIMESTAMP'; +TIMESTAMPADD: 'TIMESTAMPADD'; +TIMESTAMPDIFF: 'TIMESTAMPDIFF'; +TIME_FORMAT: 'TIME_FORMAT'; +TIME_TO_SEC: 'TIME_TO_SEC'; +TO_DAYS: 'TO_DAYS'; +TO_SECONDS: 'TO_SECONDS'; +UNIX_TIMESTAMP: 'UNIX_TIMESTAMP'; +UTC_DATE: 'UTC_DATE'; +UTC_TIME: 'UTC_TIME'; +UTC_TIMESTAMP: 'UTC_TIMESTAMP'; +WEEKDAY: 'WEEKDAY'; +YEARWEEK: 'YEARWEEK'; + +// TEXT FUNCTIONS +SUBSTR: 'SUBSTR'; +SUBSTRING: 'SUBSTRING'; +LTRIM: 'LTRIM'; +RTRIM: 'RTRIM'; +TRIM: 'TRIM'; +TO: 'TO'; +LOWER: 'LOWER'; +UPPER: 'UPPER'; +CONCAT: 'CONCAT'; +CONCAT_WS: 'CONCAT_WS'; +LENGTH: 'LENGTH'; +STRCMP: 'STRCMP'; +RIGHT: 'RIGHT'; +LEFT: 'LEFT'; +ASCII: 'ASCII'; +LOCATE: 'LOCATE'; +REPLACE: 'REPLACE'; +REVERSE: 'REVERSE'; +CAST: 'CAST'; + +// BOOL FUNCTIONS +LIKE: 'LIKE'; +ISNULL: 'ISNULL'; +ISNOTNULL: 'ISNOTNULL'; + +// FLOWCONTROL FUNCTIONS +IFNULL: 'IFNULL'; +NULLIF: 'NULLIF'; +IF: 'IF'; +TYPEOF: 'TYPEOF'; + +// RELEVANCE FUNCTIONS AND PARAMETERS +MATCH: 'MATCH'; +MATCH_PHRASE: 'MATCH_PHRASE'; +MATCH_PHRASE_PREFIX: 'MATCH_PHRASE_PREFIX'; +MATCH_BOOL_PREFIX: 'MATCH_BOOL_PREFIX'; +SIMPLE_QUERY_STRING: 'SIMPLE_QUERY_STRING'; +MULTI_MATCH: 'MULTI_MATCH'; +QUERY_STRING: 'QUERY_STRING'; + +ALLOW_LEADING_WILDCARD: 'ALLOW_LEADING_WILDCARD'; +ANALYZE_WILDCARD: 'ANALYZE_WILDCARD'; +ANALYZER: 'ANALYZER'; +AUTO_GENERATE_SYNONYMS_PHRASE_QUERY:'AUTO_GENERATE_SYNONYMS_PHRASE_QUERY'; +BOOST: 'BOOST'; +CUTOFF_FREQUENCY: 'CUTOFF_FREQUENCY'; +DEFAULT_FIELD: 'DEFAULT_FIELD'; +DEFAULT_OPERATOR: 'DEFAULT_OPERATOR'; +ENABLE_POSITION_INCREMENTS: 'ENABLE_POSITION_INCREMENTS'; +ESCAPE: 'ESCAPE'; +FLAGS: 'FLAGS'; +FUZZY_MAX_EXPANSIONS: 'FUZZY_MAX_EXPANSIONS'; +FUZZY_PREFIX_LENGTH: 'FUZZY_PREFIX_LENGTH'; +FUZZY_TRANSPOSITIONS: 'FUZZY_TRANSPOSITIONS'; +FUZZY_REWRITE: 'FUZZY_REWRITE'; +FUZZINESS: 'FUZZINESS'; +LENIENT: 'LENIENT'; +LOW_FREQ_OPERATOR: 'LOW_FREQ_OPERATOR'; +MAX_DETERMINIZED_STATES: 'MAX_DETERMINIZED_STATES'; +MAX_EXPANSIONS: 'MAX_EXPANSIONS'; +MINIMUM_SHOULD_MATCH: 'MINIMUM_SHOULD_MATCH'; +OPERATOR: 'OPERATOR'; +PHRASE_SLOP: 'PHRASE_SLOP'; +PREFIX_LENGTH: 'PREFIX_LENGTH'; +QUOTE_ANALYZER: 'QUOTE_ANALYZER'; +QUOTE_FIELD_SUFFIX: 'QUOTE_FIELD_SUFFIX'; +REWRITE: 'REWRITE'; +SLOP: 'SLOP'; +TIE_BREAKER: 'TIE_BREAKER'; +TYPE: 'TYPE'; +ZERO_TERMS_QUERY: 'ZERO_TERMS_QUERY'; + +// SPAN KEYWORDS +SPAN: 'SPAN'; +MS: 'MS'; +S: 'S'; +M: 'M'; +H: 'H'; +W: 'W'; +Q: 'Q'; +Y: 'Y'; + + +// LITERALS AND VALUES +//STRING_LITERAL: DQUOTA_STRING | SQUOTA_STRING | BQUOTA_STRING; +ID: ID_LITERAL; +CLUSTER: CLUSTER_PREFIX_LITERAL; +INTEGER_LITERAL: DEC_DIGIT+; +DECIMAL_LITERAL: (DEC_DIGIT+)? '.' DEC_DIGIT+; + +fragment DATE_SUFFIX: ([\-.][*0-9]+)+; +fragment ID_LITERAL: [@*A-Z][*A-Z_\-0-9]*; +fragment CLUSTER_PREFIX_LITERAL: [*A-Z]+?[*A-Z_\-0-9]* COLON; +ID_DATE_SUFFIX: CLUSTER_PREFIX_LITERAL? ID_LITERAL DATE_SUFFIX; +DQUOTA_STRING: '"' ( '\\'. | '""' | ~('"'| '\\') )* '"'; +SQUOTA_STRING: '\'' ('\\'. | '\'\'' | ~('\'' | '\\'))* '\''; +BQUOTA_STRING: '`' ( '\\'. | '``' | ~('`'|'\\'))* '`'; +fragment DEC_DIGIT: [0-9]; + + +ERROR_RECOGNITION: . -> channel(ERRORCHANNEL); \ No newline at end of file diff --git a/src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4 b/src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4 new file mode 100644 index 000000000000..944e6309f7a0 --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/grammar/OpenSearchPPLParser.g4 @@ -0,0 +1,914 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + + +parser grammar OpenSearchPPLParser; + + +options { tokenVocab = OpenSearchPPLLexer; } +root + : pplStatement? EOF + ; + +// statement +pplStatement + : dmlStatement + ; + +dmlStatement + : queryStatement + ; + +queryStatement + : pplCommands (PIPE commands)* + ; + +// commands +pplCommands + : searchCommand + | describeCommand + | showDataSourcesCommand + ; + +commands + : whereCommand + | fieldsCommand + | renameCommand + | statsCommand + | dedupCommand + | sortCommand + | evalCommand + | headCommand + | topCommand + | rareCommand + | grokCommand + | parseCommand + | patternsCommand + | kmeansCommand + | adCommand + | mlCommand + ; + +searchCommand + : (SEARCH)? fromClause # searchFrom + | (SEARCH)? fromClause logicalExpression # searchFromFilter + | (SEARCH)? logicalExpression fromClause # searchFilterFrom + ; + +describeCommand + : DESCRIBE tableSourceClause + ; + +showDataSourcesCommand + : SHOW DATASOURCES + ; + +whereCommand + : WHERE logicalExpression + ; + +fieldsCommand + : FIELDS (PLUS | MINUS)? fieldList + ; + +renameCommand + : RENAME renameClasue (COMMA renameClasue)* + ; + +statsCommand + : STATS (PARTITIONS EQUAL partitions = integerLiteral)? (ALLNUM EQUAL allnum = booleanLiteral)? (DELIM EQUAL delim = stringLiteral)? statsAggTerm (COMMA statsAggTerm)* (statsByClause)? (DEDUP_SPLITVALUES EQUAL dedupsplit = booleanLiteral)? + ; + +dedupCommand + : DEDUP (number = integerLiteral)? fieldList (KEEPEMPTY EQUAL keepempty = booleanLiteral)? (CONSECUTIVE EQUAL consecutive = booleanLiteral)? + ; + +sortCommand + : SORT sortbyClause + ; + +evalCommand + : EVAL evalClause (COMMA evalClause)* + ; + +headCommand + : HEAD (number = integerLiteral)? (FROM from = integerLiteral)? + ; + +topCommand + : TOP (number = integerLiteral)? fieldList (byClause)? + ; + +rareCommand + : RARE fieldList (byClause)? + ; + +grokCommand + : GROK (source_field = expression) (pattern = stringLiteral) + ; + +parseCommand + : PARSE (source_field = expression) (pattern = stringLiteral) + ; + +patternsCommand + : PATTERNS (patternsParameter)* (source_field = expression) + ; + +patternsParameter + : (NEW_FIELD EQUAL new_field = stringLiteral) + | (PATTERN EQUAL pattern = stringLiteral) + ; + +patternsMethod + : PUNCT + | REGEX + ; + +kmeansCommand + : KMEANS (kmeansParameter)* + ; + +kmeansParameter + : (CENTROIDS EQUAL centroids = integerLiteral) + | (ITERATIONS EQUAL iterations = integerLiteral) + | (DISTANCE_TYPE EQUAL distance_type = stringLiteral) + ; + +adCommand + : AD (adParameter)* + ; + +adParameter + : (NUMBER_OF_TREES EQUAL number_of_trees = integerLiteral) + | (SHINGLE_SIZE EQUAL shingle_size = integerLiteral) + | (SAMPLE_SIZE EQUAL sample_size = integerLiteral) + | (OUTPUT_AFTER EQUAL output_after = integerLiteral) + | (TIME_DECAY EQUAL time_decay = decimalLiteral) + | (ANOMALY_RATE EQUAL anomaly_rate = decimalLiteral) + | (CATEGORY_FIELD EQUAL category_field = stringLiteral) + | (TIME_FIELD EQUAL time_field = stringLiteral) + | (DATE_FORMAT EQUAL date_format = stringLiteral) + | (TIME_ZONE EQUAL time_zone = stringLiteral) + | (TRAINING_DATA_SIZE EQUAL training_data_size = integerLiteral) + | (ANOMALY_SCORE_THRESHOLD EQUAL anomaly_score_threshold = decimalLiteral) + ; + +mlCommand + : ML (mlArg)* + ; + +mlArg + : (argName = ident EQUAL argValue = literalValue) + ; + +// clauses +fromClause + : SOURCE EQUAL tableSourceClause + | INDEX EQUAL tableSourceClause + | SOURCE EQUAL tableFunction + | INDEX EQUAL tableFunction + ; + +tableSourceClause + : tableSource (COMMA tableSource)* + ; + +renameClasue + : orignalField = wcFieldExpression AS renamedField = wcFieldExpression + ; + +byClause + : BY fieldList + ; + +statsByClause + : BY fieldList + | BY bySpanClause + | BY bySpanClause COMMA fieldList + ; + +bySpanClause + : spanClause (AS alias = qualifiedName)? + ; + +spanClause + : SPAN LT_PRTHS fieldExpression COMMA value = literalValue (unit = timespanUnit)? RT_PRTHS + ; + +sortbyClause + : sortField (COMMA sortField)* + ; + +evalClause + : fieldExpression EQUAL expression + ; + +// aggregation terms +statsAggTerm + : statsFunction (AS alias = wcFieldExpression)? + ; + +// aggregation functions +statsFunction + : statsFunctionName LT_PRTHS valueExpression RT_PRTHS # statsFunctionCall + | COUNT LT_PRTHS RT_PRTHS # countAllFunctionCall + | (DISTINCT_COUNT | DC) LT_PRTHS valueExpression RT_PRTHS # distinctCountFunctionCall + | percentileAggFunction # percentileAggFunctionCall + | takeAggFunction # takeAggFunctionCall + ; + +statsFunctionName + : AVG + | COUNT + | SUM + | MIN + | MAX + | VAR_SAMP + | VAR_POP + | STDDEV_SAMP + | STDDEV_POP + ; + +takeAggFunction + : TAKE LT_PRTHS fieldExpression (COMMA size = integerLiteral)? RT_PRTHS + ; + +percentileAggFunction + : PERCENTILE LESS value = integerLiteral GREATER LT_PRTHS aggField = fieldExpression RT_PRTHS + ; + +// expressions +expression + : logicalExpression + | comparisonExpression + | valueExpression + ; + +logicalExpression + : comparisonExpression # comparsion + | NOT logicalExpression # logicalNot + | left = logicalExpression OR right = logicalExpression # logicalOr + | left = logicalExpression (AND)? right = logicalExpression # logicalAnd + | left = logicalExpression XOR right = logicalExpression # logicalXor + | booleanExpression # booleanExpr + | relevanceExpression # relevanceExpr + ; + +comparisonExpression + : left = valueExpression comparisonOperator right = valueExpression # compareExpr + | valueExpression IN valueList # inExpr + ; + +valueExpression + : left = valueExpression binaryOperator = (STAR | DIVIDE | MODULE) right = valueExpression # binaryArithmetic + | left = valueExpression binaryOperator = (PLUS | MINUS) right = valueExpression # binaryArithmetic + | primaryExpression # valueExpressionDefault + | positionFunction # positionFunctionCall + | extractFunction # extractFunctionCall + | getFormatFunction # getFormatFunctionCall + | timestampFunction # timestampFunctionCall + | LT_PRTHS valueExpression RT_PRTHS # parentheticValueExpr + ; + +primaryExpression + : evalFunctionCall + | dataTypeFunctionCall + | fieldExpression + | literalValue + ; + +positionFunction + : positionFunctionName LT_PRTHS functionArg IN functionArg RT_PRTHS + ; + +booleanExpression + : booleanFunctionCall + ; + +relevanceExpression + : singleFieldRelevanceFunction + | multiFieldRelevanceFunction + ; + +// Field is a single column +singleFieldRelevanceFunction + : singleFieldRelevanceFunctionName LT_PRTHS field = relevanceField COMMA query = relevanceQuery (COMMA relevanceArg)* RT_PRTHS + ; + +// Field is a list of columns +multiFieldRelevanceFunction + : multiFieldRelevanceFunctionName LT_PRTHS LT_SQR_PRTHS field = relevanceFieldAndWeight (COMMA field = relevanceFieldAndWeight)* RT_SQR_PRTHS COMMA query = relevanceQuery (COMMA relevanceArg)* RT_PRTHS + ; + +// tables +tableSource + : tableQualifiedName + | ID_DATE_SUFFIX + ; + +tableFunction + : qualifiedName LT_PRTHS functionArgs RT_PRTHS + ; + +// fields +fieldList + : fieldExpression (COMMA fieldExpression)* + ; + +wcFieldList + : wcFieldExpression (COMMA wcFieldExpression)* + ; + +sortField + : (PLUS | MINUS)? sortFieldExpression + ; + +sortFieldExpression + : fieldExpression + | AUTO LT_PRTHS fieldExpression RT_PRTHS + | STR LT_PRTHS fieldExpression RT_PRTHS + | IP LT_PRTHS fieldExpression RT_PRTHS + | NUM LT_PRTHS fieldExpression RT_PRTHS + ; + +fieldExpression + : qualifiedName + ; + +wcFieldExpression + : wcQualifiedName + ; + +// functions +evalFunctionCall + : evalFunctionName LT_PRTHS functionArgs RT_PRTHS + ; + +// cast function +dataTypeFunctionCall + : CAST LT_PRTHS expression AS convertedDataType RT_PRTHS + ; + +// boolean functions +booleanFunctionCall + : conditionFunctionBase LT_PRTHS functionArgs RT_PRTHS + ; + +convertedDataType + : typeName = DATE + | typeName = TIME + | typeName = TIMESTAMP + | typeName = INT + | typeName = INTEGER + | typeName = DOUBLE + | typeName = LONG + | typeName = FLOAT + | typeName = STRING + | typeName = BOOLEAN + ; + +evalFunctionName + : mathematicalFunctionName + | dateTimeFunctionName + | textFunctionName + | conditionFunctionBase + | systemFunctionName + | positionFunctionName + ; + +functionArgs + : (functionArg (COMMA functionArg)*)? + ; + +functionArg + : (ident EQUAL)? valueExpression + ; + +relevanceArg + : relevanceArgName EQUAL relevanceArgValue + ; + +relevanceArgName + : ALLOW_LEADING_WILDCARD + | ANALYZER + | ANALYZE_WILDCARD + | AUTO_GENERATE_SYNONYMS_PHRASE_QUERY + | BOOST + | CUTOFF_FREQUENCY + | DEFAULT_FIELD + | DEFAULT_OPERATOR + | ENABLE_POSITION_INCREMENTS + | ESCAPE + | FIELDS + | FLAGS + | FUZZINESS + | FUZZY_MAX_EXPANSIONS + | FUZZY_PREFIX_LENGTH + | FUZZY_REWRITE + | FUZZY_TRANSPOSITIONS + | LENIENT + | LOW_FREQ_OPERATOR + | MAX_DETERMINIZED_STATES + | MAX_EXPANSIONS + | MINIMUM_SHOULD_MATCH + | OPERATOR + | PHRASE_SLOP + | PREFIX_LENGTH + | QUOTE_ANALYZER + | QUOTE_FIELD_SUFFIX + | REWRITE + | SLOP + | TIE_BREAKER + | TIME_ZONE + | TYPE + | ZERO_TERMS_QUERY + ; + +relevanceFieldAndWeight + : field = relevanceField + | field = relevanceField weight = relevanceFieldWeight + | field = relevanceField BIT_XOR_OP weight = relevanceFieldWeight + ; + +relevanceFieldWeight + : integerLiteral + | decimalLiteral + ; + +relevanceField + : qualifiedName + | stringLiteral + ; + +relevanceQuery + : relevanceArgValue + ; + +relevanceArgValue + : qualifiedName + | literalValue + ; + +mathematicalFunctionName + : ABS + | CBRT + | CEIL + | CEILING + | CONV + | CRC32 + | E + | EXP + | FLOOR + | LN + | LOG + | LOG10 + | LOG2 + | MOD + | PI + | POW + | POWER + | RAND + | ROUND + | SIGN + | SQRT + | TRUNCATE + | trigonometricFunctionName + ; + +trigonometricFunctionName + : ACOS + | ASIN + | ATAN + | ATAN2 + | COS + | COT + | DEGREES + | RADIANS + | SIN + | TAN + ; + +dateTimeFunctionName + : ADDDATE + | ADDTIME + | CONVERT_TZ + | CURDATE + | CURRENT_DATE + | CURRENT_TIME + | CURRENT_TIMESTAMP + | CURTIME + | DATE + | DATEDIFF + | DATETIME + | DATE_ADD + | DATE_FORMAT + | DATE_SUB + | DAY + | DAYNAME + | DAYOFMONTH + | DAYOFWEEK + | DAYOFYEAR + | DAY_OF_MONTH + | DAY_OF_WEEK + | DAY_OF_YEAR + | FROM_DAYS + | FROM_UNIXTIME + | HOUR + | HOUR_OF_DAY + | LAST_DAY + | LOCALTIME + | LOCALTIMESTAMP + | MAKEDATE + | MAKETIME + | MICROSECOND + | MINUTE + | MINUTE_OF_DAY + | MINUTE_OF_HOUR + | MONTH + | MONTHNAME + | MONTH_OF_YEAR + | NOW + | PERIOD_ADD + | PERIOD_DIFF + | QUARTER + | SECOND + | SECOND_OF_MINUTE + | SEC_TO_TIME + | STR_TO_DATE + | SUBDATE + | SUBTIME + | SYSDATE + | TIME + | TIMEDIFF + | TIMESTAMP + | TIME_FORMAT + | TIME_TO_SEC + | TO_DAYS + | TO_SECONDS + | UNIX_TIMESTAMP + | UTC_DATE + | UTC_TIME + | UTC_TIMESTAMP + | WEEK + | WEEKDAY + | WEEK_OF_YEAR + | YEAR + | YEARWEEK + ; + +getFormatFunction + : GET_FORMAT LT_PRTHS getFormatType COMMA functionArg RT_PRTHS + ; + +getFormatType + : DATE + | DATETIME + | TIME + | TIMESTAMP + ; + +extractFunction + : EXTRACT LT_PRTHS datetimePart FROM functionArg RT_PRTHS + ; + +simpleDateTimePart + : MICROSECOND + | SECOND + | MINUTE + | HOUR + | DAY + | WEEK + | MONTH + | QUARTER + | YEAR + ; + +complexDateTimePart + : SECOND_MICROSECOND + | MINUTE_MICROSECOND + | MINUTE_SECOND + | HOUR_MICROSECOND + | HOUR_SECOND + | HOUR_MINUTE + | DAY_MICROSECOND + | DAY_SECOND + | DAY_MINUTE + | DAY_HOUR + | YEAR_MONTH + ; + +datetimePart + : simpleDateTimePart + | complexDateTimePart + ; + +timestampFunction + : timestampFunctionName LT_PRTHS simpleDateTimePart COMMA firstArg = functionArg COMMA secondArg = functionArg RT_PRTHS + ; + +timestampFunctionName + : TIMESTAMPADD + | TIMESTAMPDIFF + ; + +// condition function return boolean value +conditionFunctionBase + : LIKE + | IF + | ISNULL + | ISNOTNULL + | IFNULL + | NULLIF + ; + +systemFunctionName + : TYPEOF + ; + +textFunctionName + : SUBSTR + | SUBSTRING + | TRIM + | LTRIM + | RTRIM + | LOWER + | UPPER + | CONCAT + | CONCAT_WS + | LENGTH + | STRCMP + | RIGHT + | LEFT + | ASCII + | LOCATE + | REPLACE + | REVERSE + ; + +positionFunctionName + : POSITION + ; + +// operators + comparisonOperator + : EQUAL + | NOT_EQUAL + | LESS + | NOT_LESS + | GREATER + | NOT_GREATER + | REGEXP + ; + +singleFieldRelevanceFunctionName + : MATCH + | MATCH_PHRASE + | MATCH_BOOL_PREFIX + | MATCH_PHRASE_PREFIX + ; + +multiFieldRelevanceFunctionName + : SIMPLE_QUERY_STRING + | MULTI_MATCH + | QUERY_STRING + ; + +// literals and values +literalValue + : intervalLiteral + | stringLiteral + | integerLiteral + | decimalLiteral + | booleanLiteral + | datetimeLiteral //#datetime + ; + +intervalLiteral + : INTERVAL valueExpression intervalUnit + ; + +stringLiteral + : DQUOTA_STRING + | SQUOTA_STRING + ; + +integerLiteral + : (PLUS | MINUS)? INTEGER_LITERAL + ; + +decimalLiteral + : (PLUS | MINUS)? DECIMAL_LITERAL + ; + +booleanLiteral + : TRUE + | FALSE + ; + +// Date and Time Literal, follow ANSI 92 +datetimeLiteral + : dateLiteral + | timeLiteral + | timestampLiteral + ; + +dateLiteral + : DATE date = stringLiteral + ; + +timeLiteral + : TIME time = stringLiteral + ; + +timestampLiteral + : TIMESTAMP timestamp = stringLiteral + ; + +intervalUnit + : MICROSECOND + | SECOND + | MINUTE + | HOUR + | DAY + | WEEK + | MONTH + | QUARTER + | YEAR + | SECOND_MICROSECOND + | MINUTE_MICROSECOND + | MINUTE_SECOND + | HOUR_MICROSECOND + | HOUR_SECOND + | HOUR_MINUTE + | DAY_MICROSECOND + | DAY_SECOND + | DAY_MINUTE + | DAY_HOUR + | YEAR_MONTH + ; + +timespanUnit + : MS + | S + | M + | H + | D + | W + | Q + | Y + | MILLISECOND + | SECOND + | MINUTE + | HOUR + | DAY + | WEEK + | MONTH + | QUARTER + | YEAR + ; + +valueList + : LT_PRTHS literalValue (COMMA literalValue)* RT_PRTHS + ; + +qualifiedName + : ident (DOT ident)* # identsAsQualifiedName + ; + +tableQualifiedName + : tableIdent (DOT ident)* # identsAsTableQualifiedName + ; + +wcQualifiedName + : wildcard (DOT wildcard)* # identsAsWildcardQualifiedName + ; + +ident + : (DOT)? ID + | BACKTICK ident BACKTICK + | BQUOTA_STRING + | keywordsCanBeId + ; + +tableIdent + : (CLUSTER)? ident + ; + +wildcard + : ident (MODULE ident)* (MODULE)? + | SINGLE_QUOTE wildcard SINGLE_QUOTE + | DOUBLE_QUOTE wildcard DOUBLE_QUOTE + | BACKTICK wildcard BACKTICK + ; + +keywordsCanBeId + : D // OD SQL and ODBC special + | timespanUnit + | SPAN + | evalFunctionName + | relevanceArgName + | intervalUnit + | dateTimeFunctionName + | textFunctionName + | mathematicalFunctionName + | positionFunctionName + // commands + | SEARCH + | DESCRIBE + | SHOW + | FROM + | WHERE + | FIELDS + | RENAME + | STATS + | DEDUP + | SORT + | EVAL + | HEAD + | TOP + | RARE + | PARSE + | METHOD + | REGEX + | PUNCT + | GROK + | PATTERN + | PATTERNS + | NEW_FIELD + | KMEANS + | AD + | ML + // commands assist keywords + | SOURCE + | INDEX + | DESC + | DATASOURCES + // CLAUSEKEYWORDS + | SORTBY + // FIELDKEYWORDSAUTO + | STR + | IP + | NUM + // ARGUMENT KEYWORDS + | KEEPEMPTY + | CONSECUTIVE + | DEDUP_SPLITVALUES + | PARTITIONS + | ALLNUM + | DELIM + | CENTROIDS + | ITERATIONS + | DISTANCE_TYPE + | NUMBER_OF_TREES + | SHINGLE_SIZE + | SAMPLE_SIZE + | OUTPUT_AFTER + | TIME_DECAY + | ANOMALY_RATE + | CATEGORY_FIELD + | TIME_FIELD + | TIME_ZONE + | TRAINING_DATA_SIZE + | ANOMALY_SCORE_THRESHOLD + // AGGREGATIONS + | AVG + | COUNT + | DISTINCT_COUNT + | ESTDC + | ESTDC_ERROR + | MAX + | MEAN + | MEDIAN + | MIN + | MODE + | RANGE + | STDEV + | STDEVP + | SUM + | SUMSQ + | VAR_SAMP + | VAR_POP + | STDDEV_SAMP + | STDDEV_POP + | PERCENTILE + | TAKE + | FIRST + | LAST + | LIST + | VALUES + | EARLIEST + | EARLIEST_TIME + | LATEST + | LATEST_TIME + | PER_DAY + | PER_HOUR + | PER_MINUTE + | PER_SECOND + | RATE + | SPARKLINE + | C + | DC + ; \ No newline at end of file diff --git a/src/plugins/data/public/antlr/opensearch_ppl/opensearch_ppl_autocomplete.ts b/src/plugins/data/public/antlr/opensearch_ppl/opensearch_ppl_autocomplete.ts new file mode 100644 index 000000000000..db1cb320035d --- /dev/null +++ b/src/plugins/data/public/antlr/opensearch_ppl/opensearch_ppl_autocomplete.ts @@ -0,0 +1,146 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import * as c3 from 'antlr4-c3'; +import { ParseTree, TokenStream } from 'antlr4ng'; +import { + AutocompleteData, + AutocompleteResultBase, + CursorPosition, + OpenSearchPplAutocompleteResult, + ProcessVisitedRulesResult, +} from '../shared/types'; +import { OpenSearchPPLLexer } from './.generated/OpenSearchPPLLexer'; +import { OpenSearchPPLParser } from './.generated/OpenSearchPPLParser'; + +// These are keywords that we do not want to show in autocomplete +export function getIgnoredTokens(): number[] { + const tokens = [OpenSearchPPLParser.SPACE, OpenSearchPPLParser.EOF]; + + const firstOperatorIndex = OpenSearchPPLParser.MATCH; + const lastOperatorIndex = OpenSearchPPLParser.ERROR_RECOGNITION; + for (let i = firstOperatorIndex; i <= lastOperatorIndex; i++) { + tokens.push(i); + } + + const firstFunctionIndex = OpenSearchPPLParser.CASE; + const lastFunctionIndex = OpenSearchPPLParser.CAST; + const operatorsToInclude = [ + OpenSearchPPLParser.PIPE, + OpenSearchPPLParser.EQUAL, + OpenSearchPPLParser.COMMA, + ]; + for (let i = firstFunctionIndex; i <= lastFunctionIndex; i++) { + if (!operatorsToInclude.includes(i)) { + tokens.push(i); + } + } + + return tokens; +} + +const ignoredTokens = new Set(getIgnoredTokens()); +const tokenDictionary: any = { + SPACE: OpenSearchPPLParser.SPACE, + FROM: OpenSearchPPLParser.FROM, + OPENING_BRACKET: OpenSearchPPLParser.LT_PRTHS, + CLOSING_BRACKET: OpenSearchPPLParser.RT_PRTHS, + SEARCH: OpenSearchPPLParser.SEARCH, + SOURCE: OpenSearchPPLParser.SOURCE, +}; + +const rulesToVisit = new Set([ + OpenSearchPPLParser.RULE_fieldExpression, + OpenSearchPPLParser.RULE_statsFunctionName, + OpenSearchPPLParser.RULE_percentileAggFunction, + OpenSearchPPLParser.RULE_takeAggFunction, + OpenSearchPPLParser.RULE_timestampFunctionName, + OpenSearchPPLParser.RULE_getFormatFunction, + OpenSearchPPLParser.RULE_tableQualifiedName, + OpenSearchPPLParser.RULE_singleFieldRelevanceFunctionName, + OpenSearchPPLParser.RULE_multiFieldRelevanceFunctionName, + OpenSearchPPLParser.RULE_positionFunctionName, + OpenSearchPPLParser.RULE_evalFunctionName, +]); + +export function processVisitedRules( + rules: c3.CandidatesCollection['rules'], + cursorTokenIndex: number, + tokenStream: TokenStream +): ProcessVisitedRulesResult { + let suggestSourcesOrTables: OpenSearchPplAutocompleteResult['suggestSourcesOrTables']; + let suggestAggregateFunctions = false; + let shouldSuggestColumns = false; + + for (const [ruleId, rule] of rules) { + switch (ruleId) { + case OpenSearchPPLParser.RULE_statsFunctionName: { + suggestAggregateFunctions = true; + break; + } + case OpenSearchPPLParser.RULE_fieldExpression: { + shouldSuggestColumns = true; + break; + } + } + } + + return { + suggestSourcesOrTables, + suggestAggregateFunctions, + shouldSuggestColumns, + }; +} + +export function getParseTree(parser: OpenSearchPPLParser, type?: 'search' | 'from'): ParseTree { + if (!type) { + return parser.root(); + } + + switch (type) { + case 'from': + return parser.fromClause(); + case 'search': + return parser.searchCommand(); + default: + return parser.root(); + } +} + +export function enrichAutocompleteResult( + baseResult: AutocompleteResultBase, + rules: c3.CandidatesCollection['rules'], + tokenStream: TokenStream, + cursorTokenIndex: number, + cursor: CursorPosition, + query: string +): OpenSearchPplAutocompleteResult { + const { + shouldSuggestColumns, + shouldSuggestColumnAliases, + shouldSuggestConstraints, + ...suggestionsFromRules + } = processVisitedRules(rules, cursorTokenIndex, tokenStream); + const result: OpenSearchPplAutocompleteResult = { + ...baseResult, + ...suggestionsFromRules, + suggestColumns: shouldSuggestColumns ? shouldSuggestColumns : undefined, + }; + return result; +} + +export const openSearchPplAutocompleteData: AutocompleteData< + any, + OpenSearchPPLLexer, + OpenSearchPPLParser +> = { + Lexer: OpenSearchPPLLexer, + Parser: OpenSearchPPLParser, + tokenDictionary, + ignoredTokens, + rulesToVisit, + getParseTree, + enrichAutocompleteResult, +}; diff --git a/src/plugins/data/public/antlr/opensearch_sql/code_completion.ts b/src/plugins/data/public/antlr/opensearch_sql/code_completion.ts index bfd0d9d2da9c..a0695a424393 100644 --- a/src/plugins/data/public/antlr/opensearch_sql/code_completion.ts +++ b/src/plugins/data/public/antlr/opensearch_sql/code_completion.ts @@ -4,27 +4,12 @@ */ import { monaco } from '@osd/monaco'; -import { Lexer as LexerType, ParserRuleContext, Parser as ParserType } from 'antlr4ng'; -import { CodeCompletionCore } from 'antlr4-c3'; -import { - AutocompleteResultBase, - CursorPosition, - EnrichAutocompleteResult, - GetParseTree, - KeywordSuggestion, - LexerConstructor, - OpenSearchSqlAutocompleteResult, - ParserConstructor, -} from '../shared/types'; -import { TokenDictionary } from './table'; -import { createParser } from './parse'; -import { SqlErrorListener } from './sql_error_listerner'; -import { findCursorTokenIndex } from '../shared/cursor'; +import { CursorPosition, OpenSearchSqlAutocompleteResult } from '../shared/types'; import { openSearchSqlAutocompleteData } from './opensearch_sql_autocomplete'; import { SQL_SYMBOLS } from './constants'; import { QuerySuggestion, QuerySuggestionGetFnArgs } from '../../autocomplete'; -import { fetchTableSchemas } from '../shared/utils'; -import { IDataFrameResponse, IFieldType } from '../../../common'; +import { fetchFieldSuggestions, parseQuery } from '../shared/utils'; +import { SuggestionItemDetailsTags } from '../shared/constants'; export interface SuggestionParams { position: monaco.Position; @@ -37,46 +22,29 @@ export interface ISuggestionItem { fieldType?: string; } -const quotesRegex = /^'(.*)'$/; - export const getSuggestions = async ({ selectionStart, selectionEnd, + indexPattern, position, query, services, }: QuerySuggestionGetFnArgs): Promise => { - const { api } = services.uiSettings; - const queryString = services.data.query.queryString; - const { lineNumber, column } = position || {}; - const suggestions = getOpenSearchSqlAutoCompleteSuggestions(query, { - line: lineNumber || selectionStart, - column: column || selectionEnd, - }); + if (!services || !services.appName || !indexPattern) return []; + try { + const { lineNumber, column } = position || {}; + const suggestions = getOpenSearchSqlAutoCompleteSuggestions(query, { + line: lineNumber || selectionStart, + column: column || selectionEnd, + }); - const finalSuggestions: QuerySuggestion[] = []; + const finalSuggestions: QuerySuggestion[] = []; - try { // Fetch columns and values if (suggestions.suggestColumns?.tables?.length) { - const tableNames = suggestions.suggestColumns.tables.map((table) => table.name); - const schemas = await fetchTableSchemas(tableNames, api, queryString); - - (schemas as IDataFrameResponse[]).forEach((schema: IDataFrameResponse) => { - if ('body' in schema && schema.body && 'fields' in schema.body) { - const columns = schema.body.fields.find((col: IFieldType) => col.name === 'COLUMN_NAME'); - const fieldTypes = schema.body.fields.find((col: IFieldType) => col.name === 'DATA_TYPE'); - - if (columns && fieldTypes) { - finalSuggestions.push( - ...columns.values.map((col: string) => ({ - text: col, - type: monaco.languages.CompletionItemKind.Field, - })) - ); - } - } - }); + // NOTE: currently the suggestions return the table present in the query, but since the + // parameters already provide that, it may not be needed anymore + finalSuggestions.push(...fetchFieldSuggestions(indexPattern)); } // Fill in aggregate functions @@ -85,6 +53,8 @@ export const getSuggestions = async ({ ...SQL_SYMBOLS.AGREGATE_FUNCTIONS.map((af) => ({ text: af, type: monaco.languages.CompletionItemKind.Function, + insertText: af, + detail: SuggestionItemDetailsTags.AggregateFunction, })) ); } @@ -95,85 +65,16 @@ export const getSuggestions = async ({ ...suggestions.suggestKeywords.map((sk) => ({ text: sk.value, type: monaco.languages.CompletionItemKind.Keyword, + insertText: sk.value, + detail: SuggestionItemDetailsTags.Keyword, })) ); } + return finalSuggestions; } catch (error) { // TODO: Handle errors appropriately, possibly logging or displaying a message to the user return []; } - - return finalSuggestions; -}; - -export interface ParsingSubject { - Lexer: LexerConstructor; - Parser: ParserConstructor

; - tokenDictionary: TokenDictionary; - ignoredTokens: Set; - rulesToVisit: Set; - getParseTree: GetParseTree

; - enrichAutocompleteResult: EnrichAutocompleteResult; - query: string; - cursor: CursorPosition; - context?: ParserRuleContext; -} - -export const parseQuery = < - A extends AutocompleteResultBase, - L extends LexerType, - P extends ParserType ->({ - Lexer, - Parser, - tokenDictionary, - ignoredTokens, - rulesToVisit, - getParseTree, - enrichAutocompleteResult, - query, - cursor, - context, -}: ParsingSubject) => { - const parser = createParser(Lexer, Parser, query); - const { tokenStream } = parser; - const errorListener = new SqlErrorListener(tokenDictionary.SPACE); - - parser.removeErrorListeners(); - parser.addErrorListener(errorListener); - getParseTree(parser); - - const core = new CodeCompletionCore(parser); - core.ignoredTokens = ignoredTokens; - core.preferredRules = rulesToVisit; - const cursorTokenIndex = findCursorTokenIndex(tokenStream, cursor, tokenDictionary.SPACE); - if (cursorTokenIndex === undefined) { - throw new Error( - `Could not find cursor token index for line: ${cursor.line}, column: ${cursor.column}` - ); - } - - const suggestKeywords: KeywordSuggestion[] = []; - const { tokens, rules } = core.collectCandidates(cursorTokenIndex, context); - tokens.forEach((_, tokenType) => { - // Literal keyword names are quoted - const literalName = parser.vocabulary.getLiteralName(tokenType)?.replace(quotesRegex, '$1'); - - if (!literalName) { - throw new Error(`Could not get literal name for token ${tokenType}`); - } - - suggestKeywords.push({ - value: literalName, - }); - }); - - const result: AutocompleteResultBase = { - errors: errorListener.errors, - suggestKeywords, - }; - - return enrichAutocompleteResult(result, rules, tokenStream, cursorTokenIndex, cursor, query); }; export const getOpenSearchSqlAutoCompleteSuggestions = ( diff --git a/src/plugins/data/public/antlr/shared/constants.ts b/src/plugins/data/public/antlr/shared/constants.ts new file mode 100644 index 000000000000..bd38cedc3822 --- /dev/null +++ b/src/plugins/data/public/antlr/shared/constants.ts @@ -0,0 +1,12 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +// suggestion item details tags +export const enum SuggestionItemDetailsTags { + Keyword = 'Keyword', + AggregateFunction = 'Aggregate Function', + Value = 'Value', +} +export const quotesRegex = /^'(.*)'$/; diff --git a/src/plugins/data/public/antlr/shared/general_error_listerner.ts b/src/plugins/data/public/antlr/shared/general_error_listerner.ts new file mode 100644 index 000000000000..0bd4227169b6 --- /dev/null +++ b/src/plugins/data/public/antlr/shared/general_error_listerner.ts @@ -0,0 +1,47 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { ANTLRErrorListener, ATNSimulator, Recognizer, Token } from 'antlr4ng'; + +import { TokenPosition, getTokenPosition } from '../shared/cursor'; + +interface ParserSyntaxError extends TokenPosition { + message: string; +} + +export class GeneralErrorListener implements ANTLRErrorListener { + errors: ParserSyntaxError[]; + whitespaceToken: number; + + constructor(whitespaceToken: number) { + this.errors = []; + this.whitespaceToken = whitespaceToken; + } + + syntaxError( + _recognizer: Recognizer, + token: S | null, + startLine: number, + startColumn: number, + message: string + ): void { + if (token) { + const tokenPosition = getTokenPosition(token, this.whitespaceToken); + this.errors.push({ message, ...tokenPosition }); + } else { + this.errors.push({ + message, + startLine, + startColumn, + endLine: startLine, + endColumn: startColumn, + }); + } + } + + reportAmbiguity(): void {} + reportAttemptingFullContext(): void {} + reportContextSensitivity(): void {} +} diff --git a/src/plugins/data/public/antlr/shared/types.ts b/src/plugins/data/public/antlr/shared/types.ts index 299cb8a3c37b..8941a8469d4b 100644 --- a/src/plugins/data/public/antlr/shared/types.ts +++ b/src/plugins/data/public/antlr/shared/types.ts @@ -87,12 +87,22 @@ export interface OpenSearchSqlAutocompleteResult extends AutocompleteResultBase suggestViewsOrTables?: TableOrViewSuggestion; } +export interface OpenSearchPplAutocompleteResult extends AutocompleteResultBase { + suggestSourcesOrTables?: SourceOrTableSuggestion; +} + export enum TableOrViewSuggestion { ALL = 'ALL', TABLES = 'TABLES', VIEWS = 'VIEWS', } +export enum SourceOrTableSuggestion { + ALL = 'ALL', + TABLES = 'TABLES', + SOURCES = 'SOURCES', +} + export type ConstraintSuggestion = TableContextSuggestion; export interface ISymbolTableVisitor { @@ -122,3 +132,16 @@ export type ProcessVisitedRulesResult = Partia shouldSuggestColumnAliases?: boolean; shouldSuggestConstraints?: boolean; }; + +export interface ParsingSubject { + Lexer: LexerConstructor; + Parser: ParserConstructor

; + tokenDictionary: TokenDictionary; + ignoredTokens: Set; + rulesToVisit: Set; + getParseTree: GetParseTree

; + enrichAutocompleteResult: EnrichAutocompleteResult; + query: string; + cursor: CursorPosition; + context?: ParserRuleContext; +} diff --git a/src/plugins/data/public/antlr/shared/utils.ts b/src/plugins/data/public/antlr/shared/utils.ts index 7ae9dd18940b..6136aa0f9ae9 100644 --- a/src/plugins/data/public/antlr/shared/utils.ts +++ b/src/plugins/data/public/antlr/shared/utils.ts @@ -5,7 +5,18 @@ import { from } from 'rxjs'; import { distinctUntilChanged, startWith, switchMap } from 'rxjs/operators'; +import { CodeCompletionCore } from 'antlr4-c3'; +import { Lexer as LexerType, Parser as ParserType } from 'antlr4ng'; +import { monaco } from '@osd/monaco'; import { QueryStringContract } from '../../query'; +import { findCursorTokenIndex } from './cursor'; +import { GeneralErrorListener } from './general_error_listerner'; +import { createParser } from '../opensearch_sql/parse'; +import { AutocompleteResultBase, KeywordSuggestion } from './types'; +import { ParsingSubject } from './types'; +import { quotesRegex } from './constants'; +import { IndexPattern, IndexPatternField } from '../../index_patterns'; +import { QuerySuggestion } from '../../autocomplete'; export interface IDataSourceRequestHandlerParams { dataSourceId: string; @@ -82,6 +93,7 @@ export const fetchData = ( }; // Specific fetch function for table schemas +// TODO: remove this after using data set table schema fetcher export const fetchTableSchemas = (tables: string[], api: any, queryString: QueryStringContract) => { return fetchData( tables, @@ -100,3 +112,80 @@ export const fetchTableSchemas = (tables: string[], api: any, queryString: Query queryString ); }; + +export const fetchFieldSuggestions = ( + indexPattern: IndexPattern, + modifyInsertText?: (input: string) => string +) => { + const filteredFields = indexPattern.fields.filter( + (idxField: IndexPatternField) => !idxField?.subType + ); // filter removed .keyword fields + + const fieldSuggestions: QuerySuggestion[] = filteredFields.map((field) => { + return { + text: field.name, + type: monaco.languages.CompletionItemKind.Field, + detail: `Field: ${field.esTypes?.[0] ?? field.type}`, + ...(modifyInsertText && { insertText: modifyInsertText(field.name) }), // optionally include insert text if fn exists + }; + }); + + return fieldSuggestions; +}; + +export const parseQuery = < + A extends AutocompleteResultBase, + L extends LexerType, + P extends ParserType +>({ + Lexer, + Parser, + tokenDictionary, + ignoredTokens, + rulesToVisit, + getParseTree, + enrichAutocompleteResult, + query, + cursor, + context, +}: ParsingSubject) => { + const parser = createParser(Lexer, Parser, query); + const { tokenStream } = parser; + const errorListener = new GeneralErrorListener(tokenDictionary.SPACE); + + parser.removeErrorListeners(); + parser.addErrorListener(errorListener); + getParseTree(parser); + + const core = new CodeCompletionCore(parser); + core.ignoredTokens = ignoredTokens; + core.preferredRules = rulesToVisit; + const cursorTokenIndex = findCursorTokenIndex(tokenStream, cursor, tokenDictionary.SPACE); + if (cursorTokenIndex === undefined) { + throw new Error( + `Could not find cursor token index for line: ${cursor.line}, column: ${cursor.column}` + ); + } + + const suggestKeywords: KeywordSuggestion[] = []; + const { tokens, rules } = core.collectCandidates(cursorTokenIndex, context); + tokens.forEach((_, tokenType) => { + // Literal keyword names are quoted + const literalName = parser.vocabulary.getLiteralName(tokenType)?.replace(quotesRegex, '$1'); + + if (!literalName) { + return; + } + + suggestKeywords.push({ + value: literalName, + }); + }); + + const result: AutocompleteResultBase = { + errors: errorListener.errors, + suggestKeywords, + }; + + return enrichAutocompleteResult(result, rules, tokenStream, cursorTokenIndex, cursor, query); +}; diff --git a/src/plugins/data/public/autocomplete/providers/query_suggestion_provider.ts b/src/plugins/data/public/autocomplete/providers/query_suggestion_provider.ts index 636a4a1993b6..aebb4087d9db 100644 --- a/src/plugins/data/public/autocomplete/providers/query_suggestion_provider.ts +++ b/src/plugins/data/public/autocomplete/providers/query_suggestion_provider.ts @@ -59,12 +59,11 @@ export interface QuerySuggestionGetFnArgs { /** @public **/ export interface QuerySuggestionBasic { - type: QuerySuggestionTypes | monaco.languages.CompletionItemKind; + type: QuerySuggestionTypes; description?: string | JSX.Element; end: number; start: number; text: string; - insertText?: string; cursorIndex?: number; } @@ -74,5 +73,17 @@ export interface QuerySuggestionField extends QuerySuggestionBasic { field: IFieldType; } +export interface MonacoCompatibleQuerySuggestion + extends Pick { + type: monaco.languages.CompletionItemKind; + text: string; + detail: string; + insertText?: string; + replacePosition?: monaco.Range; +} + /** @public **/ -export type QuerySuggestion = QuerySuggestionBasic | QuerySuggestionField; +export type QuerySuggestion = + | QuerySuggestionBasic + | QuerySuggestionField + | MonacoCompatibleQuerySuggestion; diff --git a/src/plugins/data/public/plugin.ts b/src/plugins/data/public/plugin.ts index 916909e25acb..ede785e14b84 100644 --- a/src/plugins/data/public/plugin.ts +++ b/src/plugins/data/public/plugin.ts @@ -91,6 +91,7 @@ import { DefaultDslDataSource } from './data_sources/default_datasource'; import { DEFAULT_DATA_SOURCE_TYPE } from './data_sources/constants'; import { getSuggestions as getSQLSuggestions } from './antlr/opensearch_sql/code_completion'; import { getSuggestions as getDQLSuggestions } from './antlr/dql/code_completion'; +import { getSuggestions as getPPLSuggestions } from './antlr/opensearch_ppl/code_completion'; import { createStorage, DataStorage } from '../common'; declare module '../../ui_actions/public' { @@ -163,9 +164,10 @@ export class DataPublicPlugin })) ); - const ac = this.autocomplete.setup(core); - ac.addQuerySuggestionProvider('SQL', getSQLSuggestions); - ac.addQuerySuggestionProvider('kuery', getDQLSuggestions); + const autoComplete = this.autocomplete.setup(core); + autoComplete.addQuerySuggestionProvider('SQL', getSQLSuggestions); + autoComplete.addQuerySuggestionProvider('kuery', getDQLSuggestions); + autoComplete.addQuerySuggestionProvider('PPL', getPPLSuggestions); return { // TODO: MQL diff --git a/src/plugins/data/public/ui/query_editor/_query_editor.scss b/src/plugins/data/public/ui/query_editor/_query_editor.scss index 7edfebfed938..770160de8c1d 100644 --- a/src/plugins/data/public/ui/query_editor/_query_editor.scss +++ b/src/plugins/data/public/ui/query_editor/_query_editor.scss @@ -193,6 +193,7 @@ .osdQuerEditor__singleLine { padding: $euiSizeS; background-color: $euiColorEmptyShade; + overflow: initial !important; // needed for suggestion window, otherwise will be hidden in child .monaco-editor .view-overlays .current-line { border: none; diff --git a/src/plugins/data/public/ui/query_editor/query_editor.tsx b/src/plugins/data/public/ui/query_editor/query_editor.tsx index 2ff643f74254..dd0fec884f6a 100644 --- a/src/plugins/data/public/ui/query_editor/query_editor.tsx +++ b/src/plugins/data/public/ui/query_editor/query_editor.tsx @@ -18,9 +18,15 @@ import classNames from 'classnames'; import { isEqual } from 'lodash'; import React, { Component, createRef, RefObject } from 'react'; import { monaco } from '@osd/monaco'; -import { IDataPluginServices, IFieldType, IIndexPattern, Query, TimeRange } from '../..'; +import { + IDataPluginServices, + IFieldType, + IIndexPattern, + Query, + QuerySuggestion, + TimeRange, +} from '../..'; import { OpenSearchDashboardsReactContextValue } from '../../../../opensearch_dashboards_react/public'; -import { QuerySuggestion } from '../../autocomplete'; import { fromUser, getQueryLog, PersistedLog, toUser } from '../../query'; import { SuggestionsListSize } from '../typeahead/suggestions_component'; import { QueryLanguageSelector } from './language_selector'; @@ -30,12 +36,7 @@ import { DatasetSelector } from '../dataset_selector'; import { QueryControls } from '../../query/query_string/language_service/get_query_control_links'; import { RecentQueriesTable } from '../../query/query_string/language_service/recent_query'; import { DefaultInputProps } from './editors'; - -const LANGUAGE_ID_SQL = 'SQL'; -monaco.languages.register({ id: LANGUAGE_ID_SQL }); - -const LANGUAGE_ID_KUERY = 'kuery'; -monaco.languages.register({ id: LANGUAGE_ID_KUERY }); +import { MonacoCompatibleQuerySuggestion } from '../../autocomplete/providers/query_suggestion_provider'; export interface QueryEditorProps { query: Query; @@ -285,7 +286,7 @@ export default class QueryEditorUI extends Component { // current completion item range being given as last 'word' at pos const wordUntil = model.getWordUntilPosition(position); - const range = new monaco.Range( + const defaultRange = new monaco.Range( position.lineNumber, wordUntil.startColumn, position.lineNumber, @@ -295,12 +296,17 @@ export default class QueryEditorUI extends Component { return { suggestions: suggestions && suggestions.length > 0 - ? suggestions.map((s: QuerySuggestion) => ({ - label: s.text, - kind: s.type as monaco.languages.CompletionItemKind, - insertText: s.insertText ?? s.text, - range, - })) + ? suggestions + .filter((s) => 'detail' in s) // remove suggestion not of type MonacoCompatible + .map((s: MonacoCompatibleQuerySuggestion) => { + return { + label: s.text, + kind: s.type as monaco.languages.CompletionItemKind, + insertText: s.insertText ?? s.text, + range: s.replacePosition ?? defaultRange, + detail: s.detail, + }; + }) : [], incomplete: false, };