genericSyntaxParser.js 179 KB

1
  1. !function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.genericSyntaxParser=s():e.genericSyntaxParser=s()}(window,(function(){return function(e){var s={};function t(i){if(s[i])return s[i].exports;var a=s[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=s,t.d=function(e,s,i){t.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,s){if(1&s&&(e=t(e)),8&s)return e;if(4&s&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var a in e)t.d(i,a,function(s){return e[s]}.bind(null,a));return i},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},t.p="",t(t.s=31)}({0:function(e,s,t){"use strict";t.d(s,"c",(function(){return n})),t.d(s,"b",(function(){return r})),t.d(s,"a",(function(){return o})),t.d(s,"d",(function(){return A})),t.d(s,"e",(function(){return C}));var i=function(e,s,t){t&&(e=e.toLowerCase(),s=s.toLowerCase());var i=e.length,a=s.length;if(0===i)return a;if(0===a)return i;for(var n,r,o,u,l,c=new Array(i),y=0;y<=i;y++){c[y]=new Array(a),c[y][0]=y;for(var g=1;g<=a;g++)y?(n=e[y-1]===s[g-1]?0:1,r=c[y-1][g]+1,o=c[y][g-1]+1,u=c[y-1][g-1]+n,c[y][g]=r<=o&&r<=u?r:o<=r&&o<=u?o:u,y>1&&g>1&&e[y]===s[g-1]&&e[y-1]===s[g]&&(l=c[y-2][g-2]+n)<c[y][g]&&(c[y][g]=l)):c[0][g]=g}return c[i][a]};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}String.prototype.endsWith||(String.prototype.endsWith=function(e,s){var t=this.toString();("number"!=typeof s||!isFinite(s)||Math.floor(s)!==s||s>t.length)&&(s=t.length),s-=e.length;var i=t.lastIndexOf(e,s);return-1!==i&&i===s});var n=function(e,s){return e&&s&&e.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()===s.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()},r=function(e,s){return e&&s&&e.toLowerCase()===s.toLowerCase()},o=["suggestJoinConditions","suggestAggregateFunctions","suggestFilters","suggestGroupBys","suggestOrderBys"],u="alias",l="asterisk",c="column",y="database",g="file",T="function",d="functionArgument",p="statement",E="statementType",h="table",f="unknown",I="variable",A=function(e){e.SELECT_FIRST_OPTIONAL_KEYWORDS=[{value:"ALL",weight:2},{value:"DISTINCT",weight:2}];var s=function(s){var t={first_line:s.first_line,last_line:s.last_line,first_column:s.first_column+1,last_column:s.last_column+1};if(e.yy.cursorFound&&e.yy.cursorFound.first_line===t.first_line&&e.yy.cursorFound.last_column<=t.first_column){var i=e.yy.partialLengths.left+e.yy.partialLengths.right;i-=e.yy.partialCursor?1:3,t.first_column=t.first_column+i,t.last_column=t.last_column+i}return t};e.addAsteriskLocation=function(t,i){e.yy.locations.push({type:l,location:s(t),identifierChain:i})},e.addClauseLocation=function(t,i,a,n){var r;r=n?0===e.yy.partialLengths.left&&0===e.yy.partialLengths.right?{type:t,missing:!0,location:s({first_line:i.last_line,first_column:i.last_column,last_line:i.last_line,last_column:i.last_column})}:{type:t,missing:!1,location:{first_line:a.last_line,first_column:a.last_column-1,last_line:a.last_line,last_column:a.last_column-1+e.yy.partialLengths.right+e.yy.partialLengths.left}}:{type:t,missing:!a,location:s(a||{first_line:i.last_line,first_column:i.last_column,last_line:i.last_line,last_column:i.last_column})},e.isInSubquery()&&(r.subquery=!0),e.yy.locations.push(r)},e.addColumnAliasLocation=function(t,i,a){var n={type:u,source:"column",alias:i,location:s(t),parentLocation:s(a)};if(e.yy.locations.length&&"column"===e.yy.locations[e.yy.locations.length-1].type){var r=e.yy.locations[e.yy.locations.length-1];r.location.first_line===n.parentLocation.first_line&&r.location.last_line===n.parentLocation.last_line&&r.location.first_column===n.parentLocation.first_column&&r.location.last_column===n.parentLocation.last_column&&(e.yy.locations[e.yy.locations.length-1].alias=i)}e.yy.locations.push(n)},e.addColumnLocation=function(t,i){i.length&&/\${[^}]*}/.test(i[i.length-1].name)?e.yy.locations.push({type:I,location:s(t),value:i[i.length-1].name}):e.yy.locations.push({type:c,location:s(t),identifierChain:i,qualified:i.length>1})},e.addCteAliasLocation=function(t,i){e.yy.locations.push({type:u,source:"cte",alias:i,location:s(t)})},e.addDatabaseLocation=function(t,i){e.yy.locations.push({type:y,location:s(t),identifierChain:i})},e.addFileLocation=function(t,i){e.yy.locations.push({type:g,location:s(t),path:i})},e.addFunctionLocation=function(t,i){var a={first_line:t.first_line,last_line:t.last_line,first_column:t.first_column,last_column:t.last_column-1};e.yy.locations.push({type:T,location:s(a),function:i.toLowerCase()})},e.addFunctionArgumentLocations=function(t,i,a){i&&i.length&&i.forEach((function(i,n){var r={type:d,location:s(i.location),function:t.toLowerCase(),argumentPosition:n,identifierChain:a||[{name:t}],expression:i.expression};i.suffix&&(r.suffix=i.suffix),e.yy.locations.push(r)}))},e.addNewDatabaseLocation=function(t,i){e.yy.definitions.push({type:y,location:s(t),identifierChain:i})},e.addNewTableLocation=function(t,i,a){var n=[];a&&a.forEach((function(e){n.push({identifierChain:[e.identifier],type:e.type,location:s(e.location)})})),e.yy.definitions.push({type:h,location:s(t),identifierChain:i,columns:n})},e.addStatementLocation=function(s){if(s.first_line!==s.last_line||1!==Math.abs(s.last_column-s.first_column)){var t;if(e.yy.cursorFound&&e.yy.cursorFound.last_line===s.last_line&&e.yy.cursorFound.first_column>=s.first_column&&e.yy.cursorFound.last_column<=s.last_column){var i=e.yy.partialLengths.left+e.yy.partialLengths.right;t={first_line:s.first_line,last_line:s.last_line,first_column:s.first_column+1,last_column:s.last_column+i-(e.yy.partialCursor?0:2)}}else t={first_line:s.first_line,last_line:s.last_line,first_column:s.first_column+1,last_column:s.last_column+1};e.yy.locations.push({type:p,location:t})}},e.addStatementTypeLocation=function(t,i,a){if("SELECT"!==t&&e.yy.allLocations)for(var n=e.yy.allLocations.length-1;n>=0&&(!e.yy.allLocations[n]||e.yy.allLocations[n].type!==p);n--)if(e.yy.allLocations[n]&&e.yy.allLocations[n].type===E)return;var r={type:E,location:s(i),identifier:t};if(void 0!==a)switch(t){case"ALTER":/ALTER\s+VIEW/i.test(a)?r.identifier="ALTER VIEW":r.identifier="ALTER TABLE";break;case"COMPUTE":r.identifier="COMPUTE STATS";break;case"CREATE":/CREATE\s+VIEW/i.test(a)?r.identifier="CREATE VIEW":/CREATE\s+TABLE/i.test(a)?r.identifier="CREATE TABLE":/CREATE\s+DATABASE/i.test(a)?r.identifier="CREATE DATABASE":/CREATE\s+ROLE/i.test(a)?r.identifier="CREATE ROLE":/CREATE\s+FUNCTION/i.test(a)?r.identifier="CREATE FUNCTION":r.identifier="CREATE TABLE";break;case"DROP":/DROP\s+VIEW/i.test(a)?r.identifier="DROP VIEW":/DROP\s+TABLE/i.test(a)?r.identifier="DROP TABLE":/DROP\s+DATABASE/i.test(a)?r.identifier="DROP DATABASE":/DROP\s+ROLE/i.test(a)?r.identifier="DROP ROLE":/DROP\s+STATS/i.test(a)?r.identifier="DROP STATS":/DROP\s+FUNCTION/i.test(a)?r.identifier="DROP FUNCTION":r.identifier="DROP TABLE";break;case"INVALIDATE":r.identifier="INVALIDATE METADATA";break;case"LOAD":r.identifier="LOAD DATA";break;case"TRUNCATE":r.identifier="TRUNCATE TABLE"}e.yy.locations.push(r)},e.addSubqueryAliasLocation=function(t,i){e.yy.locations.push({type:u,source:"subquery",alias:i,location:s(t)})},e.addTableAliasLocation=function(t,i,a){e.yy.locations.push({type:u,source:"table",alias:i,location:s(t),identifierChain:a})},e.addTableLocation=function(t,i){e.yy.locations.push({type:h,location:s(t),identifierChain:i})},e.addVariableLocation=function(t,i){/\${[^}]*}/.test(i)&&e.yy.locations.push({type:I,location:s(t),value:i})},e.addUnknownLocation=function(t,i){var a;return a=i.length&&/\${[^}]*}/.test(i[i.length-1].name)?{type:I,location:s(t),value:i[i.length-1].name}:{type:f,location:s(t),identifierChain:i,qualified:i.length>1},e.yy.locations.push(a),a},e.applyTypes=function(e,s){e.types=s.types,s.types&&"UDFREF"===s.types[0]&&(s.function?e.udfRef=s.function:e.types=["T"])},e.applyTypeToSuggestions=function(s){s.types||console.trace(),"BOOLEAN"!==s.types[0]&&(e.yy.result.suggestFunctions&&!e.yy.result.suggestFunctions.types&&e.applyTypes(e.yy.result.suggestFunctions,s),e.yy.result.suggestColumns&&!e.yy.result.suggestColumns.types&&e.applyTypes(e.yy.result.suggestColumns,s))},e.extractExpressionText=function(e){for(var s=[],t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];var r=i.some((function(e){if(void 0===e)return!1;if("string"==typeof e||"number"==typeof e)s.push(e);else if("object"===a(e))if(e.text)s.push(e.text);else{if(!e.columnReference)return!0;s.push(e.columnReference.map((function(e){return e.name})).join("."))}}));r||(e.text=s.join(" "))},e.getSubQuery=function(e){var s=[];return e.selectList.forEach((function(e){var t={};e.alias&&(t.alias=e.alias),e.valueExpression&&e.valueExpression.columnReference?t.identifierChain=e.valueExpression.columnReference:e.asterisk&&(t.identifierChain=[{asterisk:!0}]),e.valueExpression&&e.valueExpression.types&&1===e.valueExpression.types.length&&(t.type=e.valueExpression.types[0],"UDFREF"===t.type&&(e.valueExpression.function?t.udfRef=e.valueExpression.function:t.type=["T"])),s.push(t)})),{columns:s}},e.suggestKeywords=function(s){"string"==typeof s&&(s=e.KEYWORDS&&e.KEYWORDS[s]||[]);var t=[];0!==s.length&&(s.forEach((function(e){void 0!==e.weight?t.push(e):t.push({value:e,weight:-1})})),t.sort((function(e,s){return e.weight!==s.weight?s.weight-e.weight:e.value.localeCompare(s.value)})),e.yy.result.suggestKeywords=t)},e.valueExpressionSuggest=function(s,t){s&&s.columnReference&&(e.suggestValues(),e.yy.result.colRef={identifierChain:s.columnReference}),e.suggestColumns(),e.suggestFunctions();var i=[{value:"CASE",weight:450},{value:"FALSE",weight:450},{value:"NULL",weight:450},{value:"TRUE",weight:450}];void 0!==s&&void 0!==t||(i=i.concat(["EXISTS","NOT"])),s&&"NUMBER"===s.types[0]&&e.applyTypeToSuggestions(s),e.suggestKeywords(i)}},L=["addAsteriskLocation","addClauseLocation","addColRefIfExists","addColRefToVariableIfExists","addColumnAliasLocation","addColumnLocation","addCommonTableExpressions","addCteAliasLocation","addDatabaseLocation","addFileLocation","addFunctionArgumentLocations","addFunctionLocation","addNewDatabaseLocation","addNewTableLocation","addStatementLocation","addStatementTypeLocation","addSubqueryAliasLocation","addTableAliasLocation","addTableLocation","addTablePrimary","addUnknownLocation","addVariableLocation","applyArgumentTypesToSuggestions","applyTypeToSuggestions","checkForKeywords","checkForSelectListKeywords","commitLocations","extractExpressionText","firstDefined","getSelectListKeywords","getSubQuery","getValueExpressionKeywords","identifyPartials","popQueryState","prepareNewStatement","pushQueryState","selectListNoTableSuggest","suggestAggregateFunctions","suggestAnalyticFunctions","suggestColRefKeywords","suggestColumns","suggestDatabases","suggestDdlAndDmlKeywords","suggestFileFormats","suggestFilters","suggestFunctions","suggestGroupBys","suggestHdfs","suggestIdentifiers","suggestJoinConditions","suggestJoins","suggestKeyValues","suggestKeywords","suggestOrderBys","suggestSelectListAliases","suggestTables","suggestTablesOrColumns","suggestValueExpressionKeywords","suggestValues","valueExpressionSuggest"],b=function(){},C=function(e){L.forEach((function(s){e[s]=b})),e.yy.locations=[{}],e.determineCase=function(s){e.yy.caseDetermined||(e.yy.lowerCase=s.toLowerCase()===s,e.yy.caseDetermined=!0)},e.getKeywordsForOptionalsLR=function(){return[]},e.mergeSuggestKeywords=function(){return{}},e.getTypeKeywords=function(){return[]},e.getColumnDataTypeKeywords=function(){return[]},e.findCaseType=function(){return{types:["T"]}},e.expandIdentifierChain=function(){return[]},e.createWeightedKeywords=function(){return[]},e.handleQuotedValueWithCursor=function(s,t,i,a){if(-1!==t.indexOf("†")||-1!==t.indexOf("‡")){e.yy.partialCursor=-1!==t.indexOf("‡");var n=e.yy.partialCursor?t.indexOf("‡"):t.indexOf("†");e.yy.cursorFound={first_line:i.first_line,last_line:i.last_line,first_column:i.first_column+n,last_column:i.first_column+n+1};var r=t.substring(n+1),o=(s.upcomingInput().match(new RegExp(a,"g"))||[]).length;return o>0&&0!=(1&o)?(e.yy.missingEndQuote=!1,s.input()):(e.yy.missingEndQuote=!0,s.unput(r)),s.popState(),!0}return!1},e.yy.parseError=function(s,t){e.yy.error=t};var s={";":!0,".":!0,EOF:!0,UNSIGNED_INTEGER:!0,UNSIGNED_INTEGER_E:!0,REGULAR_IDENTIFIER:!0,CURSOR:!0,PARTIAL_CURSOR:!0,HDFS_START_QUOTE:!0,HDFS_PATH:!0,HDFS_END_QUOTE:!0,COMPARISON_OPERATOR:!0,ARITHMETIC_OPERATOR:!0,VARIABLE_REFERENCE:!0,BACKTICK:!0,VALUE:!0,PARTIAL_VALUE:!0,SINGLE_QUOTE:!0,DOUBLE_QUOTE:!0},t={BETWEEN_AND:"AND",OVERWRITE_DIRECTORY:"OVERWRITE",STORED_AS_DIRECTORIES:"STORED",LIKE_PARQUET:"LIKE",PARTITION_VALUE:"PARTITION"};e.parseSyntax=function(a,n,r){e.yy.caseDetermined=!1,e.yy.error=void 0,e.yy.latestTablePrimaries=[],e.yy.subQueries=[],e.yy.selectListAliases=[],e.yy.latestTablePrimaries=[],e.yy.activeDialect="generic";try{e.yy.error=!1,e.parse(a+n)}catch(s){if(r)throw console.warn(e.yy.error),s}if(e.yy.error&&(e.yy.error.loc.last_column<a.length||!a.endsWith(e.yy.error.text))){var o=[],u={},l=e.yy.caseDetermined&&e.yy.lowerCase||e.yy.error.text.toLowerCase()===e.yy.error.text;if(2===e.yy.error.expected.length&&-1!==e.yy.error.expected.indexOf("';'")&&-1!==e.yy.error.expected.indexOf("'EOF'"))return e.yy.error.expected=[],e.yy.error.expectedStatementEnd=!0,e.yy.error;for(var c=0;c<e.yy.error.expected.length;c++){var y=e.yy.error.expected[c];if("REGULAR_IDENTIFIER"===(y=y.substring(1,y.length-1))){if(e.yy.error.expectedIdentifier=!0,/^<[a-z]+>/.test(e.yy.error.token)){var g="`"+e.yy.error.text+"`";o.push({text:g,distance:i(e.yy.error.text,g,!0)}),e.yy.error.possibleReserved=!0}}else if(!s[y]&&/[a-z_]+/i.test(y)){if(y.toUpperCase()!==y)continue;if((y=t[y]||y)===e.yy.error.text.toUpperCase())return!1;var T=l?y.toLowerCase():y;T&&!u[T]&&(u[T]=!0,o.push({text:T,distance:i(e.yy.error.text,T,!0)}))}}return 0===o.length?(e.yy.error.expected=[],e.yy.error.incompleteStatement=!0,e.yy.error):(o.sort((function(e,s){return e.distance===s.distance?e.text.localeCompare(s.text):e.distance-s.distance})),e.yy.error.expected=o,e.yy.error.incompleteStatement=!0,e.yy.error)}return!!e.yy.error&&(e.yy.error.expected=[],e.yy.error.incompleteStatement=!0,e.yy.error)}}},1:function(e,s,t){"use strict";t.d(s,"a",(function(){return r}));var i={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!1,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},DATE:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!0,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},BINARY:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!0,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!1,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,DATE:!0,BINARY:!0,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0}},a={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}},n={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}},r=function(e,s,t){if(1===s.length&&"T"===s[0])return!0;var r,o=(r=[],t.forEach((function(e){e.indexOf("(")>-1?r.push(e.substring(0,e.indexOf("("))):r.push(e)})),r);if(-1!==o.indexOf("ARRAY")||-1!==o.indexOf("MAP")||-1!==o.indexOf("STRUCT"))return!0;for(var u=function(e){return"impala"===e?a:"hive"===e?i:n}(e),l=0;l<s.length;l++)for(var c=0;c<o.length;c++){if(void 0===u[s[l]]||void 0===u[s[l]][o[c]])return!0;if(u[s[l]]&&u[s[l]][o[c]])return!0}return!1}},31:function(e,s,t){e.exports=t(32)},32:function(e,s,t){"use strict";t.r(s);var i=t(6),a=function(){var e=function(e,s,t,i){for(t=t||{},i=e.length;i--;t[e[i]]=s);return t},s=[4,8,12,16,162,174,241,271,321,337,340,344],t=[2,624],a=[340,344],n=[2,625],r=[1,35],o=[1,27],u=[1,28],l=[1,18],c=[1,36],y=[1,33],g=[1,34],T=[1,29],d=[1,32],p=[1,30],E=[1,45],h=[1,47],f=[1,43],I=[1,46],A=[1,42],L=[81,340,344],b=[2,451],C=[1,53],N=[1,61],R=[1,62],S=[1,75],O=[2,413],m=[1,80],D=[1,81],k=[32,267],x=[16,32,43,50,54,55,63,77,79,81,85,95,107,108,109,112,113,120,125,129,140,142,154,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,253,262,264,267,340,344,348,349,352,356,357,358,359,360,361,363,366,367,368,369,371,374,375,376,377,379,380,382,384,385,386,387,388,391,392,405,439],w=[81,262,340,344],_=[63,113,228,340,344,348,349],F=[2,781],v=[1,95],B=[63,113,228,348,349,358],P=[63,113,228,306,340,344,348,349,358],M=[2,778],U=[1,100],K=[16,63,113,228,348,349,358],$=[79,85,241],V=[1,166],G=[1,167],H=[1,122],Q=[1,117],W=[1,128],Y=[1,130],J=[1,132],j=[1,115],X=[1,164],q=[1,168],z=[1,169],Z=[1,133],ee=[1,155],se=[1,156],te=[1,157],ie=[1,158],ae=[1,159],ne=[1,160],re=[1,161],oe=[1,162],ue=[1,148],le=[1,149],ce=[1,142],ye=[1,131],ge=[1,143],Te=[1,118],de=[1,120],pe=[1,119],Ee=[1,123],he=[1,121],fe=[1,163],Ie=[1,165],Ae=[54,55,63,79,81,95,96,107,112,113,228,241,253,267,269,270,271,294,295,296,297,298,299,300,301,302,303,304,306,307,348,349,351,352,355,358,362,370,389,390],Le=[81,85,182,262,340,344],be=[2,1100],Ce=[1,221],Ne=[1,236],Re=[1,237],Se=[1,225],Oe=[1,222],me=[1,223],De=[1,224],ke=[1,231],xe=[1,230],we=[1,229],_e=[1,232],Fe=[1,227],ve=[1,226],Be=[1,220],Pe=[1,228],Me=[1,239],Ue=[1,238],Ke=[32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,253,262,264,340,344,348,349,352,356,357,358,359,368,369,374,376,377,379,380,382,386,392,439],$e=[1,245],Ve=[1,251],Ge=[1,253],He=[32,43,54,55,63,77,79,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,253,262,264,340,344,348,349,352,356,357,358,359,368,369,374,376,377,379,380,382,386,392,439],Qe=[1,258],We=[32,43,50,54,55,63,77,79,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,253,262,264,267,340,344,348,349,352,356,357,358,359,368,369,374,376,377,379,380,382,386,392,439],Ye=[32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,253,262,264,318,340,344,348,349,352,356,357,358,359,368,369,374,376,377,379,380,382,386,392,439],Je=[43,54,55,63,81,85,113,125,140,154,190,201,214,215,216,217,218,219,220,221,222,226,228,232,262,264,340,344,348,349,358],je=[43,50,81,85,95,96,109,182,190,201,214,215,216,217,218,219,220,221,222,226,232,262,264,340,344],Xe=[81,85],qe=[2,46],ze=[1,286],Ze=[43,340,344],es=[43,125,340,344],ss=[43,50,77,79,125,340,344],ts=[43,50],is=[264,340,344],as=[85,182,264,340,344],ns=[32,50,81,85],rs=[174,241],os=[2,1078],us=[81,190,201,226,232,262,340,344],ls=[2,464],cs=[1,314],ys=[96,247,269,270],gs=[81,85,182,190,201,214,215,216,217,218,219,220,221,222,226,232,262,264,340,344],Ts=[43,54,55,63,81,85,95,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,262,264,340,344,348,349,356,358,359,368,369,377,382,386,392,439],ds=[32,43,54,55,63,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,253,262,264,340,344,348,349,352,356,357,358,359,368,369,377,382,386,392,439],ps=[368,369,392],Es=[54,55,63,79,95,96,107,112,113,228,267,269,270,271,294,295,296,297,298,299,300,301,302,303,304,306,307,348,349,351,352,355,358,362,370,389,390],hs=[32,43,50,54,55,63,77,81,85,95,96,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,253,262,264,340,344,348,349,352,356,357,358,359,368,369,374,376,377,379,380,382,386,392,439],fs=[81,201,226,232,262,340,344],Is=[81,85,190,201,226,232,262,264,340,344],As=[1,415],Ls=[1,418],bs=[1,416],Cs=[1,420],Ns=[1,417],Rs=[1,419],Ss=[1,422],Os=[1,421],ms=[81,85,190,201,214,215,216,217,218,219,220,221,222,226,232,262,264,340,344],Ds=[43,54,55,63,81,85,113,190,201,214,215,216,217,218,219,220,221,222,226,228,232,262,264,340,344,348,349,358],ks=[32,43,54,55,63,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,262,264,340,344,348,349,356,358,359,368,369,377,382,386,392,439],xs=[43,54,55,63,81,85,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,262,264,340,344,348,349,356,358,368,369,377,382,386,392,439],ws=[1,440],_s=[81,232],Fs=[1,454],vs=[1,480],Bs=[1,481],Ps=[1,482],Ms=[1,468],Us=[1,469],Ks=[1,470],$s=[1,471],Vs=[1,472],Gs=[1,473],Hs=[1,474],Qs=[1,475],Ws=[1,476],Ys=[1,477],Js=[1,478],js=[1,479],Xs=[81,226,232,262,340,344],qs=[63,79,113,228,348,349,358],zs=[1,514],Zs=[81,85,232],et=[32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,253,262,264,340,344,348,349,352,356,357,358,359,368,369,374,376,377,379,380,382,386,392,439],st=[1,522],tt=[85,340,344],it=[1,538],at=[1,539],nt=[50,81,85,95,96,109],rt=[2,890],ot=[1,542],ut=[81,226,262,340,344],lt=[81,85,190,201,214,215,216,217,218,219,220,221,226,232,262,264,340,344],ct=[2,372],yt=[1,558],gt=[50,81,85,95,96],Tt=[81,85,201,226,232,262,340,344],dt=[359,494],pt=[1,614],Et=[85,109],ht=[81,356,364,389,494],ft=[2,1136],It=[81,85,129,226,262,340,344,382],At=[81,356],Lt=[2,1146],bt=[1,647],Ct=[1,648],Nt=[1,649],Rt=[1,657],St=[1,658],Ot=[2,1151],mt=[1,665],Dt=[372,378],kt=[2,196],xt=[2,197],wt={trace:function(){},yy:{},symbols_:{error:2,DataDefinition_EDIT:3,ALTER:4,CURSOR:5,AlterTable_EDIT:6,AlterView_EDIT:7,CREATE:8,DatabaseDefinition_EDIT:9,TableDefinition_EDIT:10,ViewDefinition_EDIT:11,DROP:12,DropDatabaseStatement_EDIT:13,DropTableStatement_EDIT:14,DropViewStatement_EDIT:15,SET:16,TruncateTableStatement_EDIT:17,UseStatement_EDIT:18,DataDefinition:19,AlterTable:20,AlterView:21,DatabaseDefinition:22,RoleDefinition:23,TableDefinition:24,ViewDefinition:25,DropDatabaseStatement:26,DropRoleStatement:27,DropTableStatement:28,DropViewStatement:29,ALL:30,SetOption:31,"=":32,SetValue:33,TruncateTableStatement:34,UseStatement:35,AlterTableLeftSide:36,PartitionSpec:37,AlterTableLeftSide_EDIT:38,TABLE:39,SchemaQualifiedTableIdentifier:40,SchemaQualifiedTableIdentifier_EDIT:41,AlterViewLeftSide:42,AS:43,QuerySpecification:44,AlterViewLeftSide_EDIT:45,QuerySpecification_EDIT:46,VIEW:47,OptionalComment:48,Comment:49,COMMENT:50,QuotedValue:51,OptionalComment_INVALID:52,Comment_INVALID:53,SINGLE_QUOTE:54,DOUBLE_QUOTE:55,VALUE:56,DatabaseOrSchema:57,OptionalIfNotExists:58,RegularIdentifier:59,DatabaseDefinitionOptionals:60,OptionalIfNotExists_EDIT:61,DatabaseDefinitionOptionals_EDIT:62,ROLE:63,TableDefinitionRightPart:64,TableDefinitionRightPart_EDIT:65,TableIdentifierAndOptionalColumnSpecification:66,OptionalPartitionedBy:67,OptionalAsSelectStatement:68,TableIdentifierAndOptionalColumnSpecification_EDIT:69,PartitionedBy_EDIT:70,OptionalAsSelectStatement_EDIT:71,SchemaQualifiedIdentifier:72,OptionalColumnSpecificationsOrLike:73,OptionalColumnSpecificationsOrLike_EDIT:74,SchemaQualifiedIdentifier_EDIT:75,ParenthesizedColumnSpecificationList:76,LIKE:77,ParenthesizedColumnSpecificationList_EDIT:78,"(":79,ColumnSpecificationList:80,")":81,ColumnSpecificationList_EDIT:82,RightParenthesisOrError:83,ColumnSpecification:84,",":85,ColumnSpecification_EDIT:86,ColumnIdentifier:87,ColumnDataType:88,OptionalColumnOptions:89,ColumnDataType_EDIT:90,ColumnOptions_EDIT:91,ColumnOptions:92,ColumnOption:93,ColumnOption_EDIT:94,NOT:95,NULL:96,PrimitiveType:97,ArrayType:98,MapType:99,StructType:100,ArrayType_INVALID:101,MapType_INVALID:102,StructType_INVALID:103,ArrayType_EDIT:104,MapType_EDIT:105,StructType_EDIT:106,ARRAY:107,"<":108,">":109,AnyCursor:110,GreaterThanOrError:111,MAP:112,STRUCT:113,StructDefinitionList:114,StructDefinitionList_EDIT:115,StructDefinition:116,StructDefinition_EDIT:117,Commas:118,RegularOrBacktickedIdentifier:119,":":120,ColumnDataTypeList:121,ColumnDataTypeList_EDIT:122,ColumnDataTypeListInner_EDIT:123,PartitionedBy:124,PARTITION:125,BY:126,RangeClause:127,RangeClause_EDIT:128,RANGE:129,ParenthesizedColumnList:130,ParenthesizedPartitionValuesList:131,ParenthesizedColumnList_EDIT:132,ParenthesizedPartitionValuesList_EDIT:133,PartitionValueList:134,PartitionValueList_EDIT:135,PartitionValue:136,PartitionValue_EDIT:137,ValueExpression:138,LessThanOrEqualTo:139,VALUES:140,ValueExpression_EDIT:141,COMPARISON_OPERATOR:142,CommitLocations:143,OptionalParenthesizedViewColumnList:144,ParenthesizedViewColumnList_EDIT:145,ParenthesizedViewColumnList:146,ViewColumnList:147,ViewColumnList_EDIT:148,ColumnReference:149,OptionalIfExists:150,OptionalCascade:151,OptionalIfExists_EDIT:152,OptionalPurge:153,PURGE:154,DataManipulation:155,InsertStatement:156,UpdateStatement:157,InsertValuesStatement:158,DataManipulation_EDIT:159,InsertValuesStatement_EDIT:160,UpdateStatement_EDIT:161,INSERT:162,INTO:163,OptionalTable:164,InsertValuesList:165,ParenthesizedRowValuesList:166,InValueList:167,CommonTableExpression:168,SelectStatement:169,OptionalUnions:170,SelectStatement_EDIT:171,OptionalUnions_EDIT:172,CommonTableExpression_EDIT:173,WITH:174,WithQueries:175,WithQueries_EDIT:176,WithQuery:177,WithQuery_EDIT:178,TableSubQueryInner:179,TableSubQueryInner_EDIT:180,FromClause:181,FROM:182,TableReferenceList:183,FromClause_EDIT:184,TableReferenceList_EDIT:185,TableReference:186,TableReference_EDIT:187,OptionalGroupByClause:188,GroupByClause:189,GROUP:190,GroupByColumnList:191,GroupByClause_EDIT:192,GroupByColumnList_EDIT:193,ColumnGroupingSets:194,ColumnGroupingSets_EDIT:195,ColumnGroupingSet_EDIT:196,ColumnReference_EDIT:197,GroupByColumnListPartTwo_EDIT:198,OptionalHavingClause:199,HavingClause:200,HAVING:201,HavingClause_EDIT:202,OptionalJoins:203,Joins:204,Joins_INVALID:205,JoinType:206,TablePrimary:207,OptionalJoinCondition:208,Join_EDIT:209,JoinType_EDIT:210,TablePrimary_EDIT:211,JoinCondition_EDIT:212,Joins_EDIT:213,CROSS:214,JOIN:215,FULL:216,OUTER:217,INNER:218,LEFT:219,SEMI:220,RIGHT:221,ON:222,UsingColList:223,OptionalLimitClause:224,LimitClause:225,LIMIT:226,UnsignedNumericLiteral:227,VARIABLE_REFERENCE:228,LimitClause_EDIT:229,OptionalOrderByClause:230,OrderByClause:231,ORDER:232,OrderByColumnList:233,OrderByClause_EDIT:234,OrderByColumnList_EDIT:235,OrderByIdentifier:236,OrderByIdentifier_EDIT:237,OptionalAscOrDesc:238,ASC:239,DESC:240,SELECT:241,OptionalAllOrDistinct:242,SelectList:243,TableExpression:244,SelectList_EDIT:245,TableExpression_EDIT:246,DISTINCT:247,OptionalSelectConditions:248,OptionalSelectConditions_EDIT:249,SelectSpecification:250,SelectSpecification_EDIT:251,OptionalCorrelationName:252,"*":253,OptionalCorrelationName_EDIT:254,OptionalWhereClause:255,WhereClause_EDIT:256,WhereClause:257,Unions:258,Unions_EDIT:259,UnionClause:260,UnionClause_EDIT:261,UNION:262,NewStatement:263,WHERE:264,SearchCondition:265,SearchCondition_EDIT:266,".":267,SignedInteger:268,TRUE:269,FALSE:270,TRUNCATE:271,OptionalPartitionSpec:272,UserDefinedFunction:273,AggregateFunction:274,OptionalOverClause:275,AnalyticFunction:276,OverClause:277,CastFunction:278,UserDefinedFunction_EDIT:279,AggregateFunction_EDIT:280,OptionalOverClause_EDIT:281,AnalyticFunction_EDIT:282,OverClause_EDIT:283,CastFunction_EDIT:284,OtherAggregateFunction:285,CountFunction:286,SumFunction:287,OtherAggregateFunction_EDIT:288,CountFunction_EDIT:289,SumFunction_EDIT:290,OtherAggregateFunction_Type:291,UdfArgumentList:292,UdfArgumentList_EDIT:293,AVG:294,MAX:295,MIN:296,STDDEV_POP:297,STDDEV_SAMP:298,VAR_POP:299,VAR_SAMP:300,VARIANCE:301,COUNT:302,SUM:303,ANALYTIC:304,ArbitraryFunctionName:305,IF:306,CAST:307,NonParenthesizedValueExpressionPrimary:308,ColumnOrArbitraryFunctionRef:309,ArbitraryFunctionRightPart:310,UnsignedValueSpecification:311,NonParenthesizedValueExpressionPrimary_EDIT:312,ArbitraryFunctionRightPart_EDIT:313,UnsignedValueSpecification_EDIT:314,ColumnOrArbitraryFunctionRef_EDIT:315,ArbitraryFunction:316,ArbitraryFunction_EDIT:317,OVER:318,WindowExpression:319,WindowExpression_EDIT:320,UPDATE:321,TargetTable:322,SetClauseList:323,OptionalFromJoinedTable:324,TargetTable_EDIT:325,SetClauseList_EDIT:326,FromJoinedTable_EDIT:327,TableName:328,TableName_EDIT:329,LocalOrSchemaQualifiedName:330,LocalOrSchemaQualifiedName_EDIT:331,SetClause:332,SetClause_EDIT:333,SetTarget:334,UpdateSource:335,UpdateSource_EDIT:336,USE:337,SqlSyntax:338,SqlStatements:339,EOF:340,SqlAutocomplete:341,SqlStatements_EDIT:342,SqlStatement:343,";":344,SqlStatement_EDIT:345,SetSpecification_EDIT:346,NonReservedKeyword:347,OPTION:348,REGULAR_IDENTIFIER:349,NonStartingToken:350,"!":351,"-":352,"[":353,"]":354,"~":355,AND:356,ARITHMETIC_OPERATOR:357,BACKTICK:358,BETWEEN:359,BIGINT:360,BOOLEAN:361,CASE:362,CHAR:363,CURRENT:364,DATABASE:365,DECIMAL:366,DOUBLE:367,ELSE:368,END:369,EXISTS:370,FLOAT:371,FOLLOWING:372,HDFS_START_QUOTE:373,IN:374,INT:375,IS:376,OR:377,PRECEDING:378,REGEXP:379,RLIKE:380,ROW:381,ROWS:382,SCHEMA:383,SMALLINT:384,STRING:385,THEN:386,TIMESTAMP:387,TINYINT:388,UNSIGNED_INTEGER:389,UNSIGNED_INTEGER_E:390,VARCHAR:391,WHEN:392,PARTIAL_CURSOR:393,FromOrIn:394,SingleQuotedValue:395,SingleQuotedValue_EDIT:396,PARTIAL_VALUE:397,DoubleQuotedValue:398,DoubleQuotedValue_EDIT:399,QuotedValue_EDIT:400,OptionalFromDatabase:401,DatabaseIdentifier:402,OptionalFromDatabase_EDIT:403,DatabaseIdentifier_EDIT:404,CASCADE:405,OptionalInDatabase:406,OptionalPartitionSpec_EDIT:407,PartitionSpec_EDIT:408,PartitionSpecList:409,PartitionSpecList_EDIT:410,RangePartitionSpec:411,RangePartitionComparisonOperator:412,RangePartitionSpec_EDIT:413,ConfigurationName:414,PartialBacktickedOrAnyCursor:415,PartialBacktickedIdentifier:416,PartialBacktickedOrCursor:417,PartialBacktickedOrPartialCursor:418,OptionalParenthesizedColumnList:419,OptionalParenthesizedColumnList_EDIT:420,ColumnList:421,ColumnList_EDIT:422,ParenthesizedSimpleValueList:423,SimpleValueList:424,PartitionExpression:425,PartitionExpression_EDIT:426,RegularOrBackTickedSchemaQualifiedName:427,RegularOrBackTickedSchemaQualifiedName_EDIT:428,BasicIdentifierChain:429,BasicIdentifierChain_EDIT:430,DerivedColumnChain:431,DerivedColumnChain_EDIT:432,PartialBacktickedIdentifierOrPartialCursor:433,OptionalTypeLength:434,OptionalTypePrecision:435,OptionalNot:436,TableSubQuery:437,ValueExpressionList:438,BETWEEN_AND:439,LikeRightPart:440,CaseRightPart:441,TableSubQuery_EDIT:442,ValueExpressionInSecondPart_EDIT:443,LikeRightPart_EDIT:444,CaseRightPart_EDIT:445,EndOrError:446,ValueExpressionList_EDIT:447,"+":448,UnsignedLiteral:449,UnsignedLiteral_EDIT:450,GeneralLiteral:451,GeneralLiteral_EDIT:452,ExactNumericLiteral:453,ApproximateNumericLiteral:454,TruthValue:455,TablePrimaryOrJoinedTable:456,TablePrimaryOrJoinedTable_EDIT:457,JoinedTable:458,JoinedTable_EDIT:459,TableOrQueryName:460,DerivedTable:461,TableOrQueryName_EDIT:462,DerivedTable_EDIT:463,OptionalOnColumn:464,OptionalOnColumn_EDIT:465,PushQueryState:466,PopQueryState:467,SubQuery:468,SubQuery_EDIT:469,QueryExpression:470,QueryExpression_EDIT:471,QueryExpressionBody:472,QueryExpressionBody_EDIT:473,NonJoinQueryExpression:474,NonJoinQueryExpression_EDIT:475,NonJoinQueryTerm:476,NonJoinQueryTerm_EDIT:477,NonJoinQueryPrimary:478,NonJoinQueryPrimary_EDIT:479,SimpleTable:480,SimpleTable_EDIT:481,OptionalPartitionBy:482,OptionalOrderByAndWindow:483,PartitionBy_EDIT:484,OptionalOrderByAndWindow_EDIT:485,PartitionBy:486,OptionalWindowSpec:487,WindowSpec_EDIT:488,WindowSpec:489,RowsOrRange:490,PopLexerState:491,OptionalCurrentOrPreceding:492,OptionalAndFollowing:493,UNBOUNDED:494,OptionalCurrentOrPreceding_EDIT:495,OptionalAndFollowing_EDIT:496,PushHdfsLexerState:497,HdfsPath:498,HDFS_PATH:499,HDFS_END_QUOTE:500,HdfsPath_EDIT:501,IntegerOrUnbounded:502,CaseWhenThenList:503,CaseWhenThenList_EDIT:504,CaseWhenThenListPartTwo:505,CaseWhenThenListPartTwo_EDIT:506,$accept:0,$end:1},terminals_:{2:"error",4:"ALTER",5:"CURSOR",8:"CREATE",12:"DROP",16:"SET",30:"ALL",32:"=",39:"TABLE",43:"AS",47:"VIEW",50:"COMMENT",54:"SINGLE_QUOTE",55:"DOUBLE_QUOTE",56:"VALUE",63:"ROLE",77:"LIKE",79:"(",81:")",85:",",95:"NOT",96:"NULL",107:"ARRAY",108:"<",109:">",112:"MAP",113:"STRUCT",120:":",125:"PARTITION",126:"BY",129:"RANGE",140:"VALUES",142:"COMPARISON_OPERATOR",154:"PURGE",162:"INSERT",163:"INTO",174:"WITH",182:"FROM",190:"GROUP",201:"HAVING",214:"CROSS",215:"JOIN",216:"FULL",217:"OUTER",218:"INNER",219:"LEFT",220:"SEMI",221:"RIGHT",222:"ON",226:"LIMIT",228:"VARIABLE_REFERENCE",232:"ORDER",239:"ASC",240:"DESC",241:"SELECT",247:"DISTINCT",253:"*",262:"UNION",264:"WHERE",267:".",269:"TRUE",270:"FALSE",271:"TRUNCATE",294:"AVG",295:"MAX",296:"MIN",297:"STDDEV_POP",298:"STDDEV_SAMP",299:"VAR_POP",300:"VAR_SAMP",301:"VARIANCE",302:"COUNT",303:"SUM",304:"ANALYTIC",306:"IF",307:"CAST",318:"OVER",321:"UPDATE",337:"USE",340:"EOF",344:";",346:"SetSpecification_EDIT",348:"OPTION",349:"REGULAR_IDENTIFIER",351:"!",352:"-",353:"[",354:"]",355:"~",356:"AND",357:"ARITHMETIC_OPERATOR",358:"BACKTICK",359:"BETWEEN",360:"BIGINT",361:"BOOLEAN",362:"CASE",363:"CHAR",364:"CURRENT",365:"DATABASE",366:"DECIMAL",367:"DOUBLE",368:"ELSE",369:"END",370:"EXISTS",371:"FLOAT",372:"FOLLOWING",373:"HDFS_START_QUOTE",374:"IN",375:"INT",376:"IS",377:"OR",378:"PRECEDING",379:"REGEXP",380:"RLIKE",381:"ROW",382:"ROWS",383:"SCHEMA",384:"SMALLINT",385:"STRING",386:"THEN",387:"TIMESTAMP",388:"TINYINT",389:"UNSIGNED_INTEGER",390:"UNSIGNED_INTEGER_E",391:"VARCHAR",392:"WHEN",393:"PARTIAL_CURSOR",397:"PARTIAL_VALUE",405:"CASCADE",439:"BETWEEN_AND",448:"+",494:"UNBOUNDED",499:"HDFS_PATH",500:"HDFS_END_QUOTE"},productions_:[0,[3,2],[3,1],[3,1],[3,2],[3,1],[3,1],[3,1],[3,2],[3,1],[3,1],[3,1],[3,2],[3,1],[3,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,2],[19,4],[19,1],[19,1],[20,2],[6,1],[6,2],[6,2],[6,3],[36,3],[38,3],[38,3],[21,3],[7,1],[7,2],[7,3],[7,3],[7,3],[42,3],[45,3],[45,3],[48,0],[48,1],[49,2],[52,1],[53,2],[53,2],[53,3],[53,3],[22,3],[22,5],[9,4],[9,3],[9,5],[9,4],[9,6],[60,1],[62,1],[23,3],[24,4],[10,4],[10,4],[10,3],[64,3],[65,3],[65,3],[65,3],[65,3],[66,2],[69,2],[69,2],[73,0],[73,1],[73,2],[74,1],[74,2],[74,2],[76,3],[78,3],[80,1],[80,3],[82,1],[82,3],[82,3],[82,5],[82,2],[82,4],[82,4],[82,6],[84,3],[86,3],[86,3],[86,3],[89,0],[89,1],[92,1],[92,2],[91,1],[91,2],[91,2],[91,3],[93,2],[93,1],[93,1],[94,2],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[90,1],[90,1],[90,1],[98,4],[101,3],[104,4],[104,4],[99,6],[102,3],[105,6],[105,4],[105,6],[105,5],[100,4],[103,3],[106,4],[114,1],[114,3],[115,1],[115,2],[115,3],[115,3],[115,5],[116,4],[117,5],[117,4],[117,4],[117,4],[117,3],[117,3],[121,1],[121,3],[122,1],[122,2],[122,3],[122,3],[122,5],[123,2],[123,2],[123,1],[123,1],[111,1],[111,1],[67,0],[67,1],[124,3],[70,2],[70,3],[70,3],[127,3],[128,2],[128,2],[128,3],[128,3],[128,3],[131,3],[133,3],[133,3],[134,1],[134,3],[135,1],[135,3],[135,5],[135,3],[135,5],[136,6],[136,4],[136,4],[137,2],[137,2],[137,3],[137,4],[137,4],[137,5],[137,6],[137,6],[137,3],[137,4],[137,4],[139,1],[139,1],[68,0],[68,3],[71,3],[71,3],[143,0],[25,8],[11,4],[11,9],[11,3],[11,6],[11,7],[11,8],[11,8],[11,8],[144,0],[144,1],[146,3],[145,3],[147,2],[147,4],[148,3],[148,5],[148,5],[148,7],[26,5],[13,3],[13,3],[13,4],[13,5],[13,5],[13,6],[27,3],[28,5],[14,3],[14,4],[14,5],[14,5],[14,6],[153,0],[153,1],[29,4],[15,4],[15,5],[15,3],[15,4],[15,4],[155,1],[155,1],[156,1],[159,1],[159,1],[158,6],[160,2],[160,4],[160,4],[160,5],[160,6],[165,1],[165,3],[166,3],[164,0],[164,1],[44,3],[44,5],[44,2],[46,4],[46,3],[46,3],[46,1],[46,4],[46,3],[46,2],[46,2],[168,2],[173,2],[175,1],[175,3],[176,1],[176,3],[176,3],[176,5],[177,5],[178,2],[178,5],[178,5],[181,2],[184,2],[184,2],[183,1],[183,3],[185,1],[185,3],[185,3],[185,5],[185,3],[188,0],[188,1],[189,3],[192,3],[192,3],[192,2],[194,0],[194,1],[194,3],[194,3],[195,1],[195,3],[195,3],[195,5],[195,3],[196,1],[196,1],[191,1],[191,3],[193,1],[193,2],[193,3],[193,3],[193,3],[193,4],[193,5],[198,1],[198,2],[198,1],[199,0],[199,1],[200,2],[202,2],[202,2],[203,0],[203,1],[203,1],[204,3],[204,4],[205,1],[205,2],[209,3],[209,1],[209,3],[209,3],[209,3],[213,1],[213,2],[213,2],[213,3],[206,2],[206,2],[206,3],[206,2],[206,1],[206,3],[206,2],[206,3],[206,3],[206,2],[206,3],[206,2],[206,3],[206,3],[206,2],[210,2],[210,3],[210,3],[210,2],[210,3],[210,3],[210,3],[210,3],[210,2],[210,3],[210,3],[210,3],[210,3],[210,2],[208,0],[208,2],[223,1],[223,3],[212,2],[212,2],[224,0],[224,1],[225,2],[225,4],[225,2],[225,4],[229,2],[230,0],[230,1],[231,3],[234,3],[234,2],[233,1],[233,3],[235,1],[235,2],[235,3],[235,4],[235,5],[236,2],[237,2],[237,2],[238,0],[238,1],[238,1],[169,3],[169,4],[171,3],[171,3],[171,4],[171,4],[171,4],[171,5],[171,6],[171,4],[242,0],[242,1],[242,1],[244,2],[246,2],[246,4],[246,3],[243,1],[243,3],[245,1],[245,2],[245,3],[245,3],[245,3],[245,4],[245,3],[245,3],[245,4],[245,4],[245,4],[245,5],[245,5],[250,2],[250,1],[251,2],[251,3],[251,2],[248,5],[249,5],[249,5],[249,5],[249,5],[249,5],[249,6],[249,6],[249,6],[249,6],[249,6],[170,0],[170,1],[172,1],[258,1],[258,2],[259,1],[259,2],[259,2],[259,3],[260,4],[261,3],[261,4],[261,4],[255,0],[255,1],[257,2],[256,2],[256,2],[265,1],[266,1],[31,1],[31,3],[33,1],[33,1],[33,2],[33,1],[33,1],[33,1],[33,1],[34,4],[17,2],[17,4],[17,3],[17,4],[17,5],[17,5],[17,5],[273,2],[273,2],[273,1],[279,1],[279,2],[279,1],[279,2],[279,2],[279,2],[279,1],[274,1],[274,1],[274,1],[280,1],[280,1],[280,1],[285,4],[285,5],[288,5],[288,6],[288,5],[291,1],[291,1],[291,1],[291,1],[291,1],[291,1],[291,1],[291,1],[286,4],[286,3],[286,5],[289,5],[289,6],[289,5],[287,5],[287,3],[290,5],[290,6],[290,5],[276,3],[276,4],[282,4],[282,5],[282,4],[305,1],[305,1],[305,1],[305,1],[278,6],[278,3],[284,6],[284,5],[284,4],[284,6],[284,5],[284,4],[284,6],[284,5],[284,6],[284,5],[308,2],[308,2],[308,1],[308,1],[308,1],[308,1],[312,2],[312,2],[312,1],[312,1],[312,1],[316,2],[316,2],[317,2],[317,2],[310,2],[310,3],[313,3],[313,4],[313,3],[292,1],[292,3],[293,1],[293,3],[293,3],[293,5],[293,3],[293,5],[293,4],[293,3],[293,2],[293,2],[293,4],[275,0],[275,1],[281,1],[277,2],[277,2],[283,2],[157,6],[161,6],[161,6],[161,6],[161,6],[161,7],[161,3],[161,2],[161,2],[161,2],[322,1],[325,1],[328,1],[329,1],[323,1],[323,3],[326,1],[326,3],[326,3],[326,5],[332,3],[333,3],[333,2],[333,1],[334,1],[335,1],[336,1],[324,0],[324,2],[327,2],[327,2],[35,2],[18,2],[338,3],[341,3],[341,3],[263,0],[339,0],[339,1],[339,4],[342,1],[342,4],[342,4],[342,7],[343,1],[343,1],[343,1],[345,1],[345,2],[345,1],[345,1],[345,1],[345,1],[347,1],[347,1],[347,1],[59,1],[59,1],[59,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[350,1],[118,1],[118,2],[110,1],[110,1],[394,1],[394,1],[57,1],[57,1],[395,3],[395,2],[396,2],[398,3],[398,2],[399,2],[51,1],[51,1],[400,1],[400,1],[401,0],[401,2],[403,2],[151,0],[151,1],[150,0],[150,2],[152,2],[58,0],[58,3],[61,2],[61,3],[406,0],[406,2],[406,2],[272,0],[272,1],[407,1],[37,4],[408,4],[411,5],[413,2],[413,3],[413,4],[413,5],[413,5],[413,5],[412,1],[412,1],[412,1],[412,1],[414,1],[414,1],[415,1],[415,1],[417,1],[417,1],[418,1],[418,1],[416,2],[83,1],[83,1],[419,0],[419,1],[420,1],[130,3],[132,3],[132,3],[421,1],[421,3],[422,3],[422,5],[423,3],[424,1],[424,3],[40,1],[40,3],[41,1],[41,3],[41,3],[72,1],[72,3],[75,1],[75,3],[75,3],[402,1],[404,1],[409,1],[409,3],[410,1],[410,3],[410,3],[410,5],[425,3],[426,3],[426,3],[426,3],[426,1],[119,1],[119,3],[119,2],[427,1],[427,3],[428,1],[428,3],[330,1],[330,2],[331,1],[331,2],[149,1],[149,3],[197,1],[429,1],[429,3],[430,3],[430,5],[431,1],[431,3],[432,1],[432,3],[432,5],[432,3],[87,1],[433,1],[433,1],[97,1],[97,1],[97,2],[97,2],[97,1],[97,1],[97,1],[97,1],[97,1],[97,1],[97,1],[97,2],[434,0],[434,3],[435,0],[435,3],[435,5],[138,1],[138,2],[138,2],[138,2],[138,2],[138,4],[138,4],[138,4],[138,6],[138,2],[138,3],[138,3],[138,3],[138,3],[138,3],[138,6],[138,6],[138,5],[138,5],[138,6],[138,5],[138,3],[138,3],[138,3],[138,3],[138,3],[138,2],[138,3],[138,2],[138,3],[141,1],[141,3],[141,2],[141,2],[141,2],[141,2],[141,2],[141,2],[141,2],[141,2],[141,3],[141,4],[141,5],[141,4],[141,4],[141,4],[141,6],[141,6],[141,2],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,4],[141,3],[141,6],[141,6],[141,5],[141,5],[141,6],[141,6],[141,6],[141,6],[141,5],[141,4],[141,5],[141,5],[141,5],[141,5],[141,4],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,2],[141,3],[141,2],[141,3],[141,2],[141,3],[141,2],[141,3],[141,3],[141,4],[141,3],[141,3],[141,3],[438,1],[438,3],[447,1],[447,3],[447,3],[447,5],[447,3],[447,5],[447,4],[447,3],[447,2],[447,2],[447,4],[167,1],[167,3],[309,1],[309,3],[315,1],[268,1],[268,2],[268,2],[311,1],[314,1],[449,1],[449,1],[450,1],[227,1],[227,1],[453,1],[453,2],[453,3],[453,2],[454,2],[454,3],[454,4],[451,1],[451,1],[451,1],[452,1],[452,1],[455,1],[455,1],[436,0],[436,1],[186,1],[187,1],[456,1],[456,1],[457,1],[457,1],[458,2],[459,2],[459,2],[207,2],[207,2],[211,2],[211,2],[211,2],[460,1],[462,1],[461,1],[463,1],[464,0],[464,2],[465,2],[465,2],[466,0],[467,0],[437,3],[437,4],[442,3],[442,3],[179,2],[180,3],[468,1],[469,1],[470,1],[471,1],[472,1],[473,1],[474,1],[475,1],[476,1],[477,1],[478,1],[479,1],[480,1],[481,1],[252,0],[252,1],[252,1],[252,2],[252,2],[254,1],[254,1],[254,2],[254,2],[254,2],[319,4],[320,4],[320,4],[320,5],[320,7],[482,0],[482,1],[486,3],[484,2],[484,3],[484,3],[483,0],[483,2],[485,1],[485,3],[485,2],[487,0],[487,1],[489,5],[489,5],[488,2],[488,6],[488,5],[488,5],[488,5],[488,4],[491,0],[497,0],[498,3],[501,5],[501,4],[501,3],[501,3],[501,2],[490,1],[490,1],[492,0],[492,2],[492,2],[495,2],[495,2],[493,0],[493,3],[493,3],[496,2],[496,3],[496,3],[502,1],[502,1],[443,3],[443,3],[443,3],[440,2],[440,2],[440,2],[444,2],[444,2],[444,2],[444,2],[444,2],[444,2],[441,2],[441,4],[445,2],[445,4],[445,4],[445,3],[445,4],[445,3],[445,4],[445,4],[445,3],[445,4],[445,3],[446,1],[446,1],[503,1],[503,2],[504,1],[504,2],[504,3],[504,3],[504,2],[505,4],[506,2],[506,3],[506,4],[506,4],[506,3],[506,3],[506,4],[506,2],[506,3],[506,2],[506,3],[506,3],[506,4],[506,3],[506,4],[506,4],[506,5],[506,4],[506,3]],performAction:function(e,s,t,i,a,n,r){var o=n.length-1;switch(a){case 1:wt.suggestKeywords(["TABLE","VIEW"]);break;case 4:case 8:wt.suggestKeywords(["DATABASE","ROLE","SCHEMA","TABLE","VIEW"]);break;case 12:wt.suggestSetOptions();break;case 34:case 43:case 238:case 242:case 480:case 600:wt.addTablePrimary(n[o]);break;case 35:case 233:wt.yy.result.suggestTables&&(wt.yy.result.suggestTables.onlyTables=!0);break;case 36:wt.suggestTables({onlyTables:!0}),wt.suggestDatabases({appendDot:!0});break;case 39:case 280:wt.suggestKeywords(["AS"]);break;case 41:case 200:case 209:case 281:case 636:case 1083:wt.suggestKeywords(["SELECT"]);break;case 44:case 243:wt.yy.result.suggestTables&&(wt.yy.result.suggestTables.onlyViews=!0);break;case 45:wt.suggestTables({onlyViews:!0}),wt.suggestDatabases({appendDot:!0});break;case 55:wt.addNewDatabaseLocation(r[o-1],[{name:n[o-1]}]);break;case 56:case 66:n[o-1]||wt.suggestKeywords(["IF NOT EXISTS"]);break;case 58:n[o-2]||wt.suggestKeywords(["IF NOT EXISTS"]),wt.addNewDatabaseLocation(r[o],[{name:n[o]}]);break;case 59:wt.addNewDatabaseLocation(r[o],[{name:n[o]}]);break;case 60:wt.addNewDatabaseLocation(r[o-2],[{name:n[o-2]}]);break;case 61:n[o]||wt.suggestKeywords(["COMMENT"]);break;case 72:var u=[];n[o-2]||n[o-1]?(n[o-1]||u.push({value:"PARTITIONED BY",weight:12}),u.push({value:"AS",weight:1})):u.push({value:"LIKE",weight:1}),u.length>0&&wt.suggestKeywords(u);break;case 73:wt.addNewTableLocation(r[o-1],n[o-1],n[o]),this.$=n[o];break;case 78:this.$=[];break;case 80:case 597:case 617:case 830:wt.suggestTables(),wt.suggestDatabases({appendDot:!0});break;case 82:case 218:case 220:case 262:case 432:case 565:case 568:case 763:case 766:case 852:case 905:case 1080:this.$=n[o-1];break;case 84:case 273:this.$=[n[o]];break;case 85:this.$=n[o-2].concat(n[o]);break;case 90:case 92:wt.checkForKeywords(n[o-1]);break;case 91:case 93:wt.checkForKeywords(n[o-3]);break;case 94:this.$=n[o-2],this.$.type=n[o-1];u=[];n[o].comment||u.push("COMMENT"),u.length>0&&(this.$.suggestKeywords=u);break;case 95:case 122:case 128:case 129:case 142:case 145:case 154:case 156:wt.suggestKeywords(wt.getColumnDataTypeKeywords());break;case 98:this.$={};break;case 100:this.$={},this.$[n[o]]=!0;break;case 101:n[o-1][n[o]]=!0;break;case 106:case 107:this.$="null";break;case 108:this.$="comment";break;case 109:wt.suggestKeywords(["NULL"]);break;case 127:wt.suggestKeywords(wt.getTypeKeywords());break;case 141:case 144:wt.suggestKeywords(["COMMENT"]);break;case 163:case 1118:wt.suggestKeywords(["BY"]);break;case 164:wt.suggestKeywords(["RANGE"]);break;case 173:case 178:case 179:wt.suggestKeywords(["PARTITION"]);break;case 185:wt.suggestKeywords(["VALUE","VALUES"]);break;case 186:n[o].endsWithLessThanOrEqual&&wt.suggestKeywords(["VALUES"]);break;case 187:case 190:case 193:wt.suggestKeywords(["<","<="]);break;case 188:case 795:case 798:wt.suggestKeywords(["VALUES"]);break;case 191:case 194:wt.suggestFunctions();break;case 202:wt.commitLocations();break;case 204:n[o-1]||wt.suggestKeywords(["IF NOT EXISTS"]),wt.suggestDatabases({appendDot:!0});break;case 205:n[o-6]||wt.suggestKeywords(["IF NOT EXISTS"]);break;case 208:u=[{value:"AS",weight:1}];n[o-1]||u.push({value:"COMMENT",weight:3}),wt.suggestKeywords(u);break;case 215:n[o-1]||wt.suggestKeywords(["COMMENT"]);break;case 219:case 221:this.$=n[o-3];break;case 225:n[o-1]||wt.suggestKeywords(["IF EXISTS"]),wt.suggestDatabases();break;case 226:wt.suggestKeywords(["CASCADE"]);break;case 228:n[o-3]||wt.suggestKeywords(["IF EXISTS"]);break;case 230:case 485:wt.addTablePrimary(n[o-1]);break;case 232:n[o-1]||wt.suggestKeywords(["IF EXISTS"]),wt.suggestTables({onlyTables:!0}),wt.suggestDatabases({appendDot:!0});break;case 235:wt.addTablePrimary(n[o-2]),n[o-1]||wt.suggestKeywords(["PURGE"]);break;case 239:n[o-1]||wt.suggestKeywords(["IF EXISTS"]),wt.suggestTables({onlyViews:!0}),wt.suggestDatabases({appendDot:!0});break;case 240:wt.addTablePrimary(n[o]),n[o-2]||wt.suggestKeywords(["IF EXISTS"]);break;case 249:n[o-2].owner="insert",wt.addTablePrimary(n[o-2]);break;case 250:wt.suggestKeywords(["INTO"]);break;case 251:n[o-1]||wt.suggestKeywords(["TABLE"]),wt.suggestTables(),wt.suggestDatabases({appendDot:!0});break;case 253:n[o-1].owner="insert",wt.addTablePrimary(n[o-1]),wt.suggestKeywords(["VALUES"]);break;case 261:case 434:this.$=n[o-2];break;case 263:wt.addCommonTableExpressions(n[o-3]);break;case 264:case 265:case 276:wt.addCommonTableExpressions(n[o-2]);break;case 271:case 287:case 311:case 387:case 391:case 429:case 439:case 466:case 616:case 1005:case 1007:case 1062:case 1117:case 1192:this.$=n[o];break;case 274:this.$=n[o-2].concat([n[o]]);break;case 278:wt.addCommonTableExpressions(n[o-4]);break;case 279:wt.addCteAliasLocation(r[o-4],n[o-4]),n[o-1].alias=n[o-4],this.$=n[o-1];break;case 283:this.$={tableReferenceList:n[o]};break;case 284:case 292:wt.suggestTables(),wt.suggestDatabases({appendDot:!0});break;case 295:this.$={valueExpression:n[o]};break;case 296:case 398:wt.suggestSelectListAliases();break;case 297:wt.valueExpressionSuggest(),wt.suggestSelectListAliases(),wt.suggestGroupBys({tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 298:wt.suggestKeywords(["BY"]),wt.suggestGroupBys({prefix:"BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 308:case 611:case 820:case 823:case 824:case 849:case 850:case 871:case 874:wt.suggestColumns();break;case 313:case 314:case 320:case 321:case 848:case 1076:case 1119:wt.valueExpressionSuggest();break;case 325:wt.valueExpressionSuggest(),wt.suggestAggregateFunctions(),wt.suggestSelectListAliases(!0);break;case 326:wt.suggestAggregateFunctions(),wt.suggestSelectListAliases(!0);break;case 330:n[o]&&n[o].valueExpression?this.$=n[o].valueExpression:this.$={},this.$.joinType=n[o-2],n[o].noJoinCondition&&(this.$.suggestJoinConditions={prependOn:!0,tablePrimaries:wt.yy.latestTablePrimaries.concat()}),n[o].suggestKeywords&&(this.$.suggestKeywords=n[o].suggestKeywords),wt.yy.latestTablePrimaries.length>0&&(wt.yy.latestTablePrimaries[wt.yy.latestTablePrimaries.length-1].join=!0);break;case 331:n[o]&&n[o].valueExpression?this.$=n[o].valueExpression:this.$={},this.$.joinType=n[o-3],n[o].noJoinCondition&&(this.$.suggestJoinConditions={prependOn:!0,tablePrimaries:wt.yy.latestTablePrimaries.concat()}),n[o].suggestKeywords&&(this.$.suggestKeywords=n[o].suggestKeywords),wt.yy.latestTablePrimaries.length>0&&(wt.yy.latestTablePrimaries[wt.yy.latestTablePrimaries.length-1].join=!0);break;case 332:this.$={joinType:n[o]};break;case 333:this.$={joinType:n[o-1]};break;case 334:n[o-2].suggestKeywords&&wt.suggestKeywords(n[o-2].suggestKeywords);break;case 335:n[o].suggestKeywords&&wt.suggestKeywords(n[o].suggestKeywords);break;case 338:if(wt.yy.latestTablePrimaries.length>0){var l=wt.yy.latestTablePrimaries.length-1,c=[];do{(E=wt.yy.latestTablePrimaries[l]).subQueryAlias||c.unshift(E.alias?{identifierChain:E.identifierChain,alias:E.alias}:{identifierChain:E.identifierChain}),l--}while(l>=0&&E.join&&!E.subQueryAlias);c.length>0&&wt.suggestJoins({prependJoin:!1,joinType:n[o-2],tables:c})}wt.suggestTables(),wt.suggestDatabases({appendDot:!0});break;case 343:this.$="CROSS JOIN";break;case 344:this.$="FULL JOIN";break;case 345:this.$="FULL OUTER JOIN";break;case 346:this.$="INNER JOIN";break;case 347:this.$="JOIN";break;case 348:this.$="LEFT INNER JOIN";break;case 349:this.$="LEFT JOIN";break;case 350:this.$="LEFT OUTER JOIN";break;case 351:this.$="LEFT SEMI JOIN";break;case 352:this.$="OUTER JOIN";break;case 353:case 355:this.$="RIGHT OUTER JOIN";break;case 354:this.$="RIGHT JOIN";break;case 356:this.$="RIGHT SEMI JOIN";break;case 357:this.$="SEMI JOIN";break;case 358:case 360:case 361:case 363:case 364:case 365:case 366:case 368:case 369:case 370:case 371:this.$={suggestKeywords:["JOIN"]};break;case 359:case 362:case 367:this.$={suggestKeywords:["OUTER"]};break;case 372:this.$={noJoinCondition:!0,suggestKeywords:["ON"]};break;case 373:this.$={valueExpression:n[o]};break;case 377:wt.valueExpressionSuggest(),wt.suggestJoinConditions({prependOn:!1});break;case 384:wt.suggestKeywords([{value:"10",weight:1e4},{value:"100",weight:1e4},{value:"1000",weight:1e4},{value:"5000",weight:1e4},{value:"10000",weight:1e4}]);break;case 388:n[o].emptyOrderBy&&wt.suggestOrderBys({tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 389:wt.suggestKeywords(["BY"]),wt.suggestOrderBys({prefix:"BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 393:this.$={emptyOrderBy:!1},wt.valueExpressionSuggest(),wt.suggestAnalyticFunctions(),wt.suggestSelectListAliases();break;case 394:case 395:case 396:this.$={emptyOrderBy:!1};break;case 397:this.$=wt.mergeSuggestKeywords(n[o]);break;case 399:this.$={emptyOrderBy:!0},wt.valueExpressionSuggest(),wt.suggestAnalyticFunctions(),wt.suggestSelectListAliases();break;case 400:this.$={suggestKeywords:["ASC","DESC"]};break;case 403:wt.addClauseLocation("selectList",wt.firstDefined(n[o-1],r[o-1],n[o-2],r[o-2]),r[o]),this.$={selectList:n[o]};break;case 404:wt.addClauseLocation("selectList",wt.firstDefined(n[o-2],r[o-2],n[o-3],r[o-3]),r[o-1]),this.$={selectList:n[o-1],tableExpression:n[o]};break;case 405:if(wt.addClauseLocation("selectList",wt.firstDefined(n[o-1],r[o-1],n[o-2],r[o-2]),r[o]),n[o].cursorAtStart){u=wt.getSelectListKeywords();n[o-1]||(u=u.concat(wt.SELECT_FIRST_OPTIONAL_KEYWORDS)),wt.suggestKeywords(u)}else wt.checkForSelectListKeywords(n[o]);n[o].suggestFunctions&&wt.suggestFunctions(),n[o].suggestColumns&&wt.suggestColumns({identifierChain:[],source:"select"}),n[o].suggestTables&&wt.suggestTables({prependQuestionMark:!0,prependFrom:!0}),n[o].suggestDatabases&&wt.suggestDatabases({prependQuestionMark:!0,prependFrom:!0,appendDot:!0}),!n[o].suggestAggregateFunctions||n[o-1]&&"ALL"!==n[o-1]||(wt.suggestAggregateFunctions(),wt.suggestAnalyticFunctions());break;case 406:wt.addClauseLocation("selectList",wt.firstDefined(n[o-1],r[o-1],n[o-2],r[o-2]),r[o],!0);u=wt.getSelectListKeywords();n[o-1]&&"ALL"!==n[o-1]||(wt.suggestAggregateFunctions(),wt.suggestAnalyticFunctions()),n[o-1]||(u=u.concat(wt.SELECT_FIRST_OPTIONAL_KEYWORDS)),wt.suggestKeywords(u),wt.suggestFunctions(),wt.suggestColumns({identifierChain:[],source:"select"}),wt.suggestTables({prependQuestionMark:!0,prependFrom:!0}),wt.suggestDatabases({prependQuestionMark:!0,prependFrom:!0,appendDot:!0});break;case 407:wt.addClauseLocation("selectList",wt.firstDefined(n[o-2],r[o-2],n[o-3],r[o-3]),r[o-1]);break;case 408:wt.addClauseLocation("selectList",wt.firstDefined(n[o-2],r[o-2],n[o-3],r[o-3]),r[o-1]),wt.selectListNoTableSuggest(n[o-1],n[o-2]),wt.yy.result.suggestColumns&&(wt.yy.result.suggestColumns.source="select");break;case 409:wt.addClauseLocation("selectList",wt.firstDefined(n[o-2],r[o-2],n[o-3],r[o-3]),r[o-1],!0);u=wt.getSelectListKeywords();n[o-2]&&"ALL"!==n[o-2]||(wt.suggestAggregateFunctions(),wt.suggestAnalyticFunctions()),n[o-2]||(u=u.concat(wt.SELECT_FIRST_OPTIONAL_KEYWORDS)),wt.suggestKeywords(u),wt.suggestFunctions(),wt.suggestColumns({identifierChain:[],source:"select"}),wt.suggestTables({prependQuestionMark:!0,prependFrom:!0}),wt.suggestDatabases({prependQuestionMark:!0,prependFrom:!0,appendDot:!0});break;case 410:wt.addClauseLocation("selectList",wt.firstDefined(n[o-3],r[o-3],n[o-4],r[o-4]),r[o-2]),wt.checkForSelectListKeywords(n[o-2]);break;case 411:wt.addClauseLocation("selectList",wt.firstDefined(n[o-4],r[o-4],n[o-5],r[o-5]),r[o-3]),wt.checkForSelectListKeywords(n[o-3]);break;case 412:wt.addClauseLocation("selectList",wt.firstDefined(n[o-2],r[o-2],n[o-3],r[o-3]),r[o-1]),wt.checkForSelectListKeywords(n[o-1]);u=["FROM"];wt.yy.result.suggestKeywords&&(u=wt.yy.result.suggestKeywords.concat(u)),wt.suggestKeywords(u),wt.suggestTables({prependFrom:!0}),wt.suggestDatabases({prependFrom:!0,appendDot:!0});break;case 416:case 417:wt.addClauseLocation("whereClause",r[o-1],n[o].whereClauseLocation),wt.addClauseLocation("limitClause",n[o].limitClausePreceding||r[o-1],n[o].limitClauseLocation);break;case 418:u=[];if(wt.addClauseLocation("whereClause",r[o-3],n[o-1].whereClauseLocation),wt.addClauseLocation("limitClause",n[o-2].limitClausePreceding||r[o-3],n[o-2].limitClauseLocation),n[o-3]&&(void 0===n[o-3].tableReferenceList.hasJoinCondition||n[o-3].tableReferenceList.hasJoinCondition||u.push({value:"ON",weight:3}),n[o-3].suggestKeywords&&(u=wt.createWeightedKeywords(n[o-3].suggestKeywords,3)),n[o-3].tableReferenceList.suggestJoinConditions&&wt.suggestJoinConditions(n[o-3].tableReferenceList.suggestJoinConditions),n[o-3].tableReferenceList.suggestJoins&&wt.suggestJoins(n[o-3].tableReferenceList.suggestJoins),n[o-3].tableReferenceList.suggestKeywords&&(u=u.concat(wt.createWeightedKeywords(n[o-3].tableReferenceList.suggestKeywords,3))),u.forEach((function(e){"TABLESAMPLE"===e.value&&(e.weight=1.1)})),n[o-3].tableReferenceList.types)){var y=wt.getValueExpressionKeywords(n[o-3].tableReferenceList);u=u.concat(y.suggestKeywords),y.suggestColRefKeywords&&(wt.suggestColRefKeywords(y.suggestColRefKeywords),wt.addColRefIfExists(n[o-3].tableReferenceList))}if(n[o-1].empty&&n[o]&&"JOIN"===n[o].joinType.toUpperCase())return u=u.concat(["FULL","FULL OUTER","INNER","LEFT","LEFT OUTER","RIGHT","RIGHT OUTER"]),void wt.suggestKeywords(u);n[o-1].suggestKeywords&&(u=u.concat(wt.createWeightedKeywords(n[o-1].suggestKeywords,2))),n[o-1].suggestFilters&&wt.suggestFilters(n[o-1].suggestFilters),n[o-1].suggestGroupBys&&wt.suggestGroupBys(n[o-1].suggestGroupBys),n[o-1].suggestOrderBys&&wt.suggestOrderBys(n[o-1].suggestOrderBys),n[o-1].empty&&u.push({value:"UNION",weight:2.11}),u=u.concat([{value:"FULL JOIN",weight:1},{value:"FULL OUTER JOIN",weight:1},{value:"INNER JOIN",weight:1},{value:"JOIN",weight:1},{value:"LEFT JOIN",weight:1},{value:"LEFT OUTER JOIN",weight:1},{value:"RIGHT JOIN",weight:1},{value:"RIGHT OUTER JOIN",weight:1}]),wt.suggestKeywords(u);break;case 419:if(!n[o-1])return wt.addClauseLocation("whereClause",r[o-2]),void wt.addClauseLocation("limitClause",r[o-2]);wt.addClauseLocation("whereClause",r[o-2],n[o-1].whereClauseLocation),wt.addClauseLocation("limitClause",n[o-1].limitClausePreceding||r[o-2],n[o-1].limitClauseLocation);u=[];n[o-1].suggestColRefKeywords&&(wt.suggestColRefKeywords(n[o-1].suggestColRefKeywords),wt.addColRefIfExists(n[o-1])),n[o-1].suggestKeywords&&n[o-1].suggestKeywords.length&&(u=u.concat(wt.createWeightedKeywords(n[o-1].suggestKeywords,2))),n[o-1].cursorAtEnd&&u.push({value:"UNION",weight:2.11}),wt.suggestKeywords(u);break;case 420:this.$=[n[o]];break;case 421:n[o-2].push(n[o]);break;case 423:case 424:this.$={cursorAtStart:!0,suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 426:wt.checkForSelectListKeywords(n[o-2]);break;case 427:wt.checkForSelectListKeywords(n[o-3]);break;case 428:this.$={suggestKeywords:wt.getSelectListKeywords(),suggestTables:!0,suggestDatabases:!0,suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 430:case 431:case 433:this.$={suggestKeywords:wt.getSelectListKeywords(),suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 435:n[o]?(wt.addColumnAliasLocation(n[o].location,n[o].alias,r[o-1]),this.$={valueExpression:n[o-1],alias:n[o].alias},wt.yy.selectListAliases||(wt.yy.selectListAliases=[]),wt.yy.selectListAliases.push(n[o-1].function&&n[o-1].types&&n[o-1].types.length&&"UDFREF"===n[o-1].types[0]?{name:n[o].alias,udfRef:n[o-1].function,types:n[o-1].types}:{name:n[o].alias,types:n[o-1].types||["T"]})):this.$={valueExpression:n[o-1]};break;case 436:wt.addAsteriskLocation(r[o],[{asterisk:!0}]),this.$={asterisk:!0};break;case 437:n[o]&&wt.addColumnAliasLocation(n[o].location,n[o].alias,r[o-1]);break;case 438:wt.suggestFunctions(),wt.suggestColumns(),wt.addColumnAliasLocation(r[o],n[o],r[o-2]),this.$={suggestAggregateFunctions:!0};break;case 440:(u=wt.getKeywordsForOptionalsLR([n[o-4],n[o-3],n[o-2],n[o-1],n[o]],[{value:"WHERE",weight:7},{value:"GROUP BY",weight:6},{value:"HAVING",weight:5},{value:"ORDER BY",weight:4},{value:"LIMIT",weight:3}],[!0,!0,!0,!0,!0])).length>0?this.$={suggestKeywords:u,empty:!(n[o-4]||n[o-3]||n[o-2]||n[o-1]||n[o])}:this.$={},this.$.whereClauseLocation=n[o-4]?r[o-4]:void 0,this.$.limitClausePreceding=wt.firstDefined(n[o-1],r[o-1],n[o-2],r[o-2],n[o-3],r[o-3],n[o-4],r[o-4]),this.$.limitClauseLocation=n[o]?r[o]:void 0,n[o-4]||n[o-3]||n[o-2]||n[o-1]||n[o]||(this.$.suggestFilters={prefix:"WHERE",tablePrimaries:wt.yy.latestTablePrimaries.concat()}),n[o-3]||n[o-2]||n[o-1]||n[o]||(this.$.suggestGroupBys={prefix:"GROUP BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()}),n[o-1]||n[o]||(this.$.suggestOrderBys={prefix:"ORDER BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 441:wt.yy.result.suggestColumns&&(wt.yy.result.suggestColumns.source="where");break;case 442:wt.yy.result.suggestColumns&&(wt.yy.result.suggestColumns.source="group by");break;case 444:wt.yy.result.suggestColumns&&(wt.yy.result.suggestColumns.source="order by");break;case 446:u=wt.getKeywordsForOptionalsLR([n[o-3],n[o-2],n[o-1],n[o]],[{value:"GROUP BY",weight:8},{value:"HAVING",weight:7},{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0,!0,!0]);n[o-5].suggestKeywords&&(u=u.concat(wt.createWeightedKeywords(n[o-5].suggestKeywords,1))),this.$=wt.getValueExpressionKeywords(n[o-5],u),this.$.cursorAtEnd=!(n[o-3]||n[o-2]||n[o-1]||n[o]),n[o-5].columnReference&&(this.$.columnReference=n[o-5].columnReference),n[o-3]||wt.suggestGroupBys({prefix:"GROUP BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()}),n[o-3]||n[o-2]||n[o-1]||wt.suggestOrderBys({prefix:"ORDER BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()}),this.$.whereClauseLocation=n[o-5]?r[o-5]:void 0,this.$.limitClausePreceding=wt.firstDefined(n[o-1],r[o-1],n[o-2],r[o-2],n[o-3],r[o-3],n[o-5],r[o-5]),this.$.limitClauseLocation=n[o]?r[o]:void 0;break;case 447:u=wt.getKeywordsForOptionalsLR([n[o-2],n[o-1],n[o]],[{value:"HAVING",weight:7},{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0,!0]);n[o-4].suggestKeywords&&(u=u.concat(wt.createWeightedKeywords(n[o-4].suggestKeywords,8))),n[o-4].valueExpression?(this.$=wt.getValueExpressionKeywords(n[o-4].valueExpression,u),n[o-4].valueExpression.columnReference&&(this.$.columnReference=n[o-4].valueExpression.columnReference)):this.$={suggestKeywords:u},this.$.cursorAtEnd=!n[o-2]&&!n[o-1]&&!n[o],n[o-2]||n[o-1]||wt.suggestOrderBys({prefix:"ORDER BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()}),this.$.whereClauseLocation=n[o-5]?r[o-5]:void 0,this.$.limitClausePreceding=wt.firstDefined(n[o-1],r[o-1],n[o-2],r[o-2],n[o-4],r[o-4]),this.$.limitClauseLocation=n[o]?r[o]:void 0;break;case 448:u=wt.getKeywordsForOptionalsLR([n[o-1],n[o]],[{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0]);this.$={suggestKeywords:u,cursorAtEnd:!n[o-1]&&!n[o]},n[o-1]||wt.suggestOrderBys({prefix:"ORDER BY",tablePrimaries:wt.yy.latestTablePrimaries.concat()}),this.$.whereClauseLocation=n[o-5]?r[o-5]:void 0,this.$.limitClausePreceding=wt.firstDefined(n[o-1],r[o-1],n[o-3],r[o-3]),this.$.limitClauseLocation=n[o]?r[o]:void 0;break;case 449:u=wt.getKeywordsForOptionalsLR([n[o]],[{value:"LIMIT",weight:3}],[!0]);n[o-2].suggestKeywords&&(u=u.concat(wt.createWeightedKeywords(n[o-2].suggestKeywords,4))),this.$={suggestKeywords:u,cursorAtEnd:!n[o]},this.$.whereClauseLocation=n[o-5]?r[o-5]:void 0,this.$.limitClausePreceding=wt.firstDefined(n[o-2],r[o-2]),this.$.limitClauseLocation=n[o]?r[o]:void 0;break;case 450:this.$={suggestKeywords:[],cursorAtEnd:!0},this.$.whereClauseLocation=n[o-5]?r[o-5]:void 0,this.$.limitClausePreceding=wt.firstDefined(n[o-2],r[o-2],n[o-3],r[o-3],n[o-4],r[o-4],n[o-5],r[o-5]),this.$.limitClauseLocation=r[o-1];break;case 461:wt.suggestKeywords(["ALL","DISTINCT","SELECT"]);break;case 462:wt.suggestKeywords(["ALL","DISTINCT"]);break;case 467:n[o].suggestFilters&&wt.suggestFilters({tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 468:wt.suggestFunctions(),wt.suggestColumns(),wt.suggestKeywords(["EXISTS","NOT EXISTS"]),wt.suggestFilters({tablePrimaries:wt.yy.latestTablePrimaries.concat()});break;case 481:wt.suggestKeywords(["TABLE"]);break;case 482:wt.suggestTables(),wt.suggestDatabases({appendDot:!0}),n[o-1]||wt.suggestKeywords(["IF EXISTS"]);break;case 486:wt.addTablePrimary(n[o-1]),n[o-2]||wt.suggestKeywords(["IF EXISTS"]);break;case 488:n[o]||(n[o-1].suggestKeywords=["OVER"]);break;case 495:wt.suggestKeywords(["OVER"]);break;case 504:this.$={function:n[o-3],types:["UDFREF"]};break;case 505:case 523:wt.addFunctionArgumentLocations(n[o-4],n[o-1].expressions),this.$={function:n[o-4],types:["UDFREF"]};break;case 506:wt.valueExpressionSuggest();u=wt.getSelectListKeywords(!0);n[o-2]||("group_concat"===n[o-4].toLowerCase()?u.push("ALL"):u.push("DISTINCT")),wt.yy.result.suggestKeywords&&(u=wt.yy.result.suggestKeywords.concat(u)),wt.suggestKeywords(u),wt.applyArgumentTypesToSuggestions(n[o-4],1),this.$={function:n[o-4],types:["UDFREF"]};break;case 507:case 521:wt.suggestValueExpressionKeywords(n[o-2].expressions[n[o-2].expressions.length-1].expression),this.$={function:n[o-5],types:["UDFREF"]};break;case 508:if(n[o-1].cursorAtStart){u=wt.getSelectListKeywords(!0);n[o-2]||("group_concat"===n[o-4].toLowerCase()?u.push("ALL"):u.push("DISTINCT")),wt.yy.result.suggestKeywords&&(u=wt.yy.result.suggestKeywords.concat(u)),wt.suggestKeywords(u)}wt.yy.result.suggestFunctions&&!wt.yy.result.suggestFunctions.types&&wt.applyArgumentTypesToSuggestions(n[o-4],n[o-1].activePosition),this.$={function:n[o-4],types:["UDFREF"]};break;case 517:wt.addFunctionArgumentLocations(n[o-3],[{expression:{text:n[o-1]},location:r[o-1]}]),this.$={function:n[o-3],types:["UDFREF"]};break;case 518:case 524:this.$={function:n[o-2],types:["UDFREF"]};break;case 519:wt.addFunctionArgumentLocations(n[o-4],n[o-1].expressions),this.$={function:n[o-4],types:["UDFREF"]};break;case 520:wt.valueExpressionSuggest();u=wt.getSelectListKeywords();n[o-2]||(u.push("DISTINCT"),wt.yy.result.suggestKeywords&&(u=wt.yy.result.suggestKeywords.concat(u))),wt.suggestKeywords(u),this.$={function:n[o-4],types:["UDFREF"]};break;case 522:if(n[o-1].cursorAtStart){u=wt.getSelectListKeywords();n[o-2]||u.push("DISTINCT"),wt.suggestKeywords(u)}this.$={function:n[o-4],types:["UDFREF"]};break;case 525:wt.valueExpressionSuggest(),wt.applyArgumentTypesToSuggestions(n[o-4],1);u=wt.getSelectListKeywords(!0);n[o-2]||u.push("DISTINCT"),wt.yy.result.suggestKeywords&&(u=wt.yy.result.suggestKeywords.concat(u)),wt.suggestKeywords(u),this.$={function:n[o-4],types:["UDFREF"]};break;case 526:wt.suggestValueExpressionKeywords(n[o-2]),this.$={function:n[o-5],types:["UDFREF"]};break;case 527:wt.yy.result.suggestFunctions&&!wt.yy.result.suggestFunctions.types&&wt.applyArgumentTypesToSuggestions(n[o-4],1),this.$={function:n[o-4],types:["UDFREF"]};break;case 528:this.$={function:n[o-2],types:["UDFREF"]};break;case 529:wt.addFunctionArgumentLocations(n[o-3],n[o-1].expressions),this.$={function:n[o-3],expression:n[o-1].expressions[n[o-1].expressions.length-1].expression,types:["UDFREF"]};break;case 530:wt.valueExpressionSuggest(),wt.applyArgumentTypesToSuggestions(n[o-3],1),this.$={function:n[o-3],types:["UDFREF"]};break;case 531:wt.addFunctionArgumentLocations(n[o-4],n[o-2].expressions),wt.suggestValueExpressionKeywords(n[o-2].expressions[n[o-2].expressions.length-1].expression),this.$={function:n[o-4],types:["UDFREF"]};break;case 532:wt.addFunctionArgumentLocations(n[o-3],n[o-1].expressions),wt.applyArgumentTypesToSuggestions(n[o-3],n[o-1].activePosition),this.$={function:n[o-3],types:["UDFREF"]};break;case 537:var g=n[o-3];wt.extractExpressionText(g,n[o-3],n[o-2],n[o-1]),wt.addFunctionArgumentLocations(n[o-5],[{expression:g,location:{first_line:r[o-3].first_line,last_line:r[o-1].last_line,first_column:r[o-3].first_column,last_column:r[o-1].last_column}}]),this.$={types:[n[o-1].toUpperCase()]};break;case 538:case 543:case 544:case 1011:this.$={types:["T"]};break;case 539:wt.valueExpressionSuggest(),this.$={types:[n[o-1].toUpperCase()]};break;case 540:case 541:wt.valueExpressionSuggest(),this.$={types:["T"]};break;case 542:this.$={types:[n[o-1].toUpperCase()]};break;case 545:wt.suggestValueExpressionKeywords(n[o-3],[{value:"AS",weight:2}]),this.$={types:[n[o-1].toUpperCase()]};break;case 546:wt.suggestValueExpressionKeywords(n[o-2],[{value:"AS",weight:2}]),this.$={types:["T"]};break;case 547:case 548:wt.suggestKeywords(wt.getTypeKeywords()),this.$={types:["T"]};break;case 549:var T=n[o-1].chain[n[o-1].chain.length-1].name.toLowerCase();wt.addFunctionArgumentLocations(T,n[o].expressions,n[o-1].chain),n[o-1].lastLoc&&n[o-1].lastLoc.location&&(n[o-1].lastLoc.type="function",n[o-1].lastLoc.function=T,n[o-1].lastLoc.location={first_line:n[o-1].lastLoc.location.first_line,last_line:n[o-1].lastLoc.location.last_line,first_column:n[o-1].lastLoc.location.first_column,last_column:n[o-1].lastLoc.location.last_column-1},n[o-1].lastLoc!==n[o-1].firstLoc?n[o-1].firstLoc.type="database":delete n[o-1].lastLoc.identifierChain),n[o].expressions&&n[o].expressions.length?this.$={function:T,expression:n[o].expressions[n[o].expressions.length-1].expression,types:["UDFREF"]}:this.$={function:T,types:["UDFREF"]};break;case 550:wt.addFunctionLocation(r[o-1],n[o-1]),n[o].expressions&&n[o].expressions.length?this.$={function:n[o-1],expression:n[o].expressions[n[o].expressions.length-1].expression,types:["UDFREF"]}:this.$={function:n[o-1],types:["UDFREF"]};break;case 553:this.$={types:["COLREF"],columnReference:n[o].chain};break;case 554:this.$={types:["NULL"],text:n[o]};break;case 555:T=n[o-1].chain[n[o-1].chain.length-1].name.toLowerCase();wt.addFunctionArgumentLocations(T,n[o].expressions,n[o-1].chain),n[o-1].lastLoc.type="function",n[o-1].lastLoc.function=T,n[o-1].lastLoc.location={first_line:n[o-1].lastLoc.location.first_line,last_line:n[o-1].lastLoc.location.last_line,first_column:n[o-1].lastLoc.location.first_column,last_column:n[o-1].lastLoc.location.last_column-1},n[o-1].lastLoc!==n[o-1].firstLoc?n[o-1].firstLoc.type="database":delete n[o-1].lastLoc.identifierChain,n[o].activePosition&&wt.applyArgumentTypesToSuggestions(T,n[o].activePosition),this.$={function:T,types:["UDFREF"]};break;case 556:case 562:case 563:wt.addFunctionLocation(r[o-1],n[o-1]),wt.addFunctionArgumentLocations(n[o-1],n[o].expressions),n[o].activePosition&&wt.applyArgumentTypesToSuggestions(n[o-1],n[o].activePosition),this.$={function:n[o-1],types:["UDFREF"]};break;case 559:n[o].suggestKeywords?this.$={types:["COLREF"],columnReference:n[o],suggestKeywords:n[o].suggestKeywords}:this.$={types:["COLREF"],columnReference:n[o]};break;case 560:case 561:wt.addFunctionLocation(r[o-1],n[o-1]),wt.addFunctionArgumentLocations(n[o-1],n[o].expressions),n[o].expressions&&n[o].expressions.length?this.$={function:n[o-1],expression:n[o].expressions[n[o].expressions.length-1].expression,types:["UDFREF"]}:this.$={function:n[o-1],types:["UDFREF"]};break;case 566:wt.valueExpressionSuggest(),this.$={activePosition:1,expressions:[{expression:{text:""},location:r[o-1]}]};break;case 567:wt.suggestValueExpressionKeywords(n[o-2].expressions[n[o-2].expressions.length-1].expression),this.$=n[o-3];break;case 569:case 571:this.$={activePosition:1,expressions:[{expression:n[o],location:r[o]}]};break;case 570:case 572:this.$={activePosition:n[o-2].activePosition+1,expressions:n[o-2].expressions.concat([{expression:n[o],location:r[o]}])};break;case 573:this.$={activePosition:1,expressions:[{expression:n[o-2],location:r[o-2]}].concat(n[o].expressions)};break;case 574:this.$={activePosition:n[o-4].activePosition+1,expressions:n[o-4].expressions.concat([{expression:n[o-2],location:r[o-2]}]).concat(n[o].expressions)};break;case 575:wt.valueExpressionSuggest(),this.$={activePosition:n[o-2].activePosition+1,expressions:n[o-2].expressions.concat([{expression:{text:""},location:r[o]}])};break;case 576:wt.valueExpressionSuggest(),this.$={activePosition:n[o-4].activePosition+1,expressions:n[o-4].expressions.concat([{expression:{text:""},location:r[o-2]}]).concat(n[o].expressions)};break;case 577:wt.suggestValueExpressionKeywords(n[o-3].expressions[n[o-3].expressions.length-1].expression),this.$={activePosition:n[o-3].activePosition,expressions:n[o-3].expressions.concat(n[o].expressions)};break;case 578:wt.valueExpressionSuggest(),this.$={cursorAtStart:!0,activePosition:1,expressions:[{expression:{text:""},location:r[o-2]}].concat(n[o].expressions)};break;case 579:wt.valueExpressionSuggest(),this.$={cursorAtStart:!0,activePosition:1,expressions:[{expression:{text:""},location:r[o-1]},{expression:{text:""},location:r[o]}]};break;case 580:wt.valueExpressionSuggest(),this.$={activePosition:2,expressions:[{expression:{text:""},location:r[o-1]},{expression:{text:""},location:r[o]}]};break;case 581:wt.valueExpressionSuggest(),this.$={activePosition:2,expressions:[{expression:{text:""},location:r[o-3]},{expression:{text:""},location:r[o-2]}].concat(n[o].expressions)};break;case 593:wt.suggestKeywords(["WHERE"]);break;case 594:wt.suggestKeywords(["SET"]);break;case 610:wt.suggestKeywords(["="]);break;case 619:wt.yy.cursorFound||(wt.yy.result.useDatabase=n[o]);break;case 620:case 839:wt.suggestDatabases();break;case 622:case 623:return wt.yy.result;case 624:wt.prepareNewStatement();break;case 626:case 628:case 630:wt.addStatementLocation(r[o]);break;case 629:case 631:wt.addStatementLocation(r[o-3]);break;case 635:wt.suggestDdlAndDmlKeywords();break;case 764:case 767:case 853:this.$="";break;case 779:case 782:wt.yy.correlatedSubQuery=!1;break;case 780:case 784:wt.suggestKeywords(["EXISTS"]);break;case 783:wt.suggestKeywords(["NOT EXISTS"]);break;case 794:case 796:case 797:case 799:wt.suggestKeywords(["<","<=","<>","=",">",">="]);break;case 828:case 854:wt.addTableLocation(r[o],[{name:n[o]}]),this.$={identifierChain:[{name:n[o]}]};break;case 829:case 855:wt.addDatabaseLocation(r[o-2],[{name:n[o-2]}]),wt.addTableLocation(r[o],[{name:n[o-2]},{name:n[o]}]),this.$={identifierChain:[{name:n[o-2]},{name:n[o]}]};break;case 831:case 836:wt.suggestDatabases(),this.$={identifierChain:[{name:n[o-2]}]};break;case 832:case 857:wt.suggestTablesOrColumns(n[o-2]);break;case 833:this.$=[{name:n[o]}];break;case 834:this.$=[{name:n[o-2]},{name:n[o-1]}];break;case 835:wt.suggestDatabases({appendDot:!0});break;case 856:wt.suggestTables(),wt.suggestDatabases({prependDot:!0});break;case 859:this.$={identifierChain:n[o-1].identifierChain,alias:n[o]};break;case 862:wt.yy.locations[wt.yy.locations.length-1].type="column";break;case 863:case 1028:wt.addAsteriskLocation(r[o],n[o-2].concat({asterisk:!0}));break;case 865:this.$=[n[o].identifier],wt.yy.firstChainLocation=wt.addUnknownLocation(n[o].location,[n[o].identifier]);break;case 866:wt.yy.firstChainLocation&&(wt.yy.firstChainLocation.firstInChain=!0,delete wt.yy.firstChainLocation),n[o-2].push(n[o].identifier),wt.addUnknownLocation(n[o].location,n[o-2].concat());break;case 867:wt.suggestColumns({identifierChain:n[o-2]}),this.$={suggestKeywords:[{value:"*",weight:1e4}]};break;case 868:wt.suggestColumns({identifierChain:n[o-4]}),this.$={suggestKeywords:[{value:"*",weight:1e4}]};break;case 869:this.$=[n[o].identifier];break;case 870:n[o-2].push(n[o].identifier);break;case 872:wt.suggestColumns({identifierChain:n[o-2]});break;case 873:wt.suggestColumns({identifierChain:n[o-4]});break;case 875:this.$={identifier:{name:n[o]},location:r[o]};break;case 896:case 897:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 898:case 923:this.$=n[o],wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 899:this.$=n[o],n[o].types=["NUMBER"],wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 900:case 901:case 902:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-3],n[o-2],n[o-1],n[o]);break;case 903:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-5],n[o-4],n[o-3],n[o-2],n[o-1],n[o]);break;case 904:this.$={types:["BOOLEAN"]},wt.yy.correlatedSubQuery=!1;break;case 906:case 907:case 908:case 909:wt.addColRefToVariableIfExists(n[o-2],n[o]),this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-2],n[o-1],n[o]);break;case 910:case 911:case 912:case 913:case 943:case 1001:case 1002:this.$={types:["BOOLEAN"]};break;case 914:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-5],n[o-4],n[o-3],n[o-2],n[o-1],n[o]);break;case 915:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-4],n[o-3],n[o-2],n[o-1],n[o]);break;case 916:case 917:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-2],n[o-1],n[o]);break;case 918:case 919:case 920:this.$={types:["NUMBER"]},wt.extractExpressionText(this.$,n[o-2],n[o-1],n[o]);break;case 921:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 922:this.$={types:["BOOLEAN"]},wt.extractExpressionText(this.$,n[o-2],n[o-1],n[o]);break;case 924:this.$=n[o],wt.extractExpressionText(this.$,n[o-2],n[o-1],n[o]);break;case 926:wt.suggestKeywords(["BETWEEN","EXISTS","IN","LIKE","REGEXP","RLIKE"]),this.$={types:["BOOLEAN"]};break;case 927:case 929:this.$={types:["BOOLEAN"],suggestFilters:n[o].suggestFilters};break;case 928:wt.suggestFunctions(),wt.suggestColumns(),wt.suggestKeywords(["EXISTS"]),this.$={types:["BOOLEAN"]};break;case 930:wt.suggestFunctions({types:["BOOLEAN"]}),wt.suggestColumns({types:["BOOLEAN"]}),this.$={types:["BOOLEAN"]};break;case 931:this.$={types:["T"],suggestFilters:n[o].suggestFilters};break;case 932:wt.suggestFunctions(),wt.suggestColumns(),this.$={types:["T"]};break;case 933:n[o].typeSet||wt.applyTypeToSuggestions({types:["NUMBER"]}),this.$={types:["NUMBER"],suggestFilters:n[o].suggestFilters};break;case 934:wt.suggestFunctions({types:["NUMBER"]}),wt.suggestColumns({types:["NUMBER"]}),this.$={types:["NUMBER"]};break;case 935:wt.suggestKeywords(["FALSE","NOT NULL","NOT TRUE","NOT FALSE","NULL","TRUE"]),this.$={types:["BOOLEAN"]};break;case 936:wt.suggestKeywords(["FALSE","NULL","TRUE"]),this.$={types:["BOOLEAN"]};break;case 937:this.$={types:["BOOLEAN"]};break;case 938:case 939:case 940:wt.suggestKeywords(["NOT"]),this.$={types:["BOOLEAN"]};break;case 941:wt.valueExpressionSuggest(n[o-5],n[o-3]?"IS NOT DISTINCT FROM":"IS DISTINCT FROM"),this.$={types:["BOOLEAN"]};break;case 942:this.$={types:["BOOLEAN"],suggestFilters:n[o].suggestFilters};break;case 944:this.$=n[o-1];break;case 945:wt.valueExpressionSuggest(),this.$={types:["T"],typeSet:!0};break;case 946:wt.valueExpressionSuggest(n[o],n[o-1]),wt.applyTypeToSuggestions(n[o]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 947:case 948:case 949:wt.valueExpressionSuggest(n[o],n[o-1]),wt.applyTypeToSuggestions(n[o]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 950:case 951:case 952:case 953:n[o-2].typeSet||(wt.applyTypeToSuggestions(n[o]),wt.addColRefIfExists(n[o])),this.$={types:["BOOLEAN"],suggestFilters:n[o-2].suggestFilters};break;case 954:case 956:wt.valueExpressionSuggest(n[o-2],n[o-1]),wt.applyTypeToSuggestions(n[o-2]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 955:wt.valueExpressionSuggest(n[o-2],n[o-1]),wt.applyTypeToSuggestions(n[o-2]),this.$={types:["BOOLEAN"],typeSet:!0,endsWithLessThanOrEqual:!0};break;case 957:wt.valueExpressionSuggest(n[o-2],n[o-1]),wt.applyTypeToSuggestions(n[o-2]),this.$={types:["BOOLEAN"],typeSet:!0,endsWithLessThanOrEqual:"<="===n[o-1]};break;case 958:case 959:case 960:case 961:n[o].typeSet||(wt.applyTypeToSuggestions(n[o-2]),wt.addColRefIfExists(n[o-2])),this.$={types:["BOOLEAN"],suggestFilters:n[o].suggestFilters};break;case 962:n[o].inValueEdit&&(wt.valueExpressionSuggest(n[o-3],n[o-2]+" "+n[o-1]),wt.applyTypeToSuggestions(n[o-3])),n[o].cursorAtStart&&wt.suggestKeywords(["SELECT"]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 963:n[o].inValueEdit&&(wt.valueExpressionSuggest(n[o-2],n[o-1]),wt.applyTypeToSuggestions(n[o-2])),n[o].cursorAtStart&&wt.suggestKeywords(["SELECT"]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 964:case 965:this.$={types:["BOOLEAN"],suggestFilters:n[o-5].suggestFilters};break;case 966:case 967:this.$={types:["BOOLEAN"],suggestFilters:n[o-4].suggestFilters};break;case 968:n[o-2].types[0]!==n[o].types[0]||n[o-5].typeSet||wt.applyTypeToSuggestions(n[o-2]),this.$={types:["BOOLEAN"],suggestFilters:n[o-5].suggestFilters};break;case 969:n[o-5].types[0]!==n[o].types[0]||n[o-2].typeSet||wt.applyTypeToSuggestions(n[o-5]),this.$={types:["BOOLEAN"],suggestFilters:n[o-2].suggestFilters};break;case 970:n[o-5].types[0]!==n[o-2].types[0]||n[o].typeSet||wt.applyTypeToSuggestions(n[o-5]),this.$={types:["BOOLEAN"],suggestFilters:n[o].suggestFilters};break;case 971:wt.valueExpressionSuggest(n[o-5],n[o-1]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 972:case 978:wt.suggestValueExpressionKeywords(n[o-1],["AND"]),this.$={types:["BOOLEAN"]};break;case 973:wt.valueExpressionSuggest(n[o-3],n[o-2]+" "+n[o-1]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 974:n[o-4].types[0]!==n[o-2].types[0]||n[o-4].typeSet||wt.applyTypeToSuggestions(n[o-4]),this.$={types:["BOOLEAN"],suggestFilters:n[o-4].suggestFilters};break;case 975:n[o-4].types[0]!==n[o-2].types[0]||n[o-2].typeSet||wt.applyTypeToSuggestions(n[o-4]),this.$={types:["BOOLEAN"],suggestFilters:n[o-2].suggestFilters};break;case 976:n[o-4].types[0]!==n[o-2].types[0]||n[o].typeSet||wt.applyTypeToSuggestions(n[o-4]),this.$={types:["BOOLEAN"],suggestFilters:n[o].suggestFilters};break;case 977:wt.valueExpressionSuggest(n[o-4],n[o-1]),wt.applyTypeToSuggestions(n[o-4]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 979:wt.valueExpressionSuggest(n[o-2],n[o-1]),wt.applyTypeToSuggestions(n[o-2]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 980:case 982:case 984:case 986:wt.valueExpressionSuggest(void 0,n[o-1]),this.$={types:["BOOLEAN"],typeSet:!0,suggestFilters:!0};break;case 981:case 985:wt.addColRefIfExists(n[o]),this.$={types:["BOOLEAN"],suggestFilters:n[o-2].suggestFilters};break;case 983:case 987:wt.addColRefIfExists(n[o-2]),this.$={types:["BOOLEAN"],suggestFilters:n[o].suggestFilters};break;case 988:case 989:wt.valueExpressionSuggest(void 0,n[o-1]),wt.applyTypeToSuggestions({types:["NUMBER"]}),this.$={types:["NUMBER"],typeSet:!0};break;case 990:case 991:case 992:n[o-2].typeSet||(wt.applyTypeToSuggestions({types:["NUMBER"]}),wt.addColRefIfExists(n[o])),this.$={types:["NUMBER"],suggestFilters:n[o-2].suggestFilters};break;case 993:case 994:case 995:wt.valueExpressionSuggest(void 0,n[o-1]),wt.applyTypeToSuggestions({types:["NUMBER"]}),this.$={types:["NUMBER"],typeSet:!0};break;case 996:case 997:case 998:n[o].typeSet||(wt.applyTypeToSuggestions({types:["NUMBER"]}),wt.addColRefIfExists(n[o-2])),this.$={types:["NUMBER"],suggestFilters:n[o].suggestFilters};break;case 999:this.$={types:["BOOLEAN"],suggestFilters:n[o-1].suggestFilters};break;case 1e3:this.$={types:["BOOLEAN"],suggestFilters:n[o-2].suggestFilters};break;case 1003:wt.valueExpressionSuggest(void 0,n[o]),wt.applyTypeToSuggestions({types:["STRING"]}),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1004:wt.valueExpressionSuggest(void 0,n[o-1]+" "+n[o]),wt.applyTypeToSuggestions({types:["STRING"]}),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1006:wt.valueExpressionSuggest(),wt.suggestKeywords(["WHEN"]),this.$={types:["T"],typeSet:!0};break;case 1008:wt.suggestValueExpressionKeywords(n[o-2],["WHEN"]),this.$={types:["T"],typeSet:!0};break;case 1009:this.$=n[o],this.$.suggestFilters=n[o-1].suggestFilters;break;case 1010:this.$={types:["T"],suggestFilters:n[o-1].suggestFilters};break;case 1012:case 1014:n[o].position=1;break;case 1013:n[o].position=n[o-2].position+1,this.$=n[o];break;case 1015:n[o-2].position+=1;break;case 1016:n[o-2].position=1;break;case 1017:n[o-4].position+=1;break;case 1018:wt.valueExpressionSuggest(),n[o-2].position+=1;break;case 1019:wt.valueExpressionSuggest(),n[o-4].position+=1;break;case 1020:wt.suggestValueExpressionKeywords(n[o-3]);break;case 1021:case 1022:wt.valueExpressionSuggest(),this.$={cursorAtStart:!0,position:1};break;case 1023:case 1024:wt.valueExpressionSuggest(),this.$={position:2};break;case 1027:var d=wt.yy.locations[wt.yy.locations.length-1];"variable"!==d.type&&(d.type="column");var p=wt.yy.locations[wt.yy.locations.length-n[o].length];this.$={chain:n[o],firstLoc:p,lastLoc:d};break;case 1034:wt.suggestValues(n[o]);break;case 1035:this.$={types:["NUMBER"],text:n[o]};break;case 1041:case 1043:case 1044:this.$=n[o-1]+n[o];break;case 1042:case 1045:this.$=n[o-2]+n[o-1]+n[o];break;case 1046:this.$=n[o-3]+n[o-2]+n[o-1]+n[o];break;case 1047:/\$\{[^}]*\}/.test(n[o])?(wt.addVariableLocation(r[o],n[o]),this.$={types:["STRING"],columnReference:[{name:n[o]}],text:"'"+n[o]+"'"}):this.$={types:["STRING"]};break;case 1048:/\$\{[^}]*\}/.test(n[o])?(wt.addVariableLocation(r[o],n[o]),this.$={types:["STRING"],columnReference:[{name:n[o]}],text:'"'+n[o]+'"'}):this.$={types:["STRING"],text:'"'+n[o]+'"'};break;case 1049:this.$={types:["BOOLEAN"],text:n[o]};break;case 1050:this.$={partialQuote:"'",missingEndQuote:wt.yy.missingEndQuote};break;case 1051:this.$={partialQuote:'"',missingEndQuote:wt.yy.missingEndQuote};break;case 1058:if(this.$=n[o],wt.yy.latestTablePrimaries.length>0){l=wt.yy.latestTablePrimaries.length-1,c=[];do{var E;(E=wt.yy.latestTablePrimaries[l]).subQueryAlias||c.unshift(E.alias?{identifierChain:E.identifierChain,alias:E.alias}:{identifierChain:E.identifierChain}),l--}while(l>=0&&E.join&&!E.subQueryAlias);c.length>0&&(this.$.suggestJoins={prependJoin:!0,tables:c})}break;case 1065:this.$={primary:n[o-1]},n[o-1].identifierChain&&(n[o]&&(n[o-1].alias=n[o].alias,wt.addTableAliasLocation(n[o].location,n[o].alias,n[o-1].identifierChain)),wt.addTablePrimary(n[o-1]));u=[];n[o]?n[o].suggestKeywords&&(u=n[o].suggestKeywords):u=["AS"],u.length>0&&(this.$.suggestKeywords=u);break;case 1066:this.$={primary:n[o-1]},n[o]&&(this.$.primary.alias=n[o].alias,wt.addTablePrimary({subQueryAlias:n[o].alias}),wt.addSubqueryAliasLocation(n[o].location,n[o].alias,n[o-1].identifierChain));u=[];n[o]||(u=["AS"]),u.length>0&&(this.$.suggestKeywords=u);break;case 1067:n[o]&&wt.addTableAliasLocation(n[o].location,n[o].alias,n[o-1].identifierChain);break;case 1068:n[o]&&(wt.addTablePrimary({subQueryAlias:n[o].alias}),wt.addSubqueryAliasLocation(n[o].location,n[o].alias));break;case 1078:wt.pushQueryState();break;case 1079:wt.popQueryState();break;case 1081:n[o-1]&&(n[o-2].alias=n[o-1].alias,wt.addTablePrimary({subQueryAlias:n[o-1].alias}),wt.addSubqueryAliasLocation(n[o-1].location,n[o-1].alias,n[o-2].identifierChain)),this.$=n[o-2];break;case 1084:var h=wt.getSubQuery(n[o]);h.columns.forEach((function(e){wt.expandIdentifierChain({wrapper:e}),delete e.linked})),wt.popQueryState(h),this.$=h;break;case 1101:case 1102:case 1103:case 1104:this.$={alias:n[o],location:r[o]};break;case 1111:case 1112:wt.yy.result.suggestFunctions&&wt.suggestAggregateFunctions();break;case 1113:n[o-2]||n[o-1]?n[o-2]||wt.suggestKeywords(["PARTITION BY"]):wt.suggestKeywords([{value:"PARTITION BY",weight:2},{value:"ORDER BY",weight:1}]);break;case 1114:n[o-1]?wt.suggestValueExpressionKeywords(n[o-3]):wt.suggestValueExpressionKeywords(n[o-3],[{value:"ORDER BY",weight:2}]);break;case 1123:delete wt.yy.result.suggestAnalyticFunctions;break;case 1124:u=[];n[o-2].suggestKeywords&&(u=wt.createWeightedKeywords(n[o-2].suggestKeywords,2)),n[o]||(u=u.concat([{value:"RANGE BETWEEN",weight:1},{value:"ROWS BETWEEN",weight:1}])),wt.suggestKeywords(u);break;case 1130:wt.suggestKeywords(["BETWEEN"]);break;case 1131:n[o-2]||n[o-1]?n[o-1]||wt.suggestKeywords(["AND"]):wt.suggestKeywords(["CURRENT ROW","UNBOUNDED PRECEDING"]);break;case 1136:_t.popState();break;case 1137:_t.begin("hdfs");break;case 1139:wt.suggestHdfs({path:n[o-3]});break;case 1140:wt.suggestHdfs({path:n[o-2]});break;case 1141:wt.suggestHdfs({path:n[o-1]});break;case 1142:case 1143:wt.suggestHdfs({path:""});break;case 1149:wt.suggestKeywords(["PRECEDING"]);break;case 1150:case 1155:wt.suggestKeywords(["ROW"]);break;case 1154:wt.suggestKeywords(["CURRENT ROW","UNBOUNDED FOLLOWING"]);break;case 1156:wt.suggestKeywords(["FOLLOWING"]);break;case 1160:this.$={inValueEdit:!0};break;case 1161:this.$={inValueEdit:!0,cursorAtStart:!0};break;case 1162:case 1163:case 1164:this.$={suggestKeywords:["NOT"]},wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 1168:case 1169:case 1170:wt.suggestFunctions({types:["STRING"]}),wt.suggestColumns({types:["STRING"]}),this.$={types:["BOOLEAN"]};break;case 1171:this.$=wt.findCaseType(n[o-1]),wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 1172:n[o-3].caseTypes.push(n[o-1]),this.$=wt.findCaseType(n[o-3]),wt.extractExpressionText(this.$,n[o-3],n[o-2],n[o-1],n[o]);break;case 1173:this.$=wt.findCaseType(n[o-1]);break;case 1174:wt.suggestValueExpressionKeywords(n[o-1],["END"]),n[o-3].caseTypes.push(n[o-1]),this.$=wt.findCaseType(n[o-3]);break;case 1175:n[o-3].caseTypes.push(n[o-1]),this.$=wt.findCaseType(n[o-3]);break;case 1176:this.$=wt.findCaseType(n[o-2]);break;case 1177:"end"!==n[o].toLowerCase()?wt.suggestValueExpressionKeywords(n[o-3],[{value:"END",weight:3},{value:"ELSE",weight:2},{value:"WHEN",weight:1}]):wt.suggestValueExpressionKeywords(n[o-3],[{value:"ELSE",weight:2},{value:"WHEN",weight:1}]),this.$=wt.findCaseType(n[o-3]);break;case 1178:"end"!==n[o].toLowerCase()?wt.suggestValueExpressionKeywords(n[o-2],[{value:"END",weight:3},{value:"ELSE",weight:2},{value:"WHEN",weight:1}]):wt.suggestValueExpressionKeywords(n[o-2],[{value:"ELSE",weight:2},{value:"WHEN",weight:1}]),this.$=wt.findCaseType(n[o-2]);break;case 1179:n[o-3].caseTypes.push(n[o-1]),this.$=wt.findCaseType(n[o-3]),this.$.suggestFilters=n[o-1].suggestFilters;break;case 1180:wt.valueExpressionSuggest(),this.$=wt.findCaseType(n[o-3]);break;case 1181:wt.valueExpressionSuggest(),this.$={types:["T"],typeSet:!0};break;case 1182:wt.valueExpressionSuggest(),wt.suggestKeywords(["WHEN"]),this.$=n[o-1];break;case 1183:wt.valueExpressionSuggest(),wt.suggestKeywords(["WHEN"]),this.$={types:["T"]};break;case 1186:this.$={caseTypes:[n[o]],lastType:n[o]},wt.extractExpressionText(this.$,n[o]);break;case 1187:n[o-1].caseTypes.push(n[o]),this.$={caseTypes:n[o-1].caseTypes,lastType:n[o]},wt.extractExpressionText(this.$,n[o-1],n[o]);break;case 1191:wt.suggestValueExpressionKeywords(n[o-2],["WHEN"]);break;case 1193:this.$=n[o],wt.extractExpressionText(this.$,n[o-3],n[o-2],n[o-1],n[o]);break;case 1194:this.$={caseTypes:[{types:["T"]}],suggestFilters:n[o].suggestFilters};break;case 1195:this.$={caseTypes:[{types:["T"]}],suggestFilters:n[o-1].suggestFilters};break;case 1196:this.$={caseTypes:[n[o]],suggestFilters:n[o-2].suggestFilters};break;case 1197:case 1198:this.$={caseTypes:[n[o]],suggestFilters:n[o].suggestFilters};break;case 1199:wt.suggestKeywords(["WHEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1200:wt.suggestKeywords(["WHEN"]),this.$={caseTypes:[n[o]]};break;case 1201:case 1202:wt.valueExpressionSuggest(),wt.suggestKeywords(["WHEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1203:case 1205:wt.valueExpressionSuggest(),this.$={caseTypes:[{types:["T"]}],suggestFilters:!0};break;case 1204:wt.valueExpressionSuggest(),wt.suggestKeywords(["THEN"]),this.$={caseTypes:[{types:["T"]}],suggestFilters:!0};break;case 1206:wt.valueExpressionSuggest(),this.$={caseTypes:[n[o]],suggestFilters:!0};break;case 1207:wt.suggestValueExpressionKeywords(n[o-1],["THEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1208:wt.suggestValueExpressionKeywords(n[o-2],["THEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1209:case 1210:case 1211:case 1212:wt.valueExpressionSuggest(),this.$={caseTypes:[{types:["T"]}]}}},table:[e(s,t,{338:1,263:2}),{1:[3]},e(a,n,{339:3,343:4,19:5,155:6,44:7,20:8,21:9,22:10,23:11,24:12,25:13,26:14,27:15,28:16,29:17,34:19,35:20,156:21,157:22,168:23,169:24,36:25,42:26,158:31,4:r,8:o,12:u,16:l,162:c,174:y,241:g,271:T,321:d,337:p}),{340:[1,37],344:[1,38]},e(a,[2,626]),e(a,[2,632]),e(a,[2,633]),e(a,[2,634]),e(a,[2,15]),e(a,[2,16]),e(a,[2,17]),e(a,[2,18]),e(a,[2,19]),e(a,[2,20]),e(a,[2,21]),e(a,[2,22]),e(a,[2,23]),e(a,[2,24]),{30:[1,39],31:40,59:41,63:E,113:h,228:f,347:44,348:I,349:A},e(a,[2,27]),e(a,[2,28]),e(a,[2,244]),e(a,[2,245]),{79:[1,49],169:48,241:g},e(L,b,{170:50,258:51,260:52,262:C}),{37:54,125:[1,55]},{43:[1,56]},{39:[1,59],47:[1,60],57:57,63:[1,58],365:N,383:R},{39:[1,65],47:[1,66],57:63,63:[1,64],365:N,383:R},{39:[1,67]},{59:68,63:E,113:h,228:f,347:44,348:I,349:A},e(a,[2,246]),{59:74,63:E,113:h,119:73,228:f,322:69,328:70,330:71,347:44,348:I,349:A,358:S,427:72},{59:74,63:E,113:h,119:78,175:76,177:77,228:f,347:44,348:I,349:A,358:S},e([54,55,63,79,95,96,107,112,113,228,253,267,269,270,271,294,295,296,297,298,299,300,301,302,303,304,306,307,348,349,351,352,355,358,362,370,389,390],O,{242:79,30:m,247:D}),{39:[1,82],47:[1,83]},{163:[1,84]},{1:[2,621]},e(s,t,{263:85}),e(a,[2,25]),{32:[1,86],267:[1,87]},e(k,[2,471]),e(x,[2,644]),e(x,[2,645]),e(x,[2,646]),e(x,[2,641]),e(x,[2,642]),e(x,[2,643]),e(L,b,{258:51,260:52,170:88,262:C}),{44:89,168:23,169:24,174:y,241:g},e(L,[2,262]),e(L,[2,452],{260:90,262:C}),e(w,[2,454]),e([30,241,247],t,{263:91}),e(a,[2,29]),{79:[1,92]},{44:93,168:23,169:24,174:y,241:g},e(_,F,{58:94,306:v}),{59:96,63:E,113:h,228:f,347:44,348:I,349:A},e(B,F,{58:97,306:v}),e(B,F,{58:98,306:v}),e(P,[2,761]),e(P,[2,762]),e(B,M,{150:99,306:U}),{59:101,63:E,113:h,228:f,347:44,348:I,349:A},e(B,M,{150:102,306:U}),e(B,M,{150:103,306:U}),e(B,M,{150:104,306:U}),e(a,[2,619]),{16:[1,105]},{16:[2,598]},{16:[2,600]},{16:[2,858],59:74,63:E,113:h,119:106,228:f,347:44,348:I,349:A,358:S},e(K,[2,854],{267:[1,107]}),e(x,[2,851]),{56:[1,108],358:[1,109]},e([79,241],[2,271],{85:[1,110]}),e($,[2,273]),{43:[1,111]},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:114,227:144,228:f,243:112,250:113,253:j,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ae,[2,414]),e(Ae,[2,415]),{40:170,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},{40:172,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},e(B,[2,258],{164:173,39:[1,174]}),e(a,n,{343:4,19:5,155:6,44:7,20:8,21:9,22:10,23:11,24:12,25:13,26:14,27:15,28:16,29:17,34:19,35:20,156:21,157:22,168:23,169:24,36:25,42:26,158:31,339:175,4:r,8:o,12:u,16:l,162:c,174:y,241:g,271:T,321:d,337:p}),{33:176,51:179,54:V,55:G,59:177,63:E,96:[1,182],113:h,227:183,228:f,267:X,268:178,269:[1,180],270:[1,181],347:44,348:I,349:A,352:[1,184],389:fe,390:Ie,395:186,398:187,448:[1,185],453:150,454:151},{59:188,63:E,113:h,228:f,347:44,348:I,349:A},e(L,[2,260]),{81:[1,189]},e(w,[2,455]),{30:m,241:O,242:190,247:D},{59:74,63:E,87:193,113:h,119:146,228:f,347:44,348:I,349:A,358:S,409:191,425:192},e(a,[2,37]),e(a,[2,54],{347:44,59:194,63:E,113:h,228:f,348:I,349:A}),{95:[1,195]},e(a,[2,63]),{59:74,63:E,64:196,66:197,72:198,113:h,119:199,228:f,347:44,348:I,349:A,358:S},{59:74,63:E,72:200,113:h,119:199,228:f,347:44,348:I,349:A,358:S},{59:74,63:E,113:h,119:201,228:f,347:44,348:I,349:A,358:S},{370:[1,202]},e(a,[2,229]),{40:203,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},{40:204,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},{40:205,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},{59:74,63:E,87:138,113:h,119:146,149:209,228:f,323:206,332:207,334:208,347:44,348:I,349:A,358:S,429:210},{16:[2,859]},{59:74,63:E,113:h,119:211,228:f,347:44,348:I,349:A,358:S},{358:[1,212]},e(x,[2,853]),{59:74,63:E,113:h,119:78,177:213,228:f,347:44,348:I,349:A,358:S},{79:[1,214]},e(w,[2,403],{244:215,181:217,85:[1,216],182:[1,218]}),e(Le,[2,420]),e(Le,be,{347:44,59:74,395:186,398:187,252:219,440:233,119:234,51:235,32:Ce,43:Ne,54:V,55:G,63:E,77:Re,95:Se,108:Oe,109:me,113:h,142:De,228:f,253:ke,348:I,349:A,352:xe,356:we,357:_e,358:S,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(Le,[2,436]),e(Ke,[2,895]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:240,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:241,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:242,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:243,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{79:$e,437:244},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:246,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:248,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,392:Ve,395:152,398:153,429:129,441:247,449:137,451:145,453:150,454:151,455:154,503:249,505:250},e(Ke,[2,553],{310:252,79:Ge}),{79:Ge,310:254},e(Ke,[2,551]),e(Ke,[2,552]),e(Ke,[2,554]),e(He,[2,1027],{267:[1,255]}),{79:[2,533]},{79:[2,534]},{79:[2,535]},{79:[2,536]},e(Ke,[2,582],{275:256,277:257,318:Qe}),{277:259,318:Qe},e(Ke,[2,490]),e(Ke,[2,1033]),e(We,[2,865]),e(Ye,[2,498]),e(Ye,[2,499]),e(Ye,[2,500]),{79:[1,260]},{79:[1,261]},e(Ke,[2,1035]),e(Ke,[2,1036]),e([32,43,50,54,55,63,77,79,81,85,95,107,108,109,112,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,253,262,264,267,340,344,348,349,352,356,357,358,359,360,361,363,366,367,368,369,371,374,375,376,377,379,380,382,384,385,386,387,388,391,392,439],[2,875]),{79:[1,262]},{79:[1,263]},{79:[1,264]},e(Ke,[2,1038]),e(Ke,[2,1039]),e(Ke,[2,1047]),e(Ke,[2,1048]),e(Ke,[2,1049]),{79:[2,509]},{79:[2,510]},{79:[2,511]},{79:[2,512]},{79:[2,513]},{79:[2,514]},{79:[2,515]},{79:[2,516]},e(Ke,[2,1040],{267:[1,265]}),{389:[1,266],390:[1,267]},{389:[1,268]},{54:[1,270],56:[1,269]},{55:[1,272],56:[1,271]},e(Ke,[2,1052]),e(Ke,[2,1053]),{125:[2,34]},e(Je,[2,828],{267:[1,273]}),{43:[2,43]},{40:274,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},e(B,[2,259]),e(a,[2,627]),e(a,[2,26]),e(a,[2,473]),e(a,[2,474],{347:44,59:275,63:E,113:h,228:f,348:I,349:A}),e(a,[2,476]),e(a,[2,477]),e(a,[2,478]),e(a,[2,479]),e(_,[2,1030]),{227:276,267:X,389:fe,390:Ie,453:150,454:151},{227:277,267:X,389:fe,390:Ie,453:150,454:151},e(je,[2,769]),e(je,[2,770]),e(k,[2,472]),e(L,b,{258:51,260:52,170:278,262:C}),{169:279,241:g},{81:[1,280],85:[1,281]},e(Xe,[2,840]),{32:[1,282]},e(a,qe,{60:283,48:284,49:285,50:ze}),{370:[1,287]},e(a,[2,64]),e(Ze,[2,160],{67:288,124:289,125:[1,290]}),e(es,[2,76],{73:291,76:292,77:[1,293],79:[1,294]}),e(ss,[2,833],{267:[1,295]}),e(ts,[2,212],{144:296,146:297,79:[1,298]}),e(a,[2,776],{151:299,405:[1,300]}),e(B,[2,779]),e(a,[2,236],{153:301,154:[1,302]}),e(a,[2,238]),e(a,[2,480]),e(is,[2,615],{324:303,85:[1,304],182:[1,305]}),e(as,[2,602]),{32:[1,306]},{32:[2,612]},e(ns,[2,862],{267:[1,307]}),e(K,[2,855]),e(x,[2,852]),e($,[2,274]),e(rs,os,{179:308,466:309}),e(w,[2,404]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:114,227:144,228:f,250:310,253:j,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(us,ls,{248:311,255:312,257:313,264:cs}),{40:322,59:74,63:E,79:$e,113:h,119:171,183:315,186:316,207:318,228:f,347:44,348:I,349:A,358:S,437:323,456:317,458:319,460:320,461:321},e(Le,[2,435]),e(ys,[2,1054],{436:324,95:[1,325]}),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:326,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:327,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:328,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:329,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{77:Re,359:[1,331],374:[1,330],379:Me,380:Ue,440:332},{79:[1,333]},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:334,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:335,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:336,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:337,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:338,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:339,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ke,[2,921]),e(gs,[2,1101]),e(gs,[2,1102]),{51:341,54:V,55:G,59:74,63:E,113:h,119:340,228:f,347:44,348:I,349:A,358:S,395:186,398:187},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:342,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:343,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:344,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ts,[2,896],{440:233,32:Ce,77:Re,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(Ts,[2,897],{440:233,32:Ce,77:Re,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(Ts,[2,898],{440:233,32:Ce,77:Re,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(ds,[2,899],{440:233}),e(Ke,[2,904]),e(rs,os,{466:309,437:323,179:345,461:346,79:$e}),{32:Ce,77:Re,81:[1,347],95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,440:233},e(Ke,[2,923]),{32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,392:Ve,440:233,441:348,503:249,505:250},{368:[1,350],369:[1,349],392:Ve,505:351},e(ps,[2,1186]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:352,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ke,[2,549]),{54:V,55:G,59:74,63:E,79:H,81:[1,353],87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:355,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,292:354,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ke,[2,550]),{59:74,63:E,87:357,113:h,119:146,228:f,253:[1,356],347:44,348:I,349:A,358:S},e(Ke,[2,488]),e(Ke,[2,583]),{59:74,63:E,79:[1,360],113:h,119:358,228:f,319:359,347:44,348:I,349:A,358:S},e(Ke,[2,489]),{54:V,55:G,59:74,63:E,79:H,81:[1,361],87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:355,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,292:362,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,81:[1,364],87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:363,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e([54,55,63,79,81,95,96,107,112,113,228,267,269,270,271,294,295,296,297,298,299,300,301,302,303,304,306,307,348,349,351,352,355,358,362,370,389,390],O,{242:365,30:m,247:D}),e(Es,O,{242:368,30:m,81:[1,367],247:D,253:[1,366]}),e(Es,O,{242:369,30:m,81:[1,370],247:D}),e(Ke,[2,1041],{389:[1,371],390:[1,372]}),e(Ke,[2,1043]),{389:[1,373]},e(Ke,[2,1044]),{54:[1,374]},e(hs,[2,764]),{55:[1,375]},e(hs,[2,767]),{59:74,63:E,113:h,119:376,228:f,347:44,348:I,349:A,358:S},{140:[1,377]},e(a,[2,475]),e(_,[2,1031]),e(_,[2,1032]),e(L,[2,261]),e(w,[2,460]),e(a,[2,791]),{59:74,63:E,87:193,113:h,119:146,228:f,347:44,348:I,349:A,358:S,425:378},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:379,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(a,[2,55]),e(a,[2,61]),e([43,81,85,109,340,344],[2,47]),{51:380,54:V,55:G,395:186,398:187},e([63,113,228,340,344,348,349,358],[2,782]),e(a,[2,198],{68:381,43:[1,382]}),e(Ze,[2,161]),{126:[1,383]},e(es,[2,73]),e(es,[2,77]),{40:384,59:74,63:E,113:h,119:171,228:f,347:44,348:I,349:A,358:S},{59:74,63:E,80:385,84:386,87:387,113:h,119:146,228:f,347:44,348:I,349:A,358:S},{59:74,63:E,113:h,119:388,228:f,347:44,348:I,349:A,358:S},{43:qe,48:389,49:285,50:ze},e(ts,[2,213]),{59:74,63:E,87:138,113:h,119:146,147:390,149:391,228:f,347:44,348:I,349:A,358:S,429:210},e(a,[2,222]),e(a,[2,777]),e(a,[2,230]),e(a,[2,237]),e(a,ls,{257:313,255:392,264:cs}),{59:74,63:E,87:138,113:h,119:146,149:209,228:f,332:393,334:208,347:44,348:I,349:A,358:S,429:210},{40:322,59:74,63:E,79:$e,113:h,119:171,186:394,207:318,228:f,347:44,348:I,349:A,358:S,437:323,456:317,458:319,460:320,461:321},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:396,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,335:395,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{59:74,63:E,87:357,113:h,119:146,228:f,253:[1,397],347:44,348:I,349:A,358:S},{81:[1,398]},{44:406,168:23,169:24,174:y,241:g,468:399,470:400,472:401,474:402,476:403,478:404,480:405},e(Le,[2,421]),e(w,[2,416]),e(fs,[2,293],{188:407,189:408,190:[1,409]}),e(us,[2,465]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:411,227:144,228:f,265:410,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e([81,190,201,226,232,262,264,340,344],[2,283],{85:[1,412]}),e(Is,[2,286]),e(Is,[2,1056]),e(Is,[2,1058],{204:413,206:414,214:As,215:Ls,216:bs,217:Cs,218:Ns,219:Rs,220:Ss,221:Os}),e(Is,[2,1059]),e(ms,be,{347:44,59:74,395:186,398:187,119:234,51:235,252:423,43:Ne,54:V,55:G,63:E,113:h,228:f,348:I,349:A,358:S}),e(ms,be,{347:44,59:74,395:186,398:187,119:234,51:235,252:424,43:Ne,54:V,55:G,63:E,113:h,228:f,348:I,349:A,358:S}),e(Ds,[2,1070]),e(Ds,[2,1072]),{96:[1,425],247:[1,428],269:[1,426],270:[1,427]},e(ys,[2,1055]),e(ks,[2,906],{440:233,77:Re,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(ks,[2,907],{440:233,77:Re,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(ks,[2,908],{440:233,77:Re,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(ks,[2,909],{440:233,77:Re,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),{79:[1,429]},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:430,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ke,[2,922]),e(rs,os,{347:44,59:74,308:116,309:124,305:125,273:126,311:127,429:129,274:134,276:135,278:136,449:137,87:138,285:139,286:140,287:141,227:144,451:145,119:146,291:147,453:150,454:151,395:152,398:153,455:154,466:309,179:431,438:432,138:433,54:V,55:G,63:E,79:H,95:Q,96:W,107:Y,112:J,113:h,228:f,267:X,269:q,270:z,271:Z,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,306:ye,307:ge,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie}),{32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,439:[1,434],440:233},e(xs,[2,916],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,359:Fe,374:ve,376:Be,379:Me,380:Ue}),e(xs,[2,917],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,359:Fe,374:ve,376:Be,379:Me,380:Ue}),e(ds,[2,918],{440:233,77:Re,374:ve,376:Be,379:Me,380:Ue}),e(ds,[2,919],{440:233,77:Re,374:ve,376:Be,379:Me,380:Ue}),e(ds,[2,920],{440:233,77:Re,374:ve,376:Be,379:Me,380:Ue}),e(gs,[2,1103]),e(gs,[2,1104]),e(ds,[2,1162],{440:233}),e(ds,[2,1163],{440:233}),e(ds,[2,1164],{440:233}),{81:[1,435]},{43:Ne,51:235,54:V,55:G,59:74,63:E,81:be,113:h,119:234,228:f,252:436,347:44,348:I,349:A,358:S,395:186,398:187},e(Ke,[2,905]),e(Ke,[2,924]),e(Ke,[2,1171]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:437,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(ps,[2,1187]),{32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,386:[1,438],440:233},e(Ke,[2,564]),{81:[1,439],85:ws},e(Xe,[2,569],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(He,[2,1028]),e(We,[2,866]),e(Ke,[2,585]),e(Ke,[2,586]),e(_s,[2,1115],{482:441,486:442,125:[1,443]}),{318:[2,528]},{81:[1,444],85:ws},{32:Ce,43:[1,445],77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,440:233},e(Ke,[2,538]),{54:V,55:G,59:74,63:E,79:H,81:[1,446],87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:355,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,292:447,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{81:[1,448]},e(Ye,[2,518]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:355,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,292:449,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:450,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ye,[2,524]),e(Ke,[2,1042]),{389:[1,451]},e(Ke,[2,1045]),e(hs,[2,763]),e(hs,[2,766]),e(Je,[2,829]),{79:Fs,165:452,166:453},e(Xe,[2,841]),e(Xe,[2,846],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e([43,50,81,85,95,96,109,340,344],[2,48]),e(a,[2,68]),e(rs,[2,202],{143:455}),{127:456,129:[1,457]},e(es,[2,78]),{81:[1,458],85:[1,459]},e(Xe,[2,84]),{88:460,97:461,98:462,99:463,100:464,101:465,102:466,103:467,107:vs,112:Bs,113:Ps,360:Ms,361:Us,363:Ks,366:$s,367:Vs,371:Gs,375:Hs,384:Qs,385:Ws,387:Ys,388:Js,391:js},e(ss,[2,834]),{43:[1,483]},{81:[1,484],85:[1,485]},e(Xe,qe,{49:285,48:486,50:ze}),e(a,[2,588]),e(as,[2,603]),e(is,[2,616]),e(as,[2,608]),e(as,[2,613],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(ns,[2,863]),e($,[2,279]),{81:[2,1084]},{81:[2,1086]},{81:[2,1088]},{81:[2,1090]},{81:[2,1092]},{81:[2,1094]},{81:[2,1096]},{81:[2,1098]},e(Xs,[2,322],{199:487,200:488,201:[1,489]}),e(fs,[2,294]),{126:[1,490]},e(us,[2,466]),e(us,[2,469],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),{40:322,59:74,63:E,79:$e,113:h,119:171,186:491,207:318,228:f,347:44,348:I,349:A,358:S,437:323,456:317,458:319,460:320,461:321},e(Is,[2,1062],{206:492,214:As,215:Ls,216:bs,217:Cs,218:Ns,219:Rs,220:Ss,221:Os}),{40:322,59:74,63:E,79:$e,113:h,119:171,207:493,228:f,347:44,348:I,349:A,358:S,437:323,460:320,461:321},{215:[1,494]},{215:[1,495],217:[1,496]},{215:[1,497]},e(qs,[2,347]),{215:[1,499],217:[1,500],218:[1,498],220:[1,501]},{215:[1,502]},{215:[1,504],217:[1,505],218:[1,503],220:[1,506]},{215:[1,507]},e(ms,[2,1065]),e(ms,[2,1066]),e(Ke,[2,900]),e(Ke,[2,901]),e(Ke,[2,902]),{182:[1,508]},e(rs,os,{347:44,59:74,308:116,309:124,305:125,273:126,311:127,429:129,274:134,276:135,278:136,449:137,87:138,285:139,286:140,287:141,227:144,451:145,119:146,291:147,453:150,454:151,395:152,398:153,455:154,466:309,138:433,179:509,438:510,54:V,55:G,63:E,79:H,95:Q,96:W,107:Y,112:J,113:h,228:f,267:X,269:q,270:z,271:Z,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,306:ye,307:ge,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie}),{32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,439:[1,511],440:233},{81:[1,512]},{81:[1,513],85:zs},e(Zs,[2,1012],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:515,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(et,[2,1080]),{81:[1,516]},{32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,369:[1,517],374:ve,376:Be,377:Pe,379:Me,380:Ue,440:233},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:518,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ke,[2,565]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:519,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{81:[2,1121],231:521,232:st,483:520},e(_s,[2,1116]),{126:[1,523]},{318:[2,529]},{97:524,360:Ms,361:Us,363:Ks,366:$s,367:Vs,371:Gs,375:Hs,384:Qs,385:Ws,387:Ys,388:Js,391:js},e(Ye,[2,504]),{81:[1,525],85:ws},e(Ye,[2,517]),{81:[1,526],85:ws},{32:Ce,77:Re,81:[1,527],95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,440:233},e(Ke,[2,1046]),e(a,[2,249],{85:[1,528]}),e(tt,[2,255]),{54:V,55:G,59:74,63:E,87:138,96:W,107:Y,112:J,113:h,119:146,167:529,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:530,309:124,311:127,347:44,348:I,349:A,358:S,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{44:531,168:23,169:24,174:y,241:g},e(Ze,[2,162]),{79:[1,533],130:532},e(es,[2,82]),{59:74,63:E,84:534,87:387,113:h,119:146,228:f,347:44,348:I,349:A,358:S},e(Xe,[2,98],{89:535,92:536,93:537,49:540,50:ze,95:it,96:at}),e(nt,[2,110]),e(nt,[2,111]),e(nt,[2,112]),e(nt,[2,113]),e(nt,[2,114]),e(nt,[2,115]),e(nt,[2,116]),e(nt,[2,878]),e(nt,[2,879]),e(nt,rt,{434:541,79:ot}),e(nt,[2,892],{435:543,79:[1,544]}),e(nt,[2,882]),e(nt,[2,883]),e(nt,[2,884]),e(nt,[2,885]),e(nt,[2,886]),e(nt,[2,887]),e(nt,[2,888]),e(nt,rt,{434:545,79:ot}),{108:[1,546]},{108:[1,547]},{108:[1,548]},{44:549,168:23,169:24,174:y,241:g},e(ts,[2,214]),{59:74,63:E,87:138,113:h,119:146,149:550,228:f,347:44,348:I,349:A,358:S,429:210},e(Xe,[2,216]),e(ut,[2,385],{230:551,231:552,232:st}),e(Xs,[2,323]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:553,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:555,191:554,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Is,[2,287]),{40:322,59:74,63:E,79:$e,113:h,119:171,207:556,228:f,347:44,348:I,349:A,358:S,437:323,460:320,461:321},e(lt,ct,{208:557,222:yt}),e(qs,[2,343]),e(qs,[2,344]),{215:[1,559]},e(qs,[2,346]),{215:[1,560]},e(qs,[2,349]),{215:[1,561]},{215:[1,562]},e(qs,[2,352]),{215:[1,563]},e(qs,[2,354]),{215:[1,564]},{215:[1,565]},e(qs,[2,357]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:566,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{81:[1,567]},{81:[1,568],85:zs},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:569,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ke,[2,912]),e(Ke,[2,913]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:570,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e([43,54,55,63,81,85,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,262,264,340,344,348,349,356,358,359,368,369,377,382,386,392,439],[2,915],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(et,[2,1081]),e(Ke,[2,1172]),e(ps,[2,1193],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(Xe,[2,570],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),{81:[1,571]},{81:[2,1126],129:[1,576],382:[1,575],487:572,489:573,490:574},{126:[1,577]},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:433,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,438:578,449:137,451:145,453:150,454:151,455:154},{81:[1,579]},e(Ye,[2,505]),e(Ye,[2,519]),e(Ye,[2,523]),{79:Fs,166:580},{81:[1,581],85:[1,582]},e(Xe,[2,1025]),e(a,[2,199]),{79:[1,584],131:583},{59:74,63:E,87:586,113:h,119:146,228:f,347:44,348:I,349:A,358:S,421:585},e(Xe,[2,85]),e(Xe,[2,94]),e(Xe,[2,99],{49:540,93:587,50:ze,95:it,96:at}),e(gt,[2,100]),{96:[1,588]},e(gt,[2,107]),e(gt,[2,108]),e(nt,[2,880]),{389:[1,589]},e(nt,[2,881]),{389:[1,590]},e(nt,[2,889]),{88:591,97:461,98:462,99:463,100:464,101:465,102:466,103:467,107:vs,109:[1,592],112:Bs,113:Ps,360:Ms,361:Us,363:Ks,366:$s,367:Vs,371:Gs,375:Hs,384:Qs,385:Ws,387:Ys,388:Js,391:js},{97:593,109:[1,594],360:Ms,361:Us,363:Ks,366:$s,367:Vs,371:Gs,375:Hs,384:Qs,385:Ws,387:Ys,388:Js,391:js},{59:74,63:E,109:[1,596],113:h,114:595,116:597,119:598,228:f,347:44,348:I,349:A,358:S},e(a,[2,203]),e(Xe,qe,{49:285,48:599,50:ze}),e(w,[2,378],{224:600,225:601,226:[1,602]}),e(ut,[2,386]),e(Xs,[2,324],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(fs,[2,295],{85:[1,603]}),e(Tt,[2,310],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(lt,ct,{208:604,222:yt}),e(lt,[2,330]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:605,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(qs,[2,345]),e(qs,[2,348]),e(qs,[2,350]),e(qs,[2,351]),e(qs,[2,353]),e(qs,[2,355]),e(qs,[2,356]),e(ds,[2,903],{440:233}),e(Ke,[2,910]),e(Ke,[2,911]),e(Ts,[2,914],{440:233,32:Ce,77:Re,108:Oe,109:me,142:De,253:ke,352:xe,357:_e,374:ve,376:Be,379:Me,380:Ue}),e(Zs,[2,1013],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(Ke,[2,1110]),{81:[2,1122]},{81:[2,1127]},{359:[1,606],494:[1,607]},e(dt,[2,1144]),e(dt,[2,1145]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:610,227:144,228:f,233:608,236:609,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(_s,[2,1117],{85:zs}),e(Ke,[2,537]),e(tt,[2,256]),e(tt,[2,257]),{54:V,55:G,59:74,63:E,87:138,96:W,107:Y,112:J,113:h,119:146,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:611,309:124,311:127,347:44,348:I,349:A,358:S,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Ze,[2,166]),{125:pt,134:612,136:613},{81:[1,615],85:[1,616]},e(Xe,[2,821]),e(gt,[2,101]),e(gt,[2,106]),{81:[1,617]},{81:[1,618],85:[1,619]},{109:[1,620]},e(nt,[2,121]),{85:[1,621]},e(nt,[2,125]),{85:[1,623],109:[1,622]},e(nt,[2,131]),e(Et,[2,133]),{120:[1,624]},e(Xe,[2,217]),e(w,[2,440]),e(w,[2,379]),{227:625,228:[1,626],267:X,389:fe,390:Ie,453:150,454:151},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:627,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(lt,[2,331]),e(lt,[2,373],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(ht,ft,{491:628}),e(ht,ft,{491:629}),e([81,129,226,262,340,344,382],[2,387],{85:[1,630]}),e(It,[2,390]),e(It,[2,400],{440:233,238:631,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,239:[1,632],240:[1,633],253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(Xe,[2,1026]),{81:[1,634],85:[1,635]},e(Xe,[2,175]),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:636,140:[1,637],227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{79:[2,818]},{59:74,63:E,87:638,113:h,119:146,228:f,347:44,348:I,349:A,358:S},e(nt,[2,891]),e(nt,[2,893]),{389:[1,639]},e(nt,[2,120]),{88:640,97:461,98:462,99:463,100:464,101:465,102:466,103:467,107:vs,112:Bs,113:Ps,360:Ms,361:Us,363:Ks,366:$s,367:Vs,371:Gs,375:Hs,384:Qs,385:Ws,387:Ys,388:Js,391:js},e(nt,[2,130]),{59:74,63:E,113:h,116:641,119:598,228:f,347:44,348:I,349:A,358:S},{88:642,97:461,98:462,99:463,100:464,101:465,102:466,103:467,107:vs,112:Bs,113:Ps,360:Ms,361:Us,363:Ks,366:$s,367:Vs,371:Gs,375:Hs,384:Qs,385:Ws,387:Ys,388:Js,391:js},e(w,[2,380],{85:[1,643]}),e(w,[2,382],{85:[1,644]}),e(Tt,[2,311],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),e(At,Lt,{492:645,502:646,364:bt,389:Ct,494:Nt}),e(At,Lt,{502:646,492:650,364:bt,389:Ct,494:Nt}),{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:610,227:144,228:f,236:651,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(It,[2,397]),e(It,[2,401]),e(It,[2,402]),e(Ze,[2,172]),{125:pt,136:652},{32:Ce,77:Re,95:Se,108:[1,654],109:me,139:653,142:[1,655],253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue,440:233},{108:Rt,139:656,142:St},e(Xe,[2,822]),{81:[1,659]},{109:[1,660]},e(Et,[2,134]),e(Et,qe,{49:285,48:661,50:ze}),{227:662,267:X,389:fe,390:Ie,453:150,454:151},{228:[1,663]},{81:Ot,356:mt,493:664},{378:[1,666]},{381:[1,667]},e(Dt,[2,1157]),e(Dt,[2,1158]),{81:Ot,356:mt,493:668},e(It,[2,391]),e(Xe,[2,176]),{140:[1,669]},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:327,140:kt,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:329,140:xt,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:670,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},e(Es,kt),e(Es,xt),e(nt,[2,894]),e(nt,[2,124]),e(Et,[2,140]),e(w,[2,381]),e(w,[2,383]),{81:[2,1128]},{364:[1,671],389:Ct,494:Nt,502:672},e(At,[2,1147]),e(At,[2,1148]),{81:[2,1129]},e(Xe,[2,184],{139:673,108:Rt,142:St}),e(Xe,[2,183],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue}),{381:[1,674]},{372:[1,675]},{54:V,55:G,59:74,63:E,79:H,87:138,95:Q,96:W,107:Y,112:J,113:h,119:146,138:676,227:144,228:f,267:X,269:q,270:z,271:Z,273:126,274:134,276:135,278:136,285:139,286:140,287:141,291:147,294:ee,295:se,296:te,297:ie,298:ae,299:ne,300:re,301:oe,302:ue,303:le,304:ce,305:125,306:ye,307:ge,308:116,309:124,311:127,347:44,348:I,349:A,351:Te,352:de,355:pe,358:S,362:Ee,370:he,389:fe,390:Ie,395:152,398:153,429:129,449:137,451:145,453:150,454:151,455:154},{81:[2,1152]},{81:[2,1153]},e(Xe,[2,182],{440:233,32:Ce,77:Re,95:Se,108:Oe,109:me,142:De,253:ke,352:xe,356:we,357:_e,359:Fe,374:ve,376:Be,377:Pe,379:Me,380:Ue})],defaultActions:{37:[2,621],70:[2,598],71:[2,600],106:[2,859],130:[2,533],131:[2,534],132:[2,535],133:[2,536],155:[2,509],156:[2,510],157:[2,511],158:[2,512],159:[2,513],160:[2,514],161:[2,515],162:[2,516],170:[2,34],172:[2,43],209:[2,612],361:[2,528],399:[2,1084],400:[2,1086],401:[2,1088],402:[2,1090],403:[2,1092],404:[2,1094],405:[2,1096],406:[2,1098],444:[2,529],572:[2,1122],573:[2,1127],615:[2,818],664:[2,1128],668:[2,1129],674:[2,1152],675:[2,1153]},parseError:function(e,s){if(!s.recoverable){var t=new Error(e);throw t.hash=s,t}this.trace(e)},parse:function(e){var s=this,t=[0],i=[null],a=[],n=this.table,r="",o=0,u=0,l=0,c=2,y=1,g=a.slice.call(arguments,1),T=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);T.setInput(e,d.yy),d.yy.lexer=T,d.yy.parser=this,void 0===T.yylloc&&(T.yylloc={});var E=T.yylloc;a.push(E);var h=T.options&&T.options.ranges;function f(e){t.length=t.length-2*e,i.length=i.length-e,a.length=a.length-e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var I,A,L,b,C,N,R,S,O,m=function(){var e;return"number"!=typeof(e=T.lex()||y)&&(e=s.symbols_[e]||e),e},D={};;){if(L=t[t.length-1],this.defaultActions[L]?b=this.defaultActions[L]:(null==I&&(I=m()),b=n[L]&&n[L][I]),void 0===b||!b.length||!b[0]){var k,x=function(e){for(var s=t.length-1,i=0;;){if(c.toString()in n[e])return i;if(0===e||s<2)return!1;e=t[s-=2],++i}},w="";if(l)A!==y&&(k=x(L));else{for(N in k=x(L),O=[],n[L])this.terminals_[N]&&N>c&&O.push("'"+this.terminals_[N]+"'");w=T.showPosition?"Parse error on line "+(o+1)+":\n"+T.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(this.terminals_[I]||I)+"'":"Parse error on line "+(o+1)+": Unexpected "+(I==y?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(w,{text:T.match,token:this.terminals_[I]||I,line:T.yylineno,loc:T.yylloc,ruleId:t.slice(t.length-2,t.length).join("_"),expected:O,recoverable:!1!==k})}if(3==l){if(I===y||A===y)throw new Error(w||"Parsing halted while starting to recover from another error.");u=T.yyleng,r=T.yytext,o=T.yylineno,E=T.yylloc,I=m()}if(!1===k)throw new Error(w||"Parsing halted. No suitable error recovery rule available.");f(k),A=I==c?null:I,I=c,L=t[t.length-1],b=n[L]&&n[L][c],l=3}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+I);switch(b[0]){case 1:t.push(I),i.push(T.yytext),a.push(T.yylloc),t.push(b[1]),I=null,A?(I=A,A=null):(u=T.yyleng,r=T.yytext,o=T.yylineno,E=T.yylloc,l>0&&l--);break;case 2:if(R=this.productions_[b[1]][1],D.$=i[i.length-R],D._$={first_line:a[a.length-(R||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(R||1)].first_column,last_column:a[a.length-1].last_column},h&&(D._$.range=[a[a.length-(R||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(D,[r,u,o,d.yy,b[1],i,a].concat(g))))return C;R&&(t=t.slice(0,-1*R*2),i=i.slice(0,-1*R),a=a.slice(0,-1*R)),t.push(this.productions_[b[1]][0]),i.push(D.$),a.push(D._$),S=n[t[t.length-2]][t[t.length-1]],t.push(S);break;case 3:return!0}}return!0}};i.a.initSyntaxParser(wt);var _t={EOF:1,parseError:function(e,s){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,s)},setInput:function(e,s){return this.yy=s||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var s=e.length,t=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===i.length?this.yylloc.first_column:0)+i[i.length-t.length].length-t[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+s+"^"},test_match:function(e,s){var t,i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t)return t;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,s,t,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;n<a.length;n++)if((t=this._input.match(this.rules[a[n]]))&&(!s||t[0].length>s[0].length)){if(s=t,i=n,this.options.backtrack_lexer){if(!1!==(e=this.test_match(t,a[n])))return e;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(e=this.test_match(s,a[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0,flex:!0},performAction:function(e,s,t,i){switch(t){case 0:case 1:case 2:break;case 3:return wt.yy.partialCursor=!1,wt.yy.cursorFound=s.yylloc,5;case 4:return wt.yy.partialCursor=!0,wt.yy.cursorFound=s.yylloc,393;case 5:return this.popState(),439;case 6:return 30;case 7:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("ALTER",s.yylloc,e.lexer.upcomingInput()),4;case 8:return 356;case 9:return 43;case 10:return 239;case 11:return this.begin("between"),359;case 12:return 360;case 13:return 361;case 14:return 126;case 15:return 405;case 16:return 362;case 17:return 363;case 18:return 50;case 19:return wt.determineCase(s.yytext),8;case 20:return 214;case 21:return 364;case 22:return 365;case 23:return 366;case 24:return 240;case 25:return 247;case 26:return 357;case 27:return 367;case 28:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("DROP",s.yylloc,e.lexer.upcomingInput()),12;case 29:return 368;case 30:return 369;case 31:return wt.yy.correlatedSubQuery=!0,370;case 32:return 270;case 33:return 371;case 34:return 372;case 35:return wt.determineCase(s.yytext),182;case 36:return 216;case 37:return 190;case 38:return 201;case 39:return 306;case 40:return 374;case 41:return 218;case 42:return 162;case 43:return 375;case 44:return 163;case 45:return 376;case 46:return 215;case 47:return 219;case 48:return 77;case 49:return 226;case 50:return 95;case 51:return 96;case 52:return 222;case 53:return 348;case 54:return 377;case 55:return 232;case 56:return 217;case 57:return 125;case 58:return 378;case 59:return 154;case 60:return 129;case 61:return 379;case 62:return 221;case 63:return 380;case 64:return 381;case 65:return 63;case 66:return 382;case 67:return 383;case 68:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("SELECT",s.yylloc),241;case 69:return 220;case 70:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("SET",s.yylloc),16;case 71:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("SHOW",s.yylloc),"SHOW";case 72:return 384;case 73:return 385;case 74:return 39;case 75:return 386;case 76:return 387;case 77:return 388;case 78:return"TO";case 79:return 269;case 80:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("TRUNCATE",s.yylloc,e.lexer.upcomingInput()),271;case 81:return 494;case 82:return 262;case 83:return wt.determineCase(s.yytext),321;case 84:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("USE",s.yylloc),337;case 85:return 140;case 86:return 391;case 87:return 47;case 88:return 392;case 89:return 264;case 90:return wt.determineCase(s.yytext),wt.addStatementTypeLocation("WITH",s.yylloc),174;case 91:return 318;case 92:return 63;case 93:return e.lexer.unput("("),s.yytext="avg",wt.addFunctionLocation(s.yylloc,s.yytext),294;case 94:return e.lexer.unput("("),s.yytext="cast",wt.addFunctionLocation(s.yylloc,s.yytext),307;case 95:return e.lexer.unput("("),s.yytext="count",wt.addFunctionLocation(s.yylloc,s.yytext),302;case 96:return e.lexer.unput("("),s.yytext="max",wt.addFunctionLocation(s.yylloc,s.yytext),295;case 97:return e.lexer.unput("("),s.yytext="min",wt.addFunctionLocation(s.yylloc,s.yytext),296;case 98:return e.lexer.unput("("),s.yytext="stddev_pop",wt.addFunctionLocation(s.yylloc,s.yytext),297;case 99:return e.lexer.unput("("),s.yytext="stddev_samp",wt.addFunctionLocation(s.yylloc,s.yytext),298;case 100:return e.lexer.unput("("),s.yytext="sum",wt.addFunctionLocation(s.yylloc,s.yytext),303;case 101:return e.lexer.unput("("),s.yytext="var_pop",wt.addFunctionLocation(s.yylloc,s.yytext),299;case 102:return e.lexer.unput("("),s.yytext="var_samp",wt.addFunctionLocation(s.yylloc,s.yytext),300;case 103:return e.lexer.unput("("),s.yytext="variance",wt.addFunctionLocation(s.yylloc,s.yytext),301;case 104:return e.lexer.unput("("),s.yytext="cume_dist",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 105:return e.lexer.unput("("),s.yytext="dense_rank",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 106:return e.lexer.unput("("),s.yytext="first_value",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 107:return e.lexer.unput("("),s.yytext="lag",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 108:return e.lexer.unput("("),s.yytext="last_value",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 109:return e.lexer.unput("("),s.yytext="lead",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 110:return e.lexer.unput("("),s.yytext="rank",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 111:return e.lexer.unput("("),s.yytext="row_number",wt.addFunctionLocation(s.yylloc,s.yytext),304;case 112:case 113:return 389;case 114:return 390;case 115:return 349;case 116:return wt.yy.cursorFound=!0,5;case 117:return wt.yy.cursorFound=!0,393;case 118:return 373;case 119:return wt.addFileLocation(s.yylloc,s.yytext),499;case 120:return this.popState(),500;case 121:return 340;case 122:return 356;case 123:return 377;case 124:return 32;case 125:return 108;case 126:return 109;case 127:case 128:case 129:case 130:case 131:return 142;case 132:return 352;case 133:return 253;case 134:case 135:case 136:case 137:case 138:case 139:return 357;case 140:return 85;case 141:return 267;case 142:return 120;case 143:return 344;case 144:return 355;case 145:return 351;case 146:return 79;case 147:return 81;case 148:return 353;case 149:return 354;case 150:return 228;case 151:return this.begin("backtickedValue"),358;case 152:return wt.handleQuotedValueWithCursor(this,s.yytext,s.yylloc,"`")?397:56;case 153:return this.popState(),358;case 154:return this.begin("singleQuotedValue"),54;case 155:return wt.handleQuotedValueWithCursor(this,s.yytext,s.yylloc,"'")?397:56;case 156:return this.popState(),54;case 157:return this.begin("doubleQuotedValue"),55;case 158:return wt.handleQuotedValueWithCursor(this,s.yytext,s.yylloc,'"')?397:56;case 159:return this.popState(),55;case 160:return 340;case 161:case 162:case 163:case 164:case 165:case 166:break;case 167:console.log(s.yytext)}},rules:[/^(?:\s)/i,/^(?:--.*)/i,/^(?:[\/][*][^*]*[*]+([^\/*][^*]*[*]+)*[\/])/i,/^(?:\u2020)/i,/^(?:\u2021)/i,/^(?:AND)/i,/^(?:ALL)/i,/^(?:ALTER)/i,/^(?:AND)/i,/^(?:AS)/i,/^(?:ASC)/i,/^(?:BETWEEN)/i,/^(?:BIGINT)/i,/^(?:BOOLEAN)/i,/^(?:BY)/i,/^(?:CASCADE)/i,/^(?:CASE)/i,/^(?:CHAR)/i,/^(?:COMMENT)/i,/^(?:CREATE)/i,/^(?:CROSS)/i,/^(?:CURRENT)/i,/^(?:DATABASE)/i,/^(?:DECIMAL)/i,/^(?:DESC)/i,/^(?:DISTINCT)/i,/^(?:DIV)/i,/^(?:DOUBLE)/i,/^(?:DROP)/i,/^(?:ELSE)/i,/^(?:END)/i,/^(?:EXISTS)/i,/^(?:FALSE)/i,/^(?:FLOAT)/i,/^(?:FOLLOWING)/i,/^(?:FROM)/i,/^(?:FULL)/i,/^(?:GROUP)/i,/^(?:HAVING)/i,/^(?:IF)/i,/^(?:IN)/i,/^(?:INNER)/i,/^(?:INSERT)/i,/^(?:INT)/i,/^(?:INTO)/i,/^(?:IS)/i,/^(?:JOIN)/i,/^(?:LEFT)/i,/^(?:LIKE)/i,/^(?:LIMIT)/i,/^(?:NOT)/i,/^(?:NULL)/i,/^(?:ON)/i,/^(?:OPTION)/i,/^(?:OR)/i,/^(?:ORDER)/i,/^(?:OUTER)/i,/^(?:PARTITION)/i,/^(?:PRECEDING)/i,/^(?:PURGE)/i,/^(?:RANGE)/i,/^(?:REGEXP)/i,/^(?:RIGHT)/i,/^(?:RLIKE)/i,/^(?:ROW)/i,/^(?:ROLE)/i,/^(?:ROWS)/i,/^(?:SCHEMA)/i,/^(?:SELECT)/i,/^(?:SEMI)/i,/^(?:SET)/i,/^(?:SHOW)/i,/^(?:SMALLINT)/i,/^(?:STRING)/i,/^(?:TABLE)/i,/^(?:THEN)/i,/^(?:TIMESTAMP)/i,/^(?:TINYINT)/i,/^(?:TO)/i,/^(?:TRUE)/i,/^(?:TRUNCATE)/i,/^(?:UNBOUNDED)/i,/^(?:UNION)/i,/^(?:UPDATE)/i,/^(?:USE)/i,/^(?:VALUES)/i,/^(?:VARCHAR)/i,/^(?:VIEW)/i,/^(?:WHEN)/i,/^(?:WHERE)/i,/^(?:WITH)/i,/^(?:OVER)/i,/^(?:ROLE)/i,/^(?:AVG\s*\()/i,/^(?:CAST\s*\()/i,/^(?:COUNT\s*\()/i,/^(?:MAX\s*\()/i,/^(?:MIN\s*\()/i,/^(?:STDDEV_POP\s*\()/i,/^(?:STDDEV_SAMP\s*\()/i,/^(?:SUM\s*\()/i,/^(?:VAR_POP\s*\()/i,/^(?:VAR_SAMP\s*\()/i,/^(?:VARIANCE\s*\()/i,/^(?:CUME_DIST\s*\()/i,/^(?:DENSE_RANK\s*\()/i,/^(?:FIRST_VALUE\s*\()/i,/^(?:LAG\s*\()/i,/^(?:LAST_VALUE\s*\()/i,/^(?:LEAD\s*\()/i,/^(?:RANK\s*\()/i,/^(?:ROW_NUMBER\s*\()/i,/^(?:[0-9]+)/i,/^(?:[0-9]+(?:[YSL]|BD)?)/i,/^(?:[0-9]+E)/i,/^(?:[A-Za-z0-9_]+)/i,/^(?:\u2020)/i,/^(?:\u2021)/i,/^(?:\s+['"])/i,/^(?:[^'"\u2020\u2021]+)/i,/^(?:['"])/i,/^(?:$)/i,/^(?:&&)/i,/^(?:\|\|)/i,/^(?:=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:!=)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:<>)/i,/^(?:<=>)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:\|)/i,/^(?:\^)/i,/^(?:&)/i,/^(?:,)/i,/^(?:\.)/i,/^(?::)/i,/^(?:;)/i,/^(?:~)/i,/^(?:!)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\$\{[^}]*\})/i,/^(?:`)/i,/^(?:[^`]+)/i,/^(?:`)/i,/^(?:')/i,/^(?:(?:\\\\|\\[']|[^'])+)/i,/^(?:')/i,/^(?:")/i,/^(?:(?:\\\\|\\["]|[^"])+)/i,/^(?:")/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i],conditions:{hdfs:{rules:[116,117,118,119,120,121,163],inclusive:!1},doubleQuotedValue:{rules:[158,159,166],inclusive:!1},singleQuotedValue:{rules:[155,156,165],inclusive:!1},backtickedValue:{rules:[152,153,164],inclusive:!1},between:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,154,157,160,161,162,167],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,154,157,160,161,167],inclusive:!0}}};function Ft(){this.yy={}}return wt.lexer=_t,Ft.prototype=wt,wt.Parser=Ft,new Ft}();s.default=a},6:function(e,s,t){"use strict";var i=t(1),a=t(0);s.a={initSqlParser:function(e){Object(a.d)(e),e.prepareNewStatement=function(){o(),e.commitLocations(),delete e.yy.latestCommonTableExpressions,delete e.yy.correlatedSubQuery,e.yy.subQueries=[],e.yy.selectListAliases=[],e.yy.latestTablePrimaries=[],s()},e.yy.parseError=function(s,t){return e.yy.errors.push(t),s},e.addCommonTableExpressions=function(s){e.yy.result.commonTableExpressions=s,e.yy.latestCommonTableExpressions=s},e.isInSubquery=function(){return!!e.yy.primariesStack.length},e.pushQueryState=function(){e.yy.resultStack.push(e.yy.result),e.yy.locationsStack.push(e.yy.locations),e.yy.selectListAliasesStack.push(e.yy.selectListAliases),e.yy.primariesStack.push(e.yy.latestTablePrimaries),e.yy.subQueriesStack.push(e.yy.subQueries),e.yy.result={},e.yy.locations=[],e.yy.selectListAliases=[],e.yy.correlatedSubQuery?(e.yy.latestTablePrimaries=e.yy.latestTablePrimaries.concat(),e.yy.subQueries=e.yy.subQueries.concat()):(e.yy.latestTablePrimaries=[],e.yy.subQueries=[])},e.popQueryState=function(s){o(),e.commitLocations(),0===Object.keys(e.yy.result).length?e.yy.result=e.yy.resultStack.pop():e.yy.resultStack.pop();var t=e.yy.subQueries;e.yy.subQueries=e.yy.subQueriesStack.pop(),s&&(t.length>0&&(s.subQueries=t),e.yy.subQueries.push(s)),e.yy.latestTablePrimaries=e.yy.primariesStack.pop(),e.yy.locations=e.yy.locationsStack.pop(),e.yy.selectListAliases=e.yy.selectListAliasesStack.pop()},e.suggestSelectListAliases=function(){e.yy.selectListAliases&&e.yy.selectListAliases.length>0&&e.yy.result.suggestColumns&&(void 0===e.yy.result.suggestColumns.identifierChain||0===e.yy.result.suggestColumns.identifierChain.length)&&(e.yy.result.suggestColumnAliases=e.yy.selectListAliases)},e.mergeSuggestKeywords=function(){var e=[];return Array.prototype.slice.call(arguments).forEach((function(s){void 0!==s&&void 0!==s.suggestKeywords&&(e=e.concat(s.suggestKeywords))})),e.length>0?{suggestKeywords:e}:{}},e.suggestValueExpressionKeywords=function(s,t){var i=e.getValueExpressionKeywords(s,t);e.suggestKeywords(i.suggestKeywords),i.suggestColRefKeywords&&e.suggestColRefKeywords(i.suggestColRefKeywords),s.lastType?e.addColRefIfExists(s.lastType):e.addColRefIfExists(s)},e.getSelectListKeywords=function(e){var s=[{value:"CASE",weight:450},"FALSE","TRUE","NULL"];return e||s.push({value:"*",weight:1e4}),s},e.getValueExpressionKeywords=function(s,t){var a=s.lastType?s.lastType.types:s.types,n=["<","<=","<=>","<>","=",">",">=","BETWEEN","IN","IS NOT NULL","IS NULL","IS NOT TRUE","IS TRUE","IS NOT FALSE","IS FALSE","NOT BETWEEN","NOT IN"];return t&&(n=n.concat(t)),s.suggestKeywords&&(n=n.concat(s.suggestKeywords)),1===a.length&&"COLREF"===a[0]?{suggestKeywords:n,suggestColRefKeywords:{BOOLEAN:["AND","OR"],NUMBER:["+","-","*","/","%","DIV"],STRING:["LIKE","NOT LIKE","REGEXP","RLIKE"]}}:(Object(i.a)(e.yy.activeDialect,["BOOLEAN"],a)&&(n=n.concat(["AND","OR"])),Object(i.a)(e.yy.activeDialect,["NUMBER"],a)&&(n=n.concat(["+","-","*","/","%","DIV"])),Object(i.a)(e.yy.activeDialect,["STRING"],a)&&(n=n.concat(["LIKE","NOT LIKE","REGEXP","RLIKE"])),{suggestKeywords:n})},e.getTypeKeywords=function(){return["BIGINT","BOOLEAN","CHAR","DECIMAL","DOUBLE","FLOAT","INT","SMALLINT","TIMESTAMP","STRING","TINYINT","VARCHAR"]},e.getColumnDataTypeKeywords=function(){return e.getTypeKeywords()},e.addColRefIfExists=function(s){s.columnReference&&(e.yy.result.colRef={identifierChain:s.columnReference})},e.selectListNoTableSuggest=function(s,t){if(s.cursorAtStart){var i=e.getSelectListKeywords();t||(i=i.concat([{value:"ALL",weight:2},{value:"DISTINCT",weight:2}])),e.suggestKeywords(i)}else e.checkForKeywords(s);s.suggestFunctions&&e.suggestFunctions(),s.suggestColumns&&e.suggestColumns(),!s.suggestAggregateFunctions||t&&"ALL"!==t||(e.suggestAggregateFunctions(),e.suggestAnalyticFunctions())},e.suggestJoinConditions=function(s){e.yy.result.suggestJoinConditions=s||{},e.yy.latestTablePrimaries&&!e.yy.result.suggestJoinConditions.tablePrimaries&&(e.yy.result.suggestJoinConditions.tablePrimaries=e.yy.latestTablePrimaries.concat())},e.suggestJoins=function(s){e.yy.result.suggestJoins=s||{}},e.findCaseType=function(e){var s={};return e.caseTypes.forEach((function(e){e.types.forEach((function(e){s[e]=!0}))})),1===Object.keys(s).length?{types:[Object.keys(s)[0]]}:{types:["T"]}},e.applyArgumentTypesToSuggestions=function(s,t){(e.yy.result.suggestFunctions||e.yy.result.suggestColumns)&&(e.yy.result.udfArgument={name:s.toLowerCase(),position:t})},e.commitLocations=function(){if(0!==e.yy.locations.length){for(var s=e.yy.latestTablePrimaries,t=e.yy.locations.length,i=function(){var i=e.yy.locations[t];if("variable"===i.type&&i.colRef&&(e.expandIdentifierChain({wrapper:i.colRef,tablePrimaries:s,isColumnWrapper:!0}),delete i.colRef.linked),"unknown"===i.type&&void 0!==i.identifierChain&&i.identifierChain.length>0&&i.identifierChain.length<=2&&s){var n=s.filter((function(e){return Object(a.b)(e.alias,i.identifierChain[0].name)||e.identifierChain&&Object(a.b)(e.identifierChain[0].name,i.identifierChain[0].name)}));!n.length&&i.firstInChain&&(n=s.filter((function(e){return!e.alias&&e.identifierChain&&Object(a.b)(e.identifierChain[e.identifierChain.length-1].name,i.identifierChain[0].name)}))),n.length?n[0].identifierChain.length>1&&1===i.identifierChain.length&&Object(a.b)(n[0].identifierChain[0].name,i.identifierChain[0].name)?i.type="database":n[0].alias&&Object(a.b)(i.identifierChain[0].name,n[0].alias)&&i.identifierChain.length>1||!n[0].alias&&n[0].identifierChain&&Object(a.b)(i.identifierChain[0].name,n[0].identifierChain[n[0].identifierChain.length-1].name)&&i.identifierChain.length>1?(i.type="column",e.expandIdentifierChain({tablePrimaries:s,wrapper:i,anyOwner:!0})):(i.type="table",e.expandIdentifierChain({tablePrimaries:s,wrapper:i,anyOwner:!0})):e.yy.subQueries&&(n=e.yy.subQueries.filter((function(e){return Object(a.b)(e.alias,i.identifierChain[0].name)}))).length>0&&(i.type="subQuery",i.identifierChain=[{subQuery:n[0].alias}])}if("asterisk"!==i.type||i.linked||(s&&s.length>0?(i.tables=[],i.linked=!1,i.identifierChain||(i.identifierChain=[{asterisk:!0}]),e.expandIdentifierChain({tablePrimaries:s,wrapper:i,anyOwner:!1}),0===i.tables.length&&e.yy.locations.splice(t,1)):e.yy.locations.splice(t,1)),"table"===i.type&&void 0!==i.identifierChain&&1===i.identifierChain.length&&i.identifierChain[0].name&&e.yy.locations.some((function(e){if("alias"===e.type&&"cte"===e.source&&Object(a.c)(e.alias,i.identifierChain[0].name))return i.type="alias",i.target="cte",i.alias=i.identifierChain[0].name,delete i.identifierChain,!0})),"table"!==i.type||void 0!==i.identifierChain&&0!==i.identifierChain.length||e.yy.locations.splice(t,1),"unknown"===i.type&&(i.type="column"),"column"===i.type)for(var r=t-1;r>=0;r--){var o=e.yy.locations[r];if("alias"===o.type&&"column"===o.source&&i.identifierChain&&1===i.identifierChain.length&&i.identifierChain[0].name&&o.alias&&i.identifierChain[0].name.toLowerCase()===o.alias.toLowerCase()){i.type="alias",i.source="column",i.alias=i.identifierChain[0].name,delete i.identifierChain,i.parentLocation=o.parentLocation;break}}if("column"===i.type){var u=i.identifierChain?i.identifierChain.concat():void 0;e.expandIdentifierChain({tablePrimaries:s,wrapper:i,anyOwner:!0,isColumnWrapper:!0,isColumnLocation:!0}),void 0===i.identifierChain?e.yy.locations.splice(t,1):0===i.identifierChain.length&&u&&1===u.length&&(i.identifierChain=u)}"column"===i.type&&i.identifierChain&&i.identifierChain.length>1&&i.tables&&i.tables.length>0&&(i.type="complex"),delete i.firstInChain,"column"!==i.type&&"complex"!==i.type?delete i.qualified:void 0===i.qualified&&(i.qualified=!1)};t--;)i();e.yy.locations.length>0&&(e.yy.allLocations=e.yy.allLocations.concat(e.yy.locations),e.yy.locations=[])}};var s=function(){e.yy.result.lowerCase=e.yy.lowerCase||!1;var s={};if(void 0!==e.yy.latestCommonTableExpressions&&e.yy.latestCommonTableExpressions.forEach((function(e){s[e.alias.toLowerCase()]=e})),a.a.forEach((function(t){if("suggestAggregateFunctions"!==t&&void 0!==e.yy.result[t]&&0===e.yy.result[t].tables.length)delete e.yy.result[t];else if(void 0!==e.yy.result[t]&&void 0!==e.yy.result[t].tables)for(var i=e.yy.result[t].tables.length-1;i>=0;i--){var a=e.yy.result[t].tables[i];1===a.identifierChain.length&&void 0!==a.identifierChain[0].name&&void 0!==s[a.identifierChain[0].name.toLowerCase()]&&e.yy.result[t].tables.splice(i,1)}})),void 0!==e.yy.result.colRef&&(e.yy.result.colRef.linked&&void 0!==e.yy.result.colRef.identifierChain&&0!==e.yy.result.colRef.identifierChain.length||(delete e.yy.result.colRef,void 0!==e.yy.result.suggestColRefKeywords&&(Object.keys(e.yy.result.suggestColRefKeywords).forEach((function(s){e.yy.result.suggestKeywords=e.yy.result.suggestKeywords.concat(e.createWeightedKeywords(e.yy.result.suggestColRefKeywords[s],-1))})),delete e.yy.result.suggestColRefKeywords),e.yy.result.suggestColumns&&1===e.yy.result.suggestColumns.types.length&&"COLREF"===e.yy.result.suggestColumns.types[0]&&(e.yy.result.suggestColumns.types=["T"]),delete e.yy.result.suggestValues)),void 0!==e.yy.result.colRef&&(e.yy.result.suggestValues||e.yy.result.suggestColRefKeywords||e.yy.result.suggestColumns&&"COLREF"===e.yy.result.suggestColumns.types[0]||delete e.yy.result.colRef),void 0!==e.yy.result.suggestIdentifiers&&e.yy.result.suggestIdentifiers.length>0&&(delete e.yy.result.suggestTables,delete e.yy.result.suggestDatabases),void 0!==e.yy.result.suggestColumns){var t=e.yy.result.suggestColumns;void 0===t.tables||0===t.tables.length?(delete e.yy.result.suggestColumns,delete e.yy.result.subQueries):(delete e.yy.result.suggestTables,delete e.yy.result.suggestDatabases,t.tables.forEach((function(e){if(void 0!==e.identifierChain&&1===e.identifierChain.length&&void 0!==e.identifierChain[0].name){var t=s[e.identifierChain[0].name.toLowerCase()];void 0!==t&&(delete e.identifierChain[0].name,e.identifierChain[0].cte=t.alias)}else void 0===e.identifierChain&&e.subQuery&&(e.identifierChain=[{subQuery:e.subQuery}],delete e.subQuery)})),void 0!==t.identifierChain&&0===t.identifierChain.length&&delete t.identifierChain)}else delete e.yy.result.subQueries;if(void 0!==e.yy.result.suggestJoinConditions&&(void 0!==e.yy.result.suggestJoinConditions.tables&&0!==e.yy.result.suggestJoinConditions.tables.length||delete e.yy.result.suggestJoinConditions),void 0!==e.yy.result.suggestTables&&void 0!==e.yy.result.commonTableExpressions){var i=[];e.yy.result.commonTableExpressions.forEach((function(s){var t={name:s.alias};e.yy.result.suggestTables.prependFrom&&(t.prependFrom=!0),e.yy.result.suggestTables.prependQuestionMark&&(t.prependQuestionMark=!0),i.push(t)})),i.length>0&&(e.yy.result.suggestCommonTableExpressions=i)}};e.identifyPartials=function(e,s){var t=e.match(/[0-9a-zA-Z_]*$/),i=s.match(/^[0-9a-zA-Z_]*(?:\((?:[^)]*\))?)?/);return{left:t?t[0].length:0,right:i?i[0].length:0}};var t=function(e,s){s.alias?e.push({alias:s.alias,identifierChain:s.identifierChain}):e.push({identifierChain:s.identifierChain})};e.expandIdentifierChain=function(s){var i=s.wrapper,r=s.anyOwner,o=s.isColumnWrapper,u=s.isColumnLocation,l=s.tablePrimaries||e.yy.latestTablePrimaries;if(void 0!==i.identifierChain&&void 0!==l){var c=i.identifierChain.concat();if(0!==l.length){if(r||(l=n(l,i.owner)),c.length>0&&c[c.length-1].asterisk){var y=[];if(l.forEach((function(e){c.length>1&&!e.subQueryAlias?(2===c.length&&Object(a.b)(e.alias,c[0].name)||2===c.length&&Object(a.b)(e.identifierChain[0].name,c[0].name)||3===c.length&&e.identifierChain.length>1&&Object(a.b)(e.identifierChain[0].name,c[0].name)&&Object(a.b)(e.identifierChain[1].name,c[1].name))&&t(y,e):e.subQueryAlias?y.push({identifierChain:[{subQuery:e.subQueryAlias}]}):t(y,e)})),y.length>0)return i.tables=y,void delete i.identifierChain}var g,T=!1,d=!1;if(c.length>0)for(var p=0;p<l.length;p++)if(l[p].subQueryAlias)Object(a.b)(l[p].subQueryAlias,c[0].name)&&(g=l[p]);else{if(Object(a.b)(l[p].alias,c[0].name)){g=l[p],d=!0;break}if(l[p].identifierChain.length>1&&c.length>1&&Object(a.b)(l[p].identifierChain[0].name,c[0].name)&&Object(a.b)(l[p].identifierChain[1].name,c[1].name)){g=l[p],T=!0;break}if(!g&&Object(a.b)(l[p].identifierChain[0].name,c[0].name)&&c.length>(u?1:0))g=l[p];else if(!g&&l[p].identifierChain.length>1&&!l[p].alias&&Object(a.b)(l[p].identifierChain[l[p].identifierChain.length-1].name,c[0].name)){g=l[p];break}}g?(c.shift(),T&&c.shift()):1!==l.length||o||(g=l[0]),g?o?(i.identifierChain=c,g.subQueryAlias?i.tables=[{subQuery:g.subQueryAlias}]:g.alias?i.tables=!u&&o&&d?[{identifierChain:g.identifierChain}]:[{identifierChain:g.identifierChain,alias:g.alias}]:i.tables=[{identifierChain:g.identifierChain}]):(g.subQueryAlias?c.unshift({subQuery:g.subQueryAlias}):c=g.identifierChain.concat(c),i.tables?(i.tables.push({identifierChain:c}),delete i.identifierChain):i.identifierChain=c):(o&&(i.tables=[]),l.forEach((function(e){var s=e.subQueryAlias?{subQuery:e.subQueryAlias}:{identifierChain:e.identifierChain};e.alias&&(s.alias=e.alias),i.tables&&i.tables.push(s)}))),delete i.owner,i.linked=!0}else delete i.identifierChain}};var n=function(e,s){var t=[];return e.forEach((function(e){(void 0===s&&void 0===e.owner||s===e.owner)&&t.push(e)})),t},r=function(s){var t=[],i=[];s.forEach((function(e){if(e.identifierChain&&e.identifierChain.length>0){var s={identifierChain:e.identifierChain};if(e.alias)s.alias=e.alias,i.push({name:s.alias+".",type:"alias"});else{var a=e.identifierChain[e.identifierChain.length-1];void 0!==a.name?i.push({name:a.name+".",type:"table"}):void 0!==a.subQuery&&i.push({name:a.subQuery+".",type:"sub-query"})}t.push(s)}else e.subQueryAlias&&(i.push({name:e.subQueryAlias+".",type:"sub-query"}),t.push({identifierChain:[{subQuery:e.subQueryAlias}]}))})),i.length>0&&(void 0===e.yy.result.suggestIdentifiers?e.yy.result.suggestIdentifiers=i:e.yy.result.suggestIdentifiers=i.concat(e.yy.result.suggestIdentifiers)),e.yy.result.suggestColumns.tables=t,e.yy.result.suggestColumns.identifierChain&&0===e.yy.result.suggestColumns.identifierChain.length&&delete e.yy.result.suggestColumns.identifierChain,e.yy.result.suggestColumns.linked=!0},o=function(){if(e.yy.cursorFound&&void 0!==e.yy.latestTablePrimaries){if(a.a.forEach((function(s){void 0!==e.yy.result[s]&&e.yy.result[s].tablePrimaries&&!e.yy.result[s].linked&&(e.yy.result[s].tables=[],e.yy.result[s].tablePrimaries.forEach((function(t){t.subQueryAlias||e.yy.result[s].tables.push(t.alias?{identifierChain:t.identifierChain.concat(),alias:t.alias}:{identifierChain:t.identifierChain.concat()})})),delete e.yy.result[s].tablePrimaries,e.yy.result[s].linked=!0)})),void 0!==e.yy.result.suggestColumns&&!e.yy.result.suggestColumns.linked){var s=n(e.yy.latestTablePrimaries,e.yy.result.suggestColumns.owner);e.yy.result.suggestColumns.tables||(e.yy.result.suggestColumns.tables=[]),e.yy.subQueries.length>0&&(e.yy.result.subQueries=e.yy.subQueries),void 0===e.yy.result.suggestColumns.identifierChain||0===e.yy.result.suggestColumns.identifierChain.length?s.length>1?r(s):(1===s.length&&(s[0].alias||s[0].subQueryAlias)&&r(s),e.expandIdentifierChain({wrapper:e.yy.result.suggestColumns,anyOwner:!1,isColumnWrapper:!0})):e.expandIdentifierChain({wrapper:e.yy.result.suggestColumns,anyOwner:!1,isColumnWrapper:!0})}if(void 0!==e.yy.result.colRef&&!e.yy.result.colRef.linked){e.expandIdentifierChain({wrapper:e.yy.result.colRef});var t=n(e.yy.latestTablePrimaries);(0===t.length||t.length>1&&1===e.yy.result.colRef.identifierChain.length)&&(e.yy.result.colRef.identifierChain=[])}void 0===e.yy.result.suggestKeyValues||e.yy.result.suggestKeyValues.linked||e.expandIdentifierChain({wrapper:e.yy.result.suggestKeyValues})}};e.addTablePrimary=function(s){void 0===e.yy.latestTablePrimaries&&(e.yy.latestTablePrimaries=[]),e.yy.latestTablePrimaries.push(s)},e.suggestFileFormats=function(){e.suggestKeywords(["AVRO","KUDU","ORC","PARQUET","RCFILE","SEQUENCEFILE","TEXTFILE"])},e.getKeywordsForOptionalsLR=function(e,s,t){for(var i=[],a=0;a<e.length;a++)if(e[a]||void 0!==t&&!t[a]){if(e[a])break}else s[a]instanceof Array?i=i.concat(s[a]):i.push(s[a]);return i},e.suggestDdlAndDmlKeywords=function(s){var t=["ALTER","CREATE","DESCRIBE","DROP","GRANT","INSERT","REVOKE","SELECT","SET","SHOW","TRUNCATE","UPDATE","USE","WITH"];s&&(t=t.concat(s)),e.suggestKeywords(t)},e.checkForSelectListKeywords=function(s){if(0!==s.length){var t=s[s.length-1];if(t&&t.valueExpression){var i=e.getValueExpressionKeywords(t.valueExpression),a=[];t.suggestKeywords&&(a=a.concat(t.suggestKeywords)),i.suggestKeywords&&(a=a.concat(i.suggestKeywords)),i.suggestColRefKeywords&&(e.suggestColRefKeywords(i.suggestColRefKeywords),e.addColRefIfExists(t.valueExpression)),t.alias||a.push("AS"),a.length>0&&e.suggestKeywords(a)}}},e.checkForKeywords=function(s){s&&(s.suggestKeywords&&s.suggestKeywords.length>0&&e.suggestKeywords(s.suggestKeywords),s.suggestColRefKeywords&&(e.suggestColRefKeywords(s.suggestColRefKeywords),e.addColRefIfExists(s)))},e.createWeightedKeywords=function(e,s){var t=[];return e.forEach((function(e){void 0!==e.weight?(e.weight=s+e.weight/10,t.push(e)):t.push({value:e,weight:s})})),t},e.suggestKeywords=function(s){var t=[];0!==s.length&&(s.forEach((function(e){void 0!==e.weight?t.push(e):t.push({value:e,weight:-1})})),t.sort((function(e,s){return e.weight!==s.weight?s.weight-e.weight:e.value.localeCompare(s.value)})),e.yy.result.suggestKeywords=t)},e.suggestColRefKeywords=function(s){e.yy.result.suggestColRefKeywords=s},e.suggestTablesOrColumns=function(s){void 0!==e.yy.latestTablePrimaries?e.yy.latestTablePrimaries.filter((function(e){return Object(a.b)(e.alias,s)})).length>0?e.suggestColumns({identifierChain:[{name:s}]}):e.suggestTables({identifierChain:[{name:s}]}):e.suggestTables({identifierChain:[{name:s}]})},e.suggestFunctions=function(s){e.yy.result.suggestFunctions=s||{}},e.suggestAggregateFunctions=function(){var s=[],t={};e.yy.latestTablePrimaries.forEach((function(e){void 0!==e.alias&&(t[e.alias]=!0),void 0===e.identifierChain||t[e.identifierChain[0].name]||void 0!==e.owner||s.push(e)})),e.yy.result.suggestAggregateFunctions={tablePrimaries:s}},e.suggestAnalyticFunctions=function(){e.yy.result.suggestAnalyticFunctions=!0},e.suggestSetOptions=function(){e.yy.result.suggestSetOptions=!0},e.suggestIdentifiers=function(s){e.yy.result.suggestIdentifiers=s},e.suggestColumns=function(s){void 0===s?s={identifierChain:[]}:void 0===s.identifierChain&&(s.identifierChain=[]),e.yy.result.suggestColumns=s},e.suggestGroupBys=function(s){e.yy.result.suggestGroupBys=s||{}},e.suggestOrderBys=function(s){e.yy.result.suggestOrderBys=s||{}},e.suggestFilters=function(s){e.yy.result.suggestFilters=s||{}},e.suggestKeyValues=function(s){e.yy.result.suggestKeyValues=s||{}},e.suggestTables=function(s){e.yy.result.suggestTables=s||{}},e.firstDefined=function(){for(var e=0;e+1<arguments.length;e+=2)if(arguments[e])return arguments[e+1]},e.addColRefToVariableIfExists=function(s,t){if(s&&s.columnReference&&s.columnReference.length&&t&&t.columnReference&&t.columnReference.length&&e.yy.locations.length>1){var i=function(s,t){1===t.length&&t[0].name&&e.yy.locations.some((function(e){if("column"===e.type&&e.alias===t[0].name)return t=e.identifierChain,!0}));for(var i=e.yy.locations.length-1;i>0;i--){var a=e.yy.locations[i];if("variable"===a.type&&a.value===s){a.colRef={identifierChain:t};break}}};/\${[^}]*}/.test(s.columnReference[0].name)?i(s.columnReference[0].name,t.columnReference):/\${[^}]*}/.test(t.columnReference[0].name)&&i(t.columnReference[0].name,s.columnReference)}},e.suggestDatabases=function(s){e.yy.result.suggestDatabases=s||{}},e.suggestHdfs=function(s){e.yy.result.suggestHdfs=s||{}},e.suggestValues=function(s){e.yy.result.suggestValues=s||{}},e.determineCase=function(s){e.yy.caseDetermined||(e.yy.lowerCase=s.toLowerCase()===s,e.yy.caseDetermined=!0)},e.handleQuotedValueWithCursor=function(s,t,i,a){if(-1!==t.indexOf("†")||-1!==t.indexOf("‡")){e.yy.partialCursor=-1!==t.indexOf("‡");var n=e.yy.partialCursor?t.indexOf("‡"):t.indexOf("†");e.yy.cursorFound={first_line:i.first_line,last_line:i.last_line,first_column:i.first_column+n,last_column:i.first_column+n+1};var r=t.substring(n+1),o=(s.upcomingInput().match(new RegExp(a,"g"))||[]).length;return o>0&&0!=(1&o)?(e.yy.missingEndQuote=!1,s.input()):(e.yy.missingEndQuote=!0,s.unput(r)),s.popState(),!0}return!1};var u=!1;e.parseSql=function(t,i,n){if(t=t.replace(/\r\n|\n\r/gm,"\n"),i=i.replace(/\r\n|\n\r/gm,"\n"),e.yy.result={locations:[]},e.yy.lowerCase=!1,e.yy.locations=[],e.yy.definitions=[],e.yy.allLocations=[],e.yy.subQueries=[],e.yy.errors=[],e.yy.selectListAliases=[],e.yy.activeDialect="generic",e.yy.locationsStack=[],e.yy.primariesStack=[],e.yy.subQueriesStack=[],e.yy.resultStack=[],e.yy.selectListAliasesStack=[],delete e.yy.caseDetermined,delete e.yy.cursorFound,delete e.yy.partialCursor,!u){var r=e.lexer.setInput;e.lexer.setInput=function(s,t){return r.bind(e.lexer)(s,t)},u=!0}e.prepareNewStatement();var l;if(t.length>15e4){if(t.length-t.lastIndexOf(";")>15e4)return{};var c=t.substring(t.length-15e4);t=c.substring(c.indexOf(";")+1)}if(i.length>15e4)if(i.length-i.indexOf(";")>15e4)i="";else{var y=i.substring(0,15e4);i=y.substring(0,y.lastIndexOf(";"))}e.yy.partialLengths=e.identifyPartials(t,i),e.yy.partialLengths.left>0&&(t=t.substring(0,t.length-e.yy.partialLengths.left)),e.yy.partialLengths.right>0&&(i=i.substring(e.yy.partialLengths.right));try{l=e.parse(t+(0===t.length||/[\s(]$/.test(t)?" † ":"‡")+i)}catch(s){if(void 0===e.yy.result)throw s;n&&(console.warn(s),console.warn(s.stack)),l=e.yy.result}e.yy.errors.length>0&&(e.yy.result.errors=e.yy.errors,n&&console.warn(e.yy.errors));try{o(),e.commitLocations(),s()}catch(e){n&&(console.warn(e),console.warn(e.stack))}e.yy.allLocations.sort((function(e,s){return e.location.first_line!==s.location.first_line?e.location.first_line-s.location.first_line:e.location.first_column!==s.location.first_column?e.location.first_column-s.location.first_column:e.location.last_column!==s.location.last_column?s.location.last_column-e.location.last_column:s.type.localeCompare(e.type)})),e.yy.result.locations=e.yy.allLocations,e.yy.result.definitions=e.yy.definitions,e.yy.result.locations.forEach((function(e){delete e.linked})),void 0!==e.yy.result.suggestColumns&&delete e.yy.result.suggestColumns.linked,a.a.forEach((function(s){void 0!==e.yy.result[s]&&delete e.yy.result[s].linked})),void 0!==e.yy.result.colRef&&delete e.yy.result.colRef.linked,void 0!==e.yy.result.suggestKeyValues&&delete e.yy.result.suggestKeyValues.linked,void 0!==l.error&&void 0!==l.error.expected&&(l.error.expected=l.error.expected.filter((function(e){return-1===e.indexOf("CURSOR")}))),void 0!==l.error&&l.error.recoverable&&delete l.error;var g=null;return l.locations.forEach((function(e){"statement"===e.type&&(null===g?(e.location.first_line=1,e.location.first_column=1):(e.location.first_line=g.location.last_line,e.location.first_column=g.location.last_column+1),g=e)})),l}},initSyntaxParser:a.e}}}).default}));