diff --git a/dist/main.cjs b/dist/main.cjs index 5d45f3f..e70aee4 100644 --- a/dist/main.cjs +++ b/dist/main.cjs @@ -1,4 +1,4 @@ -var qb=Object.create;var ur=Object.defineProperty;var kb=Object.getOwnPropertyDescriptor;var Vb=Object.getOwnPropertyNames;var Jb=Object.getPrototypeOf,zb=Object.prototype.hasOwnProperty;var Q=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports),Zb=(s,t)=>{for(var o in t)ur(s,o,{get:t[o],enumerable:!0})},Au=(s,t,o,E)=>{if(t&&typeof t=="object"||typeof t=="function")for(let T of Vb(t))!zb.call(s,T)&&T!==o&&ur(s,T,{get:()=>t[T],enumerable:!(E=kb(t,T))||E.enumerable});return s};var ar=(s,t,o)=>(o=s!=null?qb(Jb(s)):{},Au(t||!s||!s.__esModule?ur(o,"default",{value:s,enumerable:!0}):o,s)),jb=s=>Au(ur({},"__esModule",{value:!0}),s);var cu=Q((bu,pr)=>{(function(s,t){typeof pr=="object"&&pr.exports?pr.exports=t():s.nearley=t()})(bu,function(){function s(I,L,P){return this.id=++s.highestId,this.name=I,this.symbols=L,this.postprocess=P,this}s.highestId=0,s.prototype.toString=function(I){var L=typeof I>"u"?this.symbols.map(M).join(" "):this.symbols.slice(0,I).map(M).join(" ")+" \u25CF "+this.symbols.slice(I).map(M).join(" ");return this.name+" \u2192 "+L};function t(I,L,P,K){this.rule=I,this.dot=L,this.reference=P,this.data=[],this.wantedBy=K,this.isComplete=this.dot===I.symbols.length}t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(I){var L=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return L.left=this,L.right=I,L.isComplete&&(L.data=L.build(),L.right=void 0),L},t.prototype.build=function(){var I=[],L=this;do I.push(L.right.data),L=L.left;while(L.left);return I.reverse(),I},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,c.fail))};function o(I,L){this.grammar=I,this.index=L,this.states=[],this.wants={},this.scannable=[],this.completed={}}o.prototype.process=function(I){for(var L=this.states,P=this.wants,K=this.completed,q=0;q()=>(t||s((t={exports:{}}).exports,t),t.exports),Zb=(s,t)=>{for(var o in t)Er(s,o,{get:t[o],enumerable:!0})},Au=(s,t,o,E)=>{if(t&&typeof t=="object"||typeof t=="function")for(let T of Vb(t))!zb.call(s,T)&&T!==o&&Er(s,T,{get:()=>t[T],enumerable:!(E=kb(t,T))||E.enumerable});return s};var ur=(s,t,o)=>(o=s!=null?qb(Jb(s)):{},Au(t||!s||!s.__esModule?Er(o,"default",{value:s,enumerable:!0}):o,s)),jb=s=>Au(Er({},"__esModule",{value:!0}),s);var cu=Q((bu,ar)=>{(function(s,t){typeof ar=="object"&&ar.exports?ar.exports=t():s.nearley=t()})(bu,function(){function s(I,L,P){return this.id=++s.highestId,this.name=I,this.symbols=L,this.postprocess=P,this}s.highestId=0,s.prototype.toString=function(I){var L=typeof I>"u"?this.symbols.map(U).join(" "):this.symbols.slice(0,I).map(U).join(" ")+" \u25CF "+this.symbols.slice(I).map(U).join(" ");return this.name+" \u2192 "+L};function t(I,L,P,K){this.rule=I,this.dot=L,this.reference=P,this.data=[],this.wantedBy=K,this.isComplete=this.dot===I.symbols.length}t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(I){var L=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return L.left=this,L.right=I,L.isComplete&&(L.data=L.build(),L.right=void 0),L},t.prototype.build=function(){var I=[],L=this;do I.push(L.right.data),L=L.left;while(L.left);return I.reverse(),I},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,c.fail))};function o(I,L){this.grammar=I,this.index=L,this.states=[],this.wants={},this.scannable=[],this.completed={}}o.prototype.process=function(I){for(var L=this.states,P=this.wants,K=this.completed,q=0;q0&&L.push(" ^ "+K+" more lines identical to this"),K=0,L.push(" "+te)),P=te}},c.prototype.getSymbolDisplay=function(I){return O(I)},c.prototype.buildFirstStateStack=function(I,L){if(L.indexOf(I)!==-1)return null;if(I.wantedBy.length===0)return[I];var P=I.wantedBy[0],K=[I].concat(L),q=this.buildFirstStateStack(P,K);return q===null?null:[I].concat(q)},c.prototype.save=function(){var I=this.table[this.current];return I.lexerState=this.lexerState,I},c.prototype.restore=function(I){var L=I.index;this.current=L,this.table[L]=I,this.table.splice(L+1),this.lexerState=I.lexerState,this.results=this.finish()},c.prototype.rewind=function(I){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[I])},c.prototype.finish=function(){var I=[],L=this.grammar.start,P=this.table[this.table.length-1];return P.states.forEach(function(K){K.rule.name===L&&K.dot===K.rule.symbols.length&&K.reference===0&&K.data!==c.fail&&I.push(K)}),I.map(function(K){return K.data})};function O(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return"character matching "+I;if(I.type)return I.type+" token";if(I.test)return"token matching "+String(I.test);throw new Error("Unknown symbol type: "+I)}}function M(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return I.toString();if(I.type)return"%"+I.type;if(I.test)return"<"+String(I.test)+">";throw new Error("Unknown symbol type: "+I)}}return{Parser:c,Grammar:E,Rule:s}})});var he=Q(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.setProperty=Ie.isDefined=Ie.isObject=Ie.isFunction=Ie.isNumber=Ie.isString=Ie.isArray=Ie.filterNullValues=Ie.trimString=Ie.stringArrayToMapping=void 0;function ec(s=[],t=E=>E,o=E=>E){return s.reduce((E,T)=>(E[t(T)]=o(T),E),{})}Ie.stringArrayToMapping=ec;function sc(s,t="",o="\\s\\0\\x0B"){return s.replace(new RegExp(`^[${t+o}]*|[${t+o}]*$`,"gim"),"")}Ie.trimString=sc;function nc(s){return Object.getOwnPropertyNames(s).forEach(t=>{s[t]===null&&delete s[t]}),s}Ie.filterNullValues=nc;function tc(s){return Array.isArray(s)}Ie.isArray=tc;function rc(s){return typeof s=="string"}Ie.isString=rc;function _c(s){return typeof s=="number"}Ie.isNumber=_c;function oc(s){return typeof s=="function"}Ie.isFunction=oc;function ic(s){return s!==null&&typeof s=="object"}Ie.isObject=ic;function Ec(s){return typeof s<"u"&&s!==null}Ie.isDefined=Ec;function uc(s,t,o){typeof o!="function"&&Object.defineProperty(s,t,{value:o,enumerable:!0,configurable:!0,writable:!0})}Ie.setProperty=uc});var Iu=Q((mu,$r)=>{(function(s,t){typeof define=="function"&&define.amd?define([],t):typeof $r=="object"&&$r.exports?$r.exports=t():s.moo=t()})(mu,function(){"use strict";var s=Object.prototype.hasOwnProperty,t=Object.prototype.toString,o=typeof new RegExp().sticky=="boolean";function E(R){return R&&t.call(R)==="[object RegExp]"}function T(R){return R&&typeof R=="object"&&!E(R)&&!Array.isArray(R)}function c(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function O(R){var x=new RegExp("|"+R);return x.exec("").length-1}function M(R){return"("+R+")"}function I(R){if(!R.length)return"(?!)";var x=R.map(function(v){return"(?:"+v+")"}).join("|");return"(?:"+x+")"}function L(R){if(typeof R=="string")return"(?:"+c(R)+")";if(E(R)){if(R.ignoreCase)throw new Error("RegExp /i flag not allowed");if(R.global)throw new Error("RegExp /g flag is implied");if(R.sticky)throw new Error("RegExp /y flag is implied");if(R.multiline)throw new Error("RegExp /m flag is implied");return R.source}else throw new Error("Not a pattern: "+R)}function P(R){for(var x=Object.getOwnPropertyNames(R),v=[],w=0;w0)throw new Error("RegExp has capture groups: "+Pe+` +`)},c.prototype.displayStateStack=function(I,L){for(var P,K=0,q=0;q0&&L.push(" ^ "+K+" more lines identical to this"),K=0,L.push(" "+te)),P=te}},c.prototype.getSymbolDisplay=function(I){return O(I)},c.prototype.buildFirstStateStack=function(I,L){if(L.indexOf(I)!==-1)return null;if(I.wantedBy.length===0)return[I];var P=I.wantedBy[0],K=[I].concat(L),q=this.buildFirstStateStack(P,K);return q===null?null:[I].concat(q)},c.prototype.save=function(){var I=this.table[this.current];return I.lexerState=this.lexerState,I},c.prototype.restore=function(I){var L=I.index;this.current=L,this.table[L]=I,this.table.splice(L+1),this.lexerState=I.lexerState,this.results=this.finish()},c.prototype.rewind=function(I){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[I])},c.prototype.finish=function(){var I=[],L=this.grammar.start,P=this.table[this.table.length-1];return P.states.forEach(function(K){K.rule.name===L&&K.dot===K.rule.symbols.length&&K.reference===0&&K.data!==c.fail&&I.push(K)}),I.map(function(K){return K.data})};function O(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return"character matching "+I;if(I.type)return I.type+" token";if(I.test)return"token matching "+String(I.test);throw new Error("Unknown symbol type: "+I)}}function U(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return I.toString();if(I.type)return"%"+I.type;if(I.test)return"<"+String(I.test)+">";throw new Error("Unknown symbol type: "+I)}}return{Parser:c,Grammar:E,Rule:s}})});var he=Q(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.setProperty=Ie.isDefined=Ie.isObject=Ie.isFunction=Ie.isNumber=Ie.isString=Ie.isArray=Ie.filterNullValues=Ie.trimString=Ie.stringArrayToMapping=void 0;function ec(s=[],t=E=>E,o=E=>E){return s.reduce((E,T)=>(E[t(T)]=o(T),E),{})}Ie.stringArrayToMapping=ec;function sc(s,t="",o="\\s\\0\\x0B"){return s.replace(new RegExp(`^[${t+o}]*|[${t+o}]*$`,"gim"),"")}Ie.trimString=sc;function nc(s){return Object.getOwnPropertyNames(s).forEach(t=>{s[t]===null&&delete s[t]}),s}Ie.filterNullValues=nc;function tc(s){return Array.isArray(s)}Ie.isArray=tc;function rc(s){return typeof s=="string"}Ie.isString=rc;function _c(s){return typeof s=="number"}Ie.isNumber=_c;function oc(s){return typeof s=="function"}Ie.isFunction=oc;function ic(s){return s!==null&&typeof s=="object"}Ie.isObject=ic;function Ec(s){return typeof s<"u"&&s!==null}Ie.isDefined=Ec;function uc(s,t,o){typeof o!="function"&&Object.defineProperty(s,t,{value:o,enumerable:!0,configurable:!0,writable:!0})}Ie.setProperty=uc});var Iu=Q((mu,pr)=>{(function(s,t){typeof define=="function"&&define.amd?define([],t):typeof pr=="object"&&pr.exports?pr.exports=t():s.moo=t()})(mu,function(){"use strict";var s=Object.prototype.hasOwnProperty,t=Object.prototype.toString,o=typeof new RegExp().sticky=="boolean";function E(R){return R&&t.call(R)==="[object RegExp]"}function T(R){return R&&typeof R=="object"&&!E(R)&&!Array.isArray(R)}function c(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function O(R){var x=new RegExp("|"+R);return x.exec("").length-1}function U(R){return"("+R+")"}function I(R){if(!R.length)return"(?!)";var x=R.map(function(v){return"(?:"+v+")"}).join("|");return"(?:"+x+")"}function L(R){if(typeof R=="string")return"(?:"+c(R)+")";if(E(R)){if(R.ignoreCase)throw new Error("RegExp /i flag not allowed");if(R.global)throw new Error("RegExp /g flag is implied");if(R.sticky)throw new Error("RegExp /y flag is implied");if(R.multiline)throw new Error("RegExp /m flag is implied");return R.source}else throw new Error("Not a pattern: "+R)}function P(R){for(var x=Object.getOwnPropertyNames(R),v=[],w=0;w0)throw new Error("RegExp has capture groups: "+Pe+` Use (?: \u2026 ) instead`);if(!Y.lineBreaks&&Pe.test(` -`))throw new Error("Rule should declare lineBreaks: "+Pe);Ee.push(M(ds))}}var Bs=v&&v.fallback,Es=o&&!Bs?"ym":"gm",bs=o||Bs?"":"|";G===!0&&(Es+="u");var jr=new RegExp(I(Ee)+bs,Es);return{regexp:jr,groups:se,fast:w,error:v||te}}function Se(R){var x=_e(X(R));return new pe({start:x},"start")}function re(R,x,v){var w=R&&(R.push||R.next);if(w&&!v[w])throw new Error("Missing state '"+w+"' (in token '"+R.defaultType+"' of state '"+x+"')");if(R&&R.pop&&+R.pop!=1)throw new Error("pop must be 1 (in token '"+R.defaultType+"' of state '"+x+"')")}function ye(R,x){var v=R.$all?X(R.$all):[];delete R.$all;var w=Object.getOwnPropertyNames(R);x||(x=w[0]);for(var J=Object.create(null),G=0;G{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});var ac=he(),pc=ac.stringArrayToMapping(["STATS_SAMPLE_PAGES","GEOMETRYCOLLECTION","STATS_AUTO_RECALC","ENCRYPTION_KEY_ID","CURRENT_TIMESTAMP","STATS_PERSISTENT","DELAY_KEY_WRITE","MULTILINESTRING","LOCALTIMESTAMP","AUTO_INCREMENT","AVG_ROW_LENGTH","UNIX_TIMESTAMP","LAST_INSERT_ID","KEY_BLOCK_SIZE","COLUMN_FORMAT","CONNECTION_ID","PAGE_CHECKSUM","TRANSACTIONAL","UTC_TIMESTAMP","INSERT_METHOD","SESSION_USER","MULTIPOLYGON","CURRENT_DATE","CURRENT_TIME","CURRENT_USER","COMPRESSION","IETF_QUOTES","SYSTEM_TIME","SYSTEM_USER","VERSIONING","MULTIPOINT","LINESTRING","CONNECTION","MEDIUMBLOB","COMPRESSED","ENCRYPTION","VALIDATION","CONSTRAINT","ROW_FORMAT","UUID_SHORT","FOUND_ROWS","TABLESPACE","REFERENCES","MEDIUMTEXT","VARBINARY","TEMPORARY","REDUNDANT","EXCLUSIVE","ROW_COUNT","LOCALTIME","MEDIUMINT","TIMESTAMP","DIRECTORY","INVISIBLE","PACK_KEYS","ALGORITHM","CHARACTER","TINYBLOB","UTC_TIME","NATIONAL","FULLTEXT","GEOMETRY","MAX_ROWS","DATABASE","LONGBLOB","UNSIGNED","TINYTEXT","DATETIME","MIN_ROWS","ZEROFILL","UTC_DATE","PASSWORD","CHECKSUM","RESTRICT","LONGTEXT","SMALLINT","CONVERT","SPATIAL","INPLACE","STORAGE","SYSDATE","FOREIGN","TINYINT","DYNAMIC","DISCARD","DISABLE","DEFAULT","DECIMAL","CURTIME","CURDATE","INTEGER","COMPACT","COMMENT","COLLATE","REPLACE","CHARSET","CASCADE","BOOLEAN","NUMERIC","OFFLINE","PRIMARY","POLYGON","VARCHAR","VERSION","WITHOUT","PARTIAL","ENABLE","MEMORY","CREATE","MODIFY","DELETE","ENGINE","UPDATE","BIGINT","SYSTEM","SIMPLE","EXISTS","RENAME","BINARY","NOWAIT","IGNORE","SHARED","IMPORT","ACTION","ONLINE","SCHEMA","PERIOD","UNIQUE","DOUBLE","CHANGE","PARSER","COLUMN","INDEX","FLOAT","POINT","ALTER","ROUND","NCHAR","MATCH","RTREE","BTREE","AFTER","USING","FORCE","TABLE","ORDER","FIXED","FIRST","FALSE","UNION","UUID","LOCK","LIKE","LAST","KEYS","CHAR","JSON","COPY","WAIT","NONE","HASH","FULL","BLOB","YEAR","USER","PAGE","TEXT","TIME","RAND","NULL","BOOL","ENUM","DATA","DROP","TRUE","WITH","DISK","DESC","DATE","ZLIB","BIT","YES","INT","KEY","NOW","SET","ADD","LZ4","NOT","FOR","ASC","USE","AS","NO","BY","ON","OR","IF","PI","TO"],s=>`K_${s}`,s=>new RegExp(`\\b${s.split("").reduce((t,o)=>(t+=`[${o.toUpperCase()}${o.toLowerCase()}]`,t),"")}\\b`));Oo.default=pc});var Ru=Q(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default={WS:{match:/(?:\s+|#.*|-- +.*|\/\*(?:[\s\S])*?\*\/)+/,lineBreaks:!0},S_EQUAL:"=",S_LPARENS:"(",S_RPARENS:")",S_COMMA:",",S_SEMICOLON:";",S_BIT_FORMAT:{match:/b'[01]+'|0b[01]+/},S_HEXA_FORMAT:{match:/[Xx]'[0-9a-fA-F]+'|0x[0-9a-fA-F]+/},S_DQUOTE_STRING:{match:/""|"(?:(?:"")|[^"\\]|\\.)*"/,value:s=>s.substr(1,s.length-2).replace(/\\"/g,'"').replace(/""/g,'"')},S_SQUOTE_STRING:{match:/''|'(?:(?:'')|[^'\\]|\\.)*'/,value:s=>s.substr(1,s.length-2).replace(/\\'/g,"'").replace(/''/g,"'")},S_NUMBER:{match:/[+-]?(?:\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)/,value:Number},S_IDENTIFIER_QUOTED:{match:/`(?:(?:``)|[^`\\])*`/,value:s=>s.substr(1,s.length-2).replace(/``/g,"`")},S_IDENTIFIER_UNQUOTED:{match:/[0-9a-zA-Z$_]+/},S_UNKNOWN:{match:/.+/}}});var hu=Q(Et=>{"use strict";var ho=Et&&Et.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Et,"__esModule",{value:!0});function f(s){return s[0]}var $c=ho(Iu()),Tc=ho(Ou()),lc=ho(Ru()),fc=Object.assign({},Tc.default,lc.default),_=$c.default.compile(fc),Ac={Lexer:_,ParserRules:[{name:"P_DDS$subexpression$1",symbols:["P_CREATE_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_RENAME_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_SET","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_USE_DB","_"],postprocess:f},{name:"P_DDS",symbols:["_","P_DDS$subexpression$1"],postprocess:s=>({id:"P_DDS",def:s[1]})},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"_",symbols:["_$ebnf$1"]},{name:"__$ebnf$1",symbols:[_.has("WS")?{type:"WS"}:WS]},{name:"__$ebnf$1",symbols:["__$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"__",symbols:["__$ebnf$1"]},{name:"S_EOS",symbols:["_",_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"O_CHARSET",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_CHARSET",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[2]?s[2].value:"")+")"},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:["O_DEFAULT_VALUE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE",symbols:["S_IDENTIFIER","O_DEFAULT_VALUE$ebnf$1"],postprocess:s=>{var t;return s[0]+((t=s[1])!==null&&t!==void 0?t:"")}},{name:"O_DEFAULT_VALUE",symbols:["O_QUOTED_STRING"],postprocess:f},{name:"O_QUOTED_STRING",symbols:[_.has("S_DQUOTE_STRING")?{type:"S_DQUOTE_STRING"}:S_DQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_QUOTED_STRING",symbols:[_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_TABLE_OPTION_VALUE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_QUOTED")?{type:"S_IDENTIFIER_QUOTED"}:S_IDENTIFIER_QUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_UNQUOTED")?{type:"S_IDENTIFIER_UNQUOTED"}:S_IDENTIFIER_UNQUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PI")?{type:"K_PI"}:K_PI],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BY")?{type:"K_BY"}:K_BY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOR")?{type:"K_FOR"}:K_FOR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LZ4")?{type:"K_LZ4"}:K_LZ4],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOW")?{type:"K_NOW"}:K_NOW],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZLIB")?{type:"K_ZLIB"}:K_ZLIB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRUE")?{type:"K_TRUE"}:K_TRUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RAND")?{type:"K_RAND"}:K_RAND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USER")?{type:"K_USER"}:K_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID")?{type:"K_UUID"}:K_UUID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FALSE")?{type:"K_FALSE"}:K_FALSE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROUND")?{type:"K_ROUND"}:K_ROUND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSION")?{type:"K_VERSION"}:K_VERSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURDATE")?{type:"K_CURDATE"}:K_CURDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURTIME")?{type:"K_CURTIME"}:K_CURTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSDATE")?{type:"K_SYSDATE"}:K_SYSDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_DATE")?{type:"K_UTC_DATE"}:K_UTC_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIME")?{type:"K_UTC_TIME"}:K_UTC_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIME")?{type:"K_LOCALTIME"}:K_LOCALTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_COUNT")?{type:"K_ROW_COUNT"}:K_ROW_COUNT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOUND_ROWS")?{type:"K_FOUND_ROWS"}:K_FOUND_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID_SHORT")?{type:"K_UUID_SHORT"}:K_UUID_SHORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_USER")?{type:"K_SYSTEM_USER"}:K_SYSTEM_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_USER")?{type:"K_CURRENT_USER"}:K_CURRENT_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIME")?{type:"K_CURRENT_TIME"}:K_CURRENT_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_DATE")?{type:"K_CURRENT_DATE"}:K_CURRENT_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SESSION_USER")?{type:"K_SESSION_USER"}:K_SESSION_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIMESTAMP")?{type:"K_UTC_TIMESTAMP"}:K_UTC_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION_ID")?{type:"K_CONNECTION_ID"}:K_CONNECTION_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST_INSERT_ID")?{type:"K_LAST_INSERT_ID"}:K_LAST_INSERT_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIX_TIMESTAMP")?{type:"K_UNIX_TIMESTAMP"}:K_UNIX_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIMESTAMP")?{type:"K_LOCALTIMESTAMP"}:K_LOCALTIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES],postprocess:s=>s[0].value},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_ALTER_DB$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$1",symbols:["P_ALTER_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_DB$ebnf$2$subexpression$1",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2$subexpression$1"]},{name:"P_ALTER_DB$ebnf$2$subexpression$2",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2","P_ALTER_DB$ebnf$2$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_DB",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_DB$subexpression$1","P_ALTER_DB$ebnf$1","P_ALTER_DB$ebnf$2","S_EOS"],postprocess:s=>({id:"P_ALTER_DB",def:{database:s[3],meta:s[4]}})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_ALTER_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_ALTER_DB_SPEC",symbols:["O_ALTER_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_DB_SPEC",def:s[0]})},{name:"P_ALTER_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_ALTER_TABLE$ebnf$1",symbols:["P_ALTER_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$2$subexpression$1",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE,"__"]},{name:"P_ALTER_TABLE$ebnf$2",symbols:["P_ALTER_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"__"]},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT,"__"]},{name:"P_ALTER_TABLE$ebnf$3",symbols:["P_ALTER_TABLE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$4",symbols:[]},{name:"P_ALTER_TABLE$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_ALTER_TABLE_SPECS"],postprocess:s=>s[3]},{name:"P_ALTER_TABLE$ebnf$4",symbols:["P_ALTER_TABLE$ebnf$4","P_ALTER_TABLE$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_TABLE",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_TABLE$ebnf$1","P_ALTER_TABLE$ebnf$2",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","__","P_ALTER_TABLE$ebnf$3","P_ALTER_TABLE_SPECS","P_ALTER_TABLE$ebnf$4","S_EOS"],postprocess:s=>({id:"P_ALTER_TABLE",def:{table:s[6],specs:[s[9]].concat(s[10])}})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS"],postprocess:s=>({tableOptions:s[0]})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["O_ALTER_TABLE_SPEC"],postprocess:s=>({spec:s[0]})},{name:"P_ALTER_TABLE_SPECS",symbols:["P_ALTER_TABLE_SPECS$subexpression$1"],postprocess:s=>({id:"P_ALTER_TABLE_SPECS",def:s[0]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4"],postprocess:s=>{var t;let o={action:"addColumn",name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[],position:s[8]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1",symbols:["S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3"],postprocess:s=>{var t,o;let E={name:s[0],datatype:s[2],columnDefinition:(t=s[3])!==null&&t!==void 0?t:[]};return s[4]&&(E.reference=s[4]),[E].concat((o=s[5])!==null&&o!==void 0?o:[])}},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addColumns",columns:s[5]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9"],postprocess:s=>{var t;return{action:"addIndex",name:s[3],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13"],postprocess:s=>{var t;return{action:"addPrimaryKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19"],postprocess:s=>{var t;return s[5]&&["index","key"].includes(s[5].toLowerCase())&&(s[5]=void 0),{action:"addUniqueKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addFulltextIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addSpatialIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{action:"addForeignKey",name:s[2],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),reference:s[15]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4"],postprocess:s=>({action:"changeAlgorithm",algorithm:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31","S_IDENTIFIER","__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({action:"setDefaultColumnValue",column:s[3],value:s[9]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32","S_IDENTIFIER","__",_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>({action:"dropDefaultColumnValue",column:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33","S_IDENTIFIER","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:s[5],datatype:s[7],columnDefinition:s[8],position:s[10]};return s[9]&&(t.reference=s[9]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:void 0,datatype:s[5],columnDefinition:s[6],position:s[8]};return s[7]&&(t.reference=s[7]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1",symbols:["__",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT,"__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5","__","O_CHARSET","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41"],postprocess:s=>({action:"convertToCharacterSet",charset:s[6],collate:s[7]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"enableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"disableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"discardTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"importTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43","S_IDENTIFIER"],postprocess:s=>({action:"dropColumn",column:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6","__","S_IDENTIFIER"],postprocess:s=>({action:"dropIndex",index:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({action:"dropPrimaryKey"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"__","S_IDENTIFIER"],postprocess:s=>({action:"dropForeignKey",key:s[6]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>({action:"force"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8"],postprocess:s=>({action:"changeLock",lock:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER,"__",_.has("K_BY")?{type:"K_BY"}:K_BY,"__","S_IDENTIFIER","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44"],postprocess:s=>{var t;return{action:"orderBy",columns:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9","__","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({action:"renameIndex",index:s[4],newName:s[8]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45","S_IDENTIFIER"],postprocess:s=>({action:"rename",newName:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withoutValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD,"__",_.has("K_FOR")?{type:"K_FOR"}:K_FOR,"__",_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME,"_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addPeriodForSystemTime",startColumnName:s[10],endColumnName:s[14]})},{name:"O_ALTER_TABLE_SPEC",symbols:["O_ALTER_TABLE_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_TABLE_SPEC",def:s[0]})},{name:"P_CREATE_DB$ebnf$1$subexpression$1",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE,"__"]},{name:"P_CREATE_DB$ebnf$1",symbols:["P_CREATE_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:["P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1","__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_DB$ebnf$2",symbols:["P_CREATE_DB$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$3",symbols:[]},{name:"P_CREATE_DB$ebnf$3$subexpression$1",symbols:["__","O_CREATE_DB_SPEC"],postprocess:s=>s[1]},{name:"P_CREATE_DB$ebnf$3",symbols:["P_CREATE_DB$ebnf$3","P_CREATE_DB$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_DB",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"__","P_CREATE_DB$ebnf$1","P_CREATE_DB$subexpression$1","P_CREATE_DB$ebnf$2","__","S_IDENTIFIER","P_CREATE_DB$ebnf$3","S_EOS"],postprocess:s=>({id:"P_CREATE_DB",def:{database:s[6],meta:s[7]}})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_DB_SPEC",symbols:["O_CREATE_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_CREATE_DB_SPEC",def:s[0]})},{name:"P_CREATE_INDEX$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_INDEX$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE]},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE]},{name:"P_CREATE_INDEX$ebnf$2",symbols:["P_CREATE_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3",symbols:["P_CREATE_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$4$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_INDEX$ebnf$4",symbols:["P_CREATE_INDEX$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$5$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$5",symbols:["P_CREATE_INDEX$ebnf$5$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_INDEX$ebnf$6",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$6",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_CREATE_INDEX$ebnf$7",symbols:["P_CREATE_INDEX$ebnf$7$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$7",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$8",symbols:[]},{name:"P_CREATE_INDEX$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$8",symbols:["P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$9",symbols:[]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9",symbols:["P_CREATE_INDEX$ebnf$9","P_CREATE_INDEX$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_INDEX$ebnf$1","P_CREATE_INDEX$ebnf$2","P_CREATE_INDEX$ebnf$3","__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_CREATE_INDEX$ebnf$4","__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$5","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$6","P_CREATE_INDEX$ebnf$7","P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$9","S_EOS"],postprocess:s=>{var t,o;let E=s[3]?s[3].value+" ":"";return E=E+s[5].value,{id:"P_CREATE_INDEX",def:{name:s[8],type:E,index:s[9],table:s[13],columns:s[14],options:((t=s[16])!==null&&t!==void 0?t:[]).concat((o=s[17])!==null&&o!==void 0?o:[])}}}},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1","P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2"],postprocess:s=>({length:s[0]?s[0].value:void 0,sort:s[1]?s[1].value:void 0})},{name:"P_INDEX_COLUMN$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN",symbols:["S_IDENTIFIER","P_INDEX_COLUMN$ebnf$1"],postprocess:s=>({id:"P_INDEX_COLUMN",def:{column:s[0],length:s[1]&&s[1].length?s[1].length:void 0,sort:s[1]&&s[1].sort?s[1].sort:void 0}})},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:f},{name:"P_INDEX_TYPE",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING,"__","P_INDEX_TYPE$subexpression$1"],postprocess:s=>({id:"P_INDEX_TYPE",def:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_INDEX_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1",symbols:["P_INDEX_TYPE"],postprocess:s=>({indexType:s[0]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER,"__","S_IDENTIFIER"],postprocess:s=>({parser:s[4]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_INDEX_OPTION",symbols:["O_INDEX_OPTION$subexpression$1"],postprocess:s=>({id:"O_INDEX_OPTION",def:s[0]})},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["__"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"P_INDEX_ALGORITHM_OPTION$subexpression$1","P_INDEX_ALGORITHM_OPTION$subexpression$2"],postprocess:s=>({id:"P_INDEX_ALGORITHM_OPTION",def:{algorithm:s[2].value}})},{name:"P_LOCK_OPTION$subexpression$1",symbols:["__"]},{name:"P_LOCK_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"P_LOCK_OPTION",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"P_LOCK_OPTION$subexpression$1","P_LOCK_OPTION$subexpression$2"],postprocess:s=>({id:"P_LOCK_OPTION",def:{lock:s[2].value}})},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_COMMON"],postprocess:f},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_LIKE"],postprocess:f},{name:"P_CREATE_TABLE",symbols:["P_CREATE_TABLE$subexpression$1"],postprocess:s=>({id:"P_CREATE_TABLE",def:s[0]})},{name:"P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:["P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:["P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:["P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1",symbols:["_","P_CREATE_TABLE_OPTIONS"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:["P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_COMMON$ebnf$1","P_CREATE_TABLE_COMMON$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_COMMON$ebnf$3","__","S_IDENTIFIER","_","P_CREATE_TABLE_CREATE_DEFINITIONS","P_CREATE_TABLE_COMMON$ebnf$4","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_COMMON",def:{table:s[7],columnsDef:s[9],tableOptions:s[10]}})},{name:"P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:["P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:["P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:["P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["__",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[5]},{name:"P_CREATE_TABLE_LIKE",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_LIKE$ebnf$1","P_CREATE_TABLE_LIKE$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_LIKE$ebnf$3","__","S_IDENTIFIER","P_CREATE_TABLE_LIKE$subexpression$1","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_LIKE",def:{table:s[7],like:s[8]}})},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","O_CREATE_TABLE_CREATE_DEFINITION"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:["P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1"],postprocess:s=>{var t;return[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({id:"P_CREATE_TABLE_CREATE_DEFINITIONS",def:s[2]})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1",symbols:["O_DATATYPE","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={datatype:s[0],columnDefinition:(t=s[1])!==null&&t!==void 0?t:[]};return s[2]&&(o.reference=s[2]),o}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["S_IDENTIFIER","_","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({column:{name:s[0],def:s[2]}})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4"],postprocess:s=>{var t;return{primaryKey:{name:s[0],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8"],postprocess:s=>{var t;return{index:{name:s[1],index:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14"],postprocess:s=>{var t,o;return s[3]&&["index","key"].includes(s[3].toLowerCase())&&(s[3]=void 0),{uniqueKey:{name:s[3],index:(t=s[4])!==null&&t!==void 0?t:void 0,columns:[s[8]].concat((o=s[9])!==null&&o!==void 0?o:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{fulltextIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{spatialIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{foreignKey:{name:s[0],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),reference:s[13]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_CREATE_DEFINITION",def:s[0]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>({unsigned:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>({zerofill:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET,"__","O_CHARSET"],postprocess:s=>({charset:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__","O_CHARSET"],postprocess:s=>({charset:s[4]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>({collation:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!1})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({default:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>({autoincrement:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_COLUMN_DEFINITION$subexpression$1$ebnf$1"],postprocess:s=>({unique:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__"]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({primary:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithoutSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>({invisible:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({format:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$2"],postprocess:s=>({storage:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[3]?s[3].value:"")+")"},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__",_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE,"__",_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP,"O_COLUMN_DEFINITION$subexpression$1$ebnf$3"],postprocess:s=>{var t;return{onUpdate:s[4].value+((t=s[5])!==null&&t!==void 0?t:"")}}},{name:"O_COLUMN_DEFINITION",symbols:["O_COLUMN_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_COLUMN_DEFINITION",def:s[0]})},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:[]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:["P_COLUMN_REFERENCE$subexpression$1$ebnf$1","P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_COLUMN_REFERENCE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH,"__","P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1","_"],postprocess:s=>s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:["P_COLUMN_REFERENCE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:[]},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO,"__",_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1","__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2","_"],postprocess:s=>({trigger:s[2].value,action:s[4]})},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:["P_COLUMN_REFERENCE$ebnf$2","P_COLUMN_REFERENCE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES,"__","S_IDENTIFIER","P_COLUMN_REFERENCE$subexpression$1","P_COLUMN_REFERENCE$ebnf$1","P_COLUMN_REFERENCE$ebnf$2"],postprocess:s=>{var t,o;return{id:"P_COLUMN_REFERENCE",def:{table:s[2],columns:(t=s[3])!==null&&t!==void 0?t:[],match:s[4],on:(o=s[5])!==null&&o!==void 0?o:[]}}}},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["__"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1","O_CREATE_TABLE_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1","P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_OPTIONS",symbols:["O_CREATE_TABLE_OPTION","P_CREATE_TABLE_OPTIONS$ebnf$1"],postprocess:s=>{var t;return{id:"P_CREATE_TABLE_OPTIONS",def:[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({autoincrement:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({avgRowLength:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({checksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8","O_QUOTED_STRING"],postprocess:s=>({compression:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9","O_QUOTED_STRING"],postprocess:s=>({connection:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11","O_QUOTED_STRING"],postprocess:s=>({[s[0].value.toLowerCase()+"Directory"]:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({delayKeyWrite:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13","O_QUOTED_STRING"],postprocess:s=>({encryption:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({encryptionKeyId:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16"],postprocess:s=>({ietfQuotes:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17","O_ENGINE"],postprocess:s=>({engine:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19"],postprocess:s=>({insertMethod:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({maxRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({minRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24"],postprocess:s=>({packKeys:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({pageChecksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26","O_QUOTED_STRING"],postprocess:s=>({password:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28"],postprocess:s=>({rowFormat:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30"],postprocess:s=>({statsAutoRecalc:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32"],postprocess:s=>({statsPersistent:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33","O_TABLE_OPTION_VALUE"],postprocess:s=>({statsSamplePages:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({transactional:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({withSystemVersioning:!0})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1",symbols:["__",_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1"],postprocess:s=>s[3].value},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE,"__","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3"],postprocess:s=>{let t={tablespaceName:s[2]};return s[3]&&(t.tablespaceStorage=s[3]),t}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return{union:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION",symbols:["O_CREATE_TABLE_OPTION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_OPTION",def:s[0]})},{name:"O_DATATYPE$subexpression$1",symbols:["O_INTEGER_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FLOATING_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BIT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BOOLEAN_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_DATETIME_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_YEAR_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_ENUM_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SET_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SPATIAL_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_JSON_DATATYPE"],postprocess:f},{name:"O_DATATYPE",symbols:["O_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_DATATYPE",def:s[0]})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>({datatype:s[0].value,width:1})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>({datatype:s[0].value,width:2})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>({datatype:s[0].value,width:3})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>({datatype:s[0].value,width:8})},{name:"O_INTEGER_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:["O_INTEGER_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_INTEGER_DATATYPE",symbols:["O_INTEGER_DATATYPE$subexpression$1","O_INTEGER_DATATYPE$ebnf$1"],postprocess:s=>({id:"O_INTEGER_DATATYPE",def:{datatype:s[0].datatype,width:s[1]?s[1]:s[0].width}})},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:0})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:["O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_POINT_DATATYPE",symbols:["O_FIXED_POINT_DATATYPE$subexpression$1","O_FIXED_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FIXED_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]?(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals):(t.def.digits=10,t.def.decimals=0),t}},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:["O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FLOATING_POINT_DATATYPE",symbols:["O_FLOATING_POINT_DATATYPE$subexpression$1","O_FLOATING_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FLOATING_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]&&(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals),t}},{name:"O_BIT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>s[3].value},{name:"O_BIT_DATATYPE$ebnf$1",symbols:["O_BIT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_BIT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_BIT_DATATYPE",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT,"O_BIT_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_BIT_DATATYPE",def:{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:1}}}},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:f},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:f},{name:"O_BOOLEAN_DATATYPE",symbols:["O_BOOLEAN_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_BOOLEAN_DATATYPE",def:{datatype:s[0].value}})},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:["O_DATETIME_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DATETIME_DATATYPE",symbols:["O_DATETIME_DATATYPE$subexpression$1","O_DATETIME_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_DATETIME_DATATYPE",def:{datatype:s[0].value,fractional:(t=s[1])!==null&&t!==void 0?t:0}}}},{name:"O_YEAR_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:["O_YEAR_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_YEAR_DATATYPE",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR,"O_YEAR_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_YEAR_DATATYPE",def:{datatype:s[0].value,digits:(t=s[1])!==null&&t!==void 0?t:4}}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL,"__",_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value+" "+s[2].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1","O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0],length:(t=s[1])!==null&&t!==void 0?t:1}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2","O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3"],postprocess:s=>({datatype:s[0].value,length:s[1]})},{name:"O_VARIABLE_STRING_DATATYPE",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_VARIABLE_STRING_DATATYPE",def:s[0]})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1","O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:65535}}},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_FIXED_STRING_DATATYPE",def:s[0]})},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:["O_ENUM_DATATYPE$subexpression$1$ebnf$1","O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ENUM_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_ENUM_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_ENUM_DATATYPE",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM,"O_ENUM_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_ENUM_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:["O_SET_DATATYPE$subexpression$1$ebnf$1","O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_SET_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_SET_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_SET_DATATYPE",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"O_SET_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SET_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:f},{name:"O_SPATIAL_DATATYPE",symbols:["O_SPATIAL_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SPATIAL_DATATYPE",def:{datatype:s[0].value}})},{name:"O_JSON_DATATYPE",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>({id:"O_JSON_DATATYPE",def:{datatype:s[0].value}})},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_DROP_DB$ebnf$1$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_DB$ebnf$1",symbols:["P_DROP_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_DB",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_DB$subexpression$1","P_DROP_DB$ebnf$1","__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_DROP_DB",def:s[5]})},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1",symbols:["P_DROP_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_INDEX$ebnf$2",symbols:["P_DROP_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_INDEX$ebnf$3",symbols:["P_DROP_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$4",symbols:[]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4",symbols:["P_DROP_INDEX$ebnf$4","P_DROP_INDEX$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_INDEX",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_INDEX$ebnf$1",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_DROP_INDEX$ebnf$2","__","S_IDENTIFIER","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_DROP_INDEX$ebnf$3","P_DROP_INDEX$ebnf$4","S_EOS"],postprocess:s=>({id:"P_DROP_INDEX",def:{index:s[6],table:s[10],options:s[12]?s[12]:[]}})},{name:"P_DROP_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY,"__"]},{name:"P_DROP_TABLE$ebnf$1",symbols:["P_DROP_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_TABLE$ebnf$2",symbols:["P_DROP_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$3",symbols:[]},{name:"P_DROP_TABLE$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_DROP_TABLE$ebnf$3",symbols:["P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_TABLE$ebnf$4",symbols:["P_DROP_TABLE$ebnf$4$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT]},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE]},{name:"P_DROP_TABLE$ebnf$5",symbols:["P_DROP_TABLE$ebnf$5$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_TABLE$ebnf$1",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_DROP_TABLE$ebnf$2","__","S_IDENTIFIER","P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$4","P_DROP_TABLE$ebnf$5","S_EOS"],postprocess:s=>{var t;return{id:"P_DROP_TABLE",def:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[])}}},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_RENAME_TABLE$ebnf$1",symbols:["P_RENAME_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_RENAME_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_RENAME_TABLE$ebnf$2",symbols:[]},{name:"P_RENAME_TABLE$ebnf$2$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({table:s[3],newName:s[7]})},{name:"P_RENAME_TABLE$ebnf$2",symbols:["P_RENAME_TABLE$ebnf$2","P_RENAME_TABLE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_RENAME_TABLE",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$1","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$2","S_EOS"],postprocess:s=>{var t;return{id:"P_RENAME_TABLE",def:[{table:s[4],newName:s[9]}].concat((t=s[10])!==null&&t!==void 0?t:[])}}},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$1",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1$subexpression$1"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$2",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1","P_SET$ebnf$1$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_SET",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__","P_SET$ebnf$1","S_EOS"],postprocess:s=>({id:"P_SET"})},{name:"P_USE_DB",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE,"__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_USE_DB",def:{database:s[2]}})}],ParserStart:"P_DDS"};Et.default=Ac});var Nu=Q(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var bc=hu();Object.defineProperty(No,"Grammar",{enumerable:!0,get:function(){return bc.default}})});var So=Q(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.TableOptions=void 0;var h=he(),un=class{static fromDef(t){if(t.id==="P_CREATE_TABLE_OPTIONS")return un.fromArray(t.def);throw new TypeError(`Unknown json id to build table options from: ${t.id}`)}static fromArray(t){let o=new un;return t.forEach(E=>{h.isDefined(E.def.autoincrement)&&(o.autoincrement=E.def.autoincrement),h.isDefined(E.def.avgRowLength)&&(o.avgRowLength=E.def.avgRowLength),h.isDefined(E.def.charset)&&(o.charset=E.def.charset.toLowerCase()),h.isDefined(E.def.checksum)&&(o.checksum=E.def.checksum),h.isDefined(E.def.collation)&&(o.collation=E.def.collation.toLowerCase()),h.isDefined(E.def.comment)&&(o.comment=E.def.comment),h.isDefined(E.def.compression)&&(o.compression=E.def.compression.toLowerCase()),h.isDefined(E.def.connection)&&(o.connection=E.def.connection),h.isDefined(E.def.dataDirectory)&&(o.dataDirectory=E.def.dataDirectory),h.isDefined(E.def.indexDirectory)&&(o.indexDirectory=E.def.indexDirectory),h.isDefined(E.def.delayKeyWrite)&&(o.delayKeyWrite=E.def.delayKeyWrite),h.isDefined(E.def.encryption)&&(o.encryption=E.def.encryption.toLowerCase()),h.isDefined(E.def.encryptionKeyId)&&(o.encryptionKeyId=E.def.encryptionKeyId),h.isDefined(E.def.ietfQuotes)&&(o.ietfQuotes=E.def.ietfQuotes.toLowerCase()),h.isDefined(E.def.engine)&&(o.engine=E.def.engine),h.isDefined(E.def.insertMethod)&&(o.insertMethod=E.def.insertMethod.toLowerCase()),h.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),h.isDefined(E.def.maxRows)&&(o.maxRows=E.def.maxRows),h.isDefined(E.def.minRows)&&(o.minRows=E.def.minRows),h.isDefined(E.def.packKeys)&&(h.isString(E.def.packKeys)?o.packKeys=E.def.packKeys.toLowerCase():o.packKeys=E.def.packKeys),h.isDefined(E.def.pageChecksum)&&(o.pageChecksum=E.def.pageChecksum),h.isDefined(E.def.password)&&(o.password=E.def.password),h.isDefined(E.def.rowFormat)&&(o.rowFormat=E.def.rowFormat.toLowerCase()),h.isDefined(E.def.statsAutoRecalc)&&(h.isString(E.def.statsAutoRecalc)?o.statsAutoRecalc=E.def.statsAutoRecalc.toLowerCase():o.statsAutoRecalc=E.def.statsAutoRecalc),h.isDefined(E.def.statsPersistent)&&(h.isString(E.def.statsPersistent)?o.statsPersistent=E.def.statsPersistent.toLowerCase():o.statsPersistent=E.def.statsPersistent),h.isDefined(E.def.statsSamplePages)&&(h.isString(E.def.statsSamplePages)?o.statsSamplePages=E.def.statsSamplePages.toLowerCase():o.statsSamplePages=E.def.statsSamplePages),h.isDefined(E.def.transactional)&&(o.transactional=E.def.transactional),h.isDefined(E.def.withSystemVersioning)&&(o.withSystemVersioning=E.def.withSystemVersioning),h.isDefined(E.def.tablespaceName)&&(o.tablespaceName=E.def.tablespaceName),h.isDefined(E.def.tablespaceStorage)&&(o.tablespaceStorage=E.def.tablespaceStorage.toLowerCase()),h.isDefined(E.def.union)&&(o.union=E.def.union)}),o}toJSON(){let t={};return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union),t}clone(){let t=new un;return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union.slice()),t}mergeWith(t){h.isDefined(t.autoincrement)&&(this.autoincrement=t.autoincrement),h.isDefined(t.avgRowLength)&&(this.avgRowLength=t.avgRowLength),h.isDefined(t.charset)&&(this.charset=t.charset),h.isDefined(t.checksum)&&(this.checksum=t.checksum),h.isDefined(t.collation)&&(this.collation=t.collation),h.isDefined(t.comment)&&(this.comment=t.comment),h.isDefined(t.compression)&&(this.compression=t.compression),h.isDefined(t.connection)&&(this.connection=t.connection),h.isDefined(t.dataDirectory)&&(this.dataDirectory=t.dataDirectory),h.isDefined(t.indexDirectory)&&(this.indexDirectory=t.indexDirectory),h.isDefined(t.delayKeyWrite)&&(this.delayKeyWrite=t.delayKeyWrite),h.isDefined(t.encryption)&&(this.encryption=t.encryption),h.isDefined(t.encryptionKeyId)&&(this.encryptionKeyId=t.encryptionKeyId),h.isDefined(t.ietfQuotes)&&(this.ietfQuotes=t.ietfQuotes),h.isDefined(t.engine)&&(this.engine=t.engine),h.isDefined(t.insertMethod)&&(this.insertMethod=t.insertMethod),h.isDefined(t.keyBlockSize)&&(this.keyBlockSize=t.keyBlockSize),h.isDefined(t.maxRows)&&(this.maxRows=t.maxRows),h.isDefined(t.minRows)&&(this.minRows=t.minRows),h.isDefined(t.packKeys)&&(this.packKeys=t.packKeys),h.isDefined(t.pageChecksum)&&(this.pageChecksum=t.pageChecksum),h.isDefined(t.password)&&(this.password=t.password),h.isDefined(t.rowFormat)&&(this.rowFormat=t.rowFormat),h.isDefined(t.statsAutoRecalc)&&(this.statsAutoRecalc=t.statsAutoRecalc),h.isDefined(t.statsPersistent)&&(this.statsPersistent=t.statsPersistent),h.isDefined(t.statsSamplePages)&&(this.statsSamplePages=t.statsSamplePages),h.isDefined(t.transactional)&&(this.transactional=t.transactional),h.isDefined(t.withSystemVersioning)&&(this.withSystemVersioning=t.withSystemVersioning),h.isDefined(t.tablespaceName)&&(this.tablespaceName=t.tablespaceName),h.isDefined(t.tablespaceStorage)&&(this.tablespaceStorage=t.tablespaceStorage),h.isDefined(t.union)&&(this.union=t.union.slice())}};Tr.TableOptions=un});var Su=Q(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.ColumnReferenceOn=void 0;var xn=class{static fromObject(t){let o=new xn;return o.action=t.action.toLowerCase(),o.trigger=t.trigger.toLowerCase(),o}toJSON(){return{trigger:this.trigger,action:this.action}}clone(){return xn.fromObject(this)}};lr.ColumnReferenceOn=xn});var Ks=Q(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.IndexColumn=void 0;var fr=he(),an=class{static fromDef(t){if(t.id==="P_INDEX_COLUMN")return an.fromObject(t.def);throw new TypeError(`Unknown json id to build index column from: ${t.id}`)}static fromObject(t){let o=new an;return o.column=t.column,t.length&&(o.length=t.length),t.sort&&(o.sort=t.sort),o}toJSON(){let t={column:this.column};return fr.isDefined(this.length)&&(t.length=this.length),fr.isDefined(this.sort)&&(t.sort=this.sort),t}clone(){let t=new an;return t.column=this.column,fr.isDefined(this.length)&&(t.length=this.length),fr.isDefined(this.sort)&&(t.sort=this.sort),t}};Ar.IndexColumn=an});var yo=Q(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.ColumnReference=void 0;var yu=he(),cc=Su(),mc=Ks(),Pn=class{constructor(){this.columns=[],this.on=[]}static fromDef(t){if(t.id==="P_COLUMN_REFERENCE"){let o=t.def,E=new Pn;return E.table=o.table,o.match&&(E.match=o.match.toLowerCase()),o.columns.length&&(E.columns=o.columns.map(mc.IndexColumn.fromDef)),o.on.length&&(E.on=o.on.map(cc.ColumnReferenceOn.fromObject)),E}throw new TypeError(`Unknown json id to build column reference from: ${t.id}`)}toJSON(){let t={table:this.table};return yu.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.toJSON())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.toJSON())),t}clone(){let t=new Pn;return t.table=this.table,yu.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.clone())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.clone())),t}};br.ColumnReference=Pn});var Lo=Q(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ColumnOptions=void 0;var ce=he(),Dn=class{static fromArray(t){let o=new Dn;return t.forEach(E=>{Object.assign(o,E.def)}),o.collation&&(o.collation=o.collation.toLowerCase()),o.charset&&(o.charset=o.charset.toLowerCase()),o.storage&&(o.storage=o.storage.toLowerCase()),o.format&&(o.format=o.format.toLowerCase()),ce.isDefined(o.nullable)||(o.nullable=!0),o.zerofill&&(o.unsigned=!0),o.primary&&(o.nullable=!1),o}toJSON(){let t={};return ce.isDefined(this.unsigned)&&(t.unsigned=this.unsigned),ce.isDefined(this.zerofill)&&(t.zerofill=this.zerofill),ce.isDefined(this.charset)&&(t.charset=this.charset),ce.isDefined(this.collation)&&(t.collation=this.collation),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.default)&&(t.default=this.default),ce.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),ce.isDefined(this.unique)&&(t.unique=this.unique),ce.isDefined(this.primary)&&(t.primary=this.primary),ce.isDefined(this.invisible)&&(t.invisible=this.invisible),ce.isDefined(this.format)&&(t.format=this.format),ce.isDefined(this.storage)&&(t.storage=this.storage),ce.isDefined(this.comment)&&(t.comment=this.comment),ce.isDefined(this.onUpdate)&&(t.onUpdate=this.onUpdate),ce.isString(t.default)&&t.default.toLowerCase()==="null"&&(t.default=null),ce.isDefined(this.invisibleWithSystemVersioning)&&(t.invisibleWithSystemVersioning=this.invisibleWithSystemVersioning),ce.isDefined(this.invisibleWithoutSystemVersioning)&&(t.invisibleWithoutSystemVersioning=this.invisibleWithoutSystemVersioning),t}mergeWith(t){Object.getOwnPropertyNames(t).forEach(o=>{let E=t[o];ce.isDefined(E)&&ce.setProperty(this,o,E)})}clone(){let t=new Dn;return Object.getOwnPropertyNames(this).forEach(o=>{let E=this[o];ce.isDefined(E)&&ce.setProperty(t,o,E)}),t}};cr.ColumnOptions=Dn});var dn=Q(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.IndexOptions=void 0;var de=he(),Kn=class{static fromArray(t){let o=new Kn;return t.forEach(E=>{de.isDefined(E.def.comment)&&(o.comment=E.def.comment.toLowerCase()),de.isDefined(E.def.indexType)&&(o.indexType=E.def.indexType.def.toLowerCase()),de.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),de.isDefined(E.def.parser)&&(o.parser=E.def.parser),de.isDefined(E.def.algorithm)&&(o.algorithm=E.def.algorithm),de.isDefined(E.def.lock)&&(o.lock=E.def.lock)}),o}toJSON(){let t={};return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}clone(){let t=new Kn;return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}};mr.IndexOptions=Kn});var Rr=Q(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.PrimaryKey=void 0;var Ir=he(),Ic=Ks(),Oc=dn(),pn=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return pn.fromObject(t.def.primaryKey);throw new TypeError(`Unknown json id to build primary key from: ${t.id}`)}static fromObject(t){let o=new pn;return o.columns=t.columns.map(Ic.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),t.options&&t.options.length&&(o.options=Oc.IndexOptions.fromArray(t.options)),o}toJSON(){var t;let o={columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return Ir.isDefined(this.name)&&(o.name=this.name),Ir.isDefined(this.options)&&(o.options=this.options.toJSON()),Ir.isDefined(this.indexType)&&(o.indexType=this.indexType),o}clone(){var t;let o=new pn;return o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),Ir.isDefined(this.indexType)&&(o.indexType=this.indexType),this.options&&(o.options=this.options.clone()),o}pushColumn(t){this.columns||(this.columns=[]),this.columns.push(t)}dropColumn(t){if(!this.columns)return!1;let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>{var T;return((T=this.columns)!==null&&T!==void 0?T:[]).some(c=>c.column===E.name)})}hasAllColumnsFromTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return((c=this.columns)!==null&&c!==void 0?c:[]).some(O=>O.column===T.name)}).length===((E=this.columns)!==null&&E!==void 0?E:[]).length}renameColumn(t,o){var E;return(E=this.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}};Or.PrimaryKey=pn});var Sr=Q(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.ForeignKey=void 0;var hr=he(),Rc=yo(),hc=Ks(),$n=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){if(hr.isDefined(t.def.foreignKey))return $n.fromObject(t.def.foreignKey);throw new TypeError(`Statement ${t.id} has undefined foreignKey. Cannot format foreignKey.`)}throw new TypeError(`Unknown json id to build foreign key from: ${t.id}`)}static fromObject(t){let o=new $n;return o.columns=t.columns.map(hc.IndexColumn.fromDef),o.reference=Rc.ColumnReference.fromDef(t.reference),t.name&&(o.name=t.name),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON()),reference:this.reference.toJSON()};return hr.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new $n;return t.columns=this.columns.map(o=>o.clone()),t.reference=this.reference.clone(),hr.isDefined(this.name)&&(t.name=this.name),t}pushColumn(t){this.columns.push(t)}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!hr.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}hasAllColumnsFromRefTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return(c=this.reference.columns)===null||c===void 0?void 0:c.some(O=>O.column===T.name)}).length===((E=this.reference.columns)===null||E===void 0?void 0:E.length)}getReferencedTable(t){var o;return(o=t.find(E=>E.name===this.reference.table))!==null&&o!==void 0?o:void 0}referencesTableAndColumn(t,o){var E;return this.reference.table===t.name&&((E=this.reference.columns)!==null&&E!==void 0?E:[]).some(T=>T.column===o.name)}referencesTable(t){return this.reference.table===t.name}renameColumn(t,o){var E;return(E=this.reference.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}updateReferencedTableName(t){this.reference.table=t}};Nr.ForeignKey=$n});var ut=Q(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.UniqueKey=void 0;var Ws=he(),Nc=dn(),Sc=Ks(),Qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Qs.fromObject(t.def.uniqueKey);if(t.id==="P_CREATE_INDEX")return Qs.fromObject(t.def);throw new TypeError(`Unknown json id to build unique key from: ${t.id}`)}static fromObject(t){let o=new Qs;return o.columns=t.columns.map(Sc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Ws.isDefined(t.options)&&t.options.length&&(o.options=Nc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new Qs;return t.columns=this.columns.map(o=>o.clone()),Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Ws.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};yr.UniqueKey=Qs});var Co=Q(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.Datatype=void 0;var os=he(),Tn=class{static fromDef(t){if(t.id==="O_DATATYPE"){let o=new Tn;return Object.assign(o,t.def.def),o.datatype=Tn.filterDatatype(o.datatype),o}throw new TypeError(`Unknown json id to build datatype from: ${t.id}`)}static filterDatatype(t){let o=t.toLowerCase();return o==="integer"||o==="tinyint"||o==="smallint"||o==="mediumint"||o==="bigint"?"int":o==="numeric"?"decimal":o==="bool"?"boolean":o==="tinyblob"||o==="mediumblob"||o==="longblob"?"blob":o==="tinytext"||o==="mediumtext"||o==="longtext"?"text":o==="national char"||o==="character"||o==="nchar"?"char":o}getMaxIndexableSize(){return["int","decimal","float","double","bit","boolean","date","time","datetime","timestamp","year","json"].includes(this.datatype)||["geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection"].includes(this.datatype)?0:["blob","text","char","binary","varchar","varbinary"].includes(this.datatype)?this.length:0}toJSON(){let t={datatype:this.datatype};return os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values),t}clone(){let t=new Tn;return t.datatype=this.datatype,os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values.slice()),t}};Lr.Datatype=Tn});var Po=Q(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Column=void 0;var Lu=he(),yc=yo(),Lc=Lo(),xo=Ks(),Cc=Rr(),xc=Sr(),Pc=ut(),Dc=Co(),ln=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){let o=t.def.column;return ln.fromObject({name:o.name,datatype:o.def.datatype,reference:o.def.reference,columnDefinition:o.def.columnDefinition})}throw new TypeError(`Unknown json id to build column from: ${t.id}`)}static fromObject(t){let o=new ln;return o.name=t.name,o.type=Dc.Datatype.fromDef(t.datatype),t.reference&&(o.reference=yc.ColumnReference.fromDef(t.reference)),t.columnDefinition&&(o.options=Lc.ColumnOptions.fromArray(t.columnDefinition)),o}toJSON(){let t={name:this.name,type:this.type.toJSON()};return Lu.isDefined(this.options)&&(t.options=this.options.toJSON()),Lu.isDefined(this.reference)&&(t.reference=this.reference.toJSON()),t}clone(){let t=new ln;return t.name=this.name,t.type=this.type.clone(),this.options&&(t.options=this.options.clone()),t}isPrimaryKey(){return this.options?this.options.primary===!0:!1}isUniqueKey(){return this.options?this.options.unique===!0:!1}isForeignKey(){return!!this.reference}extractPrimaryKey(){if(!this.isPrimaryKey())return;delete this.options.primary;let t=new xo.IndexColumn;t.column=this.name;let o=new Cc.PrimaryKey;return o.pushColumn(t),o}extractForeignKey(){if(!this.isForeignKey())return;let t=new xo.IndexColumn;t.column=this.name;let o=new xc.ForeignKey;return o.pushColumn(t),o.reference=this.reference,delete this.reference,o}extractUniqueKey(){if(!this.isUniqueKey())return;delete this.options.unique;let t=new xo.IndexColumn;t.column=this.name;let o=new Pc.UniqueKey;return o.columns.push(t),o}};Cr.Column=ln});var Pr=Q(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.FulltextIndex=void 0;var at=he(),Kc=Ks(),dc=dn(),qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return qs.fromObject(t.def.fulltextIndex);if(t.id==="P_CREATE_INDEX")return qs.fromObject(t.def);throw new TypeError(`Unknown json id to build fulltext index from: ${t.id}`)}static fromObject(t){let o=new qs;return o.columns=t.columns.map(Kc.IndexColumn.fromDef),t.name&&(o.name=t.name),at.isDefined(t.options)&&t.options.length&&(o.options=dc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new qs;return t.columns=this.columns.map(o=>o.clone()),at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};xr.FulltextIndex=qs});var Kr=Q(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.SpatialIndex=void 0;var pt=he(),Bc=Ks(),vc=dn(),ks=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return ks.fromObject(t.def.spatialIndex);if(t.id==="P_CREATE_INDEX")return ks.fromObject(t.def);throw new TypeError(`Unknown json id to build spatial index from: ${t.id}`)}static fromObject(t){let o=new ks;return o.columns=t.columns.map(Bc.IndexColumn.fromDef),t.name&&(o.name=t.name),pt.isDefined(t.options)&&t.options.length&&(o.options=vc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new ks;return t.columns=this.columns.map(o=>o.clone()),pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Dr.SpatialIndex=ks});var Br=Q(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.Index=void 0;var Vs=he(),gc=Ks(),Mc=dn(),Js=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Js.fromObject(t.def.index);if(t.id==="P_CREATE_INDEX")return Js.fromObject(t.def);throw new TypeError(`Unknown json id to build index from: ${t.id}`)}static fromObject(t){let o=new Js;return o.columns=t.columns.map(gc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Vs.isDefined(t.options)&&t.options.length&&(o.options=Mc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Vs.isDefined(this.options)&&(t.options=this.options.toJSON()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new Js;return t.columns=this.columns.map(o=>o.clone()),Vs.isDefined(this.options)&&(t.options=this.options.clone()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Vs.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};dr.Index=Js});var Cu=Q(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Table=void 0;var V=he(),Fc=So(),Uc=Po(),wc=Pr(),Yc=Kr(),Xc=Sr(),Gc=ut(),Hc=Rr(),Wc=Br(),Bn=class{static fromCommonDef(t,o){if(t.id==="P_CREATE_TABLE_COMMON"){let E=t.def,T=new Bn;return T.database=o,T.name=E.table,E.tableOptions&&(T.options=Fc.TableOptions.fromDef(E.tableOptions)),E.columnsDef.def.forEach(O=>{if(V.isDefined(O.def.column)){let M=Uc.Column.fromDef(O);T.addColumn(M)}else V.isDefined(O.def.fulltextIndex)?T.pushFulltextIndex(wc.FulltextIndex.fromDef(O)):V.isDefined(O.def.spatialIndex)?T.pushSpatialIndex(Yc.SpatialIndex.fromDef(O)):V.isDefined(O.def.foreignKey)?T.pushForeignKey(Xc.ForeignKey.fromDef(O)):V.isDefined(O.def.uniqueKey)?T.pushUniqueKey(Gc.UniqueKey.fromDef(O)):V.isDefined(O.def.primaryKey)?T.setPrimaryKey(Hc.PrimaryKey.fromDef(O)):V.isDefined(O.def.index)&&T.pushIndex(Wc.Index.fromDef(O))}),T}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}static fromAlikeDef(t,o=[]){if(t.id==="P_CREATE_TABLE_LIKE"){let E=t.def,T=o.find(O=>O.name===E.like);if(!T)return;let c=T.clone();return c.name=E.table,c}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}toJSON(){var t;let o={name:this.name,columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.toJSON()),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.toJSON())),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.toJSON())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.toJSON())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.toJSON())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.toJSON())),V.isDefined(this.options)&&(o.options=this.options.toJSON()),o}clone(){var t;let o=new Bn;return o.database=this.database,o.name=this.name,o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),V.isDefined(this.options)&&(o.options=this.options.clone()),V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.clone()),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.clone())),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.clone())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.clone())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.clone())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.clone())),o}getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}renameTo(t){this.database.tables.forEach(o=>{var E;((E=o.foreignKeys)!==null&&E!==void 0?E:[]).filter(T=>T.referencesTable(this)).forEach(T=>T.updateReferencedTableName(t))}),this.name=t}addColumn(t,o){var E;if(!this.getColumn(t.name)&&!(t.options&&t.options.autoincrement&&((E=this.columns)!==null&&E!==void 0?E:[]).some(T=>T.options&&T.options.autoincrement))&&!(this.primaryKey&&t.options&&t.options.primary)){if(V.isArray(this.columns)||(this.columns=[]),!V.isDefined(o))this.columns.push(t);else if(!o.after)this.columns.unshift(t);else{let T=this.columns.find(M=>M.name===o.after);if(!T)return;let c=this.columns.indexOf(T),O=this.columns.splice(c+1);this.columns.push(t),this.columns=this.columns.concat(O)}this.extractColumnKeys(t)}}extractColumnKeys(t){let o=t.extractPrimaryKey(),E=t.extractForeignKey(),T=t.extractUniqueKey();o&&this.setPrimaryKey(o),E&&this.pushForeignKey(E),T&&this.pushUniqueKey(T)}moveColumn(t,o){if(!V.isDefined(this.columns)||!V.isDefined(o)||!this.columns.includes(t))return!1;let E;if(o.after&&(E=this.getColumn(o.after),!E))return!1;let T=this.columns.indexOf(t),c=this.columns.splice(T);if(c.shift(),this.columns=this.columns.concat(c),o.after){if(!E)return!1;T=this.columns.indexOf(E),c=this.columns.splice(T+1),this.columns.push(t),this.columns=this.columns.concat(c)}else this.columns.unshift(t);return!0}renameColumn(t,o){var E,T,c,O,M;return((E=this.columns)!==null&&E!==void 0?E:[]).includes(t)?(this.getTables().forEach(I=>{var L;((L=I.foreignKeys)!==null&&L!==void 0?L:[]).filter(P=>P.referencesTable(this)).forEach(P=>P.renameColumn(t,o))}),((T=this.fulltextIndexes)!==null&&T!==void 0?T:[]).forEach(I=>I.renameColumn(t,o)),((c=this.spatialIndexes)!==null&&c!==void 0?c:[]).forEach(I=>I.renameColumn(t,o)),((O=this.indexes)!==null&&O!==void 0?O:[]).forEach(I=>I.renameColumn(t,o)),((M=this.uniqueKeys)!==null&&M!==void 0?M:[]).forEach(I=>I.renameColumn(t,o)),this.primaryKey&&this.primaryKey.renameColumn(t,o),t.name=o,!0):!1}getColumnPosition(t){var o,E,T;let c=((o=this.columns)!==null&&o!==void 0?o:[]).indexOf(t);if(c===0)return{after:null};if(c+1!==((E=this.columns)!==null&&E!==void 0?E:[]).length)return{after:((T=this.columns)!==null&&T!==void 0?T:[])[c-1].name}}dropPrimaryKey(){!this.primaryKey||this.primaryKey.getColumnsFromTable(this).some(o=>o.options&&o.options.autoincrement)||delete this.primaryKey}dropColumn(t){var o;if(this.getTables().some(O=>{var M;return((M=O.foreignKeys)!==null&&M!==void 0?M:[]).some(I=>I.referencesTableAndColumn(this,t))})||!V.isDefined(this.columns)||this.columns.length===1)return;let T=this.columns.indexOf(t),c=this.columns.splice(T);c.shift(),this.columns=this.columns.concat(c),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&this.fulltextIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&this.spatialIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.indexes)&&this.indexes.length&&this.indexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&this.uniqueKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&this.foreignKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropForeignKey(O)}),V.isDefined(this.primaryKey)&&this.primaryKey.dropColumn(t.name)&&!(!((o=this.primaryKey.columns)===null||o===void 0)&&o.length)&&delete this.primaryKey}dropIndexByInstance(t){let o=this.getIndexTypeByInstance(t);if(!V.isDefined(o)||!V.isDefined(this[o]))return;let E=this[o],T=E.indexOf(t),c=E.splice(T);c.shift(),this[o]=E.concat(c)}dropForeignKey(t){if(!V.isDefined(this.foreignKeys))return;let o=this.foreignKeys.indexOf(t),E=this.foreignKeys.splice(o);E.shift(),this.foreignKeys=this.foreignKeys.concat(E)}getIndexByName(t){let o=this.getIndexTypeByName(t);if(!o)return;let E=this[o];if(!V.isArray(E))return;let T=E.find(c=>c.name===t);return T??void 0}getIndexTypeByInstance(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O===t)})}getIndexTypeByName(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O.name===t)})}getColumn(t){var o;return((o=this.columns)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}getForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}hasForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).some(E=>E.name===t)}setPrimaryKey(t){var o;this.primaryKey||!t.hasAllColumnsFromTable(this)||(((o=t.columns)!==null&&o!==void 0?o:[]).forEach(E=>{if(!E.column)return;let T=this.getColumn(E.column);!T||!T.options||(T.options.nullable=!1)}),this.primaryKey=t)}pushFulltextIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.fulltextIndexes)||(this.fulltextIndexes=[]),this.fulltextIndexes.push(t))}pushSpatialIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.spatialIndexes)||(this.spatialIndexes=[]),this.spatialIndexes.push(t))}pushUniqueKey(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.uniqueKeys)||(this.uniqueKeys=[]),this.uniqueKeys.push(t))}pushForeignKey(t){t.name&&this.getIndexByName(t.name)||(t.setIndexSizeFromTable(this),V.isDefined(this.foreignKeys)||(this.foreignKeys=[]),this.foreignKeys.push(t))}pushIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.indexes)||(this.indexes=[]),this.indexes.push(t))}};vr.Table=Bn});var Pu=Q(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.CreateTable=void 0;var xu=Cu(),Do=class{getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}pushTable(t){this.database.pushTable(t)}handleDef(t){if(t.id==="P_CREATE_TABLE"){let o=t.def;if(o.id==="P_CREATE_TABLE_COMMON"){let E=xu.Table.fromCommonDef(o,this.database);E&&this.pushTable(E)}else if(o.id==="P_CREATE_TABLE_LIKE"){let E=xu.Table.fromAlikeDef(o,this.getTables());if(!E)return;E.foreignKeys=[],E&&this.pushTable(E)}return}throw new TypeError(`Expected P_CREATE_TABLE rule to be handled but received ${t.id}`)}};gr.CreateTable=Do});var Du=Q(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.CreateIndex=void 0;var Qc=ut(),qc=Pr(),kc=Kr(),Vc=Br(),Ko=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_CREATE_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=t.def.type.toLowerCase();E.includes("unique")?o.pushUniqueKey(Qc.UniqueKey.fromDef(t)):E.includes("fulltext")?o.pushFulltextIndex(qc.FulltextIndex.fromDef(t)):E.includes("spatial")?o.pushSpatialIndex(kc.SpatialIndex.fromDef(t)):o.pushIndex(Vc.Index.fromDef(t));return}throw new TypeError(`Expected P_CREATE_INDEX rule to be handled but received ${t.id}`)}};Mr.CreateIndex=Ko});var Bu=Q(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.AlterTable=void 0;var vn=he(),Ku=So(),du=Po(),Jc=Br(),zc=Rr(),Zc=ut(),jc=Pr(),em=Kr(),sm=Sr(),nm=Lo(),tm=Co(),gn=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_ALTER_TABLE"){let o=this.getTable(t.def.table);if(!o)return;t.def.specs.forEach(E=>{let T=E.def.spec,c=E.def.tableOptions;if(T){let O=T.def,M=O.action,I=gn[M];vn.isFunction(I)&&I(O,o)}else c&&(o.options||(o.options=new Ku.TableOptions),o.options.mergeWith(Ku.TableOptions.fromDef(c)))});return}throw new TypeError(`Expected P_ALTER_TABLE rule to be handled but received ${t.id}`)}static addColumn(t,o){let E=du.Column.fromObject(t);E.reference&&delete E.reference,o.addColumn(E,t.position)}static addColumns(t,o){t.columns.forEach(E=>{let T=du.Column.fromObject(E);T.reference&&delete T.reference,o.addColumn(T)})}static addIndex(t,o){let E=Jc.Index.fromObject(t);o.pushIndex(E)}static addPrimaryKey(t,o){let E=zc.PrimaryKey.fromObject(t);o.setPrimaryKey(E)}static addUniqueKey(t,o){let E=Zc.UniqueKey.fromObject(t);o.pushUniqueKey(E)}static addFulltextIndex(t,o){let E=jc.FulltextIndex.fromObject(t);o.pushFulltextIndex(E)}static addSpatialIndex(t,o){let E=em.SpatialIndex.fromObject(t);o.pushFulltextIndex(E)}static addForeignKey(t,o){let E=sm.ForeignKey.fromObject(t);o.pushForeignKey(E)}static setDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||(E.options.default=t.value)}static dropDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||delete E.options.default}static changeColumn(t,o){var E,T;let c=o.getColumn(t.column);if(!c)return;let O;if(t.position){if(t.position.after&&!o.getColumn(t.position.after))return;O=t.position}else O=o.getColumnPosition(c);let M=tm.Datatype.fromDef(t.datatype),I;t.columnDefinition&&(I=nm.ColumnOptions.fromArray(t.columnDefinition)),vn.isDefined(I)&&(I.primary&&o.primaryKey||I.autoincrement&&((E=o.columns)!==null&&E!==void 0?E:[]).some(L=>{var P;return L!==c&&((P=L.options)===null||P===void 0?void 0:P.autoincrement)})||(I.unique&&((T=o.uniqueKeys)===null||T===void 0?void 0:T.some(L=>L.columns.length===1&&L.columns[0].column===c.name))&&delete I.unique,O&&o.moveColumn(c,O)&&(t.newName&&t.newName!==c.name&&o.renameColumn(c,t.newName),c.type=M,c.options=I,o.extractColumnKeys(c))))}static dropColumn(t,o){let E=o.getColumn(t.column);!E||o.dropColumn(E)}static dropIndex(t,o){if(t.index.toLowerCase()==="primary"){gn.dropPrimaryKey(t,o);return}let E=o.getIndexByName(t.index);!E||o.dropIndexByInstance(E)}static dropPrimaryKey(t,o){o.dropPrimaryKey()}static dropForeignKey(t,o){let E=o.getForeignKey(t.key);!E||o.dropForeignKey(E)}static renameIndex(t,o){let E=o.getIndexByName(t.index);!E||(E.name=t.newName)}static rename(t,o){o.renameTo(t.newName)}};Fr.AlterTable=gn});var vu=Q(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.RenameTable=void 0;var Bo=class{getTable(t){var o;return(o=this.database.getTable(t))!==null&&o!==void 0?o:void 0}setDatabase(t){this.database=t}getTables(){return this.database.getTables()}handleDef(t){if(t.id==="P_RENAME_TABLE"){t.def.forEach(o=>{let E=this.getTables().find(T=>T.name===o.table);!E||E.renameTo(o.newName)});return}throw new TypeError(`Expected P_RENAME_TABLE rule to be handled but received ${t.id}`)}};Ur.RenameTable=Bo});var gu=Q(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.DropTable=void 0;var vo=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_TABLE"){t.def.forEach(o=>{let E=this.getTable(o);if(!E)return;let T=this.database.getTables();if(T.some(M=>{var I;return(I=M.foreignKeys)===null||I===void 0?void 0:I.some(L=>L.referencesTable(E))})||!E)return;let O=T.splice(T.indexOf(E));O.shift(),T=T.concat(O),this.database.setTables(T)});return}throw new TypeError(`Expected P_DROP_TABLE rule to be handled but received ${t.id}`)}};wr.DropTable=vo});var Mu=Q(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.DropIndex=void 0;var go=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=o.getIndexByName(t.def.index);if(!E)return;o.dropIndexByInstance(E);return}throw new TypeError(`Expected P_DROP_INDEX rule to be handled but received ${t.id}`)}};Yr.DropIndex=go});var Fu=Q(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Database=void 0;var rm=Pu(),_m=Du(),om=Bu(),im=vu(),Em=gu(),um=Mu(),$t=class{constructor(){this.ddsCollection=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseDdsCollection(t){this.ddsCollection=t,this.ddsCollection.forEach(o=>{if(!o)return;let E=o.def,T=$t.getHandler(E.id);!T||(T.setDatabase(this),T.handleDef(E))})}static getHandler(t){if(t==="P_CREATE_TABLE")return new rm.CreateTable;if(t==="P_CREATE_INDEX")return new _m.CreateIndex;if(t==="P_ALTER_TABLE")return new om.AlterTable;if(t==="P_RENAME_TABLE")return new im.RenameTable;if(t==="P_DROP_TABLE")return new Em.DropTable;if(t==="P_DROP_INDEX")return new um.DropIndex}};Xr.Database=$t});var Uu=Q(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.format=void 0;var am=Fu();Gr.format=s=>{if(s.id==="MAIN"){let t=new am.Database;return t.parseDdsCollection(s.def),t.getTables().map(o=>o.toJSON())}throw new TypeError("Invalid JSON format provided for CompactFormatter. Please provide JSON from root element, containing { id: MAIN }.")}});var wu=Q(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Datatype=void 0;var Mn=he(),Fn=class{static fromCompactJson(t){let o=new Fn;return o.datatype=t.datatype,Mn.isDefined(t.decimals)&&(o.decimals=t.decimals),Mn.isDefined(t.digits)&&(o.digits=t.digits),Mn.isDefined(t.fractional)&&(o.fractional=t.fractional),Mn.isDefined(t.length)&&(o.length=t.length),Mn.isDefined(t.values)&&(o.values=t.values),Mn.isDefined(t.width)&&(o.width=t.width),o}static filterDatatype(t){return t==="int"?"integer":t==="decimal"||t==="float"||t==="double"?"number":t==="boolean"?"boolean":"string"}toJSON(){let t={type:Fn.filterDatatype(this.datatype)};if(this.datatype==="int"){let o=Math.pow(2,8*this.width);this.isUnsigned?(t.minimum=0,t.maximum=o):(t.minimum=0-o/2,t.maximum=0-t.minimum-1)}else if(this.datatype==="decimal"||this.datatype==="float")t.maximum=Number(`${"9".repeat(this.digits-this.decimals)}.${"9".repeat(this.decimals)}`),this.isUnsigned?t.minimum=0:t.minimum=0-t.maximum;else if(this.datatype==="date")t.format="date";else if(this.datatype==="time")t.format="time";else if(this.datatype==="datetime")t.format="date-time";else if(this.datatype==="year")t.pattern=`\\d{1,${this.digits}}`;else if(this.datatype==="char"||this.datatype==="binary"||this.datatype==="varchar"||this.datatype==="varbinary"||this.datatype==="text")t.maxLength=this.length;else if(this.datatype==="enum")t.enum=this.values;else if(this.datatype==="set"){let o=this.values.join("|");t.pattern=`^(${o})(,(${o}))*$`}return t}};Hr.Datatype=Fn});var Yu=Q(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.Column=void 0;var Tt=he(),pm=wu(),lt=class{static fromCompactJson(t){let o=new lt;o.datatype=pm.Datatype.fromCompactJson(t.type),o.name=t.name;let E=t.options;return E&&(E.unsigned&&(o.datatype.isUnsigned=E.unsigned),(E.default===null||Tt.isString(E.default)&&E.default.length)&&(o.default=E.default),Tt.isString(E.comment)&&E.comment.length&&(o.comment=E.comment),o.isNullable=E.nullable),o}toJSON(){let t={},o=this.datatype.toJSON();return this.isPrimaryKey===!0&&(t.$comment="primary key",o.minimum=1),Tt.isDefined(this.comment)&&(t.description=this.comment),Object.getOwnPropertyNames(o).forEach(E=>{let T=o[E],c=Tt.isNumber(T);(c&&Number.isFinite(T)||!c)&&Tt.setProperty(t,E,T)}),typeof this.default<"u"&&(t.default=this.default),t}};Wr.Column=lt});var Xu=Q(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Table=void 0;var Un=he(),$m=Yu(),ft=class{constructor(){this.columns=[]}static fromCompactJson(t){var o;let E=new ft;E.name=t.name,Un.isDefined(t.columns)&&(E.columns=t.columns.map(c=>$m.Column.fromCompactJson(c))),Un.isDefined(t.primaryKey)&&((o=t.primaryKey.columns)!==null&&o!==void 0?o:[]).map(c=>c.column).map(c=>E.columns.find(O=>O.name===c)).filter(Un.isDefined).forEach(c=>{c.isPrimaryKey=!0});let T=t.options;return T&&Un.isDefined(T.comment)&&(E.comment=T.comment),E}toJSON(t){let o={$schema:"http://json-schema.org/draft-07/schema",$comment:`JSON Schema for ${this.name} table`,$id:this.name,title:this.name,description:"",type:"object",required:[],definitions:{},properties:{}};return Un.isDefined(this.comment)?o.description=this.comment:delete o.description,this.columns.forEach(E=>{let T=E.toJSON(),c=E.name,O={};o.properties[c]={$ref:`#/definitions/${c}`},Object.getOwnPropertyNames(T).forEach(M=>{Un.setProperty(O,M,T[M])}),o.definitions[c]=O,E.isNullable===!1&&o.required.push(c)}),t.useRef===!1&&(o.properties=o.definitions,delete o.definitions),o}};Qr.Table=ft});var Gu=Q(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.Database=void 0;var Tm=Xu(),Mo=class{constructor(){this.compactJsonTables=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseCompactJson(t){this.setTables(t.map(o=>Tm.Table.fromCompactJson(o)))}};qr.Database=Mo});var Hu=Q(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.format=void 0;var lm=Gu();kr.format=(s,t)=>{let o=new lm.Database;return o.parseCompactJson(s),o.getTables().map(T=>T.toJSON(t))}});var Qu=Q(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Parser=void 0;var Wu=cu(),fm=he(),Am=Nu(),bm=Uu(),cm=Hu(),wn=class{constructor(t="mysql"){if(this.statements=[],this.remains="",this.escaped=!1,this.quoted="",!t||t==="mysql"||t==="mariadb")this.compiledGrammar=Wu.Grammar.fromCompiled(Am.Grammar),this.compactFormatter=bm.format,this.jsonSchemaFormatter=cm.format;else throw new TypeError(`Unsupported SQL dialect given to parser: '${t}. Please provide 'mysql', 'mariadb' or none to use default.`);this.resetParser()}feed(t){let o,E,T="",c=0;for(o=0;o1){let M=Number(O[1]),I=o+M-1;c.message=c.message.replace(/\d+/,I)}}throw this.resetParser(),this.statements=[],this.remains="",this.escaped=!1,this.quoted="",c}return this.remains="",this.escaped=!1,this.quoted="",{id:"MAIN",def:T}}toCompactJson(t){return this.compactFormatter(t??this.results)}toJsonSchemaArray(t={useRef:!0},o){return this.jsonSchemaFormatter(o??this.toCompactJson(),t)}};Vr.Parser=wn});var ku=Q(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0})});var Ju=Q(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0})});var Zu=Q(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0})});var ea=Q(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0})});var sa=Q(Os=>{"use strict";var mm=Os&&Os.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),Jr=Os&&Os.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&mm(t,s,o)};Object.defineProperty(Os,"__esModule",{value:!0});Jr(ku(),Os);Jr(Ju(),Os);Jr(Zu(),Os);Jr(ea(),Os)});var na=Q(zs=>{"use strict";var Im=zs&&zs.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),Om=zs&&zs.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&Im(t,s,o)};Object.defineProperty(zs,"__esModule",{value:!0});var Rm=Qu();Object.defineProperty(zs,"Parser",{enumerable:!0,get:function(){return Rm.Parser}});Om(sa(),zs)});var ta=Q((Yn,At)=>{(function(){var s,t="4.17.21",o=200,E="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",c="Invalid `variable` option passed into `_.template`",O="__lodash_hash_undefined__",M=500,I="__lodash_placeholder__",L=1,P=2,K=4,q=1,X=2,te=1,_e=2,Se=4,re=8,ye=16,xe=32,pe=64,We=128,fs=256,Zs=512,R=30,x="...",v=800,w=16,J=1,G=2,se=3,Ee=1/0,ue=9007199254740991,Y=17976931348623157e292,Ae=0/0,Be=4294967295,Ne=Be-1,is=Be>>>1,ds=[["ary",We],["bind",te],["bindKey",_e],["curry",re],["curryRight",ye],["flip",Zs],["partial",xe],["partialRight",pe],["rearg",fs]],Pe="[object Arguments]",As="[object Array]",Bs="[object AsyncFunction]",Es="[object Boolean]",bs="[object Date]",jr="[object DOMException]",ct="[object Error]",mt="[object Function]",Uo="[object GeneratorFunction]",us="[object Map]",Xn="[object Number]",ua="[object Null]",Rs="[object Object]",wo="[object Promise]",aa="[object Proxy]",Gn="[object RegExp]",as="[object Set]",Hn="[object String]",It="[object Symbol]",pa="[object Undefined]",Wn="[object WeakMap]",$a="[object WeakSet]",Qn="[object ArrayBuffer]",fn="[object DataView]",e_="[object Float32Array]",s_="[object Float64Array]",n_="[object Int8Array]",t_="[object Int16Array]",r_="[object Int32Array]",__="[object Uint8Array]",o_="[object Uint8ClampedArray]",i_="[object Uint16Array]",E_="[object Uint32Array]",Ta=/\b__p \+= '';/g,la=/\b(__p \+=) '' \+/g,fa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yo=/&(?:amp|lt|gt|quot|#39);/g,Xo=/[&<>"']/g,Aa=RegExp(Yo.source),ba=RegExp(Xo.source),ca=/<%-([\s\S]+?)%>/g,ma=/<%([\s\S]+?)%>/g,Go=/<%=([\s\S]+?)%>/g,Ia=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oa=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u_=/[\\^$.*+?()[\]{}|]/g,ha=RegExp(u_.source),a_=/^\s+/,Na=/\s/,Sa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ya=/\{\n\/\* \[wrapped with (.+)\] \*/,La=/,? & /,Ca=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xa=/[()=,{}\[\]\/\s]/,Pa=/\\(\\)?/g,Da=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,Ka=/^[-+]0x[0-9a-f]+$/i,da=/^0b[01]+$/i,Ba=/^\[object .+?Constructor\]$/,va=/^0o[0-7]+$/i,ga=/^(?:0|[1-9]\d*)$/,Ma=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=/($^)/,Fa=/['\n\r\u2028\u2029\\]/g,Rt="\\ud800-\\udfff",Ua="\\u0300-\\u036f",wa="\\ufe20-\\ufe2f",Ya="\\u20d0-\\u20ff",Wo=Ua+wa+Ya,Qo="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Xa="\\xac\\xb1\\xd7\\xf7",Ga="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ha="\\u2000-\\u206f",Wa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Vo="\\ufe0e\\ufe0f",Jo=Xa+Ga+Ha+Wa,p_="['\u2019]",Qa="["+Rt+"]",zo="["+Jo+"]",ht="["+Wo+"]",Zo="\\d+",qa="["+Qo+"]",jo="["+qo+"]",ei="[^"+Rt+Jo+Zo+Qo+qo+ko+"]",$_="\\ud83c[\\udffb-\\udfff]",ka="(?:"+ht+"|"+$_+")",si="[^"+Rt+"]",T_="(?:\\ud83c[\\udde6-\\uddff]){2}",l_="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+ko+"]",ni="\\u200d",ti="(?:"+jo+"|"+ei+")",Va="(?:"+An+"|"+ei+")",ri="(?:"+p_+"(?:d|ll|m|re|s|t|ve))?",_i="(?:"+p_+"(?:D|LL|M|RE|S|T|VE))?",oi=ka+"?",ii="["+Vo+"]?",Ja="(?:"+ni+"(?:"+[si,T_,l_].join("|")+")"+ii+oi+")*",za="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Za="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ei=ii+oi+Ja,ja="(?:"+[qa,T_,l_].join("|")+")"+Ei,ep="(?:"+[si+ht+"?",ht,T_,l_,Qa].join("|")+")",sp=RegExp(p_,"g"),np=RegExp(ht,"g"),f_=RegExp($_+"(?="+$_+")|"+ep+Ei,"g"),tp=RegExp([An+"?"+jo+"+"+ri+"(?="+[zo,An,"$"].join("|")+")",Va+"+"+_i+"(?="+[zo,An+ti,"$"].join("|")+")",An+"?"+ti+"+"+ri,An+"+"+_i,Za,za,Zo,ja].join("|"),"g"),rp=RegExp("["+ni+Rt+Wo+Vo+"]"),_p=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,op=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ip=-1,le={};le[e_]=le[s_]=le[n_]=le[t_]=le[r_]=le[__]=le[o_]=le[i_]=le[E_]=!0,le[Pe]=le[As]=le[Qn]=le[Es]=le[fn]=le[bs]=le[ct]=le[mt]=le[us]=le[Xn]=le[Rs]=le[Gn]=le[as]=le[Hn]=le[Wn]=!1;var Te={};Te[Pe]=Te[As]=Te[Qn]=Te[fn]=Te[Es]=Te[bs]=Te[e_]=Te[s_]=Te[n_]=Te[t_]=Te[r_]=Te[us]=Te[Xn]=Te[Rs]=Te[Gn]=Te[as]=Te[Hn]=Te[It]=Te[__]=Te[o_]=Te[i_]=Te[E_]=!0,Te[ct]=Te[mt]=Te[Wn]=!1;var Ep={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},up={"&":"&","<":"<",">":">",'"':""","'":"'"},ap={"&":"&","<":"<",">":">",""":'"',"'":"'"},pp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$p=parseFloat,Tp=parseInt,ui=typeof global=="object"&&global&&global.Object===Object&&global,lp=typeof self=="object"&&self&&self.Object===Object&&self,De=ui||lp||Function("return this")(),A_=typeof Yn=="object"&&Yn&&!Yn.nodeType&&Yn,js=A_&&typeof At=="object"&&At&&!At.nodeType&&At,ai=js&&js.exports===A_,b_=ai&&ui.process,Ze=function(){try{var A=js&&js.require&&js.require("util").types;return A||b_&&b_.binding&&b_.binding("util")}catch{}}(),pi=Ze&&Ze.isArrayBuffer,$i=Ze&&Ze.isDate,Ti=Ze&&Ze.isMap,li=Ze&&Ze.isRegExp,fi=Ze&&Ze.isSet,Ai=Ze&&Ze.isTypedArray;function Qe(A,N,m){switch(m.length){case 0:return A.call(N);case 1:return A.call(N,m[0]);case 2:return A.call(N,m[0],m[1]);case 3:return A.call(N,m[0],m[1],m[2])}return A.apply(N,m)}function fp(A,N,m,d){for(var H=-1,oe=A==null?0:A.length;++H-1}function c_(A,N,m){for(var d=-1,H=A==null?0:A.length;++d-1;);return m}function Ni(A,N){for(var m=A.length;m--&&bn(N,A[m],0)>-1;);return m}function Np(A,N){for(var m=A.length,d=0;m--;)A[m]===N&&++d;return d}var Sp=R_(Ep),yp=R_(up);function Lp(A){return"\\"+pp[A]}function Cp(A,N){return A==null?s:A[N]}function cn(A){return rp.test(A)}function xp(A){return _p.test(A)}function Pp(A){for(var N,m=[];!(N=A.next()).done;)m.push(N.value);return m}function y_(A){var N=-1,m=Array(A.size);return A.forEach(function(d,H){m[++N]=[H,d]}),m}function Si(A,N){return function(m){return A(N(m))}}function Ms(A,N){for(var m=-1,d=A.length,H=0,oe=[];++m-1}function b$(e,n){var r=this.__data__,i=Yt(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}hs.prototype.clear=T$,hs.prototype.delete=l$,hs.prototype.get=f$,hs.prototype.has=A$,hs.prototype.set=b$;function Ns(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function ns(e,n,r,i,u,p){var $,l=n&L,b=n&P,S=n&K;if(r&&($=u?r(e,i,u,p):r(e)),$!==s)return $;if(!be(e))return e;var y=W(e);if(y){if($=OT(e),!l)return Ye(e,$)}else{var C=Me(e),D=C==mt||C==Uo;if(Hs(e))return iE(e,l);if(C==Rs||C==Pe||D&&!u){if($=b||D?{}:yE(e),!l)return b?aT(e,d$($,e)):uT(e,Mi($,e))}else{if(!Te[C])return u?e:{};$=RT(e,C,l)}}p||(p=new $s);var B=p.get(e);if(B)return B;p.set(e,$),su(e)?e.forEach(function(U){$.add(ns(U,n,r,U,e,p))}):jE(e)&&e.forEach(function(U,j){$.set(j,ns(U,n,r,j,e,p))});var F=S?b?Z_:z_:b?Ge:Ke,z=y?s:F(e);return je(z||e,function(U,j){z&&(j=U,U=e[j]),jn($,j,ns(U,n,r,j,e,p))}),$}function B$(e){var n=Ke(e);return function(r){return Fi(r,e,n)}}function Fi(e,n,r){var i=r.length;if(e==null)return!i;for(e=$e(e);i--;){var u=r[i],p=n[u],$=e[u];if($===s&&!(u in e)||!p($))return!1}return!0}function Ui(e,n,r){if(typeof e!="function")throw new es(T);return ot(function(){e.apply(s,r)},n)}function et(e,n,r,i){var u=-1,p=Nt,$=!0,l=e.length,b=[],S=n.length;if(!l)return b;r&&(n=fe(n,qe(r))),i?(p=c_,$=!1):n.length>=o&&(p=qn,$=!1,n=new nn(n));e:for(;++uu?0:u+r),i=i===s||i>u?u:k(i),i<0&&(i+=u),i=r>i?0:tu(i);r0&&r(l)?n>1?ve(l,n-1,r,i,u):gs(u,l):i||(u[u.length]=l)}return u}var d_=TE(),Xi=TE(!0);function cs(e,n){return e&&d_(e,n,Ke)}function B_(e,n){return e&&Xi(e,n,Ke)}function Gt(e,n){return vs(n,function(r){return xs(e[r])})}function rn(e,n){n=Xs(n,e);for(var r=0,i=n.length;e!=null&&rn}function M$(e,n){return e!=null&&ae.call(e,n)}function F$(e,n){return e!=null&&n in $e(e)}function U$(e,n,r){return e>=ge(n,r)&&e=120&&y.length>=120)?new nn($&&y):s}y=e[0];var C=-1,D=l[0];e:for(;++C-1;)l!==e&&Bt.call(l,b,1),Bt.call(e,b,1);return e}function ji(e,n){for(var r=e?n.length:0,i=r-1;r--;){var u=n[r];if(r==i||u!==p){var p=u;Cs(u)?Bt.call(e,u,1):H_(e,u)}}return e}function Y_(e,n){return e+Mt(di()*(n-e+1))}function Z$(e,n,r,i){for(var u=-1,p=Ce(gt((n-e)/(r||1)),0),$=m(p);p--;)$[i?p:++u]=e,e+=r;return $}function X_(e,n){var r="";if(!e||n<1||n>ue)return r;do n%2&&(r+=e),n=Mt(n/2),n&&(e+=e);while(n);return r}function Z(e,n){return _o(xE(e,n,He),e+"")}function j$(e){return gi(Cn(e))}function eT(e,n){var r=Cn(e);return er(r,tn(n,0,r.length))}function tt(e,n,r,i){if(!be(e))return e;n=Xs(n,e);for(var u=-1,p=n.length,$=p-1,l=e;l!=null&&++uu?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var p=m(u);++i>>1,$=e[p];$!==null&&!Ve($)&&(r?$<=n:$=o){var S=n?null:lT(e);if(S)return yt(S);$=!1,u=qn,b=new nn}else b=n?[]:l;e:for(;++i=i?e:ts(e,n,r)}var oE=Wp||function(e){return De.clearTimeout(e)};function iE(e,n){if(n)return e.slice();var r=e.length,i=Ci?Ci(r):new e.constructor(r);return e.copy(i),i}function k_(e){var n=new e.constructor(e.byteLength);return new Kt(n).set(new Kt(e)),n}function _T(e,n){var r=n?k_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function oT(e){var n=new e.constructor(e.source,Ho.exec(e));return n.lastIndex=e.lastIndex,n}function iT(e){return Zn?$e(Zn.call(e)):{}}function EE(e,n){var r=n?k_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function uE(e,n){if(e!==n){var r=e!==s,i=e===null,u=e===e,p=Ve(e),$=n!==s,l=n===null,b=n===n,S=Ve(n);if(!l&&!S&&!p&&e>n||p&&$&&b&&!l&&!S||i&&$&&b||!r&&b||!u)return 1;if(!i&&!p&&!S&&e=l)return b;var S=r[i];return b*(S=="desc"?-1:1)}}return e.index-n.index}function aE(e,n,r,i){for(var u=-1,p=e.length,$=r.length,l=-1,b=n.length,S=Ce(p-$,0),y=m(b+S),C=!i;++l1?r[u-1]:s,$=u>2?r[2]:s;for(p=e.length>3&&typeof p=="function"?(u--,p):s,$&&Ue(r[0],r[1],$)&&(p=u<3?s:p,u=1),n=$e(n);++i-1?u[p?n[$]:$]:s}}function AE(e){return Ls(function(n){var r=n.length,i=r,u=ss.prototype.thru;for(e&&n.reverse();i--;){var p=n[i];if(typeof p!="function")throw new es(T);if(u&&!$&&Zt(p)=="wrapper")var $=new ss([],!0)}for(i=$?i:r;++i1&&ne.reverse(),y&&bl))return!1;var S=p.get(e),y=p.get(n);if(S&&y)return S==n&&y==e;var C=-1,D=!0,B=r&X?new nn:s;for(p.set(e,n),p.set(n,e);++C1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(Sa,`{ +`,x+=" "+Array(R.col).join(" ")+"^",x},pe.prototype.clone=function(){return new pe(this.states,this.state)},pe.prototype.has=function(R){return!0},{compile:Se,states:ye,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:xe}})});var Ou=Q(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});var ac=he(),pc=ac.stringArrayToMapping(["STATS_SAMPLE_PAGES","GEOMETRYCOLLECTION","STATS_AUTO_RECALC","ENCRYPTION_KEY_ID","CURRENT_TIMESTAMP","STATS_PERSISTENT","DELAY_KEY_WRITE","MULTILINESTRING","LOCALTIMESTAMP","AUTO_INCREMENT","AVG_ROW_LENGTH","UNIX_TIMESTAMP","LAST_INSERT_ID","KEY_BLOCK_SIZE","COLUMN_FORMAT","CONNECTION_ID","PAGE_CHECKSUM","TRANSACTIONAL","UTC_TIMESTAMP","INSERT_METHOD","SESSION_USER","MULTIPOLYGON","CURRENT_DATE","CURRENT_TIME","CURRENT_USER","COMPRESSION","IETF_QUOTES","SYSTEM_TIME","SYSTEM_USER","VERSIONING","MULTIPOINT","LINESTRING","CONNECTION","MEDIUMBLOB","COMPRESSED","ENCRYPTION","VALIDATION","CONSTRAINT","ROW_FORMAT","UUID_SHORT","FOUND_ROWS","TABLESPACE","REFERENCES","MEDIUMTEXT","VARBINARY","TEMPORARY","REDUNDANT","EXCLUSIVE","ROW_COUNT","LOCALTIME","MEDIUMINT","TIMESTAMP","DIRECTORY","INVISIBLE","PACK_KEYS","ALGORITHM","CHARACTER","TINYBLOB","UTC_TIME","NATIONAL","FULLTEXT","GEOMETRY","MAX_ROWS","DATABASE","LONGBLOB","UNSIGNED","TINYTEXT","DATETIME","MIN_ROWS","ZEROFILL","UTC_DATE","PASSWORD","CHECKSUM","RESTRICT","LONGTEXT","SMALLINT","CONVERT","SPATIAL","INPLACE","STORAGE","SYSDATE","FOREIGN","TINYINT","DYNAMIC","DISCARD","DISABLE","DEFAULT","DECIMAL","CURTIME","CURDATE","INTEGER","COMPACT","COMMENT","COLLATE","REPLACE","CHARSET","CASCADE","BOOLEAN","NUMERIC","OFFLINE","PRIMARY","POLYGON","VARCHAR","VERSION","WITHOUT","PARTIAL","ENABLE","MEMORY","CREATE","MODIFY","DELETE","ENGINE","UPDATE","BIGINT","SYSTEM","SIMPLE","EXISTS","RENAME","BINARY","NOWAIT","IGNORE","SHARED","IMPORT","ACTION","ONLINE","SCHEMA","PERIOD","UNIQUE","DOUBLE","CHANGE","PARSER","COLUMN","INDEX","FLOAT","POINT","ALTER","ROUND","NCHAR","MATCH","RTREE","BTREE","AFTER","USING","FORCE","TABLE","ORDER","FIXED","FIRST","FALSE","UNION","UUID","LOCK","LIKE","LAST","KEYS","CHAR","JSON","COPY","WAIT","NONE","HASH","FULL","BLOB","YEAR","USER","PAGE","TEXT","TIME","RAND","NULL","BOOL","ENUM","DATA","DROP","TRUE","WITH","DISK","DESC","DATE","ZLIB","BIT","YES","INT","KEY","NOW","SET","ADD","LZ4","NOT","FOR","ASC","USE","AS","NO","BY","ON","OR","IF","PI","TO"],s=>`K_${s}`,s=>new RegExp(`\\b${s.split("").reduce((t,o)=>(t+=`[${o.toUpperCase()}${o.toLowerCase()}]`,t),"")}\\b`));Oo.default=pc});var Ru=Q(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default={WS:{match:/(?:\s+|#.*|-- +.*|\/\*(?:[\s\S])*?\*\/)+/,lineBreaks:!0},S_EQUAL:"=",S_LPARENS:"(",S_RPARENS:")",S_COMMA:",",S_SEMICOLON:";",S_BIT_FORMAT:{match:/b'[01]+'|0b[01]+/},S_HEXA_FORMAT:{match:/[Xx]'[0-9a-fA-F]+'|0x[0-9a-fA-F]+/},S_DQUOTE_STRING:{match:/""|"(?:(?:"")|[^"\\]|\\.)*"/,value:s=>s.substr(1,s.length-2).replace(/\\"/g,'"').replace(/""/g,'"')},S_SQUOTE_STRING:{match:/''|'(?:(?:'')|[^'\\]|\\.)*'/,value:s=>s.substr(1,s.length-2).replace(/\\'/g,"'").replace(/''/g,"'")},S_NUMBER:{match:/[+-]?(?:\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)/,value:Number},S_IDENTIFIER_QUOTED:{match:/`(?:(?:``)|[^`\\])*`/,value:s=>s.substr(1,s.length-2).replace(/``/g,"`")},S_IDENTIFIER_UNQUOTED:{match:/[0-9a-zA-Z$_]+/},S_UNKNOWN:{match:/.+/}}});var hu=Q(Et=>{"use strict";var ho=Et&&Et.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Et,"__esModule",{value:!0});function f(s){return s[0]}var $c=ho(Iu()),Tc=ho(Ou()),lc=ho(Ru()),fc=Object.assign({},Tc.default,lc.default),_=$c.default.compile(fc),Ac={Lexer:_,ParserRules:[{name:"P_DDS$subexpression$1",symbols:["P_CREATE_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_RENAME_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_SET","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_USE_DB","_"],postprocess:f},{name:"P_DDS",symbols:["_","P_DDS$subexpression$1"],postprocess:s=>({id:"P_DDS",def:s[1]})},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"_",symbols:["_$ebnf$1"]},{name:"__$ebnf$1",symbols:[_.has("WS")?{type:"WS"}:WS]},{name:"__$ebnf$1",symbols:["__$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"__",symbols:["__$ebnf$1"]},{name:"S_EOS",symbols:["_",_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"O_CHARSET",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_CHARSET",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[2]?s[2].value:"")+")"},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:["O_DEFAULT_VALUE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE",symbols:["S_IDENTIFIER","O_DEFAULT_VALUE$ebnf$1"],postprocess:s=>{var t;return s[0]+((t=s[1])!==null&&t!==void 0?t:"")}},{name:"O_DEFAULT_VALUE",symbols:["O_QUOTED_STRING"],postprocess:f},{name:"O_QUOTED_STRING",symbols:[_.has("S_DQUOTE_STRING")?{type:"S_DQUOTE_STRING"}:S_DQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_QUOTED_STRING",symbols:[_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_TABLE_OPTION_VALUE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_QUOTED")?{type:"S_IDENTIFIER_QUOTED"}:S_IDENTIFIER_QUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_UNQUOTED")?{type:"S_IDENTIFIER_UNQUOTED"}:S_IDENTIFIER_UNQUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PI")?{type:"K_PI"}:K_PI],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BY")?{type:"K_BY"}:K_BY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOR")?{type:"K_FOR"}:K_FOR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LZ4")?{type:"K_LZ4"}:K_LZ4],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOW")?{type:"K_NOW"}:K_NOW],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZLIB")?{type:"K_ZLIB"}:K_ZLIB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRUE")?{type:"K_TRUE"}:K_TRUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RAND")?{type:"K_RAND"}:K_RAND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USER")?{type:"K_USER"}:K_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID")?{type:"K_UUID"}:K_UUID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FALSE")?{type:"K_FALSE"}:K_FALSE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROUND")?{type:"K_ROUND"}:K_ROUND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSION")?{type:"K_VERSION"}:K_VERSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURDATE")?{type:"K_CURDATE"}:K_CURDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURTIME")?{type:"K_CURTIME"}:K_CURTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSDATE")?{type:"K_SYSDATE"}:K_SYSDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_DATE")?{type:"K_UTC_DATE"}:K_UTC_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIME")?{type:"K_UTC_TIME"}:K_UTC_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIME")?{type:"K_LOCALTIME"}:K_LOCALTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_COUNT")?{type:"K_ROW_COUNT"}:K_ROW_COUNT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOUND_ROWS")?{type:"K_FOUND_ROWS"}:K_FOUND_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID_SHORT")?{type:"K_UUID_SHORT"}:K_UUID_SHORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_USER")?{type:"K_SYSTEM_USER"}:K_SYSTEM_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_USER")?{type:"K_CURRENT_USER"}:K_CURRENT_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIME")?{type:"K_CURRENT_TIME"}:K_CURRENT_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_DATE")?{type:"K_CURRENT_DATE"}:K_CURRENT_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SESSION_USER")?{type:"K_SESSION_USER"}:K_SESSION_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIMESTAMP")?{type:"K_UTC_TIMESTAMP"}:K_UTC_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION_ID")?{type:"K_CONNECTION_ID"}:K_CONNECTION_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST_INSERT_ID")?{type:"K_LAST_INSERT_ID"}:K_LAST_INSERT_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIX_TIMESTAMP")?{type:"K_UNIX_TIMESTAMP"}:K_UNIX_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIMESTAMP")?{type:"K_LOCALTIMESTAMP"}:K_LOCALTIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES],postprocess:s=>s[0].value},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_ALTER_DB$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$1",symbols:["P_ALTER_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_DB$ebnf$2$subexpression$1",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2$subexpression$1"]},{name:"P_ALTER_DB$ebnf$2$subexpression$2",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2","P_ALTER_DB$ebnf$2$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_DB",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_DB$subexpression$1","P_ALTER_DB$ebnf$1","P_ALTER_DB$ebnf$2","S_EOS"],postprocess:s=>({id:"P_ALTER_DB",def:{database:s[3],meta:s[4]}})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_ALTER_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_ALTER_DB_SPEC",symbols:["O_ALTER_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_DB_SPEC",def:s[0]})},{name:"P_ALTER_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_ALTER_TABLE$ebnf$1",symbols:["P_ALTER_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$2$subexpression$1",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE,"__"]},{name:"P_ALTER_TABLE$ebnf$2",symbols:["P_ALTER_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"__"]},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT,"__"]},{name:"P_ALTER_TABLE$ebnf$3",symbols:["P_ALTER_TABLE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$4",symbols:[]},{name:"P_ALTER_TABLE$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_ALTER_TABLE_SPECS"],postprocess:s=>s[3]},{name:"P_ALTER_TABLE$ebnf$4",symbols:["P_ALTER_TABLE$ebnf$4","P_ALTER_TABLE$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_TABLE",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_TABLE$ebnf$1","P_ALTER_TABLE$ebnf$2",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","__","P_ALTER_TABLE$ebnf$3","P_ALTER_TABLE_SPECS","P_ALTER_TABLE$ebnf$4","S_EOS"],postprocess:s=>({id:"P_ALTER_TABLE",def:{table:s[6],specs:[s[9]].concat(s[10])}})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS"],postprocess:s=>({tableOptions:s[0]})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["O_ALTER_TABLE_SPEC"],postprocess:s=>({spec:s[0]})},{name:"P_ALTER_TABLE_SPECS",symbols:["P_ALTER_TABLE_SPECS$subexpression$1"],postprocess:s=>({id:"P_ALTER_TABLE_SPECS",def:s[0]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4"],postprocess:s=>{var t;let o={action:"addColumn",name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[],position:s[8]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1",symbols:["S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3"],postprocess:s=>{var t,o;let E={name:s[0],datatype:s[2],columnDefinition:(t=s[3])!==null&&t!==void 0?t:[]};return s[4]&&(E.reference=s[4]),[E].concat((o=s[5])!==null&&o!==void 0?o:[])}},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addColumns",columns:s[5]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9"],postprocess:s=>{var t;return{action:"addIndex",name:s[3],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13"],postprocess:s=>{var t;return{action:"addPrimaryKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19"],postprocess:s=>{var t;return s[5]&&["index","key"].includes(s[5].toLowerCase())&&(s[5]=void 0),{action:"addUniqueKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addFulltextIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addSpatialIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{action:"addForeignKey",name:s[2],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),reference:s[15]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4"],postprocess:s=>({action:"changeAlgorithm",algorithm:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31","S_IDENTIFIER","__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({action:"setDefaultColumnValue",column:s[3],value:s[9]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32","S_IDENTIFIER","__",_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>({action:"dropDefaultColumnValue",column:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33","S_IDENTIFIER","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:s[5],datatype:s[7],columnDefinition:s[8],position:s[10]};return s[9]&&(t.reference=s[9]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:void 0,datatype:s[5],columnDefinition:s[6],position:s[8]};return s[7]&&(t.reference=s[7]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1",symbols:["__",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT,"__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5","__","O_CHARSET","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41"],postprocess:s=>({action:"convertToCharacterSet",charset:s[6],collate:s[7]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"enableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"disableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"discardTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"importTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43","S_IDENTIFIER"],postprocess:s=>({action:"dropColumn",column:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6","__","S_IDENTIFIER"],postprocess:s=>({action:"dropIndex",index:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({action:"dropPrimaryKey"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"__","S_IDENTIFIER"],postprocess:s=>({action:"dropForeignKey",key:s[6]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>({action:"force"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8"],postprocess:s=>({action:"changeLock",lock:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER,"__",_.has("K_BY")?{type:"K_BY"}:K_BY,"__","S_IDENTIFIER","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44"],postprocess:s=>{var t;return{action:"orderBy",columns:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9","__","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({action:"renameIndex",index:s[4],newName:s[8]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45","S_IDENTIFIER"],postprocess:s=>({action:"rename",newName:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withoutValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD,"__",_.has("K_FOR")?{type:"K_FOR"}:K_FOR,"__",_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME,"_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addPeriodForSystemTime",startColumnName:s[10],endColumnName:s[14]})},{name:"O_ALTER_TABLE_SPEC",symbols:["O_ALTER_TABLE_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_TABLE_SPEC",def:s[0]})},{name:"P_CREATE_DB$ebnf$1$subexpression$1",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE,"__"]},{name:"P_CREATE_DB$ebnf$1",symbols:["P_CREATE_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:["P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1","__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_DB$ebnf$2",symbols:["P_CREATE_DB$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$3",symbols:[]},{name:"P_CREATE_DB$ebnf$3$subexpression$1",symbols:["__","O_CREATE_DB_SPEC"],postprocess:s=>s[1]},{name:"P_CREATE_DB$ebnf$3",symbols:["P_CREATE_DB$ebnf$3","P_CREATE_DB$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_DB",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"__","P_CREATE_DB$ebnf$1","P_CREATE_DB$subexpression$1","P_CREATE_DB$ebnf$2","__","S_IDENTIFIER","P_CREATE_DB$ebnf$3","S_EOS"],postprocess:s=>({id:"P_CREATE_DB",def:{database:s[6],meta:s[7]}})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_DB_SPEC",symbols:["O_CREATE_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_CREATE_DB_SPEC",def:s[0]})},{name:"P_CREATE_INDEX$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_INDEX$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE]},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE]},{name:"P_CREATE_INDEX$ebnf$2",symbols:["P_CREATE_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3",symbols:["P_CREATE_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$4$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_INDEX$ebnf$4",symbols:["P_CREATE_INDEX$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$5$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$5",symbols:["P_CREATE_INDEX$ebnf$5$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_INDEX$ebnf$6",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$6",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_CREATE_INDEX$ebnf$7",symbols:["P_CREATE_INDEX$ebnf$7$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$7",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$8",symbols:[]},{name:"P_CREATE_INDEX$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$8",symbols:["P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$9",symbols:[]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9",symbols:["P_CREATE_INDEX$ebnf$9","P_CREATE_INDEX$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_INDEX$ebnf$1","P_CREATE_INDEX$ebnf$2","P_CREATE_INDEX$ebnf$3","__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_CREATE_INDEX$ebnf$4","__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$5","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$6","P_CREATE_INDEX$ebnf$7","P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$9","S_EOS"],postprocess:s=>{var t,o;let E=s[3]?s[3].value+" ":"";return E=E+s[5].value,{id:"P_CREATE_INDEX",def:{name:s[8],type:E,index:s[9],table:s[13],columns:s[14],options:((t=s[16])!==null&&t!==void 0?t:[]).concat((o=s[17])!==null&&o!==void 0?o:[])}}}},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1","P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2"],postprocess:s=>({length:s[0]?s[0].value:void 0,sort:s[1]?s[1].value:void 0})},{name:"P_INDEX_COLUMN$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN",symbols:["S_IDENTIFIER","P_INDEX_COLUMN$ebnf$1"],postprocess:s=>({id:"P_INDEX_COLUMN",def:{column:s[0],length:s[1]&&s[1].length?s[1].length:void 0,sort:s[1]&&s[1].sort?s[1].sort:void 0}})},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:f},{name:"P_INDEX_TYPE",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING,"__","P_INDEX_TYPE$subexpression$1"],postprocess:s=>({id:"P_INDEX_TYPE",def:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_INDEX_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1",symbols:["P_INDEX_TYPE"],postprocess:s=>({indexType:s[0]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER,"__","S_IDENTIFIER"],postprocess:s=>({parser:s[4]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_INDEX_OPTION",symbols:["O_INDEX_OPTION$subexpression$1"],postprocess:s=>({id:"O_INDEX_OPTION",def:s[0]})},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["__"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"P_INDEX_ALGORITHM_OPTION$subexpression$1","P_INDEX_ALGORITHM_OPTION$subexpression$2"],postprocess:s=>({id:"P_INDEX_ALGORITHM_OPTION",def:{algorithm:s[2].value}})},{name:"P_LOCK_OPTION$subexpression$1",symbols:["__"]},{name:"P_LOCK_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"P_LOCK_OPTION",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"P_LOCK_OPTION$subexpression$1","P_LOCK_OPTION$subexpression$2"],postprocess:s=>({id:"P_LOCK_OPTION",def:{lock:s[2].value}})},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_COMMON"],postprocess:f},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_LIKE"],postprocess:f},{name:"P_CREATE_TABLE",symbols:["P_CREATE_TABLE$subexpression$1"],postprocess:s=>({id:"P_CREATE_TABLE",def:s[0]})},{name:"P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:["P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:["P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:["P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1",symbols:["_","P_CREATE_TABLE_OPTIONS"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:["P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_COMMON$ebnf$1","P_CREATE_TABLE_COMMON$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_COMMON$ebnf$3","__","S_IDENTIFIER","_","P_CREATE_TABLE_CREATE_DEFINITIONS","P_CREATE_TABLE_COMMON$ebnf$4","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_COMMON",def:{table:s[7],columnsDef:s[9],tableOptions:s[10]}})},{name:"P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:["P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:["P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:["P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["__",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[5]},{name:"P_CREATE_TABLE_LIKE",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_LIKE$ebnf$1","P_CREATE_TABLE_LIKE$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_LIKE$ebnf$3","__","S_IDENTIFIER","P_CREATE_TABLE_LIKE$subexpression$1","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_LIKE",def:{table:s[7],like:s[8]}})},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","O_CREATE_TABLE_CREATE_DEFINITION"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:["P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1"],postprocess:s=>{var t;return[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({id:"P_CREATE_TABLE_CREATE_DEFINITIONS",def:s[2]})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1",symbols:["O_DATATYPE","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={datatype:s[0],columnDefinition:(t=s[1])!==null&&t!==void 0?t:[]};return s[2]&&(o.reference=s[2]),o}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["S_IDENTIFIER","_","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({column:{name:s[0],def:s[2]}})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4"],postprocess:s=>{var t;return{primaryKey:{name:s[0],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8"],postprocess:s=>{var t;return{index:{name:s[1],index:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14"],postprocess:s=>{var t,o;return s[3]&&["index","key"].includes(s[3].toLowerCase())&&(s[3]=void 0),{uniqueKey:{name:s[3],index:(t=s[4])!==null&&t!==void 0?t:void 0,columns:[s[8]].concat((o=s[9])!==null&&o!==void 0?o:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{fulltextIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{spatialIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{foreignKey:{name:s[0],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),reference:s[13]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_CREATE_DEFINITION",def:s[0]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>({unsigned:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>({zerofill:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET,"__","O_CHARSET"],postprocess:s=>({charset:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__","O_CHARSET"],postprocess:s=>({charset:s[4]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>({collation:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!1})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({default:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>({autoincrement:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_COLUMN_DEFINITION$subexpression$1$ebnf$1"],postprocess:s=>({unique:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__"]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({primary:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithoutSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>({invisible:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({format:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$2"],postprocess:s=>({storage:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[3]?s[3].value:"")+")"},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__",_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE,"__",_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP,"O_COLUMN_DEFINITION$subexpression$1$ebnf$3"],postprocess:s=>{var t;return{onUpdate:s[4].value+((t=s[5])!==null&&t!==void 0?t:"")}}},{name:"O_COLUMN_DEFINITION",symbols:["O_COLUMN_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_COLUMN_DEFINITION",def:s[0]})},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:[]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:["P_COLUMN_REFERENCE$subexpression$1$ebnf$1","P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_COLUMN_REFERENCE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH,"__","P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1","_"],postprocess:s=>s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:["P_COLUMN_REFERENCE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:[]},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO,"__",_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1","__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2","_"],postprocess:s=>({trigger:s[2].value,action:s[4]})},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:["P_COLUMN_REFERENCE$ebnf$2","P_COLUMN_REFERENCE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES,"__","S_IDENTIFIER","P_COLUMN_REFERENCE$subexpression$1","P_COLUMN_REFERENCE$ebnf$1","P_COLUMN_REFERENCE$ebnf$2"],postprocess:s=>{var t,o;return{id:"P_COLUMN_REFERENCE",def:{table:s[2],columns:(t=s[3])!==null&&t!==void 0?t:[],match:s[4],on:(o=s[5])!==null&&o!==void 0?o:[]}}}},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["__"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1","O_CREATE_TABLE_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1","P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_OPTIONS",symbols:["O_CREATE_TABLE_OPTION","P_CREATE_TABLE_OPTIONS$ebnf$1"],postprocess:s=>{var t;return{id:"P_CREATE_TABLE_OPTIONS",def:[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({autoincrement:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({avgRowLength:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({checksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8","O_QUOTED_STRING"],postprocess:s=>({compression:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9","O_QUOTED_STRING"],postprocess:s=>({connection:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11","O_QUOTED_STRING"],postprocess:s=>({[s[0].value.toLowerCase()+"Directory"]:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({delayKeyWrite:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13","O_QUOTED_STRING"],postprocess:s=>({encryption:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({encryptionKeyId:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16"],postprocess:s=>({ietfQuotes:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17","O_ENGINE"],postprocess:s=>({engine:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19"],postprocess:s=>({insertMethod:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({maxRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({minRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24"],postprocess:s=>({packKeys:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({pageChecksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26","O_QUOTED_STRING"],postprocess:s=>({password:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28"],postprocess:s=>({rowFormat:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30"],postprocess:s=>({statsAutoRecalc:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32"],postprocess:s=>({statsPersistent:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33","O_TABLE_OPTION_VALUE"],postprocess:s=>({statsSamplePages:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({transactional:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({withSystemVersioning:!0})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1",symbols:["__",_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1"],postprocess:s=>s[3].value},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE,"__","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3"],postprocess:s=>{let t={tablespaceName:s[2]};return s[3]&&(t.tablespaceStorage=s[3]),t}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return{union:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION",symbols:["O_CREATE_TABLE_OPTION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_OPTION",def:s[0]})},{name:"O_DATATYPE$subexpression$1",symbols:["O_INTEGER_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FLOATING_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BIT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BOOLEAN_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_DATETIME_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_YEAR_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_ENUM_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SET_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SPATIAL_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_JSON_DATATYPE"],postprocess:f},{name:"O_DATATYPE",symbols:["O_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_DATATYPE",def:s[0]})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>({datatype:s[0].value,width:1})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>({datatype:s[0].value,width:2})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>({datatype:s[0].value,width:3})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>({datatype:s[0].value,width:8})},{name:"O_INTEGER_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:["O_INTEGER_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_INTEGER_DATATYPE",symbols:["O_INTEGER_DATATYPE$subexpression$1","O_INTEGER_DATATYPE$ebnf$1"],postprocess:s=>({id:"O_INTEGER_DATATYPE",def:{datatype:s[0].datatype,width:s[1]?s[1]:s[0].width}})},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:0})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:["O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_POINT_DATATYPE",symbols:["O_FIXED_POINT_DATATYPE$subexpression$1","O_FIXED_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FIXED_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]?(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals):(t.def.digits=10,t.def.decimals=0),t}},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:["O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FLOATING_POINT_DATATYPE",symbols:["O_FLOATING_POINT_DATATYPE$subexpression$1","O_FLOATING_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FLOATING_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]&&(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals),t}},{name:"O_BIT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>s[3].value},{name:"O_BIT_DATATYPE$ebnf$1",symbols:["O_BIT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_BIT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_BIT_DATATYPE",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT,"O_BIT_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_BIT_DATATYPE",def:{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:1}}}},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:f},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:f},{name:"O_BOOLEAN_DATATYPE",symbols:["O_BOOLEAN_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_BOOLEAN_DATATYPE",def:{datatype:s[0].value}})},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:["O_DATETIME_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DATETIME_DATATYPE",symbols:["O_DATETIME_DATATYPE$subexpression$1","O_DATETIME_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_DATETIME_DATATYPE",def:{datatype:s[0].value,fractional:(t=s[1])!==null&&t!==void 0?t:0}}}},{name:"O_YEAR_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:["O_YEAR_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_YEAR_DATATYPE",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR,"O_YEAR_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_YEAR_DATATYPE",def:{datatype:s[0].value,digits:(t=s[1])!==null&&t!==void 0?t:4}}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL,"__",_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value+" "+s[2].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1","O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0],length:(t=s[1])!==null&&t!==void 0?t:1}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2","O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3"],postprocess:s=>({datatype:s[0].value,length:s[1]})},{name:"O_VARIABLE_STRING_DATATYPE",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_VARIABLE_STRING_DATATYPE",def:s[0]})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1","O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:65535}}},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_FIXED_STRING_DATATYPE",def:s[0]})},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:["O_ENUM_DATATYPE$subexpression$1$ebnf$1","O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ENUM_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_ENUM_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_ENUM_DATATYPE",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM,"O_ENUM_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_ENUM_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:["O_SET_DATATYPE$subexpression$1$ebnf$1","O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_SET_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_SET_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_SET_DATATYPE",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"O_SET_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SET_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:f},{name:"O_SPATIAL_DATATYPE",symbols:["O_SPATIAL_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SPATIAL_DATATYPE",def:{datatype:s[0].value}})},{name:"O_JSON_DATATYPE",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>({id:"O_JSON_DATATYPE",def:{datatype:s[0].value}})},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_DROP_DB$ebnf$1$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_DB$ebnf$1",symbols:["P_DROP_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_DB",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_DB$subexpression$1","P_DROP_DB$ebnf$1","__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_DROP_DB",def:s[5]})},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1",symbols:["P_DROP_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_INDEX$ebnf$2",symbols:["P_DROP_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_INDEX$ebnf$3",symbols:["P_DROP_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$4",symbols:[]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4",symbols:["P_DROP_INDEX$ebnf$4","P_DROP_INDEX$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_INDEX",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_INDEX$ebnf$1",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_DROP_INDEX$ebnf$2","__","S_IDENTIFIER","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_DROP_INDEX$ebnf$3","P_DROP_INDEX$ebnf$4","S_EOS"],postprocess:s=>({id:"P_DROP_INDEX",def:{index:s[6],table:s[10],options:s[12]?s[12]:[]}})},{name:"P_DROP_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY,"__"]},{name:"P_DROP_TABLE$ebnf$1",symbols:["P_DROP_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_TABLE$ebnf$2",symbols:["P_DROP_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$3",symbols:[]},{name:"P_DROP_TABLE$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_DROP_TABLE$ebnf$3",symbols:["P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_TABLE$ebnf$4",symbols:["P_DROP_TABLE$ebnf$4$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT]},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE]},{name:"P_DROP_TABLE$ebnf$5",symbols:["P_DROP_TABLE$ebnf$5$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_TABLE$ebnf$1",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_DROP_TABLE$ebnf$2","__","S_IDENTIFIER","P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$4","P_DROP_TABLE$ebnf$5","S_EOS"],postprocess:s=>{var t;return{id:"P_DROP_TABLE",def:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[])}}},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_RENAME_TABLE$ebnf$1",symbols:["P_RENAME_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_RENAME_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_RENAME_TABLE$ebnf$2",symbols:[]},{name:"P_RENAME_TABLE$ebnf$2$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({table:s[3],newName:s[7]})},{name:"P_RENAME_TABLE$ebnf$2",symbols:["P_RENAME_TABLE$ebnf$2","P_RENAME_TABLE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_RENAME_TABLE",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$1","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$2","S_EOS"],postprocess:s=>{var t;return{id:"P_RENAME_TABLE",def:[{table:s[4],newName:s[9]}].concat((t=s[10])!==null&&t!==void 0?t:[])}}},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$1",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1$subexpression$1"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$2",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1","P_SET$ebnf$1$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_SET",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__","P_SET$ebnf$1","S_EOS"],postprocess:s=>({id:"P_SET"})},{name:"P_USE_DB",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE,"__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_USE_DB",def:{database:s[2]}})}],ParserStart:"P_DDS"};Et.default=Ac});var Nu=Q(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var bc=hu();Object.defineProperty(No,"Grammar",{enumerable:!0,get:function(){return bc.default}})});var So=Q($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.TableOptions=void 0;var h=he(),un=class{static fromDef(t){if(t.id==="P_CREATE_TABLE_OPTIONS")return un.fromArray(t.def);throw new TypeError(`Unknown json id to build table options from: ${t.id}`)}static fromArray(t){let o=new un;return t.forEach(E=>{h.isDefined(E.def.autoincrement)&&(o.autoincrement=E.def.autoincrement),h.isDefined(E.def.avgRowLength)&&(o.avgRowLength=E.def.avgRowLength),h.isDefined(E.def.charset)&&(o.charset=E.def.charset.toLowerCase()),h.isDefined(E.def.checksum)&&(o.checksum=E.def.checksum),h.isDefined(E.def.collation)&&(o.collation=E.def.collation.toLowerCase()),h.isDefined(E.def.comment)&&(o.comment=E.def.comment),h.isDefined(E.def.compression)&&(o.compression=E.def.compression.toLowerCase()),h.isDefined(E.def.connection)&&(o.connection=E.def.connection),h.isDefined(E.def.dataDirectory)&&(o.dataDirectory=E.def.dataDirectory),h.isDefined(E.def.indexDirectory)&&(o.indexDirectory=E.def.indexDirectory),h.isDefined(E.def.delayKeyWrite)&&(o.delayKeyWrite=E.def.delayKeyWrite),h.isDefined(E.def.encryption)&&(o.encryption=E.def.encryption.toLowerCase()),h.isDefined(E.def.encryptionKeyId)&&(o.encryptionKeyId=E.def.encryptionKeyId),h.isDefined(E.def.ietfQuotes)&&(o.ietfQuotes=E.def.ietfQuotes.toLowerCase()),h.isDefined(E.def.engine)&&(o.engine=E.def.engine),h.isDefined(E.def.insertMethod)&&(o.insertMethod=E.def.insertMethod.toLowerCase()),h.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),h.isDefined(E.def.maxRows)&&(o.maxRows=E.def.maxRows),h.isDefined(E.def.minRows)&&(o.minRows=E.def.minRows),h.isDefined(E.def.packKeys)&&(h.isString(E.def.packKeys)?o.packKeys=E.def.packKeys.toLowerCase():o.packKeys=E.def.packKeys),h.isDefined(E.def.pageChecksum)&&(o.pageChecksum=E.def.pageChecksum),h.isDefined(E.def.password)&&(o.password=E.def.password),h.isDefined(E.def.rowFormat)&&(o.rowFormat=E.def.rowFormat.toLowerCase()),h.isDefined(E.def.statsAutoRecalc)&&(h.isString(E.def.statsAutoRecalc)?o.statsAutoRecalc=E.def.statsAutoRecalc.toLowerCase():o.statsAutoRecalc=E.def.statsAutoRecalc),h.isDefined(E.def.statsPersistent)&&(h.isString(E.def.statsPersistent)?o.statsPersistent=E.def.statsPersistent.toLowerCase():o.statsPersistent=E.def.statsPersistent),h.isDefined(E.def.statsSamplePages)&&(h.isString(E.def.statsSamplePages)?o.statsSamplePages=E.def.statsSamplePages.toLowerCase():o.statsSamplePages=E.def.statsSamplePages),h.isDefined(E.def.transactional)&&(o.transactional=E.def.transactional),h.isDefined(E.def.withSystemVersioning)&&(o.withSystemVersioning=E.def.withSystemVersioning),h.isDefined(E.def.tablespaceName)&&(o.tablespaceName=E.def.tablespaceName),h.isDefined(E.def.tablespaceStorage)&&(o.tablespaceStorage=E.def.tablespaceStorage.toLowerCase()),h.isDefined(E.def.union)&&(o.union=E.def.union)}),o}toJSON(){let t={};return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union),t}clone(){let t=new un;return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union.slice()),t}mergeWith(t){h.isDefined(t.autoincrement)&&(this.autoincrement=t.autoincrement),h.isDefined(t.avgRowLength)&&(this.avgRowLength=t.avgRowLength),h.isDefined(t.charset)&&(this.charset=t.charset),h.isDefined(t.checksum)&&(this.checksum=t.checksum),h.isDefined(t.collation)&&(this.collation=t.collation),h.isDefined(t.comment)&&(this.comment=t.comment),h.isDefined(t.compression)&&(this.compression=t.compression),h.isDefined(t.connection)&&(this.connection=t.connection),h.isDefined(t.dataDirectory)&&(this.dataDirectory=t.dataDirectory),h.isDefined(t.indexDirectory)&&(this.indexDirectory=t.indexDirectory),h.isDefined(t.delayKeyWrite)&&(this.delayKeyWrite=t.delayKeyWrite),h.isDefined(t.encryption)&&(this.encryption=t.encryption),h.isDefined(t.encryptionKeyId)&&(this.encryptionKeyId=t.encryptionKeyId),h.isDefined(t.ietfQuotes)&&(this.ietfQuotes=t.ietfQuotes),h.isDefined(t.engine)&&(this.engine=t.engine),h.isDefined(t.insertMethod)&&(this.insertMethod=t.insertMethod),h.isDefined(t.keyBlockSize)&&(this.keyBlockSize=t.keyBlockSize),h.isDefined(t.maxRows)&&(this.maxRows=t.maxRows),h.isDefined(t.minRows)&&(this.minRows=t.minRows),h.isDefined(t.packKeys)&&(this.packKeys=t.packKeys),h.isDefined(t.pageChecksum)&&(this.pageChecksum=t.pageChecksum),h.isDefined(t.password)&&(this.password=t.password),h.isDefined(t.rowFormat)&&(this.rowFormat=t.rowFormat),h.isDefined(t.statsAutoRecalc)&&(this.statsAutoRecalc=t.statsAutoRecalc),h.isDefined(t.statsPersistent)&&(this.statsPersistent=t.statsPersistent),h.isDefined(t.statsSamplePages)&&(this.statsSamplePages=t.statsSamplePages),h.isDefined(t.transactional)&&(this.transactional=t.transactional),h.isDefined(t.withSystemVersioning)&&(this.withSystemVersioning=t.withSystemVersioning),h.isDefined(t.tablespaceName)&&(this.tablespaceName=t.tablespaceName),h.isDefined(t.tablespaceStorage)&&(this.tablespaceStorage=t.tablespaceStorage),h.isDefined(t.union)&&(this.union=t.union.slice())}};$r.TableOptions=un});var Su=Q(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.ColumnReferenceOn=void 0;var xn=class{static fromObject(t){let o=new xn;return o.action=t.action.toLowerCase(),o.trigger=t.trigger.toLowerCase(),o}toJSON(){return{trigger:this.trigger,action:this.action}}clone(){return xn.fromObject(this)}};Tr.ColumnReferenceOn=xn});var Ks=Q(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.IndexColumn=void 0;var lr=he(),an=class{static fromDef(t){if(t.id==="P_INDEX_COLUMN")return an.fromObject(t.def);throw new TypeError(`Unknown json id to build index column from: ${t.id}`)}static fromObject(t){let o=new an;return o.column=t.column,t.length&&(o.length=t.length),t.sort&&(o.sort=t.sort),o}toJSON(){let t={column:this.column};return lr.isDefined(this.length)&&(t.length=this.length),lr.isDefined(this.sort)&&(t.sort=this.sort),t}clone(){let t=new an;return t.column=this.column,lr.isDefined(this.length)&&(t.length=this.length),lr.isDefined(this.sort)&&(t.sort=this.sort),t}};fr.IndexColumn=an});var yo=Q(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.ColumnReference=void 0;var yu=he(),cc=Su(),mc=Ks(),Pn=class{constructor(){this.columns=[],this.on=[]}static fromDef(t){if(t.id==="P_COLUMN_REFERENCE"){let o=t.def,E=new Pn;return E.table=o.table,o.match&&(E.match=o.match.toLowerCase()),o.columns.length&&(E.columns=o.columns.map(mc.IndexColumn.fromDef)),o.on.length&&(E.on=o.on.map(cc.ColumnReferenceOn.fromObject)),E}throw new TypeError(`Unknown json id to build column reference from: ${t.id}`)}toJSON(){let t={table:this.table};return yu.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.toJSON())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.toJSON())),t}clone(){let t=new Pn;return t.table=this.table,yu.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.clone())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.clone())),t}};Ar.ColumnReference=Pn});var Lo=Q(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.ColumnOptions=void 0;var ce=he(),Dn=class{static fromArray(t){let o=new Dn;return t.forEach(E=>{Object.assign(o,E.def)}),o.collation&&(o.collation=o.collation.toLowerCase()),o.charset&&(o.charset=o.charset.toLowerCase()),o.storage&&(o.storage=o.storage.toLowerCase()),o.format&&(o.format=o.format.toLowerCase()),ce.isDefined(o.nullable)||(o.nullable=!0),o.zerofill&&(o.unsigned=!0),o.primary&&(o.nullable=!1),o}toJSON(){let t={};return ce.isDefined(this.unsigned)&&(t.unsigned=this.unsigned),ce.isDefined(this.zerofill)&&(t.zerofill=this.zerofill),ce.isDefined(this.charset)&&(t.charset=this.charset),ce.isDefined(this.collation)&&(t.collation=this.collation),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.default)&&(t.default=this.default),ce.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),ce.isDefined(this.unique)&&(t.unique=this.unique),ce.isDefined(this.primary)&&(t.primary=this.primary),ce.isDefined(this.invisible)&&(t.invisible=this.invisible),ce.isDefined(this.format)&&(t.format=this.format),ce.isDefined(this.storage)&&(t.storage=this.storage),ce.isDefined(this.comment)&&(t.comment=this.comment),ce.isDefined(this.onUpdate)&&(t.onUpdate=this.onUpdate),ce.isString(t.default)&&t.default.toLowerCase()==="null"&&(t.default=null),ce.isDefined(this.invisibleWithSystemVersioning)&&(t.invisibleWithSystemVersioning=this.invisibleWithSystemVersioning),ce.isDefined(this.invisibleWithoutSystemVersioning)&&(t.invisibleWithoutSystemVersioning=this.invisibleWithoutSystemVersioning),t}mergeWith(t){Object.getOwnPropertyNames(t).forEach(o=>{let E=t[o];ce.isDefined(E)&&ce.setProperty(this,o,E)})}clone(){let t=new Dn;return Object.getOwnPropertyNames(this).forEach(o=>{let E=this[o];ce.isDefined(E)&&ce.setProperty(t,o,E)}),t}};br.ColumnOptions=Dn});var dn=Q(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.IndexOptions=void 0;var de=he(),Kn=class{static fromArray(t){let o=new Kn;return t.forEach(E=>{de.isDefined(E.def.comment)&&(o.comment=E.def.comment.toLowerCase()),de.isDefined(E.def.indexType)&&(o.indexType=E.def.indexType.def.toLowerCase()),de.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),de.isDefined(E.def.parser)&&(o.parser=E.def.parser),de.isDefined(E.def.algorithm)&&(o.algorithm=E.def.algorithm),de.isDefined(E.def.lock)&&(o.lock=E.def.lock)}),o}toJSON(){let t={};return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}clone(){let t=new Kn;return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}};cr.IndexOptions=Kn});var Or=Q(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.PrimaryKey=void 0;var mr=he(),Ic=Ks(),Oc=dn(),pn=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return pn.fromObject(t.def.primaryKey);throw new TypeError(`Unknown json id to build primary key from: ${t.id}`)}static fromObject(t){let o=new pn;return o.columns=t.columns.map(Ic.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),t.options&&t.options.length&&(o.options=Oc.IndexOptions.fromArray(t.options)),o}toJSON(){var t;let o={columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return mr.isDefined(this.name)&&(o.name=this.name),mr.isDefined(this.options)&&(o.options=this.options.toJSON()),mr.isDefined(this.indexType)&&(o.indexType=this.indexType),o}clone(){var t;let o=new pn;return o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),mr.isDefined(this.indexType)&&(o.indexType=this.indexType),this.options&&(o.options=this.options.clone()),o}pushColumn(t){this.columns||(this.columns=[]),this.columns.push(t)}dropColumn(t){if(!this.columns)return!1;let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>{var T;return((T=this.columns)!==null&&T!==void 0?T:[]).some(c=>c.column===E.name)})}hasAllColumnsFromTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return((c=this.columns)!==null&&c!==void 0?c:[]).some(O=>O.column===T.name)}).length===((E=this.columns)!==null&&E!==void 0?E:[]).length}renameColumn(t,o){var E;return(E=this.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}};Ir.PrimaryKey=pn});var Nr=Q(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.ForeignKey=void 0;var Rr=he(),Rc=yo(),hc=Ks(),$n=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){if(Rr.isDefined(t.def.foreignKey))return $n.fromObject(t.def.foreignKey);throw new TypeError(`Statement ${t.id} has undefined foreignKey. Cannot format foreignKey.`)}throw new TypeError(`Unknown json id to build foreign key from: ${t.id}`)}static fromObject(t){let o=new $n;return o.columns=t.columns.map(hc.IndexColumn.fromDef),o.reference=Rc.ColumnReference.fromDef(t.reference),t.name&&(o.name=t.name),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON()),reference:this.reference.toJSON()};return Rr.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new $n;return t.columns=this.columns.map(o=>o.clone()),t.reference=this.reference.clone(),Rr.isDefined(this.name)&&(t.name=this.name),t}pushColumn(t){this.columns.push(t)}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Rr.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}hasAllColumnsFromRefTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return(c=this.reference.columns)===null||c===void 0?void 0:c.some(O=>O.column===T.name)}).length===((E=this.reference.columns)===null||E===void 0?void 0:E.length)}getReferencedTable(t){var o;return(o=t.find(E=>E.name===this.reference.table))!==null&&o!==void 0?o:void 0}referencesTableAndColumn(t,o){var E;return this.reference.table===t.name&&((E=this.reference.columns)!==null&&E!==void 0?E:[]).some(T=>T.column===o.name)}referencesTable(t){return this.reference.table===t.name}renameColumn(t,o){var E;return(E=this.reference.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}updateReferencedTableName(t){this.reference.table=t}};hr.ForeignKey=$n});var ut=Q(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.UniqueKey=void 0;var Ws=he(),Nc=dn(),Sc=Ks(),Qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Qs.fromObject(t.def.uniqueKey);if(t.id==="P_CREATE_INDEX")return Qs.fromObject(t.def);throw new TypeError(`Unknown json id to build unique key from: ${t.id}`)}static fromObject(t){let o=new Qs;return o.columns=t.columns.map(Sc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Ws.isDefined(t.options)&&t.options.length&&(o.options=Nc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new Qs;return t.columns=this.columns.map(o=>o.clone()),Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Ws.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Sr.UniqueKey=Qs});var Co=Q(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.Datatype=void 0;var os=he(),Tn=class{static fromDef(t){if(t.id==="O_DATATYPE"){let o=new Tn;return Object.assign(o,t.def.def),o.datatype=Tn.filterDatatype(o.datatype),o}throw new TypeError(`Unknown json id to build datatype from: ${t.id}`)}static filterDatatype(t){let o=t.toLowerCase();return o==="integer"||o==="tinyint"||o==="smallint"||o==="mediumint"||o==="bigint"?"int":o==="numeric"?"decimal":o==="bool"?"boolean":o==="tinyblob"||o==="mediumblob"||o==="longblob"?"blob":o==="tinytext"||o==="mediumtext"||o==="longtext"?"text":o==="national char"||o==="character"||o==="nchar"?"char":o}getMaxIndexableSize(){return["int","decimal","float","double","bit","boolean","date","time","datetime","timestamp","year","json"].includes(this.datatype)||["geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection"].includes(this.datatype)?0:["blob","text","char","binary","varchar","varbinary"].includes(this.datatype)?this.length:0}toJSON(){let t={datatype:this.datatype};return os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values),t}clone(){let t=new Tn;return t.datatype=this.datatype,os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values.slice()),t}};yr.Datatype=Tn});var Po=Q(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.Column=void 0;var Lu=he(),yc=yo(),Lc=Lo(),xo=Ks(),Cc=Or(),xc=Nr(),Pc=ut(),Dc=Co(),ln=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){let o=t.def.column;return ln.fromObject({name:o.name,datatype:o.def.datatype,reference:o.def.reference,columnDefinition:o.def.columnDefinition})}throw new TypeError(`Unknown json id to build column from: ${t.id}`)}static fromObject(t){let o=new ln;return o.name=t.name,o.type=Dc.Datatype.fromDef(t.datatype),t.reference&&(o.reference=yc.ColumnReference.fromDef(t.reference)),t.columnDefinition&&(o.options=Lc.ColumnOptions.fromArray(t.columnDefinition)),o}toJSON(){let t={name:this.name,type:this.type.toJSON()};return Lu.isDefined(this.options)&&(t.options=this.options.toJSON()),Lu.isDefined(this.reference)&&(t.reference=this.reference.toJSON()),t}clone(){let t=new ln;return t.name=this.name,t.type=this.type.clone(),this.options&&(t.options=this.options.clone()),t}isPrimaryKey(){return this.options?this.options.primary===!0:!1}isUniqueKey(){return this.options?this.options.unique===!0:!1}isForeignKey(){return!!this.reference}extractPrimaryKey(){if(!this.isPrimaryKey())return;delete this.options.primary;let t=new xo.IndexColumn;t.column=this.name;let o=new Cc.PrimaryKey;return o.pushColumn(t),o}extractForeignKey(){if(!this.isForeignKey())return;let t=new xo.IndexColumn;t.column=this.name;let o=new xc.ForeignKey;return o.pushColumn(t),o.reference=this.reference,delete this.reference,o}extractUniqueKey(){if(!this.isUniqueKey())return;delete this.options.unique;let t=new xo.IndexColumn;t.column=this.name;let o=new Pc.UniqueKey;return o.columns.push(t),o}};Lr.Column=ln});var xr=Q(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.FulltextIndex=void 0;var at=he(),Kc=Ks(),dc=dn(),qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return qs.fromObject(t.def.fulltextIndex);if(t.id==="P_CREATE_INDEX")return qs.fromObject(t.def);throw new TypeError(`Unknown json id to build fulltext index from: ${t.id}`)}static fromObject(t){let o=new qs;return o.columns=t.columns.map(Kc.IndexColumn.fromDef),t.name&&(o.name=t.name),at.isDefined(t.options)&&t.options.length&&(o.options=dc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new qs;return t.columns=this.columns.map(o=>o.clone()),at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Cr.FulltextIndex=qs});var Dr=Q(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.SpatialIndex=void 0;var pt=he(),Bc=Ks(),vc=dn(),ks=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return ks.fromObject(t.def.spatialIndex);if(t.id==="P_CREATE_INDEX")return ks.fromObject(t.def);throw new TypeError(`Unknown json id to build spatial index from: ${t.id}`)}static fromObject(t){let o=new ks;return o.columns=t.columns.map(Bc.IndexColumn.fromDef),t.name&&(o.name=t.name),pt.isDefined(t.options)&&t.options.length&&(o.options=vc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new ks;return t.columns=this.columns.map(o=>o.clone()),pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Pr.SpatialIndex=ks});var dr=Q(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.Index=void 0;var Vs=he(),gc=Ks(),Mc=dn(),Js=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Js.fromObject(t.def.index);if(t.id==="P_CREATE_INDEX")return Js.fromObject(t.def);throw new TypeError(`Unknown json id to build index from: ${t.id}`)}static fromObject(t){let o=new Js;return o.columns=t.columns.map(gc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Vs.isDefined(t.options)&&t.options.length&&(o.options=Mc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Vs.isDefined(this.options)&&(t.options=this.options.toJSON()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new Js;return t.columns=this.columns.map(o=>o.clone()),Vs.isDefined(this.options)&&(t.options=this.options.clone()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Vs.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Kr.Index=Js});var Cu=Q(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.Table=void 0;var V=he(),Fc=So(),Uc=Po(),wc=xr(),Yc=Dr(),Xc=Nr(),Gc=ut(),Hc=Or(),Wc=dr(),Bn=class{static fromCommonDef(t,o){if(t.id==="P_CREATE_TABLE_COMMON"){let E=t.def,T=new Bn;return T.database=o,T.name=E.table,E.tableOptions&&(T.options=Fc.TableOptions.fromDef(E.tableOptions)),E.columnsDef.def.forEach(O=>{if(V.isDefined(O.def.column)){let U=Uc.Column.fromDef(O);T.addColumn(U)}else V.isDefined(O.def.fulltextIndex)?T.pushFulltextIndex(wc.FulltextIndex.fromDef(O)):V.isDefined(O.def.spatialIndex)?T.pushSpatialIndex(Yc.SpatialIndex.fromDef(O)):V.isDefined(O.def.foreignKey)?T.pushForeignKey(Xc.ForeignKey.fromDef(O)):V.isDefined(O.def.uniqueKey)?T.pushUniqueKey(Gc.UniqueKey.fromDef(O)):V.isDefined(O.def.primaryKey)?T.setPrimaryKey(Hc.PrimaryKey.fromDef(O)):V.isDefined(O.def.index)&&T.pushIndex(Wc.Index.fromDef(O))}),T}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}static fromAlikeDef(t,o=[]){if(t.id==="P_CREATE_TABLE_LIKE"){let E=t.def,T=o.find(O=>O.name===E.like);if(!T)return;let c=T.clone();return c.name=E.table,c}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}toJSON(){var t;let o={name:this.name,columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.toJSON()),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.toJSON())),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.toJSON())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.toJSON())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.toJSON())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.toJSON())),V.isDefined(this.options)&&(o.options=this.options.toJSON()),o}clone(){var t;let o=new Bn;return o.database=this.database,o.name=this.name,o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),V.isDefined(this.options)&&(o.options=this.options.clone()),V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.clone()),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.clone())),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.clone())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.clone())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.clone())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.clone())),o}getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}renameTo(t){this.database.tables.forEach(o=>{var E;((E=o.foreignKeys)!==null&&E!==void 0?E:[]).filter(T=>T.referencesTable(this)).forEach(T=>T.updateReferencedTableName(t))}),this.name=t}addColumn(t,o){var E;if(!this.getColumn(t.name)&&!(t.options&&t.options.autoincrement&&((E=this.columns)!==null&&E!==void 0?E:[]).some(T=>T.options&&T.options.autoincrement))&&!(this.primaryKey&&t.options&&t.options.primary)){if(V.isArray(this.columns)||(this.columns=[]),!V.isDefined(o))this.columns.push(t);else if(!o.after)this.columns.unshift(t);else{let T=this.columns.find(U=>U.name===o.after);if(!T)return;let c=this.columns.indexOf(T),O=this.columns.splice(c+1);this.columns.push(t),this.columns=this.columns.concat(O)}this.extractColumnKeys(t)}}extractColumnKeys(t){let o=t.extractPrimaryKey(),E=t.extractForeignKey(),T=t.extractUniqueKey();o&&this.setPrimaryKey(o),E&&this.pushForeignKey(E),T&&this.pushUniqueKey(T)}moveColumn(t,o){if(!V.isDefined(this.columns)||!V.isDefined(o)||!this.columns.includes(t))return!1;let E;if(o.after&&(E=this.getColumn(o.after),!E))return!1;let T=this.columns.indexOf(t),c=this.columns.splice(T);if(c.shift(),this.columns=this.columns.concat(c),o.after){if(!E)return!1;T=this.columns.indexOf(E),c=this.columns.splice(T+1),this.columns.push(t),this.columns=this.columns.concat(c)}else this.columns.unshift(t);return!0}renameColumn(t,o){var E,T,c,O,U;return((E=this.columns)!==null&&E!==void 0?E:[]).includes(t)?(this.getTables().forEach(I=>{var L;((L=I.foreignKeys)!==null&&L!==void 0?L:[]).filter(P=>P.referencesTable(this)).forEach(P=>P.renameColumn(t,o))}),((T=this.fulltextIndexes)!==null&&T!==void 0?T:[]).forEach(I=>I.renameColumn(t,o)),((c=this.spatialIndexes)!==null&&c!==void 0?c:[]).forEach(I=>I.renameColumn(t,o)),((O=this.indexes)!==null&&O!==void 0?O:[]).forEach(I=>I.renameColumn(t,o)),((U=this.uniqueKeys)!==null&&U!==void 0?U:[]).forEach(I=>I.renameColumn(t,o)),this.primaryKey&&this.primaryKey.renameColumn(t,o),t.name=o,!0):!1}getColumnPosition(t){var o,E,T;let c=((o=this.columns)!==null&&o!==void 0?o:[]).indexOf(t);if(c===0)return{after:null};if(c+1!==((E=this.columns)!==null&&E!==void 0?E:[]).length)return{after:((T=this.columns)!==null&&T!==void 0?T:[])[c-1].name}}dropPrimaryKey(){!this.primaryKey||this.primaryKey.getColumnsFromTable(this).some(o=>o.options&&o.options.autoincrement)||delete this.primaryKey}dropColumn(t){var o;if(this.getTables().some(O=>{var U;return((U=O.foreignKeys)!==null&&U!==void 0?U:[]).some(I=>I.referencesTableAndColumn(this,t))})||!V.isDefined(this.columns)||this.columns.length===1)return;let T=this.columns.indexOf(t),c=this.columns.splice(T);c.shift(),this.columns=this.columns.concat(c),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&this.fulltextIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&this.spatialIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.indexes)&&this.indexes.length&&this.indexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&this.uniqueKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&this.foreignKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropForeignKey(O)}),V.isDefined(this.primaryKey)&&this.primaryKey.dropColumn(t.name)&&!(!((o=this.primaryKey.columns)===null||o===void 0)&&o.length)&&delete this.primaryKey}dropIndexByInstance(t){let o=this.getIndexTypeByInstance(t);if(!V.isDefined(o)||!V.isDefined(this[o]))return;let E=this[o],T=E.indexOf(t),c=E.splice(T);c.shift(),this[o]=E.concat(c)}dropForeignKey(t){if(!V.isDefined(this.foreignKeys))return;let o=this.foreignKeys.indexOf(t),E=this.foreignKeys.splice(o);E.shift(),this.foreignKeys=this.foreignKeys.concat(E)}getIndexByName(t){let o=this.getIndexTypeByName(t);if(!o)return;let E=this[o];if(!V.isArray(E))return;let T=E.find(c=>c.name===t);return T??void 0}getIndexTypeByInstance(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O===t)})}getIndexTypeByName(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O.name===t)})}getColumn(t){var o;return((o=this.columns)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}getForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}hasForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).some(E=>E.name===t)}setPrimaryKey(t){var o;this.primaryKey||!t.hasAllColumnsFromTable(this)||(((o=t.columns)!==null&&o!==void 0?o:[]).forEach(E=>{if(!E.column)return;let T=this.getColumn(E.column);!T||!T.options||(T.options.nullable=!1)}),this.primaryKey=t)}pushFulltextIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.fulltextIndexes)||(this.fulltextIndexes=[]),this.fulltextIndexes.push(t))}pushSpatialIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.spatialIndexes)||(this.spatialIndexes=[]),this.spatialIndexes.push(t))}pushUniqueKey(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.uniqueKeys)||(this.uniqueKeys=[]),this.uniqueKeys.push(t))}pushForeignKey(t){t.name&&this.getIndexByName(t.name)||(t.setIndexSizeFromTable(this),V.isDefined(this.foreignKeys)||(this.foreignKeys=[]),this.foreignKeys.push(t))}pushIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.indexes)||(this.indexes=[]),this.indexes.push(t))}};Br.Table=Bn});var Pu=Q(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.CreateTable=void 0;var xu=Cu(),Do=class{getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}pushTable(t){this.database.pushTable(t)}handleDef(t){if(t.id==="P_CREATE_TABLE"){let o=t.def;if(o.id==="P_CREATE_TABLE_COMMON"){let E=xu.Table.fromCommonDef(o,this.database);E&&this.pushTable(E)}else if(o.id==="P_CREATE_TABLE_LIKE"){let E=xu.Table.fromAlikeDef(o,this.getTables());if(!E)return;E.foreignKeys=[],E&&this.pushTable(E)}return}throw new TypeError(`Expected P_CREATE_TABLE rule to be handled but received ${t.id}`)}};vr.CreateTable=Do});var Du=Q(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.CreateIndex=void 0;var Qc=ut(),qc=xr(),kc=Dr(),Vc=dr(),Ko=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_CREATE_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=t.def.type.toLowerCase();E.includes("unique")?o.pushUniqueKey(Qc.UniqueKey.fromDef(t)):E.includes("fulltext")?o.pushFulltextIndex(qc.FulltextIndex.fromDef(t)):E.includes("spatial")?o.pushSpatialIndex(kc.SpatialIndex.fromDef(t)):o.pushIndex(Vc.Index.fromDef(t));return}throw new TypeError(`Expected P_CREATE_INDEX rule to be handled but received ${t.id}`)}};gr.CreateIndex=Ko});var Bu=Q(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.AlterTable=void 0;var vn=he(),Ku=So(),du=Po(),Jc=dr(),zc=Or(),Zc=ut(),jc=xr(),em=Dr(),sm=Nr(),nm=Lo(),tm=Co(),gn=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_ALTER_TABLE"){let o=this.getTable(t.def.table);if(!o)return;t.def.specs.forEach(E=>{let T=E.def.spec,c=E.def.tableOptions;if(T){let O=T.def,U=O.action,I=gn[U];vn.isFunction(I)&&I(O,o)}else c&&(o.options||(o.options=new Ku.TableOptions),o.options.mergeWith(Ku.TableOptions.fromDef(c)))});return}throw new TypeError(`Expected P_ALTER_TABLE rule to be handled but received ${t.id}`)}static addColumn(t,o){let E=du.Column.fromObject(t);E.reference&&delete E.reference,o.addColumn(E,t.position)}static addColumns(t,o){t.columns.forEach(E=>{let T=du.Column.fromObject(E);T.reference&&delete T.reference,o.addColumn(T)})}static addIndex(t,o){let E=Jc.Index.fromObject(t);o.pushIndex(E)}static addPrimaryKey(t,o){let E=zc.PrimaryKey.fromObject(t);o.setPrimaryKey(E)}static addUniqueKey(t,o){let E=Zc.UniqueKey.fromObject(t);o.pushUniqueKey(E)}static addFulltextIndex(t,o){let E=jc.FulltextIndex.fromObject(t);o.pushFulltextIndex(E)}static addSpatialIndex(t,o){let E=em.SpatialIndex.fromObject(t);o.pushFulltextIndex(E)}static addForeignKey(t,o){let E=sm.ForeignKey.fromObject(t);o.pushForeignKey(E)}static setDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||(E.options.default=t.value)}static dropDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||delete E.options.default}static changeColumn(t,o){var E,T;let c=o.getColumn(t.column);if(!c)return;let O;if(t.position){if(t.position.after&&!o.getColumn(t.position.after))return;O=t.position}else O=o.getColumnPosition(c);let U=tm.Datatype.fromDef(t.datatype),I;t.columnDefinition&&(I=nm.ColumnOptions.fromArray(t.columnDefinition)),vn.isDefined(I)&&(I.primary&&o.primaryKey||I.autoincrement&&((E=o.columns)!==null&&E!==void 0?E:[]).some(L=>{var P;return L!==c&&((P=L.options)===null||P===void 0?void 0:P.autoincrement)})||(I.unique&&((T=o.uniqueKeys)===null||T===void 0?void 0:T.some(L=>L.columns.length===1&&L.columns[0].column===c.name))&&delete I.unique,O&&o.moveColumn(c,O)&&(t.newName&&t.newName!==c.name&&o.renameColumn(c,t.newName),c.type=U,c.options=I,o.extractColumnKeys(c))))}static dropColumn(t,o){let E=o.getColumn(t.column);!E||o.dropColumn(E)}static dropIndex(t,o){if(t.index.toLowerCase()==="primary"){gn.dropPrimaryKey(t,o);return}let E=o.getIndexByName(t.index);!E||o.dropIndexByInstance(E)}static dropPrimaryKey(t,o){o.dropPrimaryKey()}static dropForeignKey(t,o){let E=o.getForeignKey(t.key);!E||o.dropForeignKey(E)}static renameIndex(t,o){let E=o.getIndexByName(t.index);!E||(E.name=t.newName)}static rename(t,o){o.renameTo(t.newName)}};Mr.AlterTable=gn});var vu=Q(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.RenameTable=void 0;var Bo=class{getTable(t){var o;return(o=this.database.getTable(t))!==null&&o!==void 0?o:void 0}setDatabase(t){this.database=t}getTables(){return this.database.getTables()}handleDef(t){if(t.id==="P_RENAME_TABLE"){t.def.forEach(o=>{let E=this.getTables().find(T=>T.name===o.table);!E||E.renameTo(o.newName)});return}throw new TypeError(`Expected P_RENAME_TABLE rule to be handled but received ${t.id}`)}};Fr.RenameTable=Bo});var gu=Q(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.DropTable=void 0;var vo=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_TABLE"){t.def.forEach(o=>{let E=this.getTable(o);if(!E)return;let T=this.database.getTables();if(T.some(U=>{var I;return(I=U.foreignKeys)===null||I===void 0?void 0:I.some(L=>L.referencesTable(E))})||!E)return;let O=T.splice(T.indexOf(E));O.shift(),T=T.concat(O),this.database.setTables(T)});return}throw new TypeError(`Expected P_DROP_TABLE rule to be handled but received ${t.id}`)}};Ur.DropTable=vo});var Mu=Q(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.DropIndex=void 0;var go=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=o.getIndexByName(t.def.index);if(!E)return;o.dropIndexByInstance(E);return}throw new TypeError(`Expected P_DROP_INDEX rule to be handled but received ${t.id}`)}};wr.DropIndex=go});var Fu=Q(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Database=void 0;var rm=Pu(),_m=Du(),om=Bu(),im=vu(),Em=gu(),um=Mu(),$t=class{constructor(){this.ddsCollection=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseDdsCollection(t){this.ddsCollection=t,this.ddsCollection.forEach(o=>{if(!o)return;let E=o.def,T=$t.getHandler(E.id);!T||(T.setDatabase(this),T.handleDef(E))})}static getHandler(t){if(t==="P_CREATE_TABLE")return new rm.CreateTable;if(t==="P_CREATE_INDEX")return new _m.CreateIndex;if(t==="P_ALTER_TABLE")return new om.AlterTable;if(t==="P_RENAME_TABLE")return new im.RenameTable;if(t==="P_DROP_TABLE")return new Em.DropTable;if(t==="P_DROP_INDEX")return new um.DropIndex}};Yr.Database=$t});var Uu=Q(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.format=void 0;var am=Fu();Xr.format=s=>{if(s.id==="MAIN"){let t=new am.Database;return t.parseDdsCollection(s.def),t.getTables().map(o=>o.toJSON())}throw new TypeError("Invalid JSON format provided for CompactFormatter. Please provide JSON from root element, containing { id: MAIN }.")}});var wu=Q(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.Datatype=void 0;var Mn=he(),Fn=class{static fromCompactJson(t){let o=new Fn;return o.datatype=t.datatype,Mn.isDefined(t.decimals)&&(o.decimals=t.decimals),Mn.isDefined(t.digits)&&(o.digits=t.digits),Mn.isDefined(t.fractional)&&(o.fractional=t.fractional),Mn.isDefined(t.length)&&(o.length=t.length),Mn.isDefined(t.values)&&(o.values=t.values),Mn.isDefined(t.width)&&(o.width=t.width),o}static filterDatatype(t){return t==="int"?"integer":t==="decimal"||t==="float"||t==="double"?"number":t==="boolean"?"boolean":"string"}toJSON(){let t={type:Fn.filterDatatype(this.datatype)};if(this.datatype==="int"){let o=Math.pow(2,8*this.width);this.isUnsigned?(t.minimum=0,t.maximum=o):(t.minimum=0-o/2,t.maximum=0-t.minimum-1)}else if(this.datatype==="decimal"||this.datatype==="float")t.maximum=Number(`${"9".repeat(this.digits-this.decimals)}.${"9".repeat(this.decimals)}`),this.isUnsigned?t.minimum=0:t.minimum=0-t.maximum;else if(this.datatype==="date")t.format="date";else if(this.datatype==="time")t.format="time";else if(this.datatype==="datetime")t.format="date-time";else if(this.datatype==="year")t.pattern=`\\d{1,${this.digits}}`;else if(this.datatype==="char"||this.datatype==="binary"||this.datatype==="varchar"||this.datatype==="varbinary"||this.datatype==="text")t.maxLength=this.length;else if(this.datatype==="enum")t.enum=this.values;else if(this.datatype==="set"){let o=this.values.join("|");t.pattern=`^(${o})(,(${o}))*$`}return t}};Gr.Datatype=Fn});var Yu=Q(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Column=void 0;var Tt=he(),pm=wu(),lt=class{static fromCompactJson(t){let o=new lt;o.datatype=pm.Datatype.fromCompactJson(t.type),o.name=t.name;let E=t.options;return E&&(E.unsigned&&(o.datatype.isUnsigned=E.unsigned),(E.default===null||Tt.isString(E.default)&&E.default.length)&&(o.default=E.default),Tt.isString(E.comment)&&E.comment.length&&(o.comment=E.comment),o.isNullable=E.nullable),o}toJSON(){let t={},o=this.datatype.toJSON();return this.isPrimaryKey===!0&&(t.$comment="primary key",o.minimum=1),Tt.isDefined(this.comment)&&(t.description=this.comment),Object.getOwnPropertyNames(o).forEach(E=>{let T=o[E],c=Tt.isNumber(T);(c&&Number.isFinite(T)||!c)&&Tt.setProperty(t,E,T)}),typeof this.default<"u"&&(t.default=this.default),t}};Hr.Column=lt});var Xu=Q(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.Table=void 0;var Un=he(),$m=Yu(),ft=class{constructor(){this.columns=[]}static fromCompactJson(t){var o;let E=new ft;E.name=t.name,Un.isDefined(t.columns)&&(E.columns=t.columns.map(c=>$m.Column.fromCompactJson(c))),Un.isDefined(t.primaryKey)&&((o=t.primaryKey.columns)!==null&&o!==void 0?o:[]).map(c=>c.column).map(c=>E.columns.find(O=>O.name===c)).filter(Un.isDefined).forEach(c=>{c.isPrimaryKey=!0});let T=t.options;return T&&Un.isDefined(T.comment)&&(E.comment=T.comment),E}toJSON(t){let o={$schema:"http://json-schema.org/draft-07/schema",$comment:`JSON Schema for ${this.name} table`,$id:this.name,title:this.name,description:"",type:"object",required:[],definitions:{},properties:{}};return Un.isDefined(this.comment)?o.description=this.comment:delete o.description,this.columns.forEach(E=>{let T=E.toJSON(),c=E.name,O={};o.properties[c]={$ref:`#/definitions/${c}`},Object.getOwnPropertyNames(T).forEach(U=>{Un.setProperty(O,U,T[U])}),o.definitions[c]=O,E.isNullable===!1&&o.required.push(c)}),t.useRef===!1&&(o.properties=o.definitions,delete o.definitions),o}};Wr.Table=ft});var Gu=Q(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Database=void 0;var Tm=Xu(),Mo=class{constructor(){this.compactJsonTables=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseCompactJson(t){this.setTables(t.map(o=>Tm.Table.fromCompactJson(o)))}};Qr.Database=Mo});var Hu=Q(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.format=void 0;var lm=Gu();qr.format=(s,t)=>{let o=new lm.Database;return o.parseCompactJson(s),o.getTables().map(T=>T.toJSON(t))}});var Qu=Q(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Parser=void 0;var Wu=cu(),fm=he(),Am=Nu(),bm=Uu(),cm=Hu(),wn=class{constructor(t="mysql"){if(this.statements=[],this.remains="",this.escaped=!1,this.quoted="",!t||t==="mysql"||t==="mariadb")this.compiledGrammar=Wu.Grammar.fromCompiled(Am.Grammar),this.compactFormatter=bm.format,this.jsonSchemaFormatter=cm.format;else throw new TypeError(`Unsupported SQL dialect given to parser: '${t}. Please provide 'mysql', 'mariadb' or none to use default.`);this.resetParser()}feed(t){let o,E,T="",c=0;for(o=0;o1){let U=Number(O[1]),I=o+U-1;c.message=c.message.replace(/\d+/,I)}}throw this.resetParser(),this.statements=[],this.remains="",this.escaped=!1,this.quoted="",c}return this.remains="",this.escaped=!1,this.quoted="",{id:"MAIN",def:T}}toCompactJson(t){return this.compactFormatter(t??this.results)}toJsonSchemaArray(t={useRef:!0},o){return this.jsonSchemaFormatter(o??this.toCompactJson(),t)}};kr.Parser=wn});var ku=Q(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0})});var Ju=Q(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0})});var Zu=Q(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0})});var ea=Q(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0})});var sa=Q(Os=>{"use strict";var mm=Os&&Os.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),Vr=Os&&Os.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&mm(t,s,o)};Object.defineProperty(Os,"__esModule",{value:!0});Vr(ku(),Os);Vr(Ju(),Os);Vr(Zu(),Os);Vr(ea(),Os)});var na=Q(zs=>{"use strict";var Im=zs&&zs.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),Om=zs&&zs.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&Im(t,s,o)};Object.defineProperty(zs,"__esModule",{value:!0});var Rm=Qu();Object.defineProperty(zs,"Parser",{enumerable:!0,get:function(){return Rm.Parser}});Om(sa(),zs)});var ta=Q((Yn,At)=>{(function(){var s,t="4.17.21",o=200,E="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",c="Invalid `variable` option passed into `_.template`",O="__lodash_hash_undefined__",U=500,I="__lodash_placeholder__",L=1,P=2,K=4,q=1,X=2,te=1,_e=2,Se=4,re=8,ye=16,xe=32,pe=64,We=128,fs=256,Zs=512,R=30,x="...",v=800,w=16,J=1,G=2,se=3,Ee=1/0,ue=9007199254740991,Y=17976931348623157e292,Ae=0/0,Be=4294967295,Ne=Be-1,is=Be>>>1,ds=[["ary",We],["bind",te],["bindKey",_e],["curry",re],["curryRight",ye],["flip",Zs],["partial",xe],["partialRight",pe],["rearg",fs]],Pe="[object Arguments]",As="[object Array]",Bs="[object AsyncFunction]",Es="[object Boolean]",bs="[object Date]",jr="[object DOMException]",bt="[object Error]",ct="[object Function]",Uo="[object GeneratorFunction]",us="[object Map]",Xn="[object Number]",ua="[object Null]",Rs="[object Object]",wo="[object Promise]",aa="[object Proxy]",Gn="[object RegExp]",as="[object Set]",Hn="[object String]",mt="[object Symbol]",pa="[object Undefined]",Wn="[object WeakMap]",$a="[object WeakSet]",Qn="[object ArrayBuffer]",fn="[object DataView]",e_="[object Float32Array]",s_="[object Float64Array]",n_="[object Int8Array]",t_="[object Int16Array]",r_="[object Int32Array]",__="[object Uint8Array]",o_="[object Uint8ClampedArray]",i_="[object Uint16Array]",E_="[object Uint32Array]",Ta=/\b__p \+= '';/g,la=/\b(__p \+=) '' \+/g,fa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yo=/&(?:amp|lt|gt|quot|#39);/g,Xo=/[&<>"']/g,Aa=RegExp(Yo.source),ba=RegExp(Xo.source),ca=/<%-([\s\S]+?)%>/g,ma=/<%([\s\S]+?)%>/g,Go=/<%=([\s\S]+?)%>/g,Ia=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oa=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u_=/[\\^$.*+?()[\]{}|]/g,ha=RegExp(u_.source),a_=/^\s+/,Na=/\s/,Sa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ya=/\{\n\/\* \[wrapped with (.+)\] \*/,La=/,? & /,Ca=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xa=/[()=,{}\[\]\/\s]/,Pa=/\\(\\)?/g,Da=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,Ka=/^[-+]0x[0-9a-f]+$/i,da=/^0b[01]+$/i,Ba=/^\[object .+?Constructor\]$/,va=/^0o[0-7]+$/i,ga=/^(?:0|[1-9]\d*)$/,Ma=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,It=/($^)/,Fa=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",Ua="\\u0300-\\u036f",wa="\\ufe20-\\ufe2f",Ya="\\u20d0-\\u20ff",Wo=Ua+wa+Ya,Qo="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Xa="\\xac\\xb1\\xd7\\xf7",Ga="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ha="\\u2000-\\u206f",Wa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Vo="\\ufe0e\\ufe0f",Jo=Xa+Ga+Ha+Wa,p_="['\u2019]",Qa="["+Ot+"]",zo="["+Jo+"]",Rt="["+Wo+"]",Zo="\\d+",qa="["+Qo+"]",jo="["+qo+"]",ei="[^"+Ot+Jo+Zo+Qo+qo+ko+"]",$_="\\ud83c[\\udffb-\\udfff]",ka="(?:"+Rt+"|"+$_+")",si="[^"+Ot+"]",T_="(?:\\ud83c[\\udde6-\\uddff]){2}",l_="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+ko+"]",ni="\\u200d",ti="(?:"+jo+"|"+ei+")",Va="(?:"+An+"|"+ei+")",ri="(?:"+p_+"(?:d|ll|m|re|s|t|ve))?",_i="(?:"+p_+"(?:D|LL|M|RE|S|T|VE))?",oi=ka+"?",ii="["+Vo+"]?",Ja="(?:"+ni+"(?:"+[si,T_,l_].join("|")+")"+ii+oi+")*",za="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Za="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ei=ii+oi+Ja,ja="(?:"+[qa,T_,l_].join("|")+")"+Ei,ep="(?:"+[si+Rt+"?",Rt,T_,l_,Qa].join("|")+")",sp=RegExp(p_,"g"),np=RegExp(Rt,"g"),f_=RegExp($_+"(?="+$_+")|"+ep+Ei,"g"),tp=RegExp([An+"?"+jo+"+"+ri+"(?="+[zo,An,"$"].join("|")+")",Va+"+"+_i+"(?="+[zo,An+ti,"$"].join("|")+")",An+"?"+ti+"+"+ri,An+"+"+_i,Za,za,Zo,ja].join("|"),"g"),rp=RegExp("["+ni+Ot+Wo+Vo+"]"),_p=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,op=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ip=-1,le={};le[e_]=le[s_]=le[n_]=le[t_]=le[r_]=le[__]=le[o_]=le[i_]=le[E_]=!0,le[Pe]=le[As]=le[Qn]=le[Es]=le[fn]=le[bs]=le[bt]=le[ct]=le[us]=le[Xn]=le[Rs]=le[Gn]=le[as]=le[Hn]=le[Wn]=!1;var Te={};Te[Pe]=Te[As]=Te[Qn]=Te[fn]=Te[Es]=Te[bs]=Te[e_]=Te[s_]=Te[n_]=Te[t_]=Te[r_]=Te[us]=Te[Xn]=Te[Rs]=Te[Gn]=Te[as]=Te[Hn]=Te[mt]=Te[__]=Te[o_]=Te[i_]=Te[E_]=!0,Te[bt]=Te[ct]=Te[Wn]=!1;var Ep={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},up={"&":"&","<":"<",">":">",'"':""","'":"'"},ap={"&":"&","<":"<",">":">",""":'"',"'":"'"},pp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$p=parseFloat,Tp=parseInt,ui=typeof global=="object"&&global&&global.Object===Object&&global,lp=typeof self=="object"&&self&&self.Object===Object&&self,De=ui||lp||Function("return this")(),A_=typeof Yn=="object"&&Yn&&!Yn.nodeType&&Yn,js=A_&&typeof At=="object"&&At&&!At.nodeType&&At,ai=js&&js.exports===A_,b_=ai&&ui.process,Ze=function(){try{var A=js&&js.require&&js.require("util").types;return A||b_&&b_.binding&&b_.binding("util")}catch{}}(),pi=Ze&&Ze.isArrayBuffer,$i=Ze&&Ze.isDate,Ti=Ze&&Ze.isMap,li=Ze&&Ze.isRegExp,fi=Ze&&Ze.isSet,Ai=Ze&&Ze.isTypedArray;function Qe(A,N,m){switch(m.length){case 0:return A.call(N);case 1:return A.call(N,m[0]);case 2:return A.call(N,m[0],m[1]);case 3:return A.call(N,m[0],m[1],m[2])}return A.apply(N,m)}function fp(A,N,m,d){for(var H=-1,oe=A==null?0:A.length;++H-1}function c_(A,N,m){for(var d=-1,H=A==null?0:A.length;++d-1;);return m}function Ni(A,N){for(var m=A.length;m--&&bn(N,A[m],0)>-1;);return m}function Np(A,N){for(var m=A.length,d=0;m--;)A[m]===N&&++d;return d}var Sp=R_(Ep),yp=R_(up);function Lp(A){return"\\"+pp[A]}function Cp(A,N){return A==null?s:A[N]}function cn(A){return rp.test(A)}function xp(A){return _p.test(A)}function Pp(A){for(var N,m=[];!(N=A.next()).done;)m.push(N.value);return m}function y_(A){var N=-1,m=Array(A.size);return A.forEach(function(d,H){m[++N]=[H,d]}),m}function Si(A,N){return function(m){return A(N(m))}}function Ms(A,N){for(var m=-1,d=A.length,H=0,oe=[];++m-1}function b$(e,n){var r=this.__data__,i=wt(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}hs.prototype.clear=T$,hs.prototype.delete=l$,hs.prototype.get=f$,hs.prototype.has=A$,hs.prototype.set=b$;function Ns(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function ns(e,n,r,i,u,p){var $,l=n&L,b=n&P,S=n&K;if(r&&($=u?r(e,i,u,p):r(e)),$!==s)return $;if(!be(e))return e;var y=W(e);if(y){if($=OT(e),!l)return Ye(e,$)}else{var C=Me(e),D=C==ct||C==Uo;if(Hs(e))return iE(e,l);if(C==Rs||C==Pe||D&&!u){if($=b||D?{}:yE(e),!l)return b?aT(e,d$($,e)):uT(e,Mi($,e))}else{if(!Te[C])return u?e:{};$=RT(e,C,l)}}p||(p=new $s);var B=p.get(e);if(B)return B;p.set(e,$),su(e)?e.forEach(function(F){$.add(ns(F,n,r,F,e,p))}):jE(e)&&e.forEach(function(F,j){$.set(j,ns(F,n,r,j,e,p))});var M=S?b?Z_:z_:b?Ge:Ke,z=y?s:M(e);return je(z||e,function(F,j){z&&(j=F,F=e[j]),jn($,j,ns(F,n,r,j,e,p))}),$}function B$(e){var n=Ke(e);return function(r){return Fi(r,e,n)}}function Fi(e,n,r){var i=r.length;if(e==null)return!i;for(e=$e(e);i--;){var u=r[i],p=n[u],$=e[u];if($===s&&!(u in e)||!p($))return!1}return!0}function Ui(e,n,r){if(typeof e!="function")throw new es(T);return ot(function(){e.apply(s,r)},n)}function et(e,n,r,i){var u=-1,p=ht,$=!0,l=e.length,b=[],S=n.length;if(!l)return b;r&&(n=fe(n,qe(r))),i?(p=c_,$=!1):n.length>=o&&(p=qn,$=!1,n=new nn(n));e:for(;++uu?0:u+r),i=i===s||i>u?u:k(i),i<0&&(i+=u),i=r>i?0:tu(i);r0&&r(l)?n>1?ve(l,n-1,r,i,u):gs(u,l):i||(u[u.length]=l)}return u}var d_=TE(),Xi=TE(!0);function cs(e,n){return e&&d_(e,n,Ke)}function B_(e,n){return e&&Xi(e,n,Ke)}function Xt(e,n){return vs(n,function(r){return xs(e[r])})}function rn(e,n){n=Xs(n,e);for(var r=0,i=n.length;e!=null&&rn}function M$(e,n){return e!=null&&ae.call(e,n)}function F$(e,n){return e!=null&&n in $e(e)}function U$(e,n,r){return e>=ge(n,r)&&e=120&&y.length>=120)?new nn($&&y):s}y=e[0];var C=-1,D=l[0];e:for(;++C-1;)l!==e&&dt.call(l,b,1),dt.call(e,b,1);return e}function ji(e,n){for(var r=e?n.length:0,i=r-1;r--;){var u=n[r];if(r==i||u!==p){var p=u;Cs(u)?dt.call(e,u,1):H_(e,u)}}return e}function Y_(e,n){return e+gt(di()*(n-e+1))}function Z$(e,n,r,i){for(var u=-1,p=Ce(vt((n-e)/(r||1)),0),$=m(p);p--;)$[i?p:++u]=e,e+=r;return $}function X_(e,n){var r="";if(!e||n<1||n>ue)return r;do n%2&&(r+=e),n=gt(n/2),n&&(e+=e);while(n);return r}function Z(e,n){return _o(xE(e,n,He),e+"")}function j$(e){return gi(Cn(e))}function eT(e,n){var r=Cn(e);return jt(r,tn(n,0,r.length))}function tt(e,n,r,i){if(!be(e))return e;n=Xs(n,e);for(var u=-1,p=n.length,$=p-1,l=e;l!=null&&++uu?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var p=m(u);++i>>1,$=e[p];$!==null&&!Ve($)&&(r?$<=n:$=o){var S=n?null:lT(e);if(S)return St(S);$=!1,u=qn,b=new nn}else b=n?[]:l;e:for(;++i=i?e:ts(e,n,r)}var oE=Wp||function(e){return De.clearTimeout(e)};function iE(e,n){if(n)return e.slice();var r=e.length,i=Ci?Ci(r):new e.constructor(r);return e.copy(i),i}function k_(e){var n=new e.constructor(e.byteLength);return new Dt(n).set(new Dt(e)),n}function _T(e,n){var r=n?k_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function oT(e){var n=new e.constructor(e.source,Ho.exec(e));return n.lastIndex=e.lastIndex,n}function iT(e){return Zn?$e(Zn.call(e)):{}}function EE(e,n){var r=n?k_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function uE(e,n){if(e!==n){var r=e!==s,i=e===null,u=e===e,p=Ve(e),$=n!==s,l=n===null,b=n===n,S=Ve(n);if(!l&&!S&&!p&&e>n||p&&$&&b&&!l&&!S||i&&$&&b||!r&&b||!u)return 1;if(!i&&!p&&!S&&e=l)return b;var S=r[i];return b*(S=="desc"?-1:1)}}return e.index-n.index}function aE(e,n,r,i){for(var u=-1,p=e.length,$=r.length,l=-1,b=n.length,S=Ce(p-$,0),y=m(b+S),C=!i;++l1?r[u-1]:s,$=u>2?r[2]:s;for(p=e.length>3&&typeof p=="function"?(u--,p):s,$&&Ue(r[0],r[1],$)&&(p=u<3?s:p,u=1),n=$e(n);++i-1?u[p?n[$]:$]:s}}function AE(e){return Ls(function(n){var r=n.length,i=r,u=ss.prototype.thru;for(e&&n.reverse();i--;){var p=n[i];if(typeof p!="function")throw new es(T);if(u&&!$&&zt(p)=="wrapper")var $=new ss([],!0)}for(i=$?i:r;++i1&&ne.reverse(),y&&bl))return!1;var S=p.get(e),y=p.get(n);if(S&&y)return S==n&&y==e;var C=-1,D=!0,B=r&X?new nn:s;for(p.set(e,n),p.set(n,e);++C1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(Sa,`{ /* [wrapped with `+n+`] */ -`)}function NT(e){return W(e)||En(e)||!!(Di&&e&&e[Di])}function Cs(e,n){var r=typeof e;return n=n??ue,!!n&&(r=="number"||r!="symbol"&&ga.test(e))&&e>-1&&e%1==0&&e0){if(++n>=v)return arguments[0]}else n=0;return e.apply(s,arguments)}}function er(e,n){var r=-1,i=e.length,u=i-1;for(n=n===s?i:n;++r1?e[n-1]:s;return r=typeof r=="function"?(e.pop(),r):s,YE(e,r)});function XE(e){var n=a(e);return n.__chain__=!0,n}function vl(e,n){return n(e),e}function sr(e,n){return n(e)}var gl=Ls(function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,u=function(p){return K_(p,e)};return n>1||this.__actions__.length||!(i instanceof ee)||!Cs(r)?this.thru(u):(i=i.slice(r,+r+(n?1:0)),i.__actions__.push({func:sr,args:[u],thisArg:s}),new ss(i,this.__chain__).thru(function(p){return n&&!p.length&&p.push(s),p}))});function Ml(){return XE(this)}function Fl(){return new ss(this.value(),this.__chain__)}function Ul(){this.__values__===s&&(this.__values__=nu(this.value()));var e=this.__index__>=this.__values__.length,n=e?s:this.__values__[this.__index__++];return{done:e,value:n}}function wl(){return this}function Yl(e){for(var n,r=this;r instanceof wt;){var i=vE(r);i.__index__=0,i.__values__=s,n?u.__wrapped__=i:n=i;var u=i;r=r.__wrapped__}return u.__wrapped__=e,n}function Xl(){var e=this.__wrapped__;if(e instanceof ee){var n=e;return this.__actions__.length&&(n=new ee(this)),n=n.reverse(),n.__actions__.push({func:sr,args:[oo],thisArg:s}),new ss(n,this.__chain__)}return this.thru(oo)}function Gl(){return rE(this.__wrapped__,this.__actions__)}var Hl=qt(function(e,n,r){ae.call(e,r)?++e[r]:Ss(e,r,1)});function Wl(e,n,r){var i=W(e)?bi:v$;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}function Ql(e,n){var r=W(e)?vs:Yi;return r(e,g(n,3))}var ql=fE(gE),kl=fE(ME);function Vl(e,n){return ve(nr(e,n),1)}function Jl(e,n){return ve(nr(e,n),Ee)}function zl(e,n,r){return r=r===s?1:k(r),ve(nr(e,n),r)}function GE(e,n){var r=W(e)?je:ws;return r(e,g(n,3))}function HE(e,n){var r=W(e)?Ap:wi;return r(e,g(n,3))}var Zl=qt(function(e,n,r){ae.call(e,r)?e[r].push(n):Ss(e,r,[n])});function jl(e,n,r,i){e=Xe(e)?e:Cn(e),r=r&&!i?k(r):0;var u=e.length;return r<0&&(r=Ce(u+r,0)),ir(e)?r<=u&&e.indexOf(n,r)>-1:!!u&&bn(e,n,r)>-1}var ef=Z(function(e,n,r){var i=-1,u=typeof n=="function",p=Xe(e)?m(e.length):[];return ws(e,function($){p[++i]=u?Qe(n,$,r):st($,n,r)}),p}),sf=qt(function(e,n,r){Ss(e,r,n)});function nr(e,n){var r=W(e)?fe:qi;return r(e,g(n,3))}function nf(e,n,r,i){return e==null?[]:(W(n)||(n=n==null?[]:[n]),r=i?s:r,W(r)||(r=r==null?[]:[r]),zi(e,n,r))}var tf=qt(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function rf(e,n,r){var i=W(e)?m_:Oi,u=arguments.length<3;return i(e,g(n,4),r,u,ws)}function _f(e,n,r){var i=W(e)?bp:Oi,u=arguments.length<3;return i(e,g(n,4),r,u,wi)}function of(e,n){var r=W(e)?vs:Yi;return r(e,_r(g(n,3)))}function Ef(e){var n=W(e)?gi:j$;return n(e)}function uf(e,n,r){(r?Ue(e,n,r):n===s)?n=1:n=k(n);var i=W(e)?P$:eT;return i(e,n)}function af(e){var n=W(e)?D$:nT;return n(e)}function pf(e){if(e==null)return 0;if(Xe(e))return ir(e)?mn(e):e.length;var n=Me(e);return n==us||n==as?e.size:F_(e).length}function $f(e,n,r){var i=W(e)?I_:tT;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}var Tf=Z(function(e,n){if(e==null)return[];var r=n.length;return r>1&&Ue(e,n[0],n[1])?n=[]:r>2&&Ue(n[0],n[1],n[2])&&(n=[n[0]]),zi(e,ve(n,1),[])}),tr=Qp||function(){return De.Date.now()};function lf(e,n){if(typeof n!="function")throw new es(T);return e=k(e),function(){if(--e<1)return n.apply(this,arguments)}}function WE(e,n,r){return n=r?s:n,n=e&&n==null?e.length:n,ys(e,We,s,s,s,s,n)}function QE(e,n){var r;if(typeof n!="function")throw new es(T);return e=k(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=s),r}}var Eo=Z(function(e,n,r){var i=te;if(r.length){var u=Ms(r,yn(Eo));i|=xe}return ys(e,i,n,r,u)}),qE=Z(function(e,n,r){var i=te|_e;if(r.length){var u=Ms(r,yn(qE));i|=xe}return ys(n,i,e,r,u)});function kE(e,n,r){n=r?s:n;var i=ys(e,re,s,s,s,s,s,n);return i.placeholder=kE.placeholder,i}function VE(e,n,r){n=r?s:n;var i=ys(e,ye,s,s,s,s,s,n);return i.placeholder=VE.placeholder,i}function JE(e,n,r){var i,u,p,$,l,b,S=0,y=!1,C=!1,D=!0;if(typeof e!="function")throw new es(T);n=_s(n)||0,be(r)&&(y=!!r.leading,C="maxWait"in r,p=C?Ce(_s(r.maxWait)||0,n):p,D="trailing"in r?!!r.trailing:D);function B(Re){var ls=i,Ds=u;return i=u=s,S=Re,$=e.apply(Ds,ls),$}function F(Re){return S=Re,l=ot(j,n),y?B(Re):$}function z(Re){var ls=Re-b,Ds=Re-S,fu=n-ls;return C?ge(fu,p-Ds):fu}function U(Re){var ls=Re-b,Ds=Re-S;return b===s||ls>=n||ls<0||C&&Ds>=p}function j(){var Re=tr();if(U(Re))return ne(Re);l=ot(j,z(Re))}function ne(Re){return l=s,D&&i?B(Re):(i=u=s,$)}function Je(){l!==s&&oE(l),S=0,i=b=u=l=s}function we(){return l===s?$:ne(tr())}function ze(){var Re=tr(),ls=U(Re);if(i=arguments,u=this,b=Re,ls){if(l===s)return F(b);if(C)return oE(l),l=ot(j,n),B(b)}return l===s&&(l=ot(j,n)),$}return ze.cancel=Je,ze.flush=we,ze}var ff=Z(function(e,n){return Ui(e,1,n)}),Af=Z(function(e,n,r){return Ui(e,_s(n)||0,r)});function bf(e){return ys(e,Zs)}function rr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new es(T);var r=function(){var i=arguments,u=n?n.apply(this,i):i[0],p=r.cache;if(p.has(u))return p.get(u);var $=e.apply(this,i);return r.cache=p.set(u,$)||p,$};return r.cache=new(rr.Cache||Ns),r}rr.Cache=Ns;function _r(e){if(typeof e!="function")throw new es(T);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function cf(e){return QE(2,e)}var mf=rT(function(e,n){n=n.length==1&&W(n[0])?fe(n[0],qe(g())):fe(ve(n,1),qe(g()));var r=n.length;return Z(function(i){for(var u=-1,p=ge(i.length,r);++u=n}),En=Hi(function(){return arguments}())?Hi:function(e){return me(e)&&ae.call(e,"callee")&&!Pi.call(e,"callee")},W=m.isArray,Bf=pi?qe(pi):Y$;function Xe(e){return e!=null&&or(e.length)&&!xs(e)}function Oe(e){return me(e)&&Xe(e)}function vf(e){return e===!0||e===!1||me(e)&&Fe(e)==Es}var Hs=kp||Io,gf=$i?qe($i):X$;function Mf(e){return me(e)&&e.nodeType===1&&!it(e)}function Ff(e){if(e==null)return!0;if(Xe(e)&&(W(e)||typeof e=="string"||typeof e.splice=="function"||Hs(e)||Ln(e)||En(e)))return!e.length;var n=Me(e);if(n==us||n==as)return!e.size;if(_t(e))return!F_(e).length;for(var r in e)if(ae.call(e,r))return!1;return!0}function Uf(e,n){return nt(e,n)}function wf(e,n,r){r=typeof r=="function"?r:s;var i=r?r(e,n):s;return i===s?nt(e,n,s,r):!!i}function ao(e){if(!me(e))return!1;var n=Fe(e);return n==ct||n==jr||typeof e.message=="string"&&typeof e.name=="string"&&!it(e)}function Yf(e){return typeof e=="number"&&Ki(e)}function xs(e){if(!be(e))return!1;var n=Fe(e);return n==mt||n==Uo||n==Bs||n==aa}function ZE(e){return typeof e=="number"&&e==k(e)}function or(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ue}function be(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function me(e){return e!=null&&typeof e=="object"}var jE=Ti?qe(Ti):H$;function Xf(e,n){return e===n||M_(e,n,eo(n))}function Gf(e,n,r){return r=typeof r=="function"?r:s,M_(e,n,eo(n),r)}function Hf(e){return eu(e)&&e!=+e}function Wf(e){if(LT(e))throw new H(E);return Wi(e)}function Qf(e){return e===null}function qf(e){return e==null}function eu(e){return typeof e=="number"||me(e)&&Fe(e)==Xn}function it(e){if(!me(e)||Fe(e)!=Rs)return!1;var n=dt(e);if(n===null)return!0;var r=ae.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&xt.call(r)==Xp}var po=li?qe(li):W$;function kf(e){return ZE(e)&&e>=-ue&&e<=ue}var su=fi?qe(fi):Q$;function ir(e){return typeof e=="string"||!W(e)&&me(e)&&Fe(e)==Hn}function Ve(e){return typeof e=="symbol"||me(e)&&Fe(e)==It}var Ln=Ai?qe(Ai):q$;function Vf(e){return e===s}function Jf(e){return me(e)&&Me(e)==Wn}function zf(e){return me(e)&&Fe(e)==$a}var Zf=zt(U_),jf=zt(function(e,n){return e<=n});function nu(e){if(!e)return[];if(Xe(e))return ir(e)?ps(e):Ye(e);if(kn&&e[kn])return Pp(e[kn]());var n=Me(e),r=n==us?y_:n==as?yt:Cn;return r(e)}function Ps(e){if(!e)return e===0?e:0;if(e=_s(e),e===Ee||e===-Ee){var n=e<0?-1:1;return n*Y}return e===e?e:0}function k(e){var n=Ps(e),r=n%1;return n===n?r?n-r:n:0}function tu(e){return e?tn(k(e),0,Be):0}function _s(e){if(typeof e=="number")return e;if(Ve(e))return Ae;if(be(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=be(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ri(e);var r=da.test(e);return r||va.test(e)?Tp(e.slice(2),r?2:8):Ka.test(e)?Ae:+e}function ru(e){return ms(e,Ge(e))}function eA(e){return e?tn(k(e),-ue,ue):e===0?e:0}function ie(e){return e==null?"":ke(e)}var sA=Nn(function(e,n){if(_t(n)||Xe(n)){ms(n,Ke(n),e);return}for(var r in n)ae.call(n,r)&&jn(e,r,n[r])}),_u=Nn(function(e,n){ms(n,Ge(n),e)}),Er=Nn(function(e,n,r,i){ms(n,Ge(n),e,i)}),nA=Nn(function(e,n,r,i){ms(n,Ke(n),e,i)}),tA=Ls(K_);function rA(e,n){var r=hn(e);return n==null?r:Mi(r,n)}var _A=Z(function(e,n){e=$e(e);var r=-1,i=n.length,u=i>2?n[2]:s;for(u&&Ue(n[0],n[1],u)&&(i=1);++r1),p}),ms(e,Z_(e),r),i&&(r=ns(r,L|P|K,fT));for(var u=n.length;u--;)H_(r,n[u]);return r});function hA(e,n){return iu(e,_r(g(n)))}var NA=Ls(function(e,n){return e==null?{}:J$(e,n)});function iu(e,n){if(e==null)return{};var r=fe(Z_(e),function(i){return[i]});return n=g(n),Zi(e,r,function(i,u){return n(i,u[0])})}function SA(e,n,r){n=Xs(n,e);var i=-1,u=n.length;for(u||(u=1,e=s);++in){var i=e;e=n,n=i}if(r||e%1||n%1){var u=di();return ge(e+u*(n-e+$p("1e-"+((u+"").length-1))),n)}return Y_(e,n)}var gA=Sn(function(e,n,r){return n=n.toLowerCase(),e+(r?au(n):n)});function au(e){return lo(ie(e).toLowerCase())}function pu(e){return e=ie(e),e&&e.replace(Ma,Sp).replace(np,"")}function MA(e,n,r){e=ie(e),n=ke(n);var i=e.length;r=r===s?i:tn(k(r),0,i);var u=r;return r-=n.length,r>=0&&e.slice(r,u)==n}function FA(e){return e=ie(e),e&&ba.test(e)?e.replace(Xo,yp):e}function UA(e){return e=ie(e),e&&ha.test(e)?e.replace(u_,"\\$&"):e}var wA=Sn(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),YA=Sn(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),XA=lE("toLowerCase");function GA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;if(!n||i>=n)return e;var u=(n-i)/2;return Jt(Mt(u),r)+e+Jt(gt(u),r)}function HA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;return n&&i>>0,r?(e=ie(e),e&&(typeof n=="string"||n!=null&&!po(n))&&(n=ke(n),!n&&cn(e))?Gs(ps(e),0,r):e.split(n,r)):[]}var zA=Sn(function(e,n,r){return e+(r?" ":"")+lo(n)});function ZA(e,n,r){return e=ie(e),r=r==null?0:tn(k(r),0,e.length),n=ke(n),e.slice(r,r+n.length)==n}function jA(e,n,r){var i=a.templateSettings;r&&Ue(e,n,r)&&(n=s),e=ie(e),n=Er({},n,i,OE);var u=Er({},n.imports,i.imports,OE),p=Ke(u),$=S_(u,p),l,b,S=0,y=n.interpolate||Ot,C="__p += '",D=L_((n.escape||Ot).source+"|"+y.source+"|"+(y===Go?Da:Ot).source+"|"+(n.evaluate||Ot).source+"|$","g"),B="//# sourceURL="+(ae.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ip+"]")+` -`;e.replace(D,function(U,j,ne,Je,we,ze){return ne||(ne=Je),C+=e.slice(S,ze).replace(Fa,Lp),j&&(l=!0,C+=`' + +`)}function NT(e){return W(e)||En(e)||!!(Di&&e&&e[Di])}function Cs(e,n){var r=typeof e;return n=n??ue,!!n&&(r=="number"||r!="symbol"&&ga.test(e))&&e>-1&&e%1==0&&e0){if(++n>=v)return arguments[0]}else n=0;return e.apply(s,arguments)}}function jt(e,n){var r=-1,i=e.length,u=i-1;for(n=n===s?i:n;++r1?e[n-1]:s;return r=typeof r=="function"?(e.pop(),r):s,YE(e,r)});function XE(e){var n=a(e);return n.__chain__=!0,n}function vl(e,n){return n(e),e}function er(e,n){return n(e)}var gl=Ls(function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,u=function(p){return K_(p,e)};return n>1||this.__actions__.length||!(i instanceof ee)||!Cs(r)?this.thru(u):(i=i.slice(r,+r+(n?1:0)),i.__actions__.push({func:er,args:[u],thisArg:s}),new ss(i,this.__chain__).thru(function(p){return n&&!p.length&&p.push(s),p}))});function Ml(){return XE(this)}function Fl(){return new ss(this.value(),this.__chain__)}function Ul(){this.__values__===s&&(this.__values__=nu(this.value()));var e=this.__index__>=this.__values__.length,n=e?s:this.__values__[this.__index__++];return{done:e,value:n}}function wl(){return this}function Yl(e){for(var n,r=this;r instanceof Ut;){var i=vE(r);i.__index__=0,i.__values__=s,n?u.__wrapped__=i:n=i;var u=i;r=r.__wrapped__}return u.__wrapped__=e,n}function Xl(){var e=this.__wrapped__;if(e instanceof ee){var n=e;return this.__actions__.length&&(n=new ee(this)),n=n.reverse(),n.__actions__.push({func:er,args:[oo],thisArg:s}),new ss(n,this.__chain__)}return this.thru(oo)}function Gl(){return rE(this.__wrapped__,this.__actions__)}var Hl=Qt(function(e,n,r){ae.call(e,r)?++e[r]:Ss(e,r,1)});function Wl(e,n,r){var i=W(e)?bi:v$;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}function Ql(e,n){var r=W(e)?vs:Yi;return r(e,g(n,3))}var ql=fE(gE),kl=fE(ME);function Vl(e,n){return ve(sr(e,n),1)}function Jl(e,n){return ve(sr(e,n),Ee)}function zl(e,n,r){return r=r===s?1:k(r),ve(sr(e,n),r)}function GE(e,n){var r=W(e)?je:ws;return r(e,g(n,3))}function HE(e,n){var r=W(e)?Ap:wi;return r(e,g(n,3))}var Zl=Qt(function(e,n,r){ae.call(e,r)?e[r].push(n):Ss(e,r,[n])});function jl(e,n,r,i){e=Xe(e)?e:Cn(e),r=r&&!i?k(r):0;var u=e.length;return r<0&&(r=Ce(u+r,0)),or(e)?r<=u&&e.indexOf(n,r)>-1:!!u&&bn(e,n,r)>-1}var ef=Z(function(e,n,r){var i=-1,u=typeof n=="function",p=Xe(e)?m(e.length):[];return ws(e,function($){p[++i]=u?Qe(n,$,r):st($,n,r)}),p}),sf=Qt(function(e,n,r){Ss(e,r,n)});function sr(e,n){var r=W(e)?fe:qi;return r(e,g(n,3))}function nf(e,n,r,i){return e==null?[]:(W(n)||(n=n==null?[]:[n]),r=i?s:r,W(r)||(r=r==null?[]:[r]),zi(e,n,r))}var tf=Qt(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function rf(e,n,r){var i=W(e)?m_:Oi,u=arguments.length<3;return i(e,g(n,4),r,u,ws)}function _f(e,n,r){var i=W(e)?bp:Oi,u=arguments.length<3;return i(e,g(n,4),r,u,wi)}function of(e,n){var r=W(e)?vs:Yi;return r(e,rr(g(n,3)))}function Ef(e){var n=W(e)?gi:j$;return n(e)}function uf(e,n,r){(r?Ue(e,n,r):n===s)?n=1:n=k(n);var i=W(e)?P$:eT;return i(e,n)}function af(e){var n=W(e)?D$:nT;return n(e)}function pf(e){if(e==null)return 0;if(Xe(e))return or(e)?mn(e):e.length;var n=Me(e);return n==us||n==as?e.size:F_(e).length}function $f(e,n,r){var i=W(e)?I_:tT;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}var Tf=Z(function(e,n){if(e==null)return[];var r=n.length;return r>1&&Ue(e,n[0],n[1])?n=[]:r>2&&Ue(n[0],n[1],n[2])&&(n=[n[0]]),zi(e,ve(n,1),[])}),nr=Qp||function(){return De.Date.now()};function lf(e,n){if(typeof n!="function")throw new es(T);return e=k(e),function(){if(--e<1)return n.apply(this,arguments)}}function WE(e,n,r){return n=r?s:n,n=e&&n==null?e.length:n,ys(e,We,s,s,s,s,n)}function QE(e,n){var r;if(typeof n!="function")throw new es(T);return e=k(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=s),r}}var Eo=Z(function(e,n,r){var i=te;if(r.length){var u=Ms(r,yn(Eo));i|=xe}return ys(e,i,n,r,u)}),qE=Z(function(e,n,r){var i=te|_e;if(r.length){var u=Ms(r,yn(qE));i|=xe}return ys(n,i,e,r,u)});function kE(e,n,r){n=r?s:n;var i=ys(e,re,s,s,s,s,s,n);return i.placeholder=kE.placeholder,i}function VE(e,n,r){n=r?s:n;var i=ys(e,ye,s,s,s,s,s,n);return i.placeholder=VE.placeholder,i}function JE(e,n,r){var i,u,p,$,l,b,S=0,y=!1,C=!1,D=!0;if(typeof e!="function")throw new es(T);n=_s(n)||0,be(r)&&(y=!!r.leading,C="maxWait"in r,p=C?Ce(_s(r.maxWait)||0,n):p,D="trailing"in r?!!r.trailing:D);function B(Re){var ls=i,Ds=u;return i=u=s,S=Re,$=e.apply(Ds,ls),$}function M(Re){return S=Re,l=ot(j,n),y?B(Re):$}function z(Re){var ls=Re-b,Ds=Re-S,fu=n-ls;return C?ge(fu,p-Ds):fu}function F(Re){var ls=Re-b,Ds=Re-S;return b===s||ls>=n||ls<0||C&&Ds>=p}function j(){var Re=nr();if(F(Re))return ne(Re);l=ot(j,z(Re))}function ne(Re){return l=s,D&&i?B(Re):(i=u=s,$)}function Je(){l!==s&&oE(l),S=0,i=b=u=l=s}function we(){return l===s?$:ne(nr())}function ze(){var Re=nr(),ls=F(Re);if(i=arguments,u=this,b=Re,ls){if(l===s)return M(b);if(C)return oE(l),l=ot(j,n),B(b)}return l===s&&(l=ot(j,n)),$}return ze.cancel=Je,ze.flush=we,ze}var ff=Z(function(e,n){return Ui(e,1,n)}),Af=Z(function(e,n,r){return Ui(e,_s(n)||0,r)});function bf(e){return ys(e,Zs)}function tr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new es(T);var r=function(){var i=arguments,u=n?n.apply(this,i):i[0],p=r.cache;if(p.has(u))return p.get(u);var $=e.apply(this,i);return r.cache=p.set(u,$)||p,$};return r.cache=new(tr.Cache||Ns),r}tr.Cache=Ns;function rr(e){if(typeof e!="function")throw new es(T);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function cf(e){return QE(2,e)}var mf=rT(function(e,n){n=n.length==1&&W(n[0])?fe(n[0],qe(g())):fe(ve(n,1),qe(g()));var r=n.length;return Z(function(i){for(var u=-1,p=ge(i.length,r);++u=n}),En=Hi(function(){return arguments}())?Hi:function(e){return me(e)&&ae.call(e,"callee")&&!Pi.call(e,"callee")},W=m.isArray,Bf=pi?qe(pi):Y$;function Xe(e){return e!=null&&_r(e.length)&&!xs(e)}function Oe(e){return me(e)&&Xe(e)}function vf(e){return e===!0||e===!1||me(e)&&Fe(e)==Es}var Hs=kp||Io,gf=$i?qe($i):X$;function Mf(e){return me(e)&&e.nodeType===1&&!it(e)}function Ff(e){if(e==null)return!0;if(Xe(e)&&(W(e)||typeof e=="string"||typeof e.splice=="function"||Hs(e)||Ln(e)||En(e)))return!e.length;var n=Me(e);if(n==us||n==as)return!e.size;if(_t(e))return!F_(e).length;for(var r in e)if(ae.call(e,r))return!1;return!0}function Uf(e,n){return nt(e,n)}function wf(e,n,r){r=typeof r=="function"?r:s;var i=r?r(e,n):s;return i===s?nt(e,n,s,r):!!i}function ao(e){if(!me(e))return!1;var n=Fe(e);return n==bt||n==jr||typeof e.message=="string"&&typeof e.name=="string"&&!it(e)}function Yf(e){return typeof e=="number"&&Ki(e)}function xs(e){if(!be(e))return!1;var n=Fe(e);return n==ct||n==Uo||n==Bs||n==aa}function ZE(e){return typeof e=="number"&&e==k(e)}function _r(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ue}function be(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function me(e){return e!=null&&typeof e=="object"}var jE=Ti?qe(Ti):H$;function Xf(e,n){return e===n||M_(e,n,eo(n))}function Gf(e,n,r){return r=typeof r=="function"?r:s,M_(e,n,eo(n),r)}function Hf(e){return eu(e)&&e!=+e}function Wf(e){if(LT(e))throw new H(E);return Wi(e)}function Qf(e){return e===null}function qf(e){return e==null}function eu(e){return typeof e=="number"||me(e)&&Fe(e)==Xn}function it(e){if(!me(e)||Fe(e)!=Rs)return!1;var n=Kt(e);if(n===null)return!0;var r=ae.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Ct.call(r)==Xp}var po=li?qe(li):W$;function kf(e){return ZE(e)&&e>=-ue&&e<=ue}var su=fi?qe(fi):Q$;function or(e){return typeof e=="string"||!W(e)&&me(e)&&Fe(e)==Hn}function Ve(e){return typeof e=="symbol"||me(e)&&Fe(e)==mt}var Ln=Ai?qe(Ai):q$;function Vf(e){return e===s}function Jf(e){return me(e)&&Me(e)==Wn}function zf(e){return me(e)&&Fe(e)==$a}var Zf=Jt(U_),jf=Jt(function(e,n){return e<=n});function nu(e){if(!e)return[];if(Xe(e))return or(e)?ps(e):Ye(e);if(kn&&e[kn])return Pp(e[kn]());var n=Me(e),r=n==us?y_:n==as?St:Cn;return r(e)}function Ps(e){if(!e)return e===0?e:0;if(e=_s(e),e===Ee||e===-Ee){var n=e<0?-1:1;return n*Y}return e===e?e:0}function k(e){var n=Ps(e),r=n%1;return n===n?r?n-r:n:0}function tu(e){return e?tn(k(e),0,Be):0}function _s(e){if(typeof e=="number")return e;if(Ve(e))return Ae;if(be(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=be(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ri(e);var r=da.test(e);return r||va.test(e)?Tp(e.slice(2),r?2:8):Ka.test(e)?Ae:+e}function ru(e){return ms(e,Ge(e))}function eA(e){return e?tn(k(e),-ue,ue):e===0?e:0}function ie(e){return e==null?"":ke(e)}var sA=Nn(function(e,n){if(_t(n)||Xe(n)){ms(n,Ke(n),e);return}for(var r in n)ae.call(n,r)&&jn(e,r,n[r])}),_u=Nn(function(e,n){ms(n,Ge(n),e)}),ir=Nn(function(e,n,r,i){ms(n,Ge(n),e,i)}),nA=Nn(function(e,n,r,i){ms(n,Ke(n),e,i)}),tA=Ls(K_);function rA(e,n){var r=hn(e);return n==null?r:Mi(r,n)}var _A=Z(function(e,n){e=$e(e);var r=-1,i=n.length,u=i>2?n[2]:s;for(u&&Ue(n[0],n[1],u)&&(i=1);++r1),p}),ms(e,Z_(e),r),i&&(r=ns(r,L|P|K,fT));for(var u=n.length;u--;)H_(r,n[u]);return r});function hA(e,n){return iu(e,rr(g(n)))}var NA=Ls(function(e,n){return e==null?{}:J$(e,n)});function iu(e,n){if(e==null)return{};var r=fe(Z_(e),function(i){return[i]});return n=g(n),Zi(e,r,function(i,u){return n(i,u[0])})}function SA(e,n,r){n=Xs(n,e);var i=-1,u=n.length;for(u||(u=1,e=s);++in){var i=e;e=n,n=i}if(r||e%1||n%1){var u=di();return ge(e+u*(n-e+$p("1e-"+((u+"").length-1))),n)}return Y_(e,n)}var gA=Sn(function(e,n,r){return n=n.toLowerCase(),e+(r?au(n):n)});function au(e){return lo(ie(e).toLowerCase())}function pu(e){return e=ie(e),e&&e.replace(Ma,Sp).replace(np,"")}function MA(e,n,r){e=ie(e),n=ke(n);var i=e.length;r=r===s?i:tn(k(r),0,i);var u=r;return r-=n.length,r>=0&&e.slice(r,u)==n}function FA(e){return e=ie(e),e&&ba.test(e)?e.replace(Xo,yp):e}function UA(e){return e=ie(e),e&&ha.test(e)?e.replace(u_,"\\$&"):e}var wA=Sn(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),YA=Sn(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),XA=lE("toLowerCase");function GA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;if(!n||i>=n)return e;var u=(n-i)/2;return Vt(gt(u),r)+e+Vt(vt(u),r)}function HA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;return n&&i>>0,r?(e=ie(e),e&&(typeof n=="string"||n!=null&&!po(n))&&(n=ke(n),!n&&cn(e))?Gs(ps(e),0,r):e.split(n,r)):[]}var zA=Sn(function(e,n,r){return e+(r?" ":"")+lo(n)});function ZA(e,n,r){return e=ie(e),r=r==null?0:tn(k(r),0,e.length),n=ke(n),e.slice(r,r+n.length)==n}function jA(e,n,r){var i=a.templateSettings;r&&Ue(e,n,r)&&(n=s),e=ie(e),n=ir({},n,i,OE);var u=ir({},n.imports,i.imports,OE),p=Ke(u),$=S_(u,p),l,b,S=0,y=n.interpolate||It,C="__p += '",D=L_((n.escape||It).source+"|"+y.source+"|"+(y===Go?Da:It).source+"|"+(n.evaluate||It).source+"|$","g"),B="//# sourceURL="+(ae.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ip+"]")+` +`;e.replace(D,function(F,j,ne,Je,we,ze){return ne||(ne=Je),C+=e.slice(S,ze).replace(Fa,Lp),j&&(l=!0,C+=`' + __e(`+j+`) + '`),we&&(b=!0,C+=`'; `+we+`; __p += '`),ne&&(C+=`' + ((__t = (`+ne+`)) == null ? '' : __t) + -'`),S=ze+U.length,U}),C+=`'; -`;var F=ae.call(n,"variable")&&n.variable;if(!F)C=`with (obj) { +'`),S=ze+F.length,F}),C+=`'; +`;var M=ae.call(n,"variable")&&n.variable;if(!M)C=`with (obj) { `+C+` } -`;else if(xa.test(F))throw new H(c);C=(b?C.replace(Ta,""):C).replace(la,"$1").replace(fa,"$1;"),C="function("+(F||"obj")+`) { -`+(F?"":`obj || (obj = {}); +`;else if(xa.test(M))throw new H(c);C=(b?C.replace(Ta,""):C).replace(la,"$1").replace(fa,"$1;"),C="function("+(M||"obj")+`) { +`+(M?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(b?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+C+`return __p -}`;var z=Tu(function(){return oe(p,B+"return "+C).apply(s,$)});if(z.source=C,ao(z))throw z;return z}function eb(e){return ie(e).toLowerCase()}function sb(e){return ie(e).toUpperCase()}function nb(e,n,r){if(e=ie(e),e&&(r||n===s))return Ri(e);if(!e||!(n=ke(n)))return e;var i=ps(e),u=ps(n),p=hi(i,u),$=Ni(i,u)+1;return Gs(i,p,$).join("")}function tb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.slice(0,yi(e)+1);if(!e||!(n=ke(n)))return e;var i=ps(e),u=Ni(i,ps(n))+1;return Gs(i,0,u).join("")}function rb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.replace(a_,"");if(!e||!(n=ke(n)))return e;var i=ps(e),u=hi(i,ps(n));return Gs(i,u).join("")}function _b(e,n){var r=R,i=x;if(be(n)){var u="separator"in n?n.separator:u;r="length"in n?k(n.length):r,i="omission"in n?ke(n.omission):i}e=ie(e);var p=e.length;if(cn(e)){var $=ps(e);p=$.length}if(r>=p)return e;var l=r-mn(i);if(l<1)return i;var b=$?Gs($,0,l).join(""):e.slice(0,l);if(u===s)return b+i;if($&&(l+=b.length-l),po(u)){if(e.slice(l).search(u)){var S,y=b;for(u.global||(u=L_(u.source,ie(Ho.exec(u))+"g")),u.lastIndex=0;S=u.exec(y);)var C=S.index;b=b.slice(0,C===s?l:C)}}else if(e.indexOf(ke(u),l)!=l){var D=b.lastIndexOf(u);D>-1&&(b=b.slice(0,D))}return b+i}function ob(e){return e=ie(e),e&&Aa.test(e)?e.replace(Yo,Bp):e}var ib=Sn(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),lo=lE("toUpperCase");function $u(e,n,r){return e=ie(e),n=r?s:n,n===s?xp(e)?Mp(e):Ip(e):e.match(n)||[]}var Tu=Z(function(e,n){try{return Qe(e,s,n)}catch(r){return ao(r)?r:new H(r)}}),Eb=Ls(function(e,n){return je(n,function(r){r=Is(r),Ss(e,r,Eo(e[r],e))}),e});function ub(e){var n=e==null?0:e.length,r=g();return e=n?fe(e,function(i){if(typeof i[1]!="function")throw new es(T);return[r(i[0]),i[1]]}):[],Z(function(i){for(var u=-1;++uue)return[];var r=Be,i=ge(e,Be);n=g(n),e-=Be;for(var u=N_(i,n);++r0||n<0)?new ee(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==s&&(n=k(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},ee.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ee.prototype.toArray=function(){return this.take(Be)},cs(ee.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),u=a[i?"take"+(n=="last"?"Right":""):n],p=i||/^find/.test(n);!u||(a.prototype[n]=function(){var $=this.__wrapped__,l=i?[1]:arguments,b=$ instanceof ee,S=l[0],y=b||W($),C=function(j){var ne=u.apply(a,gs([j],l));return i&&D?ne[0]:ne};y&&r&&typeof S=="function"&&S.length!=1&&(b=y=!1);var D=this.__chain__,B=!!this.__actions__.length,F=p&&!D,z=b&&!B;if(!p&&y){$=z?$:new ee(this);var U=e.apply($,l);return U.__actions__.push({func:sr,args:[C],thisArg:s}),new ss(U,D)}return F&&z?e.apply(this,l):(U=this.thru(C),F?i?U.value()[0]:U.value():U)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var n=Lt[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var p=this.value();return n.apply(W(p)?p:[],u)}return this[r](function($){return n.apply(W($)?$:[],u)})}}),cs(ee.prototype,function(e,n){var r=a[n];if(r){var i=r.name+"";ae.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:n,func:r})}}),Rn[kt(s,_e).name]=[{name:"wrapper",func:s}],ee.prototype.clone=_$,ee.prototype.reverse=o$,ee.prototype.value=i$,a.prototype.at=gl,a.prototype.chain=Ml,a.prototype.commit=Fl,a.prototype.next=Ul,a.prototype.plant=Yl,a.prototype.reverse=Xl,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Gl,a.prototype.first=a.prototype.head,kn&&(a.prototype[kn]=wl),a},Fs=Fp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(De._=Fs,define(function(){return Fs})):js?((js.exports=Fs)._=Fs,A_._=Fs):De._=Fs}).call(Yn)});var Km={};Zb(Km,{schemaToErd:()=>Ea});module.exports=jb(Km);var zr=require("fs"),Zr=ar(require("path"),1);var ra=ar(na(),1),bt=ar(require("assert"),1),_a=ar(ta(),1);var Fo={"inter-token":["BINARY","national","STORED"],"match-token":["VIRTUAL","type = innodb","default 0000-00-00 00:00:00","default 0000-00-00"],function:["GENERATED","CHECK","PARTITION"]};var Nm=new ra.Parser("mysql");function Sm(s,t){let o=s,E,T,c;for(;T=o.indexOf(t),T!==-1;){E=0,c=void 0;for(let O=T+t.length;O=0,`parenthesesDepth(${E}) is minus value`),E===0&&(c=O+1)),M===` -`&&c&&E===0)break}(0,bt.default)(c,"Not detect removal region"),o=o.slice(0,T)+o.slice(c)}return o}function ym(s,t){return t.reduce((o,E)=>Sm(o,E),s)}function Lm(s){return Object.keys(Fo).reduce((t,o)=>{let E=Fo[o];if(_a.default.isEmpty(E))return t;switch(o){case"inter-token":let T=new RegExp(`\\s+(${E.join("|")})\\s+`,"gmi");return t.replace(T," ");case"match-token":let c=new RegExp(`(${E.join("|")})`,"gm");return t.replace(c,"");case"function":return ym(t,E);default:(0,bt.default)(!1,`Not supported token type: ${o}`);break}},s)}function Cm(s){let t=[],o=/(CREATE|ALTER|DROP|RENAME|TRUNCATE)\sTABLE/i,E=0;for(;EO.$comment==="primary key"?[...T,c]:T,[]);return{tableName:t,columnNames:o,primaryKeys:E}}var oa=s=>Cm(s.replace(/\/\*.*?\*\/|--.*?\n/gs,"")).reduce((t,o)=>{try{let E={useRef:!0},T=Nm.feed(o).toJsonSchemaArray(E);if(T.length===0)return t;(0,bt.default)(T.length===1,"Parse only one DDL at a time.");let{tableName:c,columnNames:O,primaryKeys:M}=xm(T[0]);return{...t,[c]:{columnNames:O,primaryKeys:M}}}catch(E){return console.error(`Can not parse "${o}"`,E),t}},{});function Pm(s,t,o){let T=t.map(c=>o.includes(c)?`*${c}`:c).join(` +}`;var z=Tu(function(){return oe(p,B+"return "+C).apply(s,$)});if(z.source=C,ao(z))throw z;return z}function eb(e){return ie(e).toLowerCase()}function sb(e){return ie(e).toUpperCase()}function nb(e,n,r){if(e=ie(e),e&&(r||n===s))return Ri(e);if(!e||!(n=ke(n)))return e;var i=ps(e),u=ps(n),p=hi(i,u),$=Ni(i,u)+1;return Gs(i,p,$).join("")}function tb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.slice(0,yi(e)+1);if(!e||!(n=ke(n)))return e;var i=ps(e),u=Ni(i,ps(n))+1;return Gs(i,0,u).join("")}function rb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.replace(a_,"");if(!e||!(n=ke(n)))return e;var i=ps(e),u=hi(i,ps(n));return Gs(i,u).join("")}function _b(e,n){var r=R,i=x;if(be(n)){var u="separator"in n?n.separator:u;r="length"in n?k(n.length):r,i="omission"in n?ke(n.omission):i}e=ie(e);var p=e.length;if(cn(e)){var $=ps(e);p=$.length}if(r>=p)return e;var l=r-mn(i);if(l<1)return i;var b=$?Gs($,0,l).join(""):e.slice(0,l);if(u===s)return b+i;if($&&(l+=b.length-l),po(u)){if(e.slice(l).search(u)){var S,y=b;for(u.global||(u=L_(u.source,ie(Ho.exec(u))+"g")),u.lastIndex=0;S=u.exec(y);)var C=S.index;b=b.slice(0,C===s?l:C)}}else if(e.indexOf(ke(u),l)!=l){var D=b.lastIndexOf(u);D>-1&&(b=b.slice(0,D))}return b+i}function ob(e){return e=ie(e),e&&Aa.test(e)?e.replace(Yo,Bp):e}var ib=Sn(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),lo=lE("toUpperCase");function $u(e,n,r){return e=ie(e),n=r?s:n,n===s?xp(e)?Mp(e):Ip(e):e.match(n)||[]}var Tu=Z(function(e,n){try{return Qe(e,s,n)}catch(r){return ao(r)?r:new H(r)}}),Eb=Ls(function(e,n){return je(n,function(r){r=Is(r),Ss(e,r,Eo(e[r],e))}),e});function ub(e){var n=e==null?0:e.length,r=g();return e=n?fe(e,function(i){if(typeof i[1]!="function")throw new es(T);return[r(i[0]),i[1]]}):[],Z(function(i){for(var u=-1;++uue)return[];var r=Be,i=ge(e,Be);n=g(n),e-=Be;for(var u=N_(i,n);++r0||n<0)?new ee(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==s&&(n=k(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},ee.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ee.prototype.toArray=function(){return this.take(Be)},cs(ee.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),u=a[i?"take"+(n=="last"?"Right":""):n],p=i||/^find/.test(n);!u||(a.prototype[n]=function(){var $=this.__wrapped__,l=i?[1]:arguments,b=$ instanceof ee,S=l[0],y=b||W($),C=function(j){var ne=u.apply(a,gs([j],l));return i&&D?ne[0]:ne};y&&r&&typeof S=="function"&&S.length!=1&&(b=y=!1);var D=this.__chain__,B=!!this.__actions__.length,M=p&&!D,z=b&&!B;if(!p&&y){$=z?$:new ee(this);var F=e.apply($,l);return F.__actions__.push({func:er,args:[C],thisArg:s}),new ss(F,D)}return M&&z?e.apply(this,l):(F=this.thru(C),M?i?F.value()[0]:F.value():F)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var n=yt[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var p=this.value();return n.apply(W(p)?p:[],u)}return this[r](function($){return n.apply(W($)?$:[],u)})}}),cs(ee.prototype,function(e,n){var r=a[n];if(r){var i=r.name+"";ae.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:n,func:r})}}),Rn[qt(s,_e).name]=[{name:"wrapper",func:s}],ee.prototype.clone=_$,ee.prototype.reverse=o$,ee.prototype.value=i$,a.prototype.at=gl,a.prototype.chain=Ml,a.prototype.commit=Fl,a.prototype.next=Ul,a.prototype.plant=Yl,a.prototype.reverse=Xl,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Gl,a.prototype.first=a.prototype.head,kn&&(a.prototype[kn]=wl),a},Fs=Fp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(De._=Fs,define(function(){return Fs})):js?((js.exports=Fs)._=Fs,A_._=Fs):De._=Fs}).call(Yn)});var Km={};Zb(Km,{schemaToErd:()=>Ea});module.exports=jb(Km);var zr=require("fs"),Zr=ur(require("path"),1);var ra=ur(na(),1),Jr=ur(require("assert"),1),_a=ur(ta(),1);var Fo={"inter-token":["BINARY","national","STORED"],"match-token":["VIRTUAL","type = innodb","default 0000-00-00 00:00:00","default 0000-00-00"],function:["GENERATED","CHECK","PARTITION BY LIST (transaction_type)"]};var Nm=new ra.Parser("mysql");function Sm(s,t){let o=s,E,T,c;for(;T=o.indexOf(t),T!==-1;){E=0,c=void 0;for(let O=T+t.length;OSm(o,E),s)}function Lm(s){return Object.keys(Fo).reduce((t,o)=>{let E=Fo[o];if(_a.default.isEmpty(E))return t;switch(o){case"inter-token":let T=new RegExp(`\\s+(${E.join("|")})\\s+`,"gmi");return t.replace(T," ");case"match-token":let c=new RegExp(`(${E.join("|")})`,"gm");return t.replace(c,"");case"function":return ym(t,E);default:(0,Jr.default)(!1,`Not supported token type: ${o}`);break}},s)}function Cm(s){let t=[],o=/(CREATE|ALTER|DROP|RENAME|TRUNCATE)\sTABLE/i,E=0;for(;EO.$comment==="primary key"?[...T,c]:T,[]);return{tableName:t,columnNames:o,primaryKeys:E}}var oa=s=>Cm(s.replace(/\/\*.*?\*\/|--.*?\n/gs,"")).reduce((t,o)=>{try{let E={useRef:!0},T=Nm.feed(o).toJsonSchemaArray(E);if(T.length===0)return t;(0,Jr.default)(T.length===1,"Parse only one DDL at a time.");let{tableName:c,columnNames:O,primaryKeys:U}=xm(T[0]);return{...t,[c]:{columnNames:O,primaryKeys:U}}}catch(E){return console.error(`Can not parse "${o}"`,E),t}},{});function Pm(s,t,o){let T=t.map(c=>o.includes(c)?`*${c}`:c).join(` `);return`entity ${s} { ${T} } -`}function Dm(s,t,o,E){let T=Object.keys(E);return t.reduce((c,O)=>{if(!o.includes(O)&&T.includes(O)){let M=E[O];return[...c,`${s}::${O} --> ${M.tableName}::${M.columnName}`]}return c},[])}function ia(s){let t=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:M}])=>T+Pm(c,O,M),""),o=Object.entries(s).reduce((T,[c,{primaryKeys:O}])=>{if(O.length!==1)return T;let M=O[0],I=M.startsWith(c)?M:`${c}_${M}`,L={tableName:c,columnName:M};return{...T,[I]:L}},{}),E=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:M}])=>[...T,...Dm(c,O,M,o)],[]);return`@startuml +`}function Dm(s,t,o,E){let T=Object.keys(E);return t.reduce((c,O)=>{if(!o.includes(O)&&T.includes(O)){let U=E[O];return[...c,`${s}::${O} --> ${U.tableName}::${U.columnName}`]}return c},[])}function ia(s){let t=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:U}])=>T+Pm(c,O,U),""),o=Object.entries(s).reduce((T,[c,{primaryKeys:O}])=>{if(O.length!==1)return T;let U=O[0],I=U.startsWith(c)?U:`${c}_${U}`,L={tableName:c,columnName:U};return{...T,[I]:L}},{}),E=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:U}])=>[...T,...Dm(c,O,U,o)],[]);return`@startuml ' hide the spot hide circle diff --git a/dist/main.mjs b/dist/main.mjs index aca343a..cf0e26b 100644 --- a/dist/main.mjs +++ b/dist/main.mjs @@ -1,4 +1,4 @@ -var Wb=Object.create;var lu=Object.defineProperty;var Qb=Object.getOwnPropertyDescriptor;var qb=Object.getOwnPropertyNames;var kb=Object.getPrototypeOf,Vb=Object.prototype.hasOwnProperty;var Q=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports);var Jb=(s,t,o,E)=>{if(t&&typeof t=="object"||typeof t=="function")for(let T of qb(t))!Vb.call(s,T)&&T!==o&&lu(s,T,{get:()=>t[T],enumerable:!(E=Qb(t,T))||E.enumerable});return s};var fu=(s,t,o)=>(o=s!=null?Wb(kb(s)):{},Jb(t||!s||!s.__esModule?lu(o,"default",{value:s,enumerable:!0}):o,s));var bu=Q((Au,Er)=>{(function(s,t){typeof Er=="object"&&Er.exports?Er.exports=t():s.nearley=t()})(Au,function(){function s(I,L,P){return this.id=++s.highestId,this.name=I,this.symbols=L,this.postprocess=P,this}s.highestId=0,s.prototype.toString=function(I){var L=typeof I>"u"?this.symbols.map(M).join(" "):this.symbols.slice(0,I).map(M).join(" ")+" \u25CF "+this.symbols.slice(I).map(M).join(" ");return this.name+" \u2192 "+L};function t(I,L,P,K){this.rule=I,this.dot=L,this.reference=P,this.data=[],this.wantedBy=K,this.isComplete=this.dot===I.symbols.length}t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(I){var L=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return L.left=this,L.right=I,L.isComplete&&(L.data=L.build(),L.right=void 0),L},t.prototype.build=function(){var I=[],L=this;do I.push(L.right.data),L=L.left;while(L.left);return I.reverse(),I},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,c.fail))};function o(I,L){this.grammar=I,this.index=L,this.states=[],this.wants={},this.scannable=[],this.completed={}}o.prototype.process=function(I){for(var L=this.states,P=this.wants,K=this.completed,q=0;q()=>(t||s((t={exports:{}}).exports,t),t.exports);var Jb=(s,t,o,E)=>{if(t&&typeof t=="object"||typeof t=="function")for(let T of qb(t))!Vb.call(s,T)&&T!==o&&lu(s,T,{get:()=>t[T],enumerable:!(E=Qb(t,T))||E.enumerable});return s};var fu=(s,t,o)=>(o=s!=null?Wb(kb(s)):{},Jb(t||!s||!s.__esModule?lu(o,"default",{value:s,enumerable:!0}):o,s));var bu=Q((Au,Er)=>{(function(s,t){typeof Er=="object"&&Er.exports?Er.exports=t():s.nearley=t()})(Au,function(){function s(I,L,P){return this.id=++s.highestId,this.name=I,this.symbols=L,this.postprocess=P,this}s.highestId=0,s.prototype.toString=function(I){var L=typeof I>"u"?this.symbols.map(U).join(" "):this.symbols.slice(0,I).map(U).join(" ")+" \u25CF "+this.symbols.slice(I).map(U).join(" ");return this.name+" \u2192 "+L};function t(I,L,P,K){this.rule=I,this.dot=L,this.reference=P,this.data=[],this.wantedBy=K,this.isComplete=this.dot===I.symbols.length}t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(I){var L=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return L.left=this,L.right=I,L.isComplete&&(L.data=L.build(),L.right=void 0),L},t.prototype.build=function(){var I=[],L=this;do I.push(L.right.data),L=L.left;while(L.left);return I.reverse(),I},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,c.fail))};function o(I,L){this.grammar=I,this.index=L,this.states=[],this.wants={},this.scannable=[],this.completed={}}o.prototype.process=function(I){for(var L=this.states,P=this.wants,K=this.completed,q=0;q0&&L.push(" ^ "+K+" more lines identical to this"),K=0,L.push(" "+te)),P=te}},c.prototype.getSymbolDisplay=function(I){return O(I)},c.prototype.buildFirstStateStack=function(I,L){if(L.indexOf(I)!==-1)return null;if(I.wantedBy.length===0)return[I];var P=I.wantedBy[0],K=[I].concat(L),q=this.buildFirstStateStack(P,K);return q===null?null:[I].concat(q)},c.prototype.save=function(){var I=this.table[this.current];return I.lexerState=this.lexerState,I},c.prototype.restore=function(I){var L=I.index;this.current=L,this.table[L]=I,this.table.splice(L+1),this.lexerState=I.lexerState,this.results=this.finish()},c.prototype.rewind=function(I){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[I])},c.prototype.finish=function(){var I=[],L=this.grammar.start,P=this.table[this.table.length-1];return P.states.forEach(function(K){K.rule.name===L&&K.dot===K.rule.symbols.length&&K.reference===0&&K.data!==c.fail&&I.push(K)}),I.map(function(K){return K.data})};function O(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return"character matching "+I;if(I.type)return I.type+" token";if(I.test)return"token matching "+String(I.test);throw new Error("Unknown symbol type: "+I)}}function M(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return I.toString();if(I.type)return"%"+I.type;if(I.test)return"<"+String(I.test)+">";throw new Error("Unknown symbol type: "+I)}}return{Parser:c,Grammar:E,Rule:s}})});var he=Q(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.setProperty=Ie.isDefined=Ie.isObject=Ie.isFunction=Ie.isNumber=Ie.isString=Ie.isArray=Ie.filterNullValues=Ie.trimString=Ie.stringArrayToMapping=void 0;function zb(s=[],t=E=>E,o=E=>E){return s.reduce((E,T)=>(E[t(T)]=o(T),E),{})}Ie.stringArrayToMapping=zb;function Zb(s,t="",o="\\s\\0\\x0B"){return s.replace(new RegExp(`^[${t+o}]*|[${t+o}]*$`,"gim"),"")}Ie.trimString=Zb;function jb(s){return Object.getOwnPropertyNames(s).forEach(t=>{s[t]===null&&delete s[t]}),s}Ie.filterNullValues=jb;function ec(s){return Array.isArray(s)}Ie.isArray=ec;function sc(s){return typeof s=="string"}Ie.isString=sc;function nc(s){return typeof s=="number"}Ie.isNumber=nc;function tc(s){return typeof s=="function"}Ie.isFunction=tc;function rc(s){return s!==null&&typeof s=="object"}Ie.isObject=rc;function _c(s){return typeof s<"u"&&s!==null}Ie.isDefined=_c;function oc(s,t,o){typeof o!="function"&&Object.defineProperty(s,t,{value:o,enumerable:!0,configurable:!0,writable:!0})}Ie.setProperty=oc});var mu=Q((cu,ur)=>{(function(s,t){typeof define=="function"&&define.amd?define([],t):typeof ur=="object"&&ur.exports?ur.exports=t():s.moo=t()})(cu,function(){"use strict";var s=Object.prototype.hasOwnProperty,t=Object.prototype.toString,o=typeof new RegExp().sticky=="boolean";function E(R){return R&&t.call(R)==="[object RegExp]"}function T(R){return R&&typeof R=="object"&&!E(R)&&!Array.isArray(R)}function c(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function O(R){var x=new RegExp("|"+R);return x.exec("").length-1}function M(R){return"("+R+")"}function I(R){if(!R.length)return"(?!)";var x=R.map(function(v){return"(?:"+v+")"}).join("|");return"(?:"+x+")"}function L(R){if(typeof R=="string")return"(?:"+c(R)+")";if(E(R)){if(R.ignoreCase)throw new Error("RegExp /i flag not allowed");if(R.global)throw new Error("RegExp /g flag is implied");if(R.sticky)throw new Error("RegExp /y flag is implied");if(R.multiline)throw new Error("RegExp /m flag is implied");return R.source}else throw new Error("Not a pattern: "+R)}function P(R){for(var x=Object.getOwnPropertyNames(R),v=[],w=0;w0)throw new Error("RegExp has capture groups: "+Pe+` +`)},c.prototype.displayStateStack=function(I,L){for(var P,K=0,q=0;q0&&L.push(" ^ "+K+" more lines identical to this"),K=0,L.push(" "+te)),P=te}},c.prototype.getSymbolDisplay=function(I){return O(I)},c.prototype.buildFirstStateStack=function(I,L){if(L.indexOf(I)!==-1)return null;if(I.wantedBy.length===0)return[I];var P=I.wantedBy[0],K=[I].concat(L),q=this.buildFirstStateStack(P,K);return q===null?null:[I].concat(q)},c.prototype.save=function(){var I=this.table[this.current];return I.lexerState=this.lexerState,I},c.prototype.restore=function(I){var L=I.index;this.current=L,this.table[L]=I,this.table.splice(L+1),this.lexerState=I.lexerState,this.results=this.finish()},c.prototype.rewind=function(I){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[I])},c.prototype.finish=function(){var I=[],L=this.grammar.start,P=this.table[this.table.length-1];return P.states.forEach(function(K){K.rule.name===L&&K.dot===K.rule.symbols.length&&K.reference===0&&K.data!==c.fail&&I.push(K)}),I.map(function(K){return K.data})};function O(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return"character matching "+I;if(I.type)return I.type+" token";if(I.test)return"token matching "+String(I.test);throw new Error("Unknown symbol type: "+I)}}function U(I){var L=typeof I;if(L==="string")return I;if(L==="object"){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return I.toString();if(I.type)return"%"+I.type;if(I.test)return"<"+String(I.test)+">";throw new Error("Unknown symbol type: "+I)}}return{Parser:c,Grammar:E,Rule:s}})});var he=Q(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.setProperty=Ie.isDefined=Ie.isObject=Ie.isFunction=Ie.isNumber=Ie.isString=Ie.isArray=Ie.filterNullValues=Ie.trimString=Ie.stringArrayToMapping=void 0;function zb(s=[],t=E=>E,o=E=>E){return s.reduce((E,T)=>(E[t(T)]=o(T),E),{})}Ie.stringArrayToMapping=zb;function Zb(s,t="",o="\\s\\0\\x0B"){return s.replace(new RegExp(`^[${t+o}]*|[${t+o}]*$`,"gim"),"")}Ie.trimString=Zb;function jb(s){return Object.getOwnPropertyNames(s).forEach(t=>{s[t]===null&&delete s[t]}),s}Ie.filterNullValues=jb;function ec(s){return Array.isArray(s)}Ie.isArray=ec;function sc(s){return typeof s=="string"}Ie.isString=sc;function nc(s){return typeof s=="number"}Ie.isNumber=nc;function tc(s){return typeof s=="function"}Ie.isFunction=tc;function rc(s){return s!==null&&typeof s=="object"}Ie.isObject=rc;function _c(s){return typeof s<"u"&&s!==null}Ie.isDefined=_c;function oc(s,t,o){typeof o!="function"&&Object.defineProperty(s,t,{value:o,enumerable:!0,configurable:!0,writable:!0})}Ie.setProperty=oc});var mu=Q((cu,ur)=>{(function(s,t){typeof define=="function"&&define.amd?define([],t):typeof ur=="object"&&ur.exports?ur.exports=t():s.moo=t()})(cu,function(){"use strict";var s=Object.prototype.hasOwnProperty,t=Object.prototype.toString,o=typeof new RegExp().sticky=="boolean";function E(R){return R&&t.call(R)==="[object RegExp]"}function T(R){return R&&typeof R=="object"&&!E(R)&&!Array.isArray(R)}function c(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function O(R){var x=new RegExp("|"+R);return x.exec("").length-1}function U(R){return"("+R+")"}function I(R){if(!R.length)return"(?!)";var x=R.map(function(v){return"(?:"+v+")"}).join("|");return"(?:"+x+")"}function L(R){if(typeof R=="string")return"(?:"+c(R)+")";if(E(R)){if(R.ignoreCase)throw new Error("RegExp /i flag not allowed");if(R.global)throw new Error("RegExp /g flag is implied");if(R.sticky)throw new Error("RegExp /y flag is implied");if(R.multiline)throw new Error("RegExp /m flag is implied");return R.source}else throw new Error("Not a pattern: "+R)}function P(R){for(var x=Object.getOwnPropertyNames(R),v=[],w=0;w0)throw new Error("RegExp has capture groups: "+Pe+` Use (?: \u2026 ) instead`);if(!Y.lineBreaks&&Pe.test(` -`))throw new Error("Rule should declare lineBreaks: "+Pe);Ee.push(M(ds))}}var Bs=v&&v.fallback,Es=o&&!Bs?"ym":"gm",bs=o||Bs?"":"|";G===!0&&(Es+="u");var Vr=new RegExp(I(Ee)+bs,Es);return{regexp:Vr,groups:se,fast:w,error:v||te}}function Se(R){var x=_e(X(R));return new pe({start:x},"start")}function re(R,x,v){var w=R&&(R.push||R.next);if(w&&!v[w])throw new Error("Missing state '"+w+"' (in token '"+R.defaultType+"' of state '"+x+"')");if(R&&R.pop&&+R.pop!=1)throw new Error("pop must be 1 (in token '"+R.defaultType+"' of state '"+x+"')")}function ye(R,x){var v=R.$all?X(R.$all):[];delete R.$all;var w=Object.getOwnPropertyNames(R);x||(x=w[0]);for(var J=Object.create(null),G=0;G{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});var ic=he(),Ec=ic.stringArrayToMapping(["STATS_SAMPLE_PAGES","GEOMETRYCOLLECTION","STATS_AUTO_RECALC","ENCRYPTION_KEY_ID","CURRENT_TIMESTAMP","STATS_PERSISTENT","DELAY_KEY_WRITE","MULTILINESTRING","LOCALTIMESTAMP","AUTO_INCREMENT","AVG_ROW_LENGTH","UNIX_TIMESTAMP","LAST_INSERT_ID","KEY_BLOCK_SIZE","COLUMN_FORMAT","CONNECTION_ID","PAGE_CHECKSUM","TRANSACTIONAL","UTC_TIMESTAMP","INSERT_METHOD","SESSION_USER","MULTIPOLYGON","CURRENT_DATE","CURRENT_TIME","CURRENT_USER","COMPRESSION","IETF_QUOTES","SYSTEM_TIME","SYSTEM_USER","VERSIONING","MULTIPOINT","LINESTRING","CONNECTION","MEDIUMBLOB","COMPRESSED","ENCRYPTION","VALIDATION","CONSTRAINT","ROW_FORMAT","UUID_SHORT","FOUND_ROWS","TABLESPACE","REFERENCES","MEDIUMTEXT","VARBINARY","TEMPORARY","REDUNDANT","EXCLUSIVE","ROW_COUNT","LOCALTIME","MEDIUMINT","TIMESTAMP","DIRECTORY","INVISIBLE","PACK_KEYS","ALGORITHM","CHARACTER","TINYBLOB","UTC_TIME","NATIONAL","FULLTEXT","GEOMETRY","MAX_ROWS","DATABASE","LONGBLOB","UNSIGNED","TINYTEXT","DATETIME","MIN_ROWS","ZEROFILL","UTC_DATE","PASSWORD","CHECKSUM","RESTRICT","LONGTEXT","SMALLINT","CONVERT","SPATIAL","INPLACE","STORAGE","SYSDATE","FOREIGN","TINYINT","DYNAMIC","DISCARD","DISABLE","DEFAULT","DECIMAL","CURTIME","CURDATE","INTEGER","COMPACT","COMMENT","COLLATE","REPLACE","CHARSET","CASCADE","BOOLEAN","NUMERIC","OFFLINE","PRIMARY","POLYGON","VARCHAR","VERSION","WITHOUT","PARTIAL","ENABLE","MEMORY","CREATE","MODIFY","DELETE","ENGINE","UPDATE","BIGINT","SYSTEM","SIMPLE","EXISTS","RENAME","BINARY","NOWAIT","IGNORE","SHARED","IMPORT","ACTION","ONLINE","SCHEMA","PERIOD","UNIQUE","DOUBLE","CHANGE","PARSER","COLUMN","INDEX","FLOAT","POINT","ALTER","ROUND","NCHAR","MATCH","RTREE","BTREE","AFTER","USING","FORCE","TABLE","ORDER","FIXED","FIRST","FALSE","UNION","UUID","LOCK","LIKE","LAST","KEYS","CHAR","JSON","COPY","WAIT","NONE","HASH","FULL","BLOB","YEAR","USER","PAGE","TEXT","TIME","RAND","NULL","BOOL","ENUM","DATA","DROP","TRUE","WITH","DISK","DESC","DATE","ZLIB","BIT","YES","INT","KEY","NOW","SET","ADD","LZ4","NOT","FOR","ASC","USE","AS","NO","BY","ON","OR","IF","PI","TO"],s=>`K_${s}`,s=>new RegExp(`\\b${s.split("").reduce((t,o)=>(t+=`[${o.toUpperCase()}${o.toLowerCase()}]`,t),"")}\\b`));bo.default=Ec});var Ou=Q(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default={WS:{match:/(?:\s+|#.*|-- +.*|\/\*(?:[\s\S])*?\*\/)+/,lineBreaks:!0},S_EQUAL:"=",S_LPARENS:"(",S_RPARENS:")",S_COMMA:",",S_SEMICOLON:";",S_BIT_FORMAT:{match:/b'[01]+'|0b[01]+/},S_HEXA_FORMAT:{match:/[Xx]'[0-9a-fA-F]+'|0x[0-9a-fA-F]+/},S_DQUOTE_STRING:{match:/""|"(?:(?:"")|[^"\\]|\\.)*"/,value:s=>s.substr(1,s.length-2).replace(/\\"/g,'"').replace(/""/g,'"')},S_SQUOTE_STRING:{match:/''|'(?:(?:'')|[^'\\]|\\.)*'/,value:s=>s.substr(1,s.length-2).replace(/\\'/g,"'").replace(/''/g,"'")},S_NUMBER:{match:/[+-]?(?:\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)/,value:Number},S_IDENTIFIER_QUOTED:{match:/`(?:(?:``)|[^`\\])*`/,value:s=>s.substr(1,s.length-2).replace(/``/g,"`")},S_IDENTIFIER_UNQUOTED:{match:/[0-9a-zA-Z$_]+/},S_UNKNOWN:{match:/.+/}}});var Ru=Q(Et=>{"use strict";var mo=Et&&Et.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Et,"__esModule",{value:!0});function f(s){return s[0]}var uc=mo(mu()),ac=mo(Iu()),pc=mo(Ou()),$c=Object.assign({},ac.default,pc.default),_=uc.default.compile($c),Tc={Lexer:_,ParserRules:[{name:"P_DDS$subexpression$1",symbols:["P_CREATE_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_RENAME_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_SET","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_USE_DB","_"],postprocess:f},{name:"P_DDS",symbols:["_","P_DDS$subexpression$1"],postprocess:s=>({id:"P_DDS",def:s[1]})},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"_",symbols:["_$ebnf$1"]},{name:"__$ebnf$1",symbols:[_.has("WS")?{type:"WS"}:WS]},{name:"__$ebnf$1",symbols:["__$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"__",symbols:["__$ebnf$1"]},{name:"S_EOS",symbols:["_",_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"O_CHARSET",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_CHARSET",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[2]?s[2].value:"")+")"},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:["O_DEFAULT_VALUE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE",symbols:["S_IDENTIFIER","O_DEFAULT_VALUE$ebnf$1"],postprocess:s=>{var t;return s[0]+((t=s[1])!==null&&t!==void 0?t:"")}},{name:"O_DEFAULT_VALUE",symbols:["O_QUOTED_STRING"],postprocess:f},{name:"O_QUOTED_STRING",symbols:[_.has("S_DQUOTE_STRING")?{type:"S_DQUOTE_STRING"}:S_DQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_QUOTED_STRING",symbols:[_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_TABLE_OPTION_VALUE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_QUOTED")?{type:"S_IDENTIFIER_QUOTED"}:S_IDENTIFIER_QUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_UNQUOTED")?{type:"S_IDENTIFIER_UNQUOTED"}:S_IDENTIFIER_UNQUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PI")?{type:"K_PI"}:K_PI],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BY")?{type:"K_BY"}:K_BY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOR")?{type:"K_FOR"}:K_FOR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LZ4")?{type:"K_LZ4"}:K_LZ4],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOW")?{type:"K_NOW"}:K_NOW],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZLIB")?{type:"K_ZLIB"}:K_ZLIB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRUE")?{type:"K_TRUE"}:K_TRUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RAND")?{type:"K_RAND"}:K_RAND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USER")?{type:"K_USER"}:K_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID")?{type:"K_UUID"}:K_UUID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FALSE")?{type:"K_FALSE"}:K_FALSE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROUND")?{type:"K_ROUND"}:K_ROUND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSION")?{type:"K_VERSION"}:K_VERSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURDATE")?{type:"K_CURDATE"}:K_CURDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURTIME")?{type:"K_CURTIME"}:K_CURTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSDATE")?{type:"K_SYSDATE"}:K_SYSDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_DATE")?{type:"K_UTC_DATE"}:K_UTC_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIME")?{type:"K_UTC_TIME"}:K_UTC_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIME")?{type:"K_LOCALTIME"}:K_LOCALTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_COUNT")?{type:"K_ROW_COUNT"}:K_ROW_COUNT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOUND_ROWS")?{type:"K_FOUND_ROWS"}:K_FOUND_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID_SHORT")?{type:"K_UUID_SHORT"}:K_UUID_SHORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_USER")?{type:"K_SYSTEM_USER"}:K_SYSTEM_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_USER")?{type:"K_CURRENT_USER"}:K_CURRENT_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIME")?{type:"K_CURRENT_TIME"}:K_CURRENT_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_DATE")?{type:"K_CURRENT_DATE"}:K_CURRENT_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SESSION_USER")?{type:"K_SESSION_USER"}:K_SESSION_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIMESTAMP")?{type:"K_UTC_TIMESTAMP"}:K_UTC_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION_ID")?{type:"K_CONNECTION_ID"}:K_CONNECTION_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST_INSERT_ID")?{type:"K_LAST_INSERT_ID"}:K_LAST_INSERT_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIX_TIMESTAMP")?{type:"K_UNIX_TIMESTAMP"}:K_UNIX_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIMESTAMP")?{type:"K_LOCALTIMESTAMP"}:K_LOCALTIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES],postprocess:s=>s[0].value},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_ALTER_DB$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$1",symbols:["P_ALTER_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_DB$ebnf$2$subexpression$1",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2$subexpression$1"]},{name:"P_ALTER_DB$ebnf$2$subexpression$2",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2","P_ALTER_DB$ebnf$2$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_DB",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_DB$subexpression$1","P_ALTER_DB$ebnf$1","P_ALTER_DB$ebnf$2","S_EOS"],postprocess:s=>({id:"P_ALTER_DB",def:{database:s[3],meta:s[4]}})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_ALTER_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_ALTER_DB_SPEC",symbols:["O_ALTER_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_DB_SPEC",def:s[0]})},{name:"P_ALTER_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_ALTER_TABLE$ebnf$1",symbols:["P_ALTER_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$2$subexpression$1",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE,"__"]},{name:"P_ALTER_TABLE$ebnf$2",symbols:["P_ALTER_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"__"]},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT,"__"]},{name:"P_ALTER_TABLE$ebnf$3",symbols:["P_ALTER_TABLE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$4",symbols:[]},{name:"P_ALTER_TABLE$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_ALTER_TABLE_SPECS"],postprocess:s=>s[3]},{name:"P_ALTER_TABLE$ebnf$4",symbols:["P_ALTER_TABLE$ebnf$4","P_ALTER_TABLE$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_TABLE",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_TABLE$ebnf$1","P_ALTER_TABLE$ebnf$2",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","__","P_ALTER_TABLE$ebnf$3","P_ALTER_TABLE_SPECS","P_ALTER_TABLE$ebnf$4","S_EOS"],postprocess:s=>({id:"P_ALTER_TABLE",def:{table:s[6],specs:[s[9]].concat(s[10])}})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS"],postprocess:s=>({tableOptions:s[0]})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["O_ALTER_TABLE_SPEC"],postprocess:s=>({spec:s[0]})},{name:"P_ALTER_TABLE_SPECS",symbols:["P_ALTER_TABLE_SPECS$subexpression$1"],postprocess:s=>({id:"P_ALTER_TABLE_SPECS",def:s[0]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4"],postprocess:s=>{var t;let o={action:"addColumn",name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[],position:s[8]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1",symbols:["S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3"],postprocess:s=>{var t,o;let E={name:s[0],datatype:s[2],columnDefinition:(t=s[3])!==null&&t!==void 0?t:[]};return s[4]&&(E.reference=s[4]),[E].concat((o=s[5])!==null&&o!==void 0?o:[])}},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addColumns",columns:s[5]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9"],postprocess:s=>{var t;return{action:"addIndex",name:s[3],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13"],postprocess:s=>{var t;return{action:"addPrimaryKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19"],postprocess:s=>{var t;return s[5]&&["index","key"].includes(s[5].toLowerCase())&&(s[5]=void 0),{action:"addUniqueKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addFulltextIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addSpatialIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{action:"addForeignKey",name:s[2],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),reference:s[15]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4"],postprocess:s=>({action:"changeAlgorithm",algorithm:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31","S_IDENTIFIER","__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({action:"setDefaultColumnValue",column:s[3],value:s[9]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32","S_IDENTIFIER","__",_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>({action:"dropDefaultColumnValue",column:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33","S_IDENTIFIER","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:s[5],datatype:s[7],columnDefinition:s[8],position:s[10]};return s[9]&&(t.reference=s[9]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:void 0,datatype:s[5],columnDefinition:s[6],position:s[8]};return s[7]&&(t.reference=s[7]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1",symbols:["__",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT,"__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5","__","O_CHARSET","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41"],postprocess:s=>({action:"convertToCharacterSet",charset:s[6],collate:s[7]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"enableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"disableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"discardTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"importTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43","S_IDENTIFIER"],postprocess:s=>({action:"dropColumn",column:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6","__","S_IDENTIFIER"],postprocess:s=>({action:"dropIndex",index:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({action:"dropPrimaryKey"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"__","S_IDENTIFIER"],postprocess:s=>({action:"dropForeignKey",key:s[6]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>({action:"force"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8"],postprocess:s=>({action:"changeLock",lock:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER,"__",_.has("K_BY")?{type:"K_BY"}:K_BY,"__","S_IDENTIFIER","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44"],postprocess:s=>{var t;return{action:"orderBy",columns:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9","__","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({action:"renameIndex",index:s[4],newName:s[8]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45","S_IDENTIFIER"],postprocess:s=>({action:"rename",newName:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withoutValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD,"__",_.has("K_FOR")?{type:"K_FOR"}:K_FOR,"__",_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME,"_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addPeriodForSystemTime",startColumnName:s[10],endColumnName:s[14]})},{name:"O_ALTER_TABLE_SPEC",symbols:["O_ALTER_TABLE_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_TABLE_SPEC",def:s[0]})},{name:"P_CREATE_DB$ebnf$1$subexpression$1",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE,"__"]},{name:"P_CREATE_DB$ebnf$1",symbols:["P_CREATE_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:["P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1","__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_DB$ebnf$2",symbols:["P_CREATE_DB$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$3",symbols:[]},{name:"P_CREATE_DB$ebnf$3$subexpression$1",symbols:["__","O_CREATE_DB_SPEC"],postprocess:s=>s[1]},{name:"P_CREATE_DB$ebnf$3",symbols:["P_CREATE_DB$ebnf$3","P_CREATE_DB$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_DB",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"__","P_CREATE_DB$ebnf$1","P_CREATE_DB$subexpression$1","P_CREATE_DB$ebnf$2","__","S_IDENTIFIER","P_CREATE_DB$ebnf$3","S_EOS"],postprocess:s=>({id:"P_CREATE_DB",def:{database:s[6],meta:s[7]}})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_DB_SPEC",symbols:["O_CREATE_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_CREATE_DB_SPEC",def:s[0]})},{name:"P_CREATE_INDEX$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_INDEX$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE]},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE]},{name:"P_CREATE_INDEX$ebnf$2",symbols:["P_CREATE_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3",symbols:["P_CREATE_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$4$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_INDEX$ebnf$4",symbols:["P_CREATE_INDEX$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$5$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$5",symbols:["P_CREATE_INDEX$ebnf$5$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_INDEX$ebnf$6",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$6",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_CREATE_INDEX$ebnf$7",symbols:["P_CREATE_INDEX$ebnf$7$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$7",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$8",symbols:[]},{name:"P_CREATE_INDEX$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$8",symbols:["P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$9",symbols:[]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9",symbols:["P_CREATE_INDEX$ebnf$9","P_CREATE_INDEX$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_INDEX$ebnf$1","P_CREATE_INDEX$ebnf$2","P_CREATE_INDEX$ebnf$3","__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_CREATE_INDEX$ebnf$4","__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$5","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$6","P_CREATE_INDEX$ebnf$7","P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$9","S_EOS"],postprocess:s=>{var t,o;let E=s[3]?s[3].value+" ":"";return E=E+s[5].value,{id:"P_CREATE_INDEX",def:{name:s[8],type:E,index:s[9],table:s[13],columns:s[14],options:((t=s[16])!==null&&t!==void 0?t:[]).concat((o=s[17])!==null&&o!==void 0?o:[])}}}},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1","P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2"],postprocess:s=>({length:s[0]?s[0].value:void 0,sort:s[1]?s[1].value:void 0})},{name:"P_INDEX_COLUMN$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN",symbols:["S_IDENTIFIER","P_INDEX_COLUMN$ebnf$1"],postprocess:s=>({id:"P_INDEX_COLUMN",def:{column:s[0],length:s[1]&&s[1].length?s[1].length:void 0,sort:s[1]&&s[1].sort?s[1].sort:void 0}})},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:f},{name:"P_INDEX_TYPE",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING,"__","P_INDEX_TYPE$subexpression$1"],postprocess:s=>({id:"P_INDEX_TYPE",def:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_INDEX_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1",symbols:["P_INDEX_TYPE"],postprocess:s=>({indexType:s[0]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER,"__","S_IDENTIFIER"],postprocess:s=>({parser:s[4]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_INDEX_OPTION",symbols:["O_INDEX_OPTION$subexpression$1"],postprocess:s=>({id:"O_INDEX_OPTION",def:s[0]})},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["__"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"P_INDEX_ALGORITHM_OPTION$subexpression$1","P_INDEX_ALGORITHM_OPTION$subexpression$2"],postprocess:s=>({id:"P_INDEX_ALGORITHM_OPTION",def:{algorithm:s[2].value}})},{name:"P_LOCK_OPTION$subexpression$1",symbols:["__"]},{name:"P_LOCK_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"P_LOCK_OPTION",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"P_LOCK_OPTION$subexpression$1","P_LOCK_OPTION$subexpression$2"],postprocess:s=>({id:"P_LOCK_OPTION",def:{lock:s[2].value}})},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_COMMON"],postprocess:f},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_LIKE"],postprocess:f},{name:"P_CREATE_TABLE",symbols:["P_CREATE_TABLE$subexpression$1"],postprocess:s=>({id:"P_CREATE_TABLE",def:s[0]})},{name:"P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:["P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:["P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:["P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1",symbols:["_","P_CREATE_TABLE_OPTIONS"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:["P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_COMMON$ebnf$1","P_CREATE_TABLE_COMMON$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_COMMON$ebnf$3","__","S_IDENTIFIER","_","P_CREATE_TABLE_CREATE_DEFINITIONS","P_CREATE_TABLE_COMMON$ebnf$4","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_COMMON",def:{table:s[7],columnsDef:s[9],tableOptions:s[10]}})},{name:"P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:["P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:["P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:["P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["__",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[5]},{name:"P_CREATE_TABLE_LIKE",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_LIKE$ebnf$1","P_CREATE_TABLE_LIKE$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_LIKE$ebnf$3","__","S_IDENTIFIER","P_CREATE_TABLE_LIKE$subexpression$1","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_LIKE",def:{table:s[7],like:s[8]}})},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","O_CREATE_TABLE_CREATE_DEFINITION"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:["P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1"],postprocess:s=>{var t;return[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({id:"P_CREATE_TABLE_CREATE_DEFINITIONS",def:s[2]})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1",symbols:["O_DATATYPE","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={datatype:s[0],columnDefinition:(t=s[1])!==null&&t!==void 0?t:[]};return s[2]&&(o.reference=s[2]),o}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["S_IDENTIFIER","_","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({column:{name:s[0],def:s[2]}})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4"],postprocess:s=>{var t;return{primaryKey:{name:s[0],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8"],postprocess:s=>{var t;return{index:{name:s[1],index:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14"],postprocess:s=>{var t,o;return s[3]&&["index","key"].includes(s[3].toLowerCase())&&(s[3]=void 0),{uniqueKey:{name:s[3],index:(t=s[4])!==null&&t!==void 0?t:void 0,columns:[s[8]].concat((o=s[9])!==null&&o!==void 0?o:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{fulltextIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{spatialIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{foreignKey:{name:s[0],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),reference:s[13]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_CREATE_DEFINITION",def:s[0]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>({unsigned:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>({zerofill:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET,"__","O_CHARSET"],postprocess:s=>({charset:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__","O_CHARSET"],postprocess:s=>({charset:s[4]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>({collation:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!1})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({default:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>({autoincrement:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_COLUMN_DEFINITION$subexpression$1$ebnf$1"],postprocess:s=>({unique:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__"]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({primary:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithoutSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>({invisible:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({format:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$2"],postprocess:s=>({storage:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[3]?s[3].value:"")+")"},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__",_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE,"__",_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP,"O_COLUMN_DEFINITION$subexpression$1$ebnf$3"],postprocess:s=>{var t;return{onUpdate:s[4].value+((t=s[5])!==null&&t!==void 0?t:"")}}},{name:"O_COLUMN_DEFINITION",symbols:["O_COLUMN_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_COLUMN_DEFINITION",def:s[0]})},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:[]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:["P_COLUMN_REFERENCE$subexpression$1$ebnf$1","P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_COLUMN_REFERENCE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH,"__","P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1","_"],postprocess:s=>s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:["P_COLUMN_REFERENCE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:[]},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO,"__",_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1","__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2","_"],postprocess:s=>({trigger:s[2].value,action:s[4]})},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:["P_COLUMN_REFERENCE$ebnf$2","P_COLUMN_REFERENCE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES,"__","S_IDENTIFIER","P_COLUMN_REFERENCE$subexpression$1","P_COLUMN_REFERENCE$ebnf$1","P_COLUMN_REFERENCE$ebnf$2"],postprocess:s=>{var t,o;return{id:"P_COLUMN_REFERENCE",def:{table:s[2],columns:(t=s[3])!==null&&t!==void 0?t:[],match:s[4],on:(o=s[5])!==null&&o!==void 0?o:[]}}}},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["__"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1","O_CREATE_TABLE_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1","P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_OPTIONS",symbols:["O_CREATE_TABLE_OPTION","P_CREATE_TABLE_OPTIONS$ebnf$1"],postprocess:s=>{var t;return{id:"P_CREATE_TABLE_OPTIONS",def:[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({autoincrement:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({avgRowLength:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({checksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8","O_QUOTED_STRING"],postprocess:s=>({compression:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9","O_QUOTED_STRING"],postprocess:s=>({connection:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11","O_QUOTED_STRING"],postprocess:s=>({[s[0].value.toLowerCase()+"Directory"]:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({delayKeyWrite:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13","O_QUOTED_STRING"],postprocess:s=>({encryption:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({encryptionKeyId:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16"],postprocess:s=>({ietfQuotes:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17","O_ENGINE"],postprocess:s=>({engine:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19"],postprocess:s=>({insertMethod:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({maxRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({minRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24"],postprocess:s=>({packKeys:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({pageChecksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26","O_QUOTED_STRING"],postprocess:s=>({password:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28"],postprocess:s=>({rowFormat:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30"],postprocess:s=>({statsAutoRecalc:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32"],postprocess:s=>({statsPersistent:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33","O_TABLE_OPTION_VALUE"],postprocess:s=>({statsSamplePages:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({transactional:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({withSystemVersioning:!0})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1",symbols:["__",_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1"],postprocess:s=>s[3].value},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE,"__","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3"],postprocess:s=>{let t={tablespaceName:s[2]};return s[3]&&(t.tablespaceStorage=s[3]),t}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return{union:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION",symbols:["O_CREATE_TABLE_OPTION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_OPTION",def:s[0]})},{name:"O_DATATYPE$subexpression$1",symbols:["O_INTEGER_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FLOATING_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BIT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BOOLEAN_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_DATETIME_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_YEAR_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_ENUM_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SET_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SPATIAL_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_JSON_DATATYPE"],postprocess:f},{name:"O_DATATYPE",symbols:["O_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_DATATYPE",def:s[0]})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>({datatype:s[0].value,width:1})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>({datatype:s[0].value,width:2})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>({datatype:s[0].value,width:3})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>({datatype:s[0].value,width:8})},{name:"O_INTEGER_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:["O_INTEGER_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_INTEGER_DATATYPE",symbols:["O_INTEGER_DATATYPE$subexpression$1","O_INTEGER_DATATYPE$ebnf$1"],postprocess:s=>({id:"O_INTEGER_DATATYPE",def:{datatype:s[0].datatype,width:s[1]?s[1]:s[0].width}})},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:0})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:["O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_POINT_DATATYPE",symbols:["O_FIXED_POINT_DATATYPE$subexpression$1","O_FIXED_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FIXED_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]?(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals):(t.def.digits=10,t.def.decimals=0),t}},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:["O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FLOATING_POINT_DATATYPE",symbols:["O_FLOATING_POINT_DATATYPE$subexpression$1","O_FLOATING_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FLOATING_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]&&(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals),t}},{name:"O_BIT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>s[3].value},{name:"O_BIT_DATATYPE$ebnf$1",symbols:["O_BIT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_BIT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_BIT_DATATYPE",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT,"O_BIT_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_BIT_DATATYPE",def:{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:1}}}},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:f},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:f},{name:"O_BOOLEAN_DATATYPE",symbols:["O_BOOLEAN_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_BOOLEAN_DATATYPE",def:{datatype:s[0].value}})},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:["O_DATETIME_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DATETIME_DATATYPE",symbols:["O_DATETIME_DATATYPE$subexpression$1","O_DATETIME_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_DATETIME_DATATYPE",def:{datatype:s[0].value,fractional:(t=s[1])!==null&&t!==void 0?t:0}}}},{name:"O_YEAR_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:["O_YEAR_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_YEAR_DATATYPE",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR,"O_YEAR_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_YEAR_DATATYPE",def:{datatype:s[0].value,digits:(t=s[1])!==null&&t!==void 0?t:4}}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL,"__",_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value+" "+s[2].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1","O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0],length:(t=s[1])!==null&&t!==void 0?t:1}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2","O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3"],postprocess:s=>({datatype:s[0].value,length:s[1]})},{name:"O_VARIABLE_STRING_DATATYPE",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_VARIABLE_STRING_DATATYPE",def:s[0]})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1","O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:65535}}},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_FIXED_STRING_DATATYPE",def:s[0]})},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:["O_ENUM_DATATYPE$subexpression$1$ebnf$1","O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ENUM_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_ENUM_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_ENUM_DATATYPE",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM,"O_ENUM_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_ENUM_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:["O_SET_DATATYPE$subexpression$1$ebnf$1","O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_SET_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_SET_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_SET_DATATYPE",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"O_SET_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SET_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:f},{name:"O_SPATIAL_DATATYPE",symbols:["O_SPATIAL_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SPATIAL_DATATYPE",def:{datatype:s[0].value}})},{name:"O_JSON_DATATYPE",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>({id:"O_JSON_DATATYPE",def:{datatype:s[0].value}})},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_DROP_DB$ebnf$1$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_DB$ebnf$1",symbols:["P_DROP_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_DB",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_DB$subexpression$1","P_DROP_DB$ebnf$1","__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_DROP_DB",def:s[5]})},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1",symbols:["P_DROP_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_INDEX$ebnf$2",symbols:["P_DROP_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_INDEX$ebnf$3",symbols:["P_DROP_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$4",symbols:[]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4",symbols:["P_DROP_INDEX$ebnf$4","P_DROP_INDEX$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_INDEX",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_INDEX$ebnf$1",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_DROP_INDEX$ebnf$2","__","S_IDENTIFIER","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_DROP_INDEX$ebnf$3","P_DROP_INDEX$ebnf$4","S_EOS"],postprocess:s=>({id:"P_DROP_INDEX",def:{index:s[6],table:s[10],options:s[12]?s[12]:[]}})},{name:"P_DROP_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY,"__"]},{name:"P_DROP_TABLE$ebnf$1",symbols:["P_DROP_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_TABLE$ebnf$2",symbols:["P_DROP_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$3",symbols:[]},{name:"P_DROP_TABLE$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_DROP_TABLE$ebnf$3",symbols:["P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_TABLE$ebnf$4",symbols:["P_DROP_TABLE$ebnf$4$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT]},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE]},{name:"P_DROP_TABLE$ebnf$5",symbols:["P_DROP_TABLE$ebnf$5$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_TABLE$ebnf$1",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_DROP_TABLE$ebnf$2","__","S_IDENTIFIER","P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$4","P_DROP_TABLE$ebnf$5","S_EOS"],postprocess:s=>{var t;return{id:"P_DROP_TABLE",def:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[])}}},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_RENAME_TABLE$ebnf$1",symbols:["P_RENAME_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_RENAME_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_RENAME_TABLE$ebnf$2",symbols:[]},{name:"P_RENAME_TABLE$ebnf$2$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({table:s[3],newName:s[7]})},{name:"P_RENAME_TABLE$ebnf$2",symbols:["P_RENAME_TABLE$ebnf$2","P_RENAME_TABLE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_RENAME_TABLE",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$1","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$2","S_EOS"],postprocess:s=>{var t;return{id:"P_RENAME_TABLE",def:[{table:s[4],newName:s[9]}].concat((t=s[10])!==null&&t!==void 0?t:[])}}},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$1",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1$subexpression$1"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$2",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1","P_SET$ebnf$1$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_SET",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__","P_SET$ebnf$1","S_EOS"],postprocess:s=>({id:"P_SET"})},{name:"P_USE_DB",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE,"__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_USE_DB",def:{database:s[2]}})}],ParserStart:"P_DDS"};Et.default=Tc});var hu=Q(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});var lc=Ru();Object.defineProperty(Io,"Grammar",{enumerable:!0,get:function(){return lc.default}})});var Oo=Q(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.TableOptions=void 0;var h=he(),un=class{static fromDef(t){if(t.id==="P_CREATE_TABLE_OPTIONS")return un.fromArray(t.def);throw new TypeError(`Unknown json id to build table options from: ${t.id}`)}static fromArray(t){let o=new un;return t.forEach(E=>{h.isDefined(E.def.autoincrement)&&(o.autoincrement=E.def.autoincrement),h.isDefined(E.def.avgRowLength)&&(o.avgRowLength=E.def.avgRowLength),h.isDefined(E.def.charset)&&(o.charset=E.def.charset.toLowerCase()),h.isDefined(E.def.checksum)&&(o.checksum=E.def.checksum),h.isDefined(E.def.collation)&&(o.collation=E.def.collation.toLowerCase()),h.isDefined(E.def.comment)&&(o.comment=E.def.comment),h.isDefined(E.def.compression)&&(o.compression=E.def.compression.toLowerCase()),h.isDefined(E.def.connection)&&(o.connection=E.def.connection),h.isDefined(E.def.dataDirectory)&&(o.dataDirectory=E.def.dataDirectory),h.isDefined(E.def.indexDirectory)&&(o.indexDirectory=E.def.indexDirectory),h.isDefined(E.def.delayKeyWrite)&&(o.delayKeyWrite=E.def.delayKeyWrite),h.isDefined(E.def.encryption)&&(o.encryption=E.def.encryption.toLowerCase()),h.isDefined(E.def.encryptionKeyId)&&(o.encryptionKeyId=E.def.encryptionKeyId),h.isDefined(E.def.ietfQuotes)&&(o.ietfQuotes=E.def.ietfQuotes.toLowerCase()),h.isDefined(E.def.engine)&&(o.engine=E.def.engine),h.isDefined(E.def.insertMethod)&&(o.insertMethod=E.def.insertMethod.toLowerCase()),h.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),h.isDefined(E.def.maxRows)&&(o.maxRows=E.def.maxRows),h.isDefined(E.def.minRows)&&(o.minRows=E.def.minRows),h.isDefined(E.def.packKeys)&&(h.isString(E.def.packKeys)?o.packKeys=E.def.packKeys.toLowerCase():o.packKeys=E.def.packKeys),h.isDefined(E.def.pageChecksum)&&(o.pageChecksum=E.def.pageChecksum),h.isDefined(E.def.password)&&(o.password=E.def.password),h.isDefined(E.def.rowFormat)&&(o.rowFormat=E.def.rowFormat.toLowerCase()),h.isDefined(E.def.statsAutoRecalc)&&(h.isString(E.def.statsAutoRecalc)?o.statsAutoRecalc=E.def.statsAutoRecalc.toLowerCase():o.statsAutoRecalc=E.def.statsAutoRecalc),h.isDefined(E.def.statsPersistent)&&(h.isString(E.def.statsPersistent)?o.statsPersistent=E.def.statsPersistent.toLowerCase():o.statsPersistent=E.def.statsPersistent),h.isDefined(E.def.statsSamplePages)&&(h.isString(E.def.statsSamplePages)?o.statsSamplePages=E.def.statsSamplePages.toLowerCase():o.statsSamplePages=E.def.statsSamplePages),h.isDefined(E.def.transactional)&&(o.transactional=E.def.transactional),h.isDefined(E.def.withSystemVersioning)&&(o.withSystemVersioning=E.def.withSystemVersioning),h.isDefined(E.def.tablespaceName)&&(o.tablespaceName=E.def.tablespaceName),h.isDefined(E.def.tablespaceStorage)&&(o.tablespaceStorage=E.def.tablespaceStorage.toLowerCase()),h.isDefined(E.def.union)&&(o.union=E.def.union)}),o}toJSON(){let t={};return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union),t}clone(){let t=new un;return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union.slice()),t}mergeWith(t){h.isDefined(t.autoincrement)&&(this.autoincrement=t.autoincrement),h.isDefined(t.avgRowLength)&&(this.avgRowLength=t.avgRowLength),h.isDefined(t.charset)&&(this.charset=t.charset),h.isDefined(t.checksum)&&(this.checksum=t.checksum),h.isDefined(t.collation)&&(this.collation=t.collation),h.isDefined(t.comment)&&(this.comment=t.comment),h.isDefined(t.compression)&&(this.compression=t.compression),h.isDefined(t.connection)&&(this.connection=t.connection),h.isDefined(t.dataDirectory)&&(this.dataDirectory=t.dataDirectory),h.isDefined(t.indexDirectory)&&(this.indexDirectory=t.indexDirectory),h.isDefined(t.delayKeyWrite)&&(this.delayKeyWrite=t.delayKeyWrite),h.isDefined(t.encryption)&&(this.encryption=t.encryption),h.isDefined(t.encryptionKeyId)&&(this.encryptionKeyId=t.encryptionKeyId),h.isDefined(t.ietfQuotes)&&(this.ietfQuotes=t.ietfQuotes),h.isDefined(t.engine)&&(this.engine=t.engine),h.isDefined(t.insertMethod)&&(this.insertMethod=t.insertMethod),h.isDefined(t.keyBlockSize)&&(this.keyBlockSize=t.keyBlockSize),h.isDefined(t.maxRows)&&(this.maxRows=t.maxRows),h.isDefined(t.minRows)&&(this.minRows=t.minRows),h.isDefined(t.packKeys)&&(this.packKeys=t.packKeys),h.isDefined(t.pageChecksum)&&(this.pageChecksum=t.pageChecksum),h.isDefined(t.password)&&(this.password=t.password),h.isDefined(t.rowFormat)&&(this.rowFormat=t.rowFormat),h.isDefined(t.statsAutoRecalc)&&(this.statsAutoRecalc=t.statsAutoRecalc),h.isDefined(t.statsPersistent)&&(this.statsPersistent=t.statsPersistent),h.isDefined(t.statsSamplePages)&&(this.statsSamplePages=t.statsSamplePages),h.isDefined(t.transactional)&&(this.transactional=t.transactional),h.isDefined(t.withSystemVersioning)&&(this.withSystemVersioning=t.withSystemVersioning),h.isDefined(t.tablespaceName)&&(this.tablespaceName=t.tablespaceName),h.isDefined(t.tablespaceStorage)&&(this.tablespaceStorage=t.tablespaceStorage),h.isDefined(t.union)&&(this.union=t.union.slice())}};ar.TableOptions=un});var Nu=Q(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.ColumnReferenceOn=void 0;var xn=class{static fromObject(t){let o=new xn;return o.action=t.action.toLowerCase(),o.trigger=t.trigger.toLowerCase(),o}toJSON(){return{trigger:this.trigger,action:this.action}}clone(){return xn.fromObject(this)}};pr.ColumnReferenceOn=xn});var Ks=Q(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IndexColumn=void 0;var $r=he(),an=class{static fromDef(t){if(t.id==="P_INDEX_COLUMN")return an.fromObject(t.def);throw new TypeError(`Unknown json id to build index column from: ${t.id}`)}static fromObject(t){let o=new an;return o.column=t.column,t.length&&(o.length=t.length),t.sort&&(o.sort=t.sort),o}toJSON(){let t={column:this.column};return $r.isDefined(this.length)&&(t.length=this.length),$r.isDefined(this.sort)&&(t.sort=this.sort),t}clone(){let t=new an;return t.column=this.column,$r.isDefined(this.length)&&(t.length=this.length),$r.isDefined(this.sort)&&(t.sort=this.sort),t}};Tr.IndexColumn=an});var Ro=Q(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.ColumnReference=void 0;var Su=he(),fc=Nu(),Ac=Ks(),Pn=class{constructor(){this.columns=[],this.on=[]}static fromDef(t){if(t.id==="P_COLUMN_REFERENCE"){let o=t.def,E=new Pn;return E.table=o.table,o.match&&(E.match=o.match.toLowerCase()),o.columns.length&&(E.columns=o.columns.map(Ac.IndexColumn.fromDef)),o.on.length&&(E.on=o.on.map(fc.ColumnReferenceOn.fromObject)),E}throw new TypeError(`Unknown json id to build column reference from: ${t.id}`)}toJSON(){let t={table:this.table};return Su.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.toJSON())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.toJSON())),t}clone(){let t=new Pn;return t.table=this.table,Su.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.clone())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.clone())),t}};lr.ColumnReference=Pn});var ho=Q(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.ColumnOptions=void 0;var ce=he(),Dn=class{static fromArray(t){let o=new Dn;return t.forEach(E=>{Object.assign(o,E.def)}),o.collation&&(o.collation=o.collation.toLowerCase()),o.charset&&(o.charset=o.charset.toLowerCase()),o.storage&&(o.storage=o.storage.toLowerCase()),o.format&&(o.format=o.format.toLowerCase()),ce.isDefined(o.nullable)||(o.nullable=!0),o.zerofill&&(o.unsigned=!0),o.primary&&(o.nullable=!1),o}toJSON(){let t={};return ce.isDefined(this.unsigned)&&(t.unsigned=this.unsigned),ce.isDefined(this.zerofill)&&(t.zerofill=this.zerofill),ce.isDefined(this.charset)&&(t.charset=this.charset),ce.isDefined(this.collation)&&(t.collation=this.collation),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.default)&&(t.default=this.default),ce.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),ce.isDefined(this.unique)&&(t.unique=this.unique),ce.isDefined(this.primary)&&(t.primary=this.primary),ce.isDefined(this.invisible)&&(t.invisible=this.invisible),ce.isDefined(this.format)&&(t.format=this.format),ce.isDefined(this.storage)&&(t.storage=this.storage),ce.isDefined(this.comment)&&(t.comment=this.comment),ce.isDefined(this.onUpdate)&&(t.onUpdate=this.onUpdate),ce.isString(t.default)&&t.default.toLowerCase()==="null"&&(t.default=null),ce.isDefined(this.invisibleWithSystemVersioning)&&(t.invisibleWithSystemVersioning=this.invisibleWithSystemVersioning),ce.isDefined(this.invisibleWithoutSystemVersioning)&&(t.invisibleWithoutSystemVersioning=this.invisibleWithoutSystemVersioning),t}mergeWith(t){Object.getOwnPropertyNames(t).forEach(o=>{let E=t[o];ce.isDefined(E)&&ce.setProperty(this,o,E)})}clone(){let t=new Dn;return Object.getOwnPropertyNames(this).forEach(o=>{let E=this[o];ce.isDefined(E)&&ce.setProperty(t,o,E)}),t}};fr.ColumnOptions=Dn});var dn=Q(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.IndexOptions=void 0;var de=he(),Kn=class{static fromArray(t){let o=new Kn;return t.forEach(E=>{de.isDefined(E.def.comment)&&(o.comment=E.def.comment.toLowerCase()),de.isDefined(E.def.indexType)&&(o.indexType=E.def.indexType.def.toLowerCase()),de.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),de.isDefined(E.def.parser)&&(o.parser=E.def.parser),de.isDefined(E.def.algorithm)&&(o.algorithm=E.def.algorithm),de.isDefined(E.def.lock)&&(o.lock=E.def.lock)}),o}toJSON(){let t={};return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}clone(){let t=new Kn;return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}};Ar.IndexOptions=Kn});var mr=Q(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.PrimaryKey=void 0;var br=he(),bc=Ks(),cc=dn(),pn=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return pn.fromObject(t.def.primaryKey);throw new TypeError(`Unknown json id to build primary key from: ${t.id}`)}static fromObject(t){let o=new pn;return o.columns=t.columns.map(bc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),t.options&&t.options.length&&(o.options=cc.IndexOptions.fromArray(t.options)),o}toJSON(){var t;let o={columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return br.isDefined(this.name)&&(o.name=this.name),br.isDefined(this.options)&&(o.options=this.options.toJSON()),br.isDefined(this.indexType)&&(o.indexType=this.indexType),o}clone(){var t;let o=new pn;return o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),br.isDefined(this.indexType)&&(o.indexType=this.indexType),this.options&&(o.options=this.options.clone()),o}pushColumn(t){this.columns||(this.columns=[]),this.columns.push(t)}dropColumn(t){if(!this.columns)return!1;let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>{var T;return((T=this.columns)!==null&&T!==void 0?T:[]).some(c=>c.column===E.name)})}hasAllColumnsFromTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return((c=this.columns)!==null&&c!==void 0?c:[]).some(O=>O.column===T.name)}).length===((E=this.columns)!==null&&E!==void 0?E:[]).length}renameColumn(t,o){var E;return(E=this.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}};cr.PrimaryKey=pn});var Rr=Q(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.ForeignKey=void 0;var Ir=he(),mc=Ro(),Ic=Ks(),$n=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){if(Ir.isDefined(t.def.foreignKey))return $n.fromObject(t.def.foreignKey);throw new TypeError(`Statement ${t.id} has undefined foreignKey. Cannot format foreignKey.`)}throw new TypeError(`Unknown json id to build foreign key from: ${t.id}`)}static fromObject(t){let o=new $n;return o.columns=t.columns.map(Ic.IndexColumn.fromDef),o.reference=mc.ColumnReference.fromDef(t.reference),t.name&&(o.name=t.name),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON()),reference:this.reference.toJSON()};return Ir.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new $n;return t.columns=this.columns.map(o=>o.clone()),t.reference=this.reference.clone(),Ir.isDefined(this.name)&&(t.name=this.name),t}pushColumn(t){this.columns.push(t)}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Ir.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}hasAllColumnsFromRefTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return(c=this.reference.columns)===null||c===void 0?void 0:c.some(O=>O.column===T.name)}).length===((E=this.reference.columns)===null||E===void 0?void 0:E.length)}getReferencedTable(t){var o;return(o=t.find(E=>E.name===this.reference.table))!==null&&o!==void 0?o:void 0}referencesTableAndColumn(t,o){var E;return this.reference.table===t.name&&((E=this.reference.columns)!==null&&E!==void 0?E:[]).some(T=>T.column===o.name)}referencesTable(t){return this.reference.table===t.name}renameColumn(t,o){var E;return(E=this.reference.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}updateReferencedTableName(t){this.reference.table=t}};Or.ForeignKey=$n});var ut=Q(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.UniqueKey=void 0;var Ws=he(),Oc=dn(),Rc=Ks(),Qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Qs.fromObject(t.def.uniqueKey);if(t.id==="P_CREATE_INDEX")return Qs.fromObject(t.def);throw new TypeError(`Unknown json id to build unique key from: ${t.id}`)}static fromObject(t){let o=new Qs;return o.columns=t.columns.map(Rc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Ws.isDefined(t.options)&&t.options.length&&(o.options=Oc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new Qs;return t.columns=this.columns.map(o=>o.clone()),Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Ws.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};hr.UniqueKey=Qs});var No=Q(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.Datatype=void 0;var os=he(),Tn=class{static fromDef(t){if(t.id==="O_DATATYPE"){let o=new Tn;return Object.assign(o,t.def.def),o.datatype=Tn.filterDatatype(o.datatype),o}throw new TypeError(`Unknown json id to build datatype from: ${t.id}`)}static filterDatatype(t){let o=t.toLowerCase();return o==="integer"||o==="tinyint"||o==="smallint"||o==="mediumint"||o==="bigint"?"int":o==="numeric"?"decimal":o==="bool"?"boolean":o==="tinyblob"||o==="mediumblob"||o==="longblob"?"blob":o==="tinytext"||o==="mediumtext"||o==="longtext"?"text":o==="national char"||o==="character"||o==="nchar"?"char":o}getMaxIndexableSize(){return["int","decimal","float","double","bit","boolean","date","time","datetime","timestamp","year","json"].includes(this.datatype)||["geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection"].includes(this.datatype)?0:["blob","text","char","binary","varchar","varbinary"].includes(this.datatype)?this.length:0}toJSON(){let t={datatype:this.datatype};return os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values),t}clone(){let t=new Tn;return t.datatype=this.datatype,os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values.slice()),t}};Nr.Datatype=Tn});var yo=Q(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Column=void 0;var yu=he(),hc=Ro(),Nc=ho(),So=Ks(),Sc=mr(),yc=Rr(),Lc=ut(),Cc=No(),ln=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){let o=t.def.column;return ln.fromObject({name:o.name,datatype:o.def.datatype,reference:o.def.reference,columnDefinition:o.def.columnDefinition})}throw new TypeError(`Unknown json id to build column from: ${t.id}`)}static fromObject(t){let o=new ln;return o.name=t.name,o.type=Cc.Datatype.fromDef(t.datatype),t.reference&&(o.reference=hc.ColumnReference.fromDef(t.reference)),t.columnDefinition&&(o.options=Nc.ColumnOptions.fromArray(t.columnDefinition)),o}toJSON(){let t={name:this.name,type:this.type.toJSON()};return yu.isDefined(this.options)&&(t.options=this.options.toJSON()),yu.isDefined(this.reference)&&(t.reference=this.reference.toJSON()),t}clone(){let t=new ln;return t.name=this.name,t.type=this.type.clone(),this.options&&(t.options=this.options.clone()),t}isPrimaryKey(){return this.options?this.options.primary===!0:!1}isUniqueKey(){return this.options?this.options.unique===!0:!1}isForeignKey(){return!!this.reference}extractPrimaryKey(){if(!this.isPrimaryKey())return;delete this.options.primary;let t=new So.IndexColumn;t.column=this.name;let o=new Sc.PrimaryKey;return o.pushColumn(t),o}extractForeignKey(){if(!this.isForeignKey())return;let t=new So.IndexColumn;t.column=this.name;let o=new yc.ForeignKey;return o.pushColumn(t),o.reference=this.reference,delete this.reference,o}extractUniqueKey(){if(!this.isUniqueKey())return;delete this.options.unique;let t=new So.IndexColumn;t.column=this.name;let o=new Lc.UniqueKey;return o.columns.push(t),o}};Sr.Column=ln});var Lr=Q(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.FulltextIndex=void 0;var at=he(),xc=Ks(),Pc=dn(),qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return qs.fromObject(t.def.fulltextIndex);if(t.id==="P_CREATE_INDEX")return qs.fromObject(t.def);throw new TypeError(`Unknown json id to build fulltext index from: ${t.id}`)}static fromObject(t){let o=new qs;return o.columns=t.columns.map(xc.IndexColumn.fromDef),t.name&&(o.name=t.name),at.isDefined(t.options)&&t.options.length&&(o.options=Pc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new qs;return t.columns=this.columns.map(o=>o.clone()),at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};yr.FulltextIndex=qs});var xr=Q(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.SpatialIndex=void 0;var pt=he(),Dc=Ks(),Kc=dn(),ks=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return ks.fromObject(t.def.spatialIndex);if(t.id==="P_CREATE_INDEX")return ks.fromObject(t.def);throw new TypeError(`Unknown json id to build spatial index from: ${t.id}`)}static fromObject(t){let o=new ks;return o.columns=t.columns.map(Dc.IndexColumn.fromDef),t.name&&(o.name=t.name),pt.isDefined(t.options)&&t.options.length&&(o.options=Kc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new ks;return t.columns=this.columns.map(o=>o.clone()),pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Cr.SpatialIndex=ks});var Dr=Q(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Index=void 0;var Vs=he(),dc=Ks(),Bc=dn(),Js=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Js.fromObject(t.def.index);if(t.id==="P_CREATE_INDEX")return Js.fromObject(t.def);throw new TypeError(`Unknown json id to build index from: ${t.id}`)}static fromObject(t){let o=new Js;return o.columns=t.columns.map(dc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Vs.isDefined(t.options)&&t.options.length&&(o.options=Bc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Vs.isDefined(this.options)&&(t.options=this.options.toJSON()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new Js;return t.columns=this.columns.map(o=>o.clone()),Vs.isDefined(this.options)&&(t.options=this.options.clone()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Vs.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Pr.Index=Js});var Lu=Q(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.Table=void 0;var V=he(),vc=Oo(),gc=yo(),Mc=Lr(),Fc=xr(),Uc=Rr(),wc=ut(),Yc=mr(),Xc=Dr(),Bn=class{static fromCommonDef(t,o){if(t.id==="P_CREATE_TABLE_COMMON"){let E=t.def,T=new Bn;return T.database=o,T.name=E.table,E.tableOptions&&(T.options=vc.TableOptions.fromDef(E.tableOptions)),E.columnsDef.def.forEach(O=>{if(V.isDefined(O.def.column)){let M=gc.Column.fromDef(O);T.addColumn(M)}else V.isDefined(O.def.fulltextIndex)?T.pushFulltextIndex(Mc.FulltextIndex.fromDef(O)):V.isDefined(O.def.spatialIndex)?T.pushSpatialIndex(Fc.SpatialIndex.fromDef(O)):V.isDefined(O.def.foreignKey)?T.pushForeignKey(Uc.ForeignKey.fromDef(O)):V.isDefined(O.def.uniqueKey)?T.pushUniqueKey(wc.UniqueKey.fromDef(O)):V.isDefined(O.def.primaryKey)?T.setPrimaryKey(Yc.PrimaryKey.fromDef(O)):V.isDefined(O.def.index)&&T.pushIndex(Xc.Index.fromDef(O))}),T}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}static fromAlikeDef(t,o=[]){if(t.id==="P_CREATE_TABLE_LIKE"){let E=t.def,T=o.find(O=>O.name===E.like);if(!T)return;let c=T.clone();return c.name=E.table,c}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}toJSON(){var t;let o={name:this.name,columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.toJSON()),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.toJSON())),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.toJSON())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.toJSON())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.toJSON())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.toJSON())),V.isDefined(this.options)&&(o.options=this.options.toJSON()),o}clone(){var t;let o=new Bn;return o.database=this.database,o.name=this.name,o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),V.isDefined(this.options)&&(o.options=this.options.clone()),V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.clone()),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.clone())),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.clone())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.clone())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.clone())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.clone())),o}getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}renameTo(t){this.database.tables.forEach(o=>{var E;((E=o.foreignKeys)!==null&&E!==void 0?E:[]).filter(T=>T.referencesTable(this)).forEach(T=>T.updateReferencedTableName(t))}),this.name=t}addColumn(t,o){var E;if(!this.getColumn(t.name)&&!(t.options&&t.options.autoincrement&&((E=this.columns)!==null&&E!==void 0?E:[]).some(T=>T.options&&T.options.autoincrement))&&!(this.primaryKey&&t.options&&t.options.primary)){if(V.isArray(this.columns)||(this.columns=[]),!V.isDefined(o))this.columns.push(t);else if(!o.after)this.columns.unshift(t);else{let T=this.columns.find(M=>M.name===o.after);if(!T)return;let c=this.columns.indexOf(T),O=this.columns.splice(c+1);this.columns.push(t),this.columns=this.columns.concat(O)}this.extractColumnKeys(t)}}extractColumnKeys(t){let o=t.extractPrimaryKey(),E=t.extractForeignKey(),T=t.extractUniqueKey();o&&this.setPrimaryKey(o),E&&this.pushForeignKey(E),T&&this.pushUniqueKey(T)}moveColumn(t,o){if(!V.isDefined(this.columns)||!V.isDefined(o)||!this.columns.includes(t))return!1;let E;if(o.after&&(E=this.getColumn(o.after),!E))return!1;let T=this.columns.indexOf(t),c=this.columns.splice(T);if(c.shift(),this.columns=this.columns.concat(c),o.after){if(!E)return!1;T=this.columns.indexOf(E),c=this.columns.splice(T+1),this.columns.push(t),this.columns=this.columns.concat(c)}else this.columns.unshift(t);return!0}renameColumn(t,o){var E,T,c,O,M;return((E=this.columns)!==null&&E!==void 0?E:[]).includes(t)?(this.getTables().forEach(I=>{var L;((L=I.foreignKeys)!==null&&L!==void 0?L:[]).filter(P=>P.referencesTable(this)).forEach(P=>P.renameColumn(t,o))}),((T=this.fulltextIndexes)!==null&&T!==void 0?T:[]).forEach(I=>I.renameColumn(t,o)),((c=this.spatialIndexes)!==null&&c!==void 0?c:[]).forEach(I=>I.renameColumn(t,o)),((O=this.indexes)!==null&&O!==void 0?O:[]).forEach(I=>I.renameColumn(t,o)),((M=this.uniqueKeys)!==null&&M!==void 0?M:[]).forEach(I=>I.renameColumn(t,o)),this.primaryKey&&this.primaryKey.renameColumn(t,o),t.name=o,!0):!1}getColumnPosition(t){var o,E,T;let c=((o=this.columns)!==null&&o!==void 0?o:[]).indexOf(t);if(c===0)return{after:null};if(c+1!==((E=this.columns)!==null&&E!==void 0?E:[]).length)return{after:((T=this.columns)!==null&&T!==void 0?T:[])[c-1].name}}dropPrimaryKey(){!this.primaryKey||this.primaryKey.getColumnsFromTable(this).some(o=>o.options&&o.options.autoincrement)||delete this.primaryKey}dropColumn(t){var o;if(this.getTables().some(O=>{var M;return((M=O.foreignKeys)!==null&&M!==void 0?M:[]).some(I=>I.referencesTableAndColumn(this,t))})||!V.isDefined(this.columns)||this.columns.length===1)return;let T=this.columns.indexOf(t),c=this.columns.splice(T);c.shift(),this.columns=this.columns.concat(c),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&this.fulltextIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&this.spatialIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.indexes)&&this.indexes.length&&this.indexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&this.uniqueKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&this.foreignKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropForeignKey(O)}),V.isDefined(this.primaryKey)&&this.primaryKey.dropColumn(t.name)&&!(!((o=this.primaryKey.columns)===null||o===void 0)&&o.length)&&delete this.primaryKey}dropIndexByInstance(t){let o=this.getIndexTypeByInstance(t);if(!V.isDefined(o)||!V.isDefined(this[o]))return;let E=this[o],T=E.indexOf(t),c=E.splice(T);c.shift(),this[o]=E.concat(c)}dropForeignKey(t){if(!V.isDefined(this.foreignKeys))return;let o=this.foreignKeys.indexOf(t),E=this.foreignKeys.splice(o);E.shift(),this.foreignKeys=this.foreignKeys.concat(E)}getIndexByName(t){let o=this.getIndexTypeByName(t);if(!o)return;let E=this[o];if(!V.isArray(E))return;let T=E.find(c=>c.name===t);return T??void 0}getIndexTypeByInstance(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O===t)})}getIndexTypeByName(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O.name===t)})}getColumn(t){var o;return((o=this.columns)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}getForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}hasForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).some(E=>E.name===t)}setPrimaryKey(t){var o;this.primaryKey||!t.hasAllColumnsFromTable(this)||(((o=t.columns)!==null&&o!==void 0?o:[]).forEach(E=>{if(!E.column)return;let T=this.getColumn(E.column);!T||!T.options||(T.options.nullable=!1)}),this.primaryKey=t)}pushFulltextIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.fulltextIndexes)||(this.fulltextIndexes=[]),this.fulltextIndexes.push(t))}pushSpatialIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.spatialIndexes)||(this.spatialIndexes=[]),this.spatialIndexes.push(t))}pushUniqueKey(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.uniqueKeys)||(this.uniqueKeys=[]),this.uniqueKeys.push(t))}pushForeignKey(t){t.name&&this.getIndexByName(t.name)||(t.setIndexSizeFromTable(this),V.isDefined(this.foreignKeys)||(this.foreignKeys=[]),this.foreignKeys.push(t))}pushIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.indexes)||(this.indexes=[]),this.indexes.push(t))}};Kr.Table=Bn});var xu=Q(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.CreateTable=void 0;var Cu=Lu(),Lo=class{getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}pushTable(t){this.database.pushTable(t)}handleDef(t){if(t.id==="P_CREATE_TABLE"){let o=t.def;if(o.id==="P_CREATE_TABLE_COMMON"){let E=Cu.Table.fromCommonDef(o,this.database);E&&this.pushTable(E)}else if(o.id==="P_CREATE_TABLE_LIKE"){let E=Cu.Table.fromAlikeDef(o,this.getTables());if(!E)return;E.foreignKeys=[],E&&this.pushTable(E)}return}throw new TypeError(`Expected P_CREATE_TABLE rule to be handled but received ${t.id}`)}};dr.CreateTable=Lo});var Pu=Q(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.CreateIndex=void 0;var Gc=ut(),Hc=Lr(),Wc=xr(),Qc=Dr(),Co=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_CREATE_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=t.def.type.toLowerCase();E.includes("unique")?o.pushUniqueKey(Gc.UniqueKey.fromDef(t)):E.includes("fulltext")?o.pushFulltextIndex(Hc.FulltextIndex.fromDef(t)):E.includes("spatial")?o.pushSpatialIndex(Wc.SpatialIndex.fromDef(t)):o.pushIndex(Qc.Index.fromDef(t));return}throw new TypeError(`Expected P_CREATE_INDEX rule to be handled but received ${t.id}`)}};Br.CreateIndex=Co});var du=Q(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.AlterTable=void 0;var vn=he(),Du=Oo(),Ku=yo(),qc=Dr(),kc=mr(),Vc=ut(),Jc=Lr(),zc=xr(),Zc=Rr(),jc=ho(),em=No(),gn=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_ALTER_TABLE"){let o=this.getTable(t.def.table);if(!o)return;t.def.specs.forEach(E=>{let T=E.def.spec,c=E.def.tableOptions;if(T){let O=T.def,M=O.action,I=gn[M];vn.isFunction(I)&&I(O,o)}else c&&(o.options||(o.options=new Du.TableOptions),o.options.mergeWith(Du.TableOptions.fromDef(c)))});return}throw new TypeError(`Expected P_ALTER_TABLE rule to be handled but received ${t.id}`)}static addColumn(t,o){let E=Ku.Column.fromObject(t);E.reference&&delete E.reference,o.addColumn(E,t.position)}static addColumns(t,o){t.columns.forEach(E=>{let T=Ku.Column.fromObject(E);T.reference&&delete T.reference,o.addColumn(T)})}static addIndex(t,o){let E=qc.Index.fromObject(t);o.pushIndex(E)}static addPrimaryKey(t,o){let E=kc.PrimaryKey.fromObject(t);o.setPrimaryKey(E)}static addUniqueKey(t,o){let E=Vc.UniqueKey.fromObject(t);o.pushUniqueKey(E)}static addFulltextIndex(t,o){let E=Jc.FulltextIndex.fromObject(t);o.pushFulltextIndex(E)}static addSpatialIndex(t,o){let E=zc.SpatialIndex.fromObject(t);o.pushFulltextIndex(E)}static addForeignKey(t,o){let E=Zc.ForeignKey.fromObject(t);o.pushForeignKey(E)}static setDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||(E.options.default=t.value)}static dropDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||delete E.options.default}static changeColumn(t,o){var E,T;let c=o.getColumn(t.column);if(!c)return;let O;if(t.position){if(t.position.after&&!o.getColumn(t.position.after))return;O=t.position}else O=o.getColumnPosition(c);let M=em.Datatype.fromDef(t.datatype),I;t.columnDefinition&&(I=jc.ColumnOptions.fromArray(t.columnDefinition)),vn.isDefined(I)&&(I.primary&&o.primaryKey||I.autoincrement&&((E=o.columns)!==null&&E!==void 0?E:[]).some(L=>{var P;return L!==c&&((P=L.options)===null||P===void 0?void 0:P.autoincrement)})||(I.unique&&((T=o.uniqueKeys)===null||T===void 0?void 0:T.some(L=>L.columns.length===1&&L.columns[0].column===c.name))&&delete I.unique,O&&o.moveColumn(c,O)&&(t.newName&&t.newName!==c.name&&o.renameColumn(c,t.newName),c.type=M,c.options=I,o.extractColumnKeys(c))))}static dropColumn(t,o){let E=o.getColumn(t.column);!E||o.dropColumn(E)}static dropIndex(t,o){if(t.index.toLowerCase()==="primary"){gn.dropPrimaryKey(t,o);return}let E=o.getIndexByName(t.index);!E||o.dropIndexByInstance(E)}static dropPrimaryKey(t,o){o.dropPrimaryKey()}static dropForeignKey(t,o){let E=o.getForeignKey(t.key);!E||o.dropForeignKey(E)}static renameIndex(t,o){let E=o.getIndexByName(t.index);!E||(E.name=t.newName)}static rename(t,o){o.renameTo(t.newName)}};vr.AlterTable=gn});var Bu=Q(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.RenameTable=void 0;var xo=class{getTable(t){var o;return(o=this.database.getTable(t))!==null&&o!==void 0?o:void 0}setDatabase(t){this.database=t}getTables(){return this.database.getTables()}handleDef(t){if(t.id==="P_RENAME_TABLE"){t.def.forEach(o=>{let E=this.getTables().find(T=>T.name===o.table);!E||E.renameTo(o.newName)});return}throw new TypeError(`Expected P_RENAME_TABLE rule to be handled but received ${t.id}`)}};gr.RenameTable=xo});var vu=Q(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DropTable=void 0;var Po=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_TABLE"){t.def.forEach(o=>{let E=this.getTable(o);if(!E)return;let T=this.database.getTables();if(T.some(M=>{var I;return(I=M.foreignKeys)===null||I===void 0?void 0:I.some(L=>L.referencesTable(E))})||!E)return;let O=T.splice(T.indexOf(E));O.shift(),T=T.concat(O),this.database.setTables(T)});return}throw new TypeError(`Expected P_DROP_TABLE rule to be handled but received ${t.id}`)}};Mr.DropTable=Po});var gu=Q(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.DropIndex=void 0;var Do=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=o.getIndexByName(t.def.index);if(!E)return;o.dropIndexByInstance(E);return}throw new TypeError(`Expected P_DROP_INDEX rule to be handled but received ${t.id}`)}};Fr.DropIndex=Do});var Mu=Q(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Database=void 0;var sm=xu(),nm=Pu(),tm=du(),rm=Bu(),_m=vu(),om=gu(),$t=class{constructor(){this.ddsCollection=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseDdsCollection(t){this.ddsCollection=t,this.ddsCollection.forEach(o=>{if(!o)return;let E=o.def,T=$t.getHandler(E.id);!T||(T.setDatabase(this),T.handleDef(E))})}static getHandler(t){if(t==="P_CREATE_TABLE")return new sm.CreateTable;if(t==="P_CREATE_INDEX")return new nm.CreateIndex;if(t==="P_ALTER_TABLE")return new tm.AlterTable;if(t==="P_RENAME_TABLE")return new rm.RenameTable;if(t==="P_DROP_TABLE")return new _m.DropTable;if(t==="P_DROP_INDEX")return new om.DropIndex}};Ur.Database=$t});var Fu=Q(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.format=void 0;var im=Mu();wr.format=s=>{if(s.id==="MAIN"){let t=new im.Database;return t.parseDdsCollection(s.def),t.getTables().map(o=>o.toJSON())}throw new TypeError("Invalid JSON format provided for CompactFormatter. Please provide JSON from root element, containing { id: MAIN }.")}});var Uu=Q(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Datatype=void 0;var Mn=he(),Fn=class{static fromCompactJson(t){let o=new Fn;return o.datatype=t.datatype,Mn.isDefined(t.decimals)&&(o.decimals=t.decimals),Mn.isDefined(t.digits)&&(o.digits=t.digits),Mn.isDefined(t.fractional)&&(o.fractional=t.fractional),Mn.isDefined(t.length)&&(o.length=t.length),Mn.isDefined(t.values)&&(o.values=t.values),Mn.isDefined(t.width)&&(o.width=t.width),o}static filterDatatype(t){return t==="int"?"integer":t==="decimal"||t==="float"||t==="double"?"number":t==="boolean"?"boolean":"string"}toJSON(){let t={type:Fn.filterDatatype(this.datatype)};if(this.datatype==="int"){let o=Math.pow(2,8*this.width);this.isUnsigned?(t.minimum=0,t.maximum=o):(t.minimum=0-o/2,t.maximum=0-t.minimum-1)}else if(this.datatype==="decimal"||this.datatype==="float")t.maximum=Number(`${"9".repeat(this.digits-this.decimals)}.${"9".repeat(this.decimals)}`),this.isUnsigned?t.minimum=0:t.minimum=0-t.maximum;else if(this.datatype==="date")t.format="date";else if(this.datatype==="time")t.format="time";else if(this.datatype==="datetime")t.format="date-time";else if(this.datatype==="year")t.pattern=`\\d{1,${this.digits}}`;else if(this.datatype==="char"||this.datatype==="binary"||this.datatype==="varchar"||this.datatype==="varbinary"||this.datatype==="text")t.maxLength=this.length;else if(this.datatype==="enum")t.enum=this.values;else if(this.datatype==="set"){let o=this.values.join("|");t.pattern=`^(${o})(,(${o}))*$`}return t}};Yr.Datatype=Fn});var wu=Q(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Column=void 0;var Tt=he(),Em=Uu(),lt=class{static fromCompactJson(t){let o=new lt;o.datatype=Em.Datatype.fromCompactJson(t.type),o.name=t.name;let E=t.options;return E&&(E.unsigned&&(o.datatype.isUnsigned=E.unsigned),(E.default===null||Tt.isString(E.default)&&E.default.length)&&(o.default=E.default),Tt.isString(E.comment)&&E.comment.length&&(o.comment=E.comment),o.isNullable=E.nullable),o}toJSON(){let t={},o=this.datatype.toJSON();return this.isPrimaryKey===!0&&(t.$comment="primary key",o.minimum=1),Tt.isDefined(this.comment)&&(t.description=this.comment),Object.getOwnPropertyNames(o).forEach(E=>{let T=o[E],c=Tt.isNumber(T);(c&&Number.isFinite(T)||!c)&&Tt.setProperty(t,E,T)}),typeof this.default<"u"&&(t.default=this.default),t}};Xr.Column=lt});var Yu=Q(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.Table=void 0;var Un=he(),um=wu(),ft=class{constructor(){this.columns=[]}static fromCompactJson(t){var o;let E=new ft;E.name=t.name,Un.isDefined(t.columns)&&(E.columns=t.columns.map(c=>um.Column.fromCompactJson(c))),Un.isDefined(t.primaryKey)&&((o=t.primaryKey.columns)!==null&&o!==void 0?o:[]).map(c=>c.column).map(c=>E.columns.find(O=>O.name===c)).filter(Un.isDefined).forEach(c=>{c.isPrimaryKey=!0});let T=t.options;return T&&Un.isDefined(T.comment)&&(E.comment=T.comment),E}toJSON(t){let o={$schema:"http://json-schema.org/draft-07/schema",$comment:`JSON Schema for ${this.name} table`,$id:this.name,title:this.name,description:"",type:"object",required:[],definitions:{},properties:{}};return Un.isDefined(this.comment)?o.description=this.comment:delete o.description,this.columns.forEach(E=>{let T=E.toJSON(),c=E.name,O={};o.properties[c]={$ref:`#/definitions/${c}`},Object.getOwnPropertyNames(T).forEach(M=>{Un.setProperty(O,M,T[M])}),o.definitions[c]=O,E.isNullable===!1&&o.required.push(c)}),t.useRef===!1&&(o.properties=o.definitions,delete o.definitions),o}};Gr.Table=ft});var Xu=Q(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Database=void 0;var am=Yu(),Ko=class{constructor(){this.compactJsonTables=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseCompactJson(t){this.setTables(t.map(o=>am.Table.fromCompactJson(o)))}};Hr.Database=Ko});var Gu=Q(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.format=void 0;var pm=Xu();Wr.format=(s,t)=>{let o=new pm.Database;return o.parseCompactJson(s),o.getTables().map(T=>T.toJSON(t))}});var Wu=Q(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Parser=void 0;var Hu=bu(),$m=he(),Tm=hu(),lm=Fu(),fm=Gu(),wn=class{constructor(t="mysql"){if(this.statements=[],this.remains="",this.escaped=!1,this.quoted="",!t||t==="mysql"||t==="mariadb")this.compiledGrammar=Hu.Grammar.fromCompiled(Tm.Grammar),this.compactFormatter=lm.format,this.jsonSchemaFormatter=fm.format;else throw new TypeError(`Unsupported SQL dialect given to parser: '${t}. Please provide 'mysql', 'mariadb' or none to use default.`);this.resetParser()}feed(t){let o,E,T="",c=0;for(o=0;o1){let M=Number(O[1]),I=o+M-1;c.message=c.message.replace(/\d+/,I)}}throw this.resetParser(),this.statements=[],this.remains="",this.escaped=!1,this.quoted="",c}return this.remains="",this.escaped=!1,this.quoted="",{id:"MAIN",def:T}}toCompactJson(t){return this.compactFormatter(t??this.results)}toJsonSchemaArray(t={useRef:!0},o){return this.jsonSchemaFormatter(o??this.toCompactJson(),t)}};Qr.Parser=wn});var qu=Q(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0})});var Vu=Q(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0})});var zu=Q(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0})});var ju=Q(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0})});var ea=Q(Os=>{"use strict";var Am=Os&&Os.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),qr=Os&&Os.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&Am(t,s,o)};Object.defineProperty(Os,"__esModule",{value:!0});qr(qu(),Os);qr(Vu(),Os);qr(zu(),Os);qr(ju(),Os)});var sa=Q(zs=>{"use strict";var bm=zs&&zs.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),cm=zs&&zs.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&bm(t,s,o)};Object.defineProperty(zs,"__esModule",{value:!0});var mm=Wu();Object.defineProperty(zs,"Parser",{enumerable:!0,get:function(){return mm.Parser}});cm(ea(),zs)});var na=Q((Yn,At)=>{(function(){var s,t="4.17.21",o=200,E="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",c="Invalid `variable` option passed into `_.template`",O="__lodash_hash_undefined__",M=500,I="__lodash_placeholder__",L=1,P=2,K=4,q=1,X=2,te=1,_e=2,Se=4,re=8,ye=16,xe=32,pe=64,We=128,fs=256,Zs=512,R=30,x="...",v=800,w=16,J=1,G=2,se=3,Ee=1/0,ue=9007199254740991,Y=17976931348623157e292,Ae=0/0,Be=4294967295,Ne=Be-1,is=Be>>>1,ds=[["ary",We],["bind",te],["bindKey",_e],["curry",re],["curryRight",ye],["flip",Zs],["partial",xe],["partialRight",pe],["rearg",fs]],Pe="[object Arguments]",As="[object Array]",Bs="[object AsyncFunction]",Es="[object Boolean]",bs="[object Date]",Vr="[object DOMException]",bt="[object Error]",ct="[object Function]",Mo="[object GeneratorFunction]",us="[object Map]",Xn="[object Number]",ia="[object Null]",Rs="[object Object]",Fo="[object Promise]",Ea="[object Proxy]",Gn="[object RegExp]",as="[object Set]",Hn="[object String]",mt="[object Symbol]",ua="[object Undefined]",Wn="[object WeakMap]",aa="[object WeakSet]",Qn="[object ArrayBuffer]",fn="[object DataView]",Jr="[object Float32Array]",zr="[object Float64Array]",Zr="[object Int8Array]",jr="[object Int16Array]",e_="[object Int32Array]",s_="[object Uint8Array]",n_="[object Uint8ClampedArray]",t_="[object Uint16Array]",r_="[object Uint32Array]",pa=/\b__p \+= '';/g,$a=/\b(__p \+=) '' \+/g,Ta=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,wo=/[&<>"']/g,la=RegExp(Uo.source),fa=RegExp(wo.source),Aa=/<%-([\s\S]+?)%>/g,ba=/<%([\s\S]+?)%>/g,Yo=/<%=([\s\S]+?)%>/g,ca=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ma=/^\w*$/,Ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,__=/[\\^$.*+?()[\]{}|]/g,Oa=RegExp(__.source),o_=/^\s+/,Ra=/\s/,ha=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Na=/\{\n\/\* \[wrapped with (.+)\] \*/,Sa=/,? & /,ya=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,La=/[()=,{}\[\]\/\s]/,Ca=/\\(\\)?/g,xa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xo=/\w*$/,Pa=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,Ka=/^\[object .+?Constructor\]$/,da=/^0o[0-7]+$/i,Ba=/^(?:0|[1-9]\d*)$/,va=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,It=/($^)/,ga=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Ua="\\u20d0-\\u20ff",Go=Ma+Fa+Ua,Ho="\\u2700-\\u27bf",Wo="a-z\\xdf-\\xf6\\xf8-\\xff",wa="\\xac\\xb1\\xd7\\xf7",Ya="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xa="\\u2000-\\u206f",Ga=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qo="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",ko=wa+Ya+Xa+Ga,i_="['\u2019]",Ha="["+Ot+"]",Vo="["+ko+"]",Rt="["+Go+"]",Jo="\\d+",Wa="["+Ho+"]",zo="["+Wo+"]",Zo="[^"+Ot+ko+Jo+Ho+Wo+Qo+"]",E_="\\ud83c[\\udffb-\\udfff]",Qa="(?:"+Rt+"|"+E_+")",jo="[^"+Ot+"]",u_="(?:\\ud83c[\\udde6-\\uddff]){2}",a_="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+Qo+"]",ei="\\u200d",si="(?:"+zo+"|"+Zo+")",qa="(?:"+An+"|"+Zo+")",ni="(?:"+i_+"(?:d|ll|m|re|s|t|ve))?",ti="(?:"+i_+"(?:D|LL|M|RE|S|T|VE))?",ri=Qa+"?",_i="["+qo+"]?",ka="(?:"+ei+"(?:"+[jo,u_,a_].join("|")+")"+_i+ri+")*",Va="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ja="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oi=_i+ri+ka,za="(?:"+[Wa,u_,a_].join("|")+")"+oi,Za="(?:"+[jo+Rt+"?",Rt,u_,a_,Ha].join("|")+")",ja=RegExp(i_,"g"),ep=RegExp(Rt,"g"),p_=RegExp(E_+"(?="+E_+")|"+Za+oi,"g"),sp=RegExp([An+"?"+zo+"+"+ni+"(?="+[Vo,An,"$"].join("|")+")",qa+"+"+ti+"(?="+[Vo,An+si,"$"].join("|")+")",An+"?"+si+"+"+ni,An+"+"+ti,Ja,Va,Jo,za].join("|"),"g"),np=RegExp("["+ei+Ot+Go+qo+"]"),tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_p=-1,le={};le[Jr]=le[zr]=le[Zr]=le[jr]=le[e_]=le[s_]=le[n_]=le[t_]=le[r_]=!0,le[Pe]=le[As]=le[Qn]=le[Es]=le[fn]=le[bs]=le[bt]=le[ct]=le[us]=le[Xn]=le[Rs]=le[Gn]=le[as]=le[Hn]=le[Wn]=!1;var Te={};Te[Pe]=Te[As]=Te[Qn]=Te[fn]=Te[Es]=Te[bs]=Te[Jr]=Te[zr]=Te[Zr]=Te[jr]=Te[e_]=Te[us]=Te[Xn]=Te[Rs]=Te[Gn]=Te[as]=Te[Hn]=Te[mt]=Te[s_]=Te[n_]=Te[t_]=Te[r_]=!0,Te[bt]=Te[ct]=Te[Wn]=!1;var op={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ip={"&":"&","<":"<",">":">",'"':""","'":"'"},Ep={"&":"&","<":"<",">":">",""":'"',"'":"'"},up={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ap=parseFloat,pp=parseInt,ii=typeof global=="object"&&global&&global.Object===Object&&global,$p=typeof self=="object"&&self&&self.Object===Object&&self,De=ii||$p||Function("return this")(),$_=typeof Yn=="object"&&Yn&&!Yn.nodeType&&Yn,js=$_&&typeof At=="object"&&At&&!At.nodeType&&At,Ei=js&&js.exports===$_,T_=Ei&&ii.process,Ze=function(){try{var A=js&&js.require&&js.require("util").types;return A||T_&&T_.binding&&T_.binding("util")}catch{}}(),ui=Ze&&Ze.isArrayBuffer,ai=Ze&&Ze.isDate,pi=Ze&&Ze.isMap,$i=Ze&&Ze.isRegExp,Ti=Ze&&Ze.isSet,li=Ze&&Ze.isTypedArray;function Qe(A,N,m){switch(m.length){case 0:return A.call(N);case 1:return A.call(N,m[0]);case 2:return A.call(N,m[0],m[1]);case 3:return A.call(N,m[0],m[1],m[2])}return A.apply(N,m)}function Tp(A,N,m,d){for(var H=-1,oe=A==null?0:A.length;++H-1}function l_(A,N,m){for(var d=-1,H=A==null?0:A.length;++d-1;);return m}function Ri(A,N){for(var m=A.length;m--&&bn(N,A[m],0)>-1;);return m}function Rp(A,N){for(var m=A.length,d=0;m--;)A[m]===N&&++d;return d}var hp=c_(op),Np=c_(ip);function Sp(A){return"\\"+up[A]}function yp(A,N){return A==null?s:A[N]}function cn(A){return np.test(A)}function Lp(A){return tp.test(A)}function Cp(A){for(var N,m=[];!(N=A.next()).done;)m.push(N.value);return m}function R_(A){var N=-1,m=Array(A.size);return A.forEach(function(d,H){m[++N]=[H,d]}),m}function hi(A,N){return function(m){return A(N(m))}}function Ms(A,N){for(var m=-1,d=A.length,H=0,oe=[];++m-1}function f$(e,n){var r=this.__data__,i=wt(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}hs.prototype.clear=p$,hs.prototype.delete=$$,hs.prototype.get=T$,hs.prototype.has=l$,hs.prototype.set=f$;function Ns(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function ns(e,n,r,i,u,p){var $,l=n&L,b=n&P,S=n&K;if(r&&($=u?r(e,i,u,p):r(e)),$!==s)return $;if(!be(e))return e;var y=W(e);if(y){if($=mT(e),!l)return Ye(e,$)}else{var C=Me(e),D=C==ct||C==Mo;if(Hs(e))return _E(e,l);if(C==Rs||C==Pe||D&&!u){if($=b||D?{}:NE(e),!l)return b?ET(e,D$($,e)):iT(e,vi($,e))}else{if(!Te[C])return u?e:{};$=IT(e,C,l)}}p||(p=new $s);var B=p.get(e);if(B)return B;p.set(e,$),jE(e)?e.forEach(function(U){$.add(ns(U,n,r,U,e,p))}):zE(e)&&e.forEach(function(U,j){$.set(j,ns(U,n,r,j,e,p))});var F=S?b?k_:q_:b?Ge:Ke,z=y?s:F(e);return je(z||e,function(U,j){z&&(j=U,U=e[j]),jn($,j,ns(U,n,r,j,e,p))}),$}function K$(e){var n=Ke(e);return function(r){return gi(r,e,n)}}function gi(e,n,r){var i=r.length;if(e==null)return!i;for(e=$e(e);i--;){var u=r[i],p=n[u],$=e[u];if($===s&&!(u in e)||!p($))return!1}return!0}function Mi(e,n,r){if(typeof e!="function")throw new es(T);return ot(function(){e.apply(s,r)},n)}function et(e,n,r,i){var u=-1,p=ht,$=!0,l=e.length,b=[],S=n.length;if(!l)return b;r&&(n=fe(n,qe(r))),i?(p=l_,$=!1):n.length>=o&&(p=qn,$=!1,n=new nn(n));e:for(;++uu?0:u+r),i=i===s||i>u?u:k(i),i<0&&(i+=u),i=r>i?0:su(i);r0&&r(l)?n>1?ve(l,n-1,r,i,u):gs(u,l):i||(u[u.length]=l)}return u}var x_=pE(),wi=pE(!0);function cs(e,n){return e&&x_(e,n,Ke)}function P_(e,n){return e&&wi(e,n,Ke)}function Xt(e,n){return vs(n,function(r){return xs(e[r])})}function rn(e,n){n=Xs(n,e);for(var r=0,i=n.length;e!=null&&rn}function v$(e,n){return e!=null&&ae.call(e,n)}function g$(e,n){return e!=null&&n in $e(e)}function M$(e,n,r){return e>=ge(n,r)&&e=120&&y.length>=120)?new nn($&&y):s}y=e[0];var C=-1,D=l[0];e:for(;++C-1;)l!==e&&dt.call(l,b,1),dt.call(e,b,1);return e}function zi(e,n){for(var r=e?n.length:0,i=r-1;r--;){var u=n[r];if(r==i||u!==p){var p=u;Cs(u)?dt.call(e,u,1):w_(e,u)}}return e}function M_(e,n){return e+gt(Di()*(n-e+1))}function J$(e,n,r,i){for(var u=-1,p=Ce(vt((n-e)/(r||1)),0),$=m(p);p--;)$[i?p:++u]=e,e+=r;return $}function F_(e,n){var r="";if(!e||n<1||n>ue)return r;do n%2&&(r+=e),n=gt(n/2),n&&(e+=e);while(n);return r}function Z(e,n){return so(LE(e,n,He),e+"")}function z$(e){return Bi(Cn(e))}function Z$(e,n){var r=Cn(e);return jt(r,tn(n,0,r.length))}function tt(e,n,r,i){if(!be(e))return e;n=Xs(n,e);for(var u=-1,p=n.length,$=p-1,l=e;l!=null&&++uu?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var p=m(u);++i>>1,$=e[p];$!==null&&!Ve($)&&(r?$<=n:$=o){var S=n?null:$T(e);if(S)return St(S);$=!1,u=qn,b=new nn}else b=n?[]:l;e:for(;++i=i?e:ts(e,n,r)}var rE=Gp||function(e){return De.clearTimeout(e)};function _E(e,n){if(n)return e.slice();var r=e.length,i=yi?yi(r):new e.constructor(r);return e.copy(i),i}function H_(e){var n=new e.constructor(e.byteLength);return new Dt(n).set(new Dt(e)),n}function tT(e,n){var r=n?H_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function rT(e){var n=new e.constructor(e.source,Xo.exec(e));return n.lastIndex=e.lastIndex,n}function _T(e){return Zn?$e(Zn.call(e)):{}}function oE(e,n){var r=n?H_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function iE(e,n){if(e!==n){var r=e!==s,i=e===null,u=e===e,p=Ve(e),$=n!==s,l=n===null,b=n===n,S=Ve(n);if(!l&&!S&&!p&&e>n||p&&$&&b&&!l&&!S||i&&$&&b||!r&&b||!u)return 1;if(!i&&!p&&!S&&e=l)return b;var S=r[i];return b*(S=="desc"?-1:1)}}return e.index-n.index}function EE(e,n,r,i){for(var u=-1,p=e.length,$=r.length,l=-1,b=n.length,S=Ce(p-$,0),y=m(b+S),C=!i;++l1?r[u-1]:s,$=u>2?r[2]:s;for(p=e.length>3&&typeof p=="function"?(u--,p):s,$&&Ue(r[0],r[1],$)&&(p=u<3?s:p,u=1),n=$e(n);++i-1?u[p?n[$]:$]:s}}function lE(e){return Ls(function(n){var r=n.length,i=r,u=ss.prototype.thru;for(e&&n.reverse();i--;){var p=n[i];if(typeof p!="function")throw new es(T);if(u&&!$&&zt(p)=="wrapper")var $=new ss([],!0)}for(i=$?i:r;++i1&&ne.reverse(),y&&bl))return!1;var S=p.get(e),y=p.get(n);if(S&&y)return S==n&&y==e;var C=-1,D=!0,B=r&X?new nn:s;for(p.set(e,n),p.set(n,e);++C1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(ha,`{ +`,x+=" "+Array(R.col).join(" ")+"^",x},pe.prototype.clone=function(){return new pe(this.states,this.state)},pe.prototype.has=function(R){return!0},{compile:Se,states:ye,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:xe}})});var Iu=Q(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});var ic=he(),Ec=ic.stringArrayToMapping(["STATS_SAMPLE_PAGES","GEOMETRYCOLLECTION","STATS_AUTO_RECALC","ENCRYPTION_KEY_ID","CURRENT_TIMESTAMP","STATS_PERSISTENT","DELAY_KEY_WRITE","MULTILINESTRING","LOCALTIMESTAMP","AUTO_INCREMENT","AVG_ROW_LENGTH","UNIX_TIMESTAMP","LAST_INSERT_ID","KEY_BLOCK_SIZE","COLUMN_FORMAT","CONNECTION_ID","PAGE_CHECKSUM","TRANSACTIONAL","UTC_TIMESTAMP","INSERT_METHOD","SESSION_USER","MULTIPOLYGON","CURRENT_DATE","CURRENT_TIME","CURRENT_USER","COMPRESSION","IETF_QUOTES","SYSTEM_TIME","SYSTEM_USER","VERSIONING","MULTIPOINT","LINESTRING","CONNECTION","MEDIUMBLOB","COMPRESSED","ENCRYPTION","VALIDATION","CONSTRAINT","ROW_FORMAT","UUID_SHORT","FOUND_ROWS","TABLESPACE","REFERENCES","MEDIUMTEXT","VARBINARY","TEMPORARY","REDUNDANT","EXCLUSIVE","ROW_COUNT","LOCALTIME","MEDIUMINT","TIMESTAMP","DIRECTORY","INVISIBLE","PACK_KEYS","ALGORITHM","CHARACTER","TINYBLOB","UTC_TIME","NATIONAL","FULLTEXT","GEOMETRY","MAX_ROWS","DATABASE","LONGBLOB","UNSIGNED","TINYTEXT","DATETIME","MIN_ROWS","ZEROFILL","UTC_DATE","PASSWORD","CHECKSUM","RESTRICT","LONGTEXT","SMALLINT","CONVERT","SPATIAL","INPLACE","STORAGE","SYSDATE","FOREIGN","TINYINT","DYNAMIC","DISCARD","DISABLE","DEFAULT","DECIMAL","CURTIME","CURDATE","INTEGER","COMPACT","COMMENT","COLLATE","REPLACE","CHARSET","CASCADE","BOOLEAN","NUMERIC","OFFLINE","PRIMARY","POLYGON","VARCHAR","VERSION","WITHOUT","PARTIAL","ENABLE","MEMORY","CREATE","MODIFY","DELETE","ENGINE","UPDATE","BIGINT","SYSTEM","SIMPLE","EXISTS","RENAME","BINARY","NOWAIT","IGNORE","SHARED","IMPORT","ACTION","ONLINE","SCHEMA","PERIOD","UNIQUE","DOUBLE","CHANGE","PARSER","COLUMN","INDEX","FLOAT","POINT","ALTER","ROUND","NCHAR","MATCH","RTREE","BTREE","AFTER","USING","FORCE","TABLE","ORDER","FIXED","FIRST","FALSE","UNION","UUID","LOCK","LIKE","LAST","KEYS","CHAR","JSON","COPY","WAIT","NONE","HASH","FULL","BLOB","YEAR","USER","PAGE","TEXT","TIME","RAND","NULL","BOOL","ENUM","DATA","DROP","TRUE","WITH","DISK","DESC","DATE","ZLIB","BIT","YES","INT","KEY","NOW","SET","ADD","LZ4","NOT","FOR","ASC","USE","AS","NO","BY","ON","OR","IF","PI","TO"],s=>`K_${s}`,s=>new RegExp(`\\b${s.split("").reduce((t,o)=>(t+=`[${o.toUpperCase()}${o.toLowerCase()}]`,t),"")}\\b`));Ao.default=Ec});var Ou=Q(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default={WS:{match:/(?:\s+|#.*|-- +.*|\/\*(?:[\s\S])*?\*\/)+/,lineBreaks:!0},S_EQUAL:"=",S_LPARENS:"(",S_RPARENS:")",S_COMMA:",",S_SEMICOLON:";",S_BIT_FORMAT:{match:/b'[01]+'|0b[01]+/},S_HEXA_FORMAT:{match:/[Xx]'[0-9a-fA-F]+'|0x[0-9a-fA-F]+/},S_DQUOTE_STRING:{match:/""|"(?:(?:"")|[^"\\]|\\.)*"/,value:s=>s.substr(1,s.length-2).replace(/\\"/g,'"').replace(/""/g,'"')},S_SQUOTE_STRING:{match:/''|'(?:(?:'')|[^'\\]|\\.)*'/,value:s=>s.substr(1,s.length-2).replace(/\\'/g,"'").replace(/''/g,"'")},S_NUMBER:{match:/[+-]?(?:\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)/,value:Number},S_IDENTIFIER_QUOTED:{match:/`(?:(?:``)|[^`\\])*`/,value:s=>s.substr(1,s.length-2).replace(/``/g,"`")},S_IDENTIFIER_UNQUOTED:{match:/[0-9a-zA-Z$_]+/},S_UNKNOWN:{match:/.+/}}});var Ru=Q(Et=>{"use strict";var co=Et&&Et.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Et,"__esModule",{value:!0});function f(s){return s[0]}var uc=co(mu()),ac=co(Iu()),pc=co(Ou()),$c=Object.assign({},ac.default,pc.default),_=uc.default.compile($c),Tc={Lexer:_,ParserRules:[{name:"P_DDS$subexpression$1",symbols:["P_CREATE_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_CREATE_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_ALTER_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_DB","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_DROP_INDEX","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_RENAME_TABLE","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_SET","_"],postprocess:f},{name:"P_DDS$subexpression$1",symbols:["P_USE_DB","_"],postprocess:f},{name:"P_DDS",symbols:["_","P_DDS$subexpression$1"],postprocess:s=>({id:"P_DDS",def:s[1]})},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"_",symbols:["_$ebnf$1"]},{name:"__$ebnf$1",symbols:[_.has("WS")?{type:"WS"}:WS]},{name:"__$ebnf$1",symbols:["__$ebnf$1",_.has("WS")?{type:"WS"}:WS],postprocess:s=>s[0].concat([s[1]])},{name:"__",symbols:["__$ebnf$1"]},{name:"S_EOS",symbols:["_",_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"O_CHARSET",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_CHARSET",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_COLLATION",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_ENGINE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT],postprocess:s=>s[0].value},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_DEFAULT_VALUE$ebnf$1$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[2]?s[2].value:"")+")"},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:["O_DEFAULT_VALUE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DEFAULT_VALUE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DEFAULT_VALUE",symbols:["S_IDENTIFIER","O_DEFAULT_VALUE$ebnf$1"],postprocess:s=>{var t;return s[0]+((t=s[1])!==null&&t!==void 0?t:"")}},{name:"O_DEFAULT_VALUE",symbols:["O_QUOTED_STRING"],postprocess:f},{name:"O_QUOTED_STRING",symbols:[_.has("S_DQUOTE_STRING")?{type:"S_DQUOTE_STRING"}:S_DQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_QUOTED_STRING",symbols:[_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[0].value},{name:"O_TABLE_OPTION_VALUE",symbols:["O_QUOTED_STRING"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:["S_IDENTIFIER"],postprocess:s=>s[0]},{name:"O_TABLE_OPTION_VALUE",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_QUOTED")?{type:"S_IDENTIFIER_QUOTED"}:S_IDENTIFIER_QUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("S_IDENTIFIER_UNQUOTED")?{type:"S_IDENTIFIER_UNQUOTED"}:S_IDENTIFIER_UNQUOTED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PI")?{type:"K_PI"}:K_PI],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BY")?{type:"K_BY"}:K_BY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOR")?{type:"K_FOR"}:K_FOR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LZ4")?{type:"K_LZ4"}:K_LZ4],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOW")?{type:"K_NOW"}:K_NOW],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZLIB")?{type:"K_ZLIB"}:K_ZLIB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRUE")?{type:"K_TRUE"}:K_TRUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RAND")?{type:"K_RAND"}:K_RAND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USER")?{type:"K_USER"}:K_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID")?{type:"K_UUID"}:K_UUID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FALSE")?{type:"K_FALSE"}:K_FALSE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROUND")?{type:"K_ROUND"}:K_ROUND],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSION")?{type:"K_VERSION"}:K_VERSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURDATE")?{type:"K_CURDATE"}:K_CURDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURTIME")?{type:"K_CURTIME"}:K_CURTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSDATE")?{type:"K_SYSDATE"}:K_SYSDATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_DATE")?{type:"K_UTC_DATE"}:K_UTC_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIME")?{type:"K_UTC_TIME"}:K_UTC_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIME")?{type:"K_LOCALTIME"}:K_LOCALTIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_COUNT")?{type:"K_ROW_COUNT"}:K_ROW_COUNT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_FOUND_ROWS")?{type:"K_FOUND_ROWS"}:K_FOUND_ROWS],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UUID_SHORT")?{type:"K_UUID_SHORT"}:K_UUID_SHORT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_USER")?{type:"K_SYSTEM_USER"}:K_SYSTEM_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_USER")?{type:"K_CURRENT_USER"}:K_CURRENT_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIME")?{type:"K_CURRENT_TIME"}:K_CURRENT_TIME],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_DATE")?{type:"K_CURRENT_DATE"}:K_CURRENT_DATE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_SESSION_USER")?{type:"K_SESSION_USER"}:K_SESSION_USER],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UTC_TIMESTAMP")?{type:"K_UTC_TIMESTAMP"}:K_UTC_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CONNECTION_ID")?{type:"K_CONNECTION_ID"}:K_CONNECTION_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LAST_INSERT_ID")?{type:"K_LAST_INSERT_ID"}:K_LAST_INSERT_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_UNIX_TIMESTAMP")?{type:"K_UNIX_TIMESTAMP"}:K_UNIX_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_LOCALTIMESTAMP")?{type:"K_LOCALTIMESTAMP"}:K_LOCALTIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:s=>s[0].value},{name:"S_IDENTIFIER",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES],postprocess:s=>s[0].value},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_ALTER_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_ALTER_DB$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$1",symbols:["P_ALTER_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_DB$ebnf$2$subexpression$1",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2$subexpression$1"]},{name:"P_ALTER_DB$ebnf$2$subexpression$2",symbols:["__","O_ALTER_DB_SPEC"],postprocess:s=>s[1]},{name:"P_ALTER_DB$ebnf$2",symbols:["P_ALTER_DB$ebnf$2","P_ALTER_DB$ebnf$2$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_DB",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_DB$subexpression$1","P_ALTER_DB$ebnf$1","P_ALTER_DB$ebnf$2","S_EOS"],postprocess:s=>({id:"P_ALTER_DB",def:{database:s[3],meta:s[4]}})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$1","O_ALTER_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_DB_SPEC$subexpression$1",symbols:["O_ALTER_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_ALTER_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_ALTER_DB_SPEC",symbols:["O_ALTER_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_DB_SPEC",def:s[0]})},{name:"P_ALTER_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_ALTER_TABLE$ebnf$1",symbols:["P_ALTER_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$2$subexpression$1",symbols:[_.has("K_IGNORE")?{type:"K_IGNORE"}:K_IGNORE,"__"]},{name:"P_ALTER_TABLE$ebnf$2",symbols:["P_ALTER_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"__"]},{name:"P_ALTER_TABLE$ebnf$3$subexpression$1",symbols:[_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT,"__"]},{name:"P_ALTER_TABLE$ebnf$3",symbols:["P_ALTER_TABLE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_ALTER_TABLE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_ALTER_TABLE$ebnf$4",symbols:[]},{name:"P_ALTER_TABLE$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_ALTER_TABLE_SPECS"],postprocess:s=>s[3]},{name:"P_ALTER_TABLE$ebnf$4",symbols:["P_ALTER_TABLE$ebnf$4","P_ALTER_TABLE$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_ALTER_TABLE",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","P_ALTER_TABLE$ebnf$1","P_ALTER_TABLE$ebnf$2",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","__","P_ALTER_TABLE$ebnf$3","P_ALTER_TABLE_SPECS","P_ALTER_TABLE$ebnf$4","S_EOS"],postprocess:s=>({id:"P_ALTER_TABLE",def:{table:s[6],specs:[s[9]].concat(s[10])}})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS"],postprocess:s=>({tableOptions:s[0]})},{name:"P_ALTER_TABLE_SPECS$subexpression$1",symbols:["O_ALTER_TABLE_SPEC"],postprocess:s=>({spec:s[0]})},{name:"P_ALTER_TABLE_SPECS",symbols:["P_ALTER_TABLE_SPECS$subexpression$1"],postprocess:s=>({id:"P_ALTER_TABLE_SPECS",def:s[0]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$1","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$4"],postprocess:s=>{var t;let o={action:"addColumn",name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[],position:s[8]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1",symbols:["__",_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={name:s[3],datatype:s[5],columnDefinition:(t=s[6])!==null&&t!==void 0?t:[]};return s[7]&&(o.reference=s[7]),o}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1",symbols:["S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$1","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$2","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1$ebnf$3"],postprocess:s=>{var t,o;let E={name:s[0],datatype:s[2],columnDefinition:(t=s[3])!==null&&t!==void 0?t:[]};return s[4]&&(E.reference=s[4]),[E].concat((o=s[5])!==null&&o!==void 0?o:[])}},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$5","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addColumns",columns:s[5]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$2","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$6","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$7","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$8","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$9"],postprocess:s=>{var t;return{action:"addIndex",name:s[3],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$10",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$11","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$12","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$13"],postprocess:s=>{var t;return{action:"addPrimaryKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$14",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$15","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$16","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$17","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$18","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$19"],postprocess:s=>{var t;return s[5]&&["index","key"].includes(s[5].toLowerCase())&&(s[5]=void 0),{action:"addUniqueKey",name:s[2],index:s[6],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),options:s[14]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$20","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$21","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$22","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$23"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addFulltextIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$24","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$25","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$26","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$27"],postprocess:s=>{var t;return s[4]&&["index","key"].includes(s[4].toLowerCase())&&(s[4]=void 0),{action:"addSpatialIndex",name:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$28",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$29","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$30","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{action:"addForeignKey",name:s[2],columns:[s[10]].concat((t=s[11])!==null&&t!==void 0?t:[]),reference:s[15]}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$3","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$4"],postprocess:s=>({action:"changeAlgorithm",algorithm:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$31","S_IDENTIFIER","__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({action:"setDefaultColumnValue",column:s[3],value:s[9]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ALTER")?{type:"K_ALTER"}:K_ALTER,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$32","S_IDENTIFIER","__",_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>({action:"dropDefaultColumnValue",column:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CHANGE")?{type:"K_CHANGE"}:K_CHANGE,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$33","S_IDENTIFIER","__","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$34","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$35","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$36"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:s[5],datatype:s[7],columnDefinition:s[8],position:s[10]};return s[9]&&(t.reference=s[9]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:s=>({after:null})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1",symbols:["__",_.has("K_AFTER")?{type:"K_AFTER"}:K_AFTER,"__","S_IDENTIFIER"],postprocess:s=>({after:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_MODIFY")?{type:"K_MODIFY"}:K_MODIFY,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$37","S_IDENTIFIER","__","O_DATATYPE","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$38","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$39","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$40"],postprocess:s=>{let t={action:"changeColumn",column:s[3],newName:void 0,datatype:s[5],columnDefinition:s[6],position:s[8]};return s[7]&&(t.reference=s[7]),t}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1",symbols:["__",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_CONVERT")?{type:"K_CONVERT"}:K_CONVERT,"__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$5","__","O_CHARSET","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$41"],postprocess:s=>({action:"convertToCharacterSet",charset:s[6],collate:s[7]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ENABLE")?{type:"K_ENABLE"}:K_ENABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"enableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISABLE")?{type:"K_DISABLE"}:K_DISABLE,"__",_.has("K_KEYS")?{type:"K_KEYS"}:K_KEYS],postprocess:s=>({action:"disableKeys"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DISCARD")?{type:"K_DISCARD"}:K_DISCARD,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"discardTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_IMPORT")?{type:"K_IMPORT"}:K_IMPORT,"__",_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE],postprocess:s=>({action:"importTablespace"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1",symbols:[_.has("K_COLUMN")?{type:"K_COLUMN"}:K_COLUMN,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1",symbols:[_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$42","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$43","S_IDENTIFIER"],postprocess:s=>({action:"dropColumn",column:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$6","__","S_IDENTIFIER"],postprocess:s=>({action:"dropIndex",index:s[4]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({action:"dropPrimaryKey"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"__","S_IDENTIFIER"],postprocess:s=>({action:"dropForeignKey",key:s[6]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_FORCE")?{type:"K_FORCE"}:K_FORCE],postprocess:s=>({action:"force"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$7","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$8"],postprocess:s=>({action:"changeLock",lock:s[2].value})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:[]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ORDER")?{type:"K_ORDER"}:K_ORDER,"__",_.has("K_BY")?{type:"K_BY"}:K_BY,"__","S_IDENTIFIER","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$44"],postprocess:s=>{var t;return{action:"orderBy",columns:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$subexpression$9","__","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({action:"renameIndex",index:s[4],newName:s[8]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_TO")?{type:"K_TO"}:K_TO,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1",symbols:[_.has("K_AS")?{type:"K_AS"}:K_AS,"__"]},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:["O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45$subexpression$1"],postprocess:f},{name:"O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45",symbols:[],postprocess:()=>null},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__","O_ALTER_TABLE_SPEC$subexpression$1$ebnf$45","S_IDENTIFIER"],postprocess:s=>({action:"rename",newName:s[3]})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_VALIDATION")?{type:"K_VALIDATION"}:K_VALIDATION],postprocess:s=>({action:"withoutValidation"})},{name:"O_ALTER_TABLE_SPEC$subexpression$1",symbols:[_.has("K_ADD")?{type:"K_ADD"}:K_ADD,"__",_.has("K_PERIOD")?{type:"K_PERIOD"}:K_PERIOD,"__",_.has("K_FOR")?{type:"K_FOR"}:K_FOR,"__",_.has("K_SYSTEM_TIME")?{type:"K_SYSTEM_TIME"}:K_SYSTEM_TIME,"_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({action:"addPeriodForSystemTime",startColumnName:s[10],endColumnName:s[14]})},{name:"O_ALTER_TABLE_SPEC",symbols:["O_ALTER_TABLE_SPEC$subexpression$1"],postprocess:s=>({id:"O_ALTER_TABLE_SPEC",def:s[0]})},{name:"P_CREATE_DB$ebnf$1$subexpression$1",symbols:[_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE,"__"]},{name:"P_CREATE_DB$ebnf$1",symbols:["P_CREATE_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_CREATE_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT]},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:["P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"P_CREATE_DB$ebnf$2$subexpression$1$ebnf$1","__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_DB$ebnf$2",symbols:["P_CREATE_DB$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_DB$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_DB$ebnf$3",symbols:[]},{name:"P_CREATE_DB$ebnf$3$subexpression$1",symbols:["__","O_CREATE_DB_SPEC"],postprocess:s=>s[1]},{name:"P_CREATE_DB$ebnf$3",symbols:["P_CREATE_DB$ebnf$3","P_CREATE_DB$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_DB",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"__","P_CREATE_DB$ebnf$1","P_CREATE_DB$subexpression$1","P_CREATE_DB$ebnf$2","__","S_IDENTIFIER","P_CREATE_DB$ebnf$3","S_EOS"],postprocess:s=>({id:"P_CREATE_DB",def:{database:s[6],meta:s[7]}})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$1","O_CREATE_DB_SPEC$subexpression$1$subexpression$2","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_DB_SPEC$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["__"]},{name:"O_CREATE_DB_SPEC$subexpression$1$subexpression$3",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_DB_SPEC$subexpression$1",symbols:["O_CREATE_DB_SPEC$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_DB_SPEC$subexpression$1$subexpression$3","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_DB_SPEC",symbols:["O_CREATE_DB_SPEC$subexpression$1"],postprocess:s=>({id:"O_CREATE_DB_SPEC",def:s[0]})},{name:"P_CREATE_INDEX$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_INDEX$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE]},{name:"P_CREATE_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE]},{name:"P_CREATE_INDEX$ebnf$2",symbols:["P_CREATE_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$3",symbols:["P_CREATE_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$4$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_INDEX$ebnf$4",symbols:["P_CREATE_INDEX$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$5$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$5",symbols:["P_CREATE_INDEX$ebnf$5$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$6$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_CREATE_INDEX$ebnf$6$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_INDEX$ebnf$6",symbols:["P_CREATE_INDEX$ebnf$6$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$6",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_CREATE_INDEX$ebnf$7$subexpression$1",symbols:["_",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_CREATE_INDEX$ebnf$7",symbols:["P_CREATE_INDEX$ebnf$7$subexpression$1"],postprocess:f},{name:"P_CREATE_INDEX$ebnf$7",symbols:[],postprocess:()=>null},{name:"P_CREATE_INDEX$ebnf$8",symbols:[]},{name:"P_CREATE_INDEX$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$8",symbols:["P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX$ebnf$9",symbols:[]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9$subexpression$1",symbols:["_","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_INDEX$ebnf$9",symbols:["P_CREATE_INDEX$ebnf$9","P_CREATE_INDEX$ebnf$9$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_INDEX",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_INDEX$ebnf$1","P_CREATE_INDEX$ebnf$2","P_CREATE_INDEX$ebnf$3","__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_CREATE_INDEX$ebnf$4","__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$5","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_CREATE_INDEX$ebnf$6","P_CREATE_INDEX$ebnf$7","P_CREATE_INDEX$ebnf$8","P_CREATE_INDEX$ebnf$9","S_EOS"],postprocess:s=>{var t,o;let E=s[3]?s[3].value+" ":"";return E=E+s[5].value,{id:"P_CREATE_INDEX",def:{name:s[8],type:E,index:s[9],table:s[13],columns:s[14],options:((t=s[16])!==null&&t!==void 0?t:[]).concat((o=s[17])!==null&&o!==void 0?o:[])}}}},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_ASC")?{type:"K_ASC"}:K_ASC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1",symbols:["_",_.has("K_DESC")?{type:"K_DESC"}:K_DESC],postprocess:s=>s[1]},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN$ebnf$1$subexpression$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$1","P_INDEX_COLUMN$ebnf$1$subexpression$1$ebnf$2"],postprocess:s=>({length:s[0]?s[0].value:void 0,sort:s[1]?s[1].value:void 0})},{name:"P_INDEX_COLUMN$ebnf$1",symbols:["P_INDEX_COLUMN$ebnf$1$subexpression$1"],postprocess:f},{name:"P_INDEX_COLUMN$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_INDEX_COLUMN",symbols:["S_IDENTIFIER","P_INDEX_COLUMN$ebnf$1"],postprocess:s=>({id:"P_INDEX_COLUMN",def:{column:s[0],length:s[1]&&s[1].length?s[1].length:void 0,sort:s[1]&&s[1].sort?s[1].sort:void 0}})},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_BTREE")?{type:"K_BTREE"}:K_BTREE],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_HASH")?{type:"K_HASH"}:K_HASH],postprocess:f},{name:"P_INDEX_TYPE$subexpression$1",symbols:[_.has("K_RTREE")?{type:"K_RTREE"}:K_RTREE],postprocess:f},{name:"P_INDEX_TYPE",symbols:[_.has("K_USING")?{type:"K_USING"}:K_USING,"__","P_INDEX_TYPE$subexpression$1"],postprocess:s=>({id:"P_INDEX_TYPE",def:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_INDEX_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_INDEX_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_INDEX_OPTION$subexpression$1",symbols:["P_INDEX_TYPE"],postprocess:s=>({indexType:s[0]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_PARSER")?{type:"K_PARSER"}:K_PARSER,"__","S_IDENTIFIER"],postprocess:s=>({parser:s[4]})},{name:"O_INDEX_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_INDEX_OPTION",symbols:["O_INDEX_OPTION$subexpression$1"],postprocess:s=>({id:"O_INDEX_OPTION",def:s[0]})},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["__"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_INPLACE")?{type:"K_INPLACE"}:K_INPLACE],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION$subexpression$2",symbols:[_.has("K_COPY")?{type:"K_COPY"}:K_COPY],postprocess:f},{name:"P_INDEX_ALGORITHM_OPTION",symbols:[_.has("K_ALGORITHM")?{type:"K_ALGORITHM"}:K_ALGORITHM,"P_INDEX_ALGORITHM_OPTION$subexpression$1","P_INDEX_ALGORITHM_OPTION$subexpression$2"],postprocess:s=>({id:"P_INDEX_ALGORITHM_OPTION",def:{algorithm:s[2].value}})},{name:"P_LOCK_OPTION$subexpression$1",symbols:["__"]},{name:"P_LOCK_OPTION$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_NONE")?{type:"K_NONE"}:K_NONE],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_SHARED")?{type:"K_SHARED"}:K_SHARED],postprocess:f},{name:"P_LOCK_OPTION$subexpression$2",symbols:[_.has("K_EXCLUSIVE")?{type:"K_EXCLUSIVE"}:K_EXCLUSIVE],postprocess:f},{name:"P_LOCK_OPTION",symbols:[_.has("K_LOCK")?{type:"K_LOCK"}:K_LOCK,"P_LOCK_OPTION$subexpression$1","P_LOCK_OPTION$subexpression$2"],postprocess:s=>({id:"P_LOCK_OPTION",def:{lock:s[2].value}})},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_COMMON"],postprocess:f},{name:"P_CREATE_TABLE$subexpression$1",symbols:["P_CREATE_TABLE_LIKE"],postprocess:f},{name:"P_CREATE_TABLE",symbols:["P_CREATE_TABLE$subexpression$1"],postprocess:s=>({id:"P_CREATE_TABLE",def:s[0]})},{name:"P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:["P_CREATE_TABLE_COMMON$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:["P_CREATE_TABLE_COMMON$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:["P_CREATE_TABLE_COMMON$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1",symbols:["_","P_CREATE_TABLE_OPTIONS"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:["P_CREATE_TABLE_COMMON$ebnf$4$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_COMMON$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_COMMON",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_COMMON$ebnf$1","P_CREATE_TABLE_COMMON$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_COMMON$ebnf$3","__","S_IDENTIFIER","_","P_CREATE_TABLE_CREATE_DEFINITIONS","P_CREATE_TABLE_COMMON$ebnf$4","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_COMMON",def:{table:s[7],columnsDef:s[9],tableOptions:s[10]}})},{name:"P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1",symbols:["__",_.has("K_OR")?{type:"K_OR"}:K_OR,"__",_.has("K_REPLACE")?{type:"K_REPLACE"}:K_REPLACE]},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:["P_CREATE_TABLE_LIKE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1",symbols:["__",_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY]},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:["P_CREATE_TABLE_LIKE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:["P_CREATE_TABLE_LIKE$ebnf$3$subexpression$1"],postprocess:f},{name:"P_CREATE_TABLE_LIKE$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["__",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_LIKE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("K_LIKE")?{type:"K_LIKE"}:K_LIKE,"__","S_IDENTIFIER","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[5]},{name:"P_CREATE_TABLE_LIKE",symbols:[_.has("K_CREATE")?{type:"K_CREATE"}:K_CREATE,"P_CREATE_TABLE_LIKE$ebnf$1","P_CREATE_TABLE_LIKE$ebnf$2","__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_CREATE_TABLE_LIKE$ebnf$3","__","S_IDENTIFIER","P_CREATE_TABLE_LIKE$subexpression$1","S_EOS"],postprocess:s=>({id:"P_CREATE_TABLE_LIKE",def:{table:s[7],like:s[8]}})},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","O_CREATE_TABLE_CREATE_DEFINITION"],postprocess:s=>s[3]},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1",symbols:["P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1$ebnf$1"],postprocess:s=>{var t;return[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}},{name:"P_CREATE_TABLE_CREATE_DEFINITIONS",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_CREATE_TABLE_CREATE_DEFINITIONS$subexpression$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({id:"P_CREATE_TABLE_CREATE_DEFINITIONS",def:s[2]})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","O_COLUMN_DEFINITION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_COLUMN_REFERENCE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1",symbols:["O_DATATYPE","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$1","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1$ebnf$2"],postprocess:s=>{var t;let o={datatype:s[0],columnDefinition:(t=s[1])!==null&&t!==void 0?t:[]};return s[2]&&(o.reference=s[2]),o}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["S_IDENTIFIER","_","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({column:{name:s[0],def:s[2]}})},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$1",_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$2","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$3","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$4"],postprocess:s=>{var t;return{primaryKey:{name:s[0],index:s[4],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$subexpression$2","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$5","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$6","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$7","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$8"],postprocess:s=>{var t;return{index:{name:s[1],index:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1",symbols:["__","P_INDEX_TYPE"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$9",_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$10","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$11","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$12","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$13","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$14"],postprocess:s=>{var t,o;return s[3]&&["index","key"].includes(s[3].toLowerCase())&&(s[3]=void 0),{uniqueKey:{name:s[3],index:(t=s[4])!==null&&t!==void 0?t:void 0,columns:[s[8]].concat((o=s[9])!==null&&o!==void 0?o:[]),options:s[12]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_FULLTEXT")?{type:"K_FULLTEXT"}:K_FULLTEXT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$15","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$16","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$17","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$18"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{fulltextIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1",symbols:["_","O_INDEX_OPTION"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:[_.has("K_SPATIAL")?{type:"K_SPATIAL"}:K_SPATIAL,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$19","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$20","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$21","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$22"],postprocess:s=>{var t;return s[2]&&["index","key"].includes(s[2].toLowerCase())&&(s[2]=void 0),{spatialIndex:{name:s[2],columns:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[]),options:s[10]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1",symbols:[_.has("K_CONSTRAINT")?{type:"K_CONSTRAINT"}:K_CONSTRAINT,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1$ebnf$1","__"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1",symbols:["__","S_IDENTIFIER"],postprocess:s=>s[1]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:[]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$23",_.has("K_FOREIGN")?{type:"K_FOREIGN"}:K_FOREIGN,"__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY,"O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$24","_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1$ebnf$25","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_","P_COLUMN_REFERENCE"],postprocess:s=>{var t;return{foreignKey:{name:s[0],columns:[s[8]].concat((t=s[9])!==null&&t!==void 0?t:[]),reference:s[13]}}}},{name:"O_CREATE_TABLE_CREATE_DEFINITION",symbols:["O_CREATE_TABLE_CREATE_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_CREATE_DEFINITION",def:s[0]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNSIGNED")?{type:"K_UNSIGNED"}:K_UNSIGNED],postprocess:s=>({unsigned:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ZEROFILL")?{type:"K_ZEROFILL"}:K_ZEROFILL],postprocess:s=>({zerofill:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET,"__","O_CHARSET"],postprocess:s=>({charset:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET,"__","O_CHARSET"],postprocess:s=>({charset:s[4]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"__","O_COLLATION"],postprocess:s=>({collation:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NOT")?{type:"K_NOT"}:K_NOT,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!1})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>({nullable:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__","O_DEFAULT_VALUE"],postprocess:s=>({default:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT],postprocess:s=>({autoincrement:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1",symbols:["__",_.has("K_KEY")?{type:"K_KEY"}:K_KEY]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_UNIQUE")?{type:"K_UNIQUE"}:K_UNIQUE,"O_COLUMN_DEFINITION$subexpression$1$ebnf$1"],postprocess:s=>({unique:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_PRIMARY")?{type:"K_PRIMARY"}:K_PRIMARY,"__"]},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$2",_.has("K_KEY")?{type:"K_KEY"}:K_KEY],postprocess:s=>({primary:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"__","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE,"__",_.has("K_WITHOUT")?{type:"K_WITHOUT"}:K_WITHOUT,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({invisibleWithoutSystemVersioning:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_INVISIBLE")?{type:"K_INVISIBLE"}:K_INVISIBLE],postprocess:s=>({invisible:!0})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_COLUMN_FORMAT")?{type:"K_COLUMN_FORMAT"}:K_COLUMN_FORMAT,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$1"],postprocess:s=>({format:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$subexpression$2",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_COLUMN_DEFINITION$subexpression$1$subexpression$2"],postprocess:s=>({storage:s[2].value})},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>"("+(s[3]?s[3].value:"")+")"},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:["O_COLUMN_DEFINITION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_COLUMN_DEFINITION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_COLUMN_DEFINITION$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__",_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE,"__",_.has("K_CURRENT_TIMESTAMP")?{type:"K_CURRENT_TIMESTAMP"}:K_CURRENT_TIMESTAMP,"O_COLUMN_DEFINITION$subexpression$1$ebnf$3"],postprocess:s=>{var t;return{onUpdate:s[4].value+((t=s[5])!==null&&t!==void 0?t:"")}}},{name:"O_COLUMN_DEFINITION",symbols:["O_COLUMN_DEFINITION$subexpression$1"],postprocess:s=>({id:"O_COLUMN_DEFINITION",def:s[0]})},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:[]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","P_INDEX_COLUMN"],postprocess:s=>s[3]},{name:"P_COLUMN_REFERENCE$subexpression$1$ebnf$1",symbols:["P_COLUMN_REFERENCE$subexpression$1$ebnf$1","P_COLUMN_REFERENCE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","P_INDEX_COLUMN","P_COLUMN_REFERENCE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>{var t;return[s[3]].concat((t=s[4])!==null&&t!==void 0?t:[])}},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_FULL")?{type:"K_FULL"}:K_FULL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_PARTIAL")?{type:"K_PARTIAL"}:K_PARTIAL],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1",symbols:[_.has("K_SIMPLE")?{type:"K_SIMPLE"}:K_SIMPLE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1$subexpression$1",symbols:[_.has("K_MATCH")?{type:"K_MATCH"}:K_MATCH,"__","P_COLUMN_REFERENCE$ebnf$1$subexpression$1$subexpression$1","_"],postprocess:s=>s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:["P_COLUMN_REFERENCE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:[]},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_DELETE")?{type:"K_DELETE"}:K_DELETE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1",symbols:[_.has("K_UPDATE")?{type:"K_UPDATE"}:K_UPDATE],postprocess:f},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE],postprocess:s=>s[0].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_NULL")?{type:"K_NULL"}:K_NULL],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO,"__",_.has("K_ACTION")?{type:"K_ACTION"}:K_ACTION],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__",_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:s=>s[0].value+" "+s[2].value},{name:"P_COLUMN_REFERENCE$ebnf$2$subexpression$1",symbols:[_.has("K_ON")?{type:"K_ON"}:K_ON,"__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$1","__","P_COLUMN_REFERENCE$ebnf$2$subexpression$1$subexpression$2","_"],postprocess:s=>({trigger:s[2].value,action:s[4]})},{name:"P_COLUMN_REFERENCE$ebnf$2",symbols:["P_COLUMN_REFERENCE$ebnf$2","P_COLUMN_REFERENCE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_COLUMN_REFERENCE",symbols:[_.has("K_REFERENCES")?{type:"K_REFERENCES"}:K_REFERENCES,"__","S_IDENTIFIER","P_COLUMN_REFERENCE$subexpression$1","P_COLUMN_REFERENCE$ebnf$1","P_COLUMN_REFERENCE$ebnf$2"],postprocess:s=>{var t,o;return{id:"P_COLUMN_REFERENCE",def:{table:s[2],columns:(t=s[3])!==null&&t!==void 0?t:[],match:s[4],on:(o=s[5])!==null&&o!==void 0?o:[]}}}},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:[]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["__"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_"]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1$subexpression$1","O_CREATE_TABLE_OPTION"],postprocess:s=>s[1]},{name:"P_CREATE_TABLE_OPTIONS$ebnf$1",symbols:["P_CREATE_TABLE_OPTIONS$ebnf$1","P_CREATE_TABLE_OPTIONS$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_CREATE_TABLE_OPTIONS",symbols:["O_CREATE_TABLE_OPTION","P_CREATE_TABLE_OPTIONS$ebnf$1"],postprocess:s=>{var t;return{id:"P_CREATE_TABLE_OPTIONS",def:[s[0]].concat((t=s[1])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AUTO_INCREMENT")?{type:"K_AUTO_INCREMENT"}:K_AUTO_INCREMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$1",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({autoincrement:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_AVG_ROW_LENGTH")?{type:"K_AVG_ROW_LENGTH"}:K_AVG_ROW_LENGTH,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$2",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({avgRowLength:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER,"__",_.has("K_SET")?{type:"K_SET"}:K_SET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3",symbols:[_.has("K_CHARSET")?{type:"K_CHARSET"}:K_CHARSET]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$1","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$3","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$4","O_CHARSET"],postprocess:s=>({charset:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CHECKSUM")?{type:"K_CHECKSUM"}:K_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$5",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({checksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT,"__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$2",_.has("K_COLLATE")?{type:"K_COLLATE"}:K_COLLATE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$6","O_COLLATION"],postprocess:s=>({collation:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMMENT")?{type:"K_COMMENT"}:K_COMMENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$7","O_QUOTED_STRING"],postprocess:s=>({comment:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_COMPRESSION")?{type:"K_COMPRESSION"}:K_COMPRESSION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$8","O_QUOTED_STRING"],postprocess:s=>({compression:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_CONNECTION")?{type:"K_CONNECTION"}:K_CONNECTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$9","O_QUOTED_STRING"],postprocess:s=>({connection:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_DATA")?{type:"K_DATA"}:K_DATA,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",symbols:[_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"__"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$subexpression$10",_.has("K_DIRECTORY")?{type:"K_DIRECTORY"}:K_DIRECTORY,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$11","O_QUOTED_STRING"],postprocess:s=>({[s[0].value.toLowerCase()+"Directory"]:s[3]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_DELAY_KEY_WRITE")?{type:"K_DELAY_KEY_WRITE"}:K_DELAY_KEY_WRITE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$12",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({delayKeyWrite:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION")?{type:"K_ENCRYPTION"}:K_ENCRYPTION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$13","O_QUOTED_STRING"],postprocess:s=>({encryption:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENCRYPTION_KEY_ID")?{type:"K_ENCRYPTION_KEY_ID"}:K_ENCRYPTION_KEY_ID,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$14",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({encryptionKeyId:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_YES")?{type:"K_YES"}:K_YES],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_IETF_QUOTES")?{type:"K_IETF_QUOTES"}:K_IETF_QUOTES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$15","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$16"],postprocess:s=>({ietfQuotes:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ENGINE")?{type:"K_ENGINE"}:K_ENGINE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$17","O_ENGINE"],postprocess:s=>({engine:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_NO")?{type:"K_NO"}:K_NO],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_FIRST")?{type:"K_FIRST"}:K_FIRST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19",symbols:[_.has("K_LAST")?{type:"K_LAST"}:K_LAST],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_INSERT_METHOD")?{type:"K_INSERT_METHOD"}:K_INSERT_METHOD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$18","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$19"],postprocess:s=>({insertMethod:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_KEY_BLOCK_SIZE")?{type:"K_KEY_BLOCK_SIZE"}:K_KEY_BLOCK_SIZE,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$20",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({keyBlockSize:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MAX_ROWS")?{type:"K_MAX_ROWS"}:K_MAX_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$21",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({maxRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_MIN_ROWS")?{type:"K_MIN_ROWS"}:K_MIN_ROWS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$22",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({minRows:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PACK_KEYS")?{type:"K_PACK_KEYS"}:K_PACK_KEYS,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$23","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$24"],postprocess:s=>({packKeys:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PAGE_CHECKSUM")?{type:"K_PAGE_CHECKSUM"}:K_PAGE_CHECKSUM,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$25",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({pageChecksum:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_PASSWORD")?{type:"K_PASSWORD"}:K_PASSWORD,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$26","O_QUOTED_STRING"],postprocess:s=>({password:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_DYNAMIC")?{type:"K_DYNAMIC"}:K_DYNAMIC],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_FIXED")?{type:"K_FIXED"}:K_FIXED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPRESSED")?{type:"K_COMPRESSED"}:K_COMPRESSED],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_REDUNDANT")?{type:"K_REDUNDANT"}:K_REDUNDANT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_COMPACT")?{type:"K_COMPACT"}:K_COMPACT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28",symbols:[_.has("K_PAGE")?{type:"K_PAGE"}:K_PAGE],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_ROW_FORMAT")?{type:"K_ROW_FORMAT"}:K_ROW_FORMAT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$27","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$28"],postprocess:s=>({rowFormat:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_AUTO_RECALC")?{type:"K_STATS_AUTO_RECALC"}:K_STATS_AUTO_RECALC,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$29","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$30"],postprocess:s=>({statsAutoRecalc:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_PERSISTENT")?{type:"K_STATS_PERSISTENT"}:K_STATS_PERSISTENT,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$31","O_CREATE_TABLE_OPTION$subexpression$1$subexpression$32"],postprocess:s=>({statsPersistent:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_STATS_SAMPLE_PAGES")?{type:"K_STATS_SAMPLE_PAGES"}:K_STATS_SAMPLE_PAGES,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$33","O_TABLE_OPTION_VALUE"],postprocess:s=>({statsSamplePages:s[2]})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TRANSACTIONAL")?{type:"K_TRANSACTIONAL"}:K_TRANSACTIONAL,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$34",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER],postprocess:s=>({transactional:s[2].value})},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_WITH")?{type:"K_WITH"}:K_WITH,"__",_.has("K_SYSTEM")?{type:"K_SYSTEM"}:K_SYSTEM,"__",_.has("K_VERSIONING")?{type:"K_VERSIONING"}:K_VERSIONING],postprocess:s=>({withSystemVersioning:!0})},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DISK")?{type:"K_DISK"}:K_DISK],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_MEMORY")?{type:"K_MEMORY"}:K_MEMORY],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1",symbols:[_.has("K_DEFAULT")?{type:"K_DEFAULT"}:K_DEFAULT],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1",symbols:["__",_.has("K_STORAGE")?{type:"K_STORAGE"}:K_STORAGE,"__","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1$subexpression$1"],postprocess:s=>s[3].value},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3$subexpression$1"],postprocess:f},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3",symbols:[],postprocess:()=>null},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_TABLESPACE")?{type:"K_TABLESPACE"}:K_TABLESPACE,"__","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$3"],postprocess:s=>{let t={tablespaceName:s[2]};return s[3]&&(t.tablespaceStorage=s[3]),t}},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["__"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",symbols:["_",_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL,"_"]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:[]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4",symbols:["O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_CREATE_TABLE_OPTION$subexpression$1",symbols:[_.has("K_UNION")?{type:"K_UNION"}:K_UNION,"O_CREATE_TABLE_OPTION$subexpression$1$subexpression$35",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_","S_IDENTIFIER","O_CREATE_TABLE_OPTION$subexpression$1$ebnf$4","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>{var t;return{union:[s[4]].concat((t=s[5])!==null&&t!==void 0?t:[])}}},{name:"O_CREATE_TABLE_OPTION",symbols:["O_CREATE_TABLE_OPTION$subexpression$1"],postprocess:s=>({id:"O_CREATE_TABLE_OPTION",def:s[0]})},{name:"O_DATATYPE$subexpression$1",symbols:["O_INTEGER_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FLOATING_POINT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BIT_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_BOOLEAN_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_DATETIME_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_YEAR_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_ENUM_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SET_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_SPATIAL_DATATYPE"],postprocess:f},{name:"O_DATATYPE$subexpression$1",symbols:["O_JSON_DATATYPE"],postprocess:f},{name:"O_DATATYPE",symbols:["O_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_DATATYPE",def:s[0]})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INT")?{type:"K_INT"}:K_INT],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_INTEGER")?{type:"K_INTEGER"}:K_INTEGER],postprocess:s=>({datatype:s[0].value,width:4})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_TINYINT")?{type:"K_TINYINT"}:K_TINYINT],postprocess:s=>({datatype:s[0].value,width:1})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_SMALLINT")?{type:"K_SMALLINT"}:K_SMALLINT],postprocess:s=>({datatype:s[0].value,width:2})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMINT")?{type:"K_MEDIUMINT"}:K_MEDIUMINT],postprocess:s=>({datatype:s[0].value,width:3})},{name:"O_INTEGER_DATATYPE$subexpression$1",symbols:[_.has("K_BIGINT")?{type:"K_BIGINT"}:K_BIGINT],postprocess:s=>({datatype:s[0].value,width:8})},{name:"O_INTEGER_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:["O_INTEGER_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_INTEGER_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_INTEGER_DATATYPE",symbols:["O_INTEGER_DATATYPE$subexpression$1","O_INTEGER_DATATYPE$ebnf$1"],postprocess:s=>({id:"O_INTEGER_DATATYPE",def:{datatype:s[0].datatype,width:s[1]?s[1]:s[0].width}})},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DECIMAL")?{type:"K_DECIMAL"}:K_DECIMAL],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_NUMERIC")?{type:"K_NUMERIC"}:K_NUMERIC],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:0})},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:["O_FIXED_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_POINT_DATATYPE",symbols:["O_FIXED_POINT_DATATYPE$subexpression$1","O_FIXED_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FIXED_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]?(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals):(t.def.digits=10,t.def.decimals=0),t}},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_FLOAT")?{type:"K_FLOAT"}:K_FLOAT],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$subexpression$1",symbols:[_.has("K_DOUBLE")?{type:"K_DOUBLE"}:K_DOUBLE],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>({digits:s[3].value,decimals:s[7].value})},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:["O_FLOATING_POINT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FLOATING_POINT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FLOATING_POINT_DATATYPE",symbols:["O_FLOATING_POINT_DATATYPE$subexpression$1","O_FLOATING_POINT_DATATYPE$ebnf$1"],postprocess:s=>{let t={id:"O_FLOATING_POINT_DATATYPE",def:{datatype:s[0].value}};return s[1]&&(t.def.digits=s[1].digits,t.def.decimals=s[1].decimals),t}},{name:"O_BIT_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS,"_"],postprocess:s=>s[3].value},{name:"O_BIT_DATATYPE$ebnf$1",symbols:["O_BIT_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_BIT_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_BIT_DATATYPE",symbols:[_.has("K_BIT")?{type:"K_BIT"}:K_BIT,"O_BIT_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_BIT_DATATYPE",def:{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:1}}}},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOLEAN")?{type:"K_BOOLEAN"}:K_BOOLEAN],postprocess:f},{name:"O_BOOLEAN_DATATYPE$subexpression$1",symbols:[_.has("K_BOOL")?{type:"K_BOOL"}:K_BOOL],postprocess:f},{name:"O_BOOLEAN_DATATYPE",symbols:["O_BOOLEAN_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_BOOLEAN_DATATYPE",def:{datatype:s[0].value}})},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATE")?{type:"K_DATE"}:K_DATE],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIME")?{type:"K_TIME"}:K_TIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_DATETIME")?{type:"K_DATETIME"}:K_DATETIME],postprocess:f},{name:"O_DATETIME_DATATYPE$subexpression$1",symbols:[_.has("K_TIMESTAMP")?{type:"K_TIMESTAMP"}:K_TIMESTAMP],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:["O_DATETIME_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_DATETIME_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_DATETIME_DATATYPE",symbols:["O_DATETIME_DATATYPE$subexpression$1","O_DATETIME_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_DATETIME_DATATYPE",def:{datatype:s[0].value,fractional:(t=s[1])!==null&&t!==void 0?t:0}}}},{name:"O_YEAR_DATATYPE$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:["O_YEAR_DATATYPE$ebnf$1$subexpression$1"],postprocess:f},{name:"O_YEAR_DATATYPE$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_YEAR_DATATYPE",symbols:[_.has("K_YEAR")?{type:"K_YEAR"}:K_YEAR,"O_YEAR_DATATYPE$ebnf$1"],postprocess:s=>{var t;return{id:"O_YEAR_DATATYPE",def:{datatype:s[0].value,digits:(t=s[1])!==null&&t!==void 0?t:4}}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NCHAR")?{type:"K_NCHAR"}:K_NCHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_NATIONAL")?{type:"K_NATIONAL"}:K_NATIONAL,"__",_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value+" "+s[2].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHARACTER")?{type:"K_CHARACTER"}:K_CHARACTER],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_CHAR")?{type:"K_CHAR"}:K_CHAR],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BINARY")?{type:"K_BINARY"}:K_BINARY],postprocess:s=>s[0].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$1","O_VARIABLE_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0],length:(t=s[1])!==null&&t!==void 0?t:1}}},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARCHAR")?{type:"K_VARCHAR"}:K_VARCHAR],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2",symbols:[_.has("K_VARBINARY")?{type:"K_VARBINARY"}:K_VARBINARY],postprocess:f},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_VARIABLE_STRING_DATATYPE$subexpression$1",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$2","O_VARIABLE_STRING_DATATYPE$subexpression$1$subexpression$3"],postprocess:s=>({datatype:s[0].value,length:s[1]})},{name:"O_VARIABLE_STRING_DATATYPE",symbols:["O_VARIABLE_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_VARIABLE_STRING_DATATYPE",def:s[0]})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_BLOB")?{type:"K_BLOB"}:K_BLOB],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1",symbols:[_.has("K_TEXT")?{type:"K_TEXT"}:K_TEXT],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER,"_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>s[3].value},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:f},{name:"O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1",symbols:[],postprocess:()=>null},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1$subexpression$1","O_FIXED_STRING_DATATYPE$subexpression$1$ebnf$1"],postprocess:s=>{var t;return{datatype:s[0].value,length:(t=s[1])!==null&&t!==void 0?t:65535}}},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYBLOB")?{type:"K_TINYBLOB"}:K_TINYBLOB],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMBLOB")?{type:"K_MEDIUMBLOB"}:K_MEDIUMBLOB],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGBLOB")?{type:"K_LONGBLOB"}:K_LONGBLOB],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_TINYTEXT")?{type:"K_TINYTEXT"}:K_TINYTEXT],postprocess:s=>({datatype:s[0].value,length:255})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_MEDIUMTEXT")?{type:"K_MEDIUMTEXT"}:K_MEDIUMTEXT],postprocess:s=>({datatype:s[0].value,length:16777215})},{name:"O_FIXED_STRING_DATATYPE$subexpression$1",symbols:[_.has("K_LONGTEXT")?{type:"K_LONGTEXT"}:K_LONGTEXT],postprocess:s=>({datatype:s[0].value,length:4294967295})},{name:"O_FIXED_STRING_DATATYPE",symbols:["O_FIXED_STRING_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_FIXED_STRING_DATATYPE",def:s[0]})},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_ENUM_DATATYPE$subexpression$1$ebnf$1",symbols:["O_ENUM_DATATYPE$subexpression$1$ebnf$1","O_ENUM_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_ENUM_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_ENUM_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_ENUM_DATATYPE",symbols:[_.has("K_ENUM")?{type:"K_ENUM"}:K_ENUM,"O_ENUM_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_ENUM_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:[]},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING],postprocess:s=>s[3].value},{name:"O_SET_DATATYPE$subexpression$1$ebnf$1",symbols:["O_SET_DATATYPE$subexpression$1$ebnf$1","O_SET_DATATYPE$subexpression$1$ebnf$1$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"O_SET_DATATYPE$subexpression$1",symbols:["_",_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS,"_",_.has("S_SQUOTE_STRING")?{type:"S_SQUOTE_STRING"}:S_SQUOTE_STRING,"O_SET_DATATYPE$subexpression$1$ebnf$1","_",_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS],postprocess:s=>[s[3].value].concat(s[4])},{name:"O_SET_DATATYPE",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"O_SET_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SET_DATATYPE",def:{datatype:s[0].value,values:s[1]}})},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRY")?{type:"K_GEOMETRY"}:K_GEOMETRY],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POINT")?{type:"K_POINT"}:K_POINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_LINESTRING")?{type:"K_LINESTRING"}:K_LINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_POLYGON")?{type:"K_POLYGON"}:K_POLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOINT")?{type:"K_MULTIPOINT"}:K_MULTIPOINT],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTILINESTRING")?{type:"K_MULTILINESTRING"}:K_MULTILINESTRING],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_MULTIPOLYGON")?{type:"K_MULTIPOLYGON"}:K_MULTIPOLYGON],postprocess:f},{name:"O_SPATIAL_DATATYPE$subexpression$1",symbols:[_.has("K_GEOMETRYCOLLECTION")?{type:"K_GEOMETRYCOLLECTION"}:K_GEOMETRYCOLLECTION],postprocess:f},{name:"O_SPATIAL_DATATYPE",symbols:["O_SPATIAL_DATATYPE$subexpression$1"],postprocess:s=>({id:"O_SPATIAL_DATATYPE",def:{datatype:s[0].value}})},{name:"O_JSON_DATATYPE",symbols:[_.has("K_JSON")?{type:"K_JSON"}:K_JSON],postprocess:s=>({id:"O_JSON_DATATYPE",def:{datatype:s[0].value}})},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_DATABASE")?{type:"K_DATABASE"}:K_DATABASE]},{name:"P_DROP_DB$subexpression$1",symbols:[_.has("K_SCHEMA")?{type:"K_SCHEMA"}:K_SCHEMA]},{name:"P_DROP_DB$ebnf$1$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_DB$ebnf$1",symbols:["P_DROP_DB$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_DB$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_DB",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_DB$subexpression$1","P_DROP_DB$ebnf$1","__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_DROP_DB",def:s[5]})},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_ONLINE")?{type:"K_ONLINE"}:K_ONLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1$subexpression$1",symbols:[_.has("K_OFFLINE")?{type:"K_OFFLINE"}:K_OFFLINE,"__"]},{name:"P_DROP_INDEX$ebnf$1",symbols:["P_DROP_INDEX$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_INDEX$ebnf$2",symbols:["P_DROP_INDEX$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_INDEX$ebnf$3$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_INDEX$ebnf$3",symbols:["P_DROP_INDEX$ebnf$3$subexpression$1"],postprocess:f},{name:"P_DROP_INDEX$ebnf$3",symbols:[],postprocess:()=>null},{name:"P_DROP_INDEX$ebnf$4",symbols:[]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_INDEX_ALGORITHM_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4$subexpression$1",symbols:["__","P_LOCK_OPTION"],postprocess:s=>s[1]},{name:"P_DROP_INDEX$ebnf$4",symbols:["P_DROP_INDEX$ebnf$4","P_DROP_INDEX$ebnf$4$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_INDEX",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_INDEX$ebnf$1",_.has("K_INDEX")?{type:"K_INDEX"}:K_INDEX,"P_DROP_INDEX$ebnf$2","__","S_IDENTIFIER","__",_.has("K_ON")?{type:"K_ON"}:K_ON,"__","S_IDENTIFIER","P_DROP_INDEX$ebnf$3","P_DROP_INDEX$ebnf$4","S_EOS"],postprocess:s=>({id:"P_DROP_INDEX",def:{index:s[6],table:s[10],options:s[12]?s[12]:[]}})},{name:"P_DROP_TABLE$ebnf$1$subexpression$1",symbols:[_.has("K_TEMPORARY")?{type:"K_TEMPORARY"}:K_TEMPORARY,"__"]},{name:"P_DROP_TABLE$ebnf$1",symbols:["P_DROP_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$2$subexpression$1",symbols:["__",_.has("K_IF")?{type:"K_IF"}:K_IF,"__",_.has("K_EXISTS")?{type:"K_EXISTS"}:K_EXISTS]},{name:"P_DROP_TABLE$ebnf$2",symbols:["P_DROP_TABLE$ebnf$2$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$2",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$3",symbols:[]},{name:"P_DROP_TABLE$ebnf$3$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER"],postprocess:s=>s[3]},{name:"P_DROP_TABLE$ebnf$3",symbols:["P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$3$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_DROP_TABLE$ebnf$4$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_DROP_TABLE$ebnf$4",symbols:["P_DROP_TABLE$ebnf$4$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$4",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_RESTRICT")?{type:"K_RESTRICT"}:K_RESTRICT]},{name:"P_DROP_TABLE$ebnf$5$subexpression$1",symbols:["__",_.has("K_CASCADE")?{type:"K_CASCADE"}:K_CASCADE]},{name:"P_DROP_TABLE$ebnf$5",symbols:["P_DROP_TABLE$ebnf$5$subexpression$1"],postprocess:f},{name:"P_DROP_TABLE$ebnf$5",symbols:[],postprocess:()=>null},{name:"P_DROP_TABLE",symbols:[_.has("K_DROP")?{type:"K_DROP"}:K_DROP,"__","P_DROP_TABLE$ebnf$1",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"P_DROP_TABLE$ebnf$2","__","S_IDENTIFIER","P_DROP_TABLE$ebnf$3","P_DROP_TABLE$ebnf$4","P_DROP_TABLE$ebnf$5","S_EOS"],postprocess:s=>{var t;return{id:"P_DROP_TABLE",def:[s[6]].concat((t=s[7])!==null&&t!==void 0?t:[])}}},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_WAIT")?{type:"K_WAIT"}:K_WAIT,"__",_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_RENAME_TABLE$ebnf$1$subexpression$1",symbols:["__",_.has("K_NOWAIT")?{type:"K_NOWAIT"}:K_NOWAIT]},{name:"P_RENAME_TABLE$ebnf$1",symbols:["P_RENAME_TABLE$ebnf$1$subexpression$1"],postprocess:f},{name:"P_RENAME_TABLE$ebnf$1",symbols:[],postprocess:()=>null},{name:"P_RENAME_TABLE$ebnf$2",symbols:[]},{name:"P_RENAME_TABLE$ebnf$2$subexpression$1",symbols:["_",_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA,"_","S_IDENTIFIER","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER"],postprocess:s=>({table:s[3],newName:s[7]})},{name:"P_RENAME_TABLE$ebnf$2",symbols:["P_RENAME_TABLE$ebnf$2","P_RENAME_TABLE$ebnf$2$subexpression$1"],postprocess:s=>s[0].concat([s[1]])},{name:"P_RENAME_TABLE",symbols:[_.has("K_RENAME")?{type:"K_RENAME"}:K_RENAME,"__",_.has("K_TABLE")?{type:"K_TABLE"}:K_TABLE,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$1","__",_.has("K_TO")?{type:"K_TO"}:K_TO,"__","S_IDENTIFIER","P_RENAME_TABLE$ebnf$2","S_EOS"],postprocess:s=>{var t;return{id:"P_RENAME_TABLE",def:[{table:s[4],newName:s[9]}].concat((t=s[10])!==null&&t!==void 0?t:[])}}},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$1",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$1",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1$subexpression$1"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_UNKNOWN")?{type:"S_UNKNOWN"}:S_UNKNOWN]},{name:"P_SET$ebnf$1$subexpression$2",symbols:["S_IDENTIFIER"]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_EQUAL")?{type:"S_EQUAL"}:S_EQUAL]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_LPARENS")?{type:"S_LPARENS"}:S_LPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_RPARENS")?{type:"S_RPARENS"}:S_RPARENS]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_COMMA")?{type:"S_COMMA"}:S_COMMA]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_SEMICOLON")?{type:"S_SEMICOLON"}:S_SEMICOLON]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_BIT_FORMAT")?{type:"S_BIT_FORMAT"}:S_BIT_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_HEXA_FORMAT")?{type:"S_HEXA_FORMAT"}:S_HEXA_FORMAT]},{name:"P_SET$ebnf$1$subexpression$2",symbols:[_.has("S_NUMBER")?{type:"S_NUMBER"}:S_NUMBER]},{name:"P_SET$ebnf$1",symbols:["P_SET$ebnf$1","P_SET$ebnf$1$subexpression$2"],postprocess:s=>s[0].concat([s[1]])},{name:"P_SET",symbols:[_.has("K_SET")?{type:"K_SET"}:K_SET,"__","P_SET$ebnf$1","S_EOS"],postprocess:s=>({id:"P_SET"})},{name:"P_USE_DB",symbols:[_.has("K_USE")?{type:"K_USE"}:K_USE,"__","S_IDENTIFIER","S_EOS"],postprocess:s=>({id:"P_USE_DB",def:{database:s[2]}})}],ParserStart:"P_DDS"};Et.default=Tc});var hu=Q(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var lc=Ru();Object.defineProperty(mo,"Grammar",{enumerable:!0,get:function(){return lc.default}})});var Io=Q(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.TableOptions=void 0;var h=he(),un=class{static fromDef(t){if(t.id==="P_CREATE_TABLE_OPTIONS")return un.fromArray(t.def);throw new TypeError(`Unknown json id to build table options from: ${t.id}`)}static fromArray(t){let o=new un;return t.forEach(E=>{h.isDefined(E.def.autoincrement)&&(o.autoincrement=E.def.autoincrement),h.isDefined(E.def.avgRowLength)&&(o.avgRowLength=E.def.avgRowLength),h.isDefined(E.def.charset)&&(o.charset=E.def.charset.toLowerCase()),h.isDefined(E.def.checksum)&&(o.checksum=E.def.checksum),h.isDefined(E.def.collation)&&(o.collation=E.def.collation.toLowerCase()),h.isDefined(E.def.comment)&&(o.comment=E.def.comment),h.isDefined(E.def.compression)&&(o.compression=E.def.compression.toLowerCase()),h.isDefined(E.def.connection)&&(o.connection=E.def.connection),h.isDefined(E.def.dataDirectory)&&(o.dataDirectory=E.def.dataDirectory),h.isDefined(E.def.indexDirectory)&&(o.indexDirectory=E.def.indexDirectory),h.isDefined(E.def.delayKeyWrite)&&(o.delayKeyWrite=E.def.delayKeyWrite),h.isDefined(E.def.encryption)&&(o.encryption=E.def.encryption.toLowerCase()),h.isDefined(E.def.encryptionKeyId)&&(o.encryptionKeyId=E.def.encryptionKeyId),h.isDefined(E.def.ietfQuotes)&&(o.ietfQuotes=E.def.ietfQuotes.toLowerCase()),h.isDefined(E.def.engine)&&(o.engine=E.def.engine),h.isDefined(E.def.insertMethod)&&(o.insertMethod=E.def.insertMethod.toLowerCase()),h.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),h.isDefined(E.def.maxRows)&&(o.maxRows=E.def.maxRows),h.isDefined(E.def.minRows)&&(o.minRows=E.def.minRows),h.isDefined(E.def.packKeys)&&(h.isString(E.def.packKeys)?o.packKeys=E.def.packKeys.toLowerCase():o.packKeys=E.def.packKeys),h.isDefined(E.def.pageChecksum)&&(o.pageChecksum=E.def.pageChecksum),h.isDefined(E.def.password)&&(o.password=E.def.password),h.isDefined(E.def.rowFormat)&&(o.rowFormat=E.def.rowFormat.toLowerCase()),h.isDefined(E.def.statsAutoRecalc)&&(h.isString(E.def.statsAutoRecalc)?o.statsAutoRecalc=E.def.statsAutoRecalc.toLowerCase():o.statsAutoRecalc=E.def.statsAutoRecalc),h.isDefined(E.def.statsPersistent)&&(h.isString(E.def.statsPersistent)?o.statsPersistent=E.def.statsPersistent.toLowerCase():o.statsPersistent=E.def.statsPersistent),h.isDefined(E.def.statsSamplePages)&&(h.isString(E.def.statsSamplePages)?o.statsSamplePages=E.def.statsSamplePages.toLowerCase():o.statsSamplePages=E.def.statsSamplePages),h.isDefined(E.def.transactional)&&(o.transactional=E.def.transactional),h.isDefined(E.def.withSystemVersioning)&&(o.withSystemVersioning=E.def.withSystemVersioning),h.isDefined(E.def.tablespaceName)&&(o.tablespaceName=E.def.tablespaceName),h.isDefined(E.def.tablespaceStorage)&&(o.tablespaceStorage=E.def.tablespaceStorage.toLowerCase()),h.isDefined(E.def.union)&&(o.union=E.def.union)}),o}toJSON(){let t={};return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union),t}clone(){let t=new un;return h.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),h.isDefined(this.avgRowLength)&&(t.avgRowLength=this.avgRowLength),h.isDefined(this.charset)&&(t.charset=this.charset),h.isDefined(this.checksum)&&(t.checksum=this.checksum),h.isDefined(this.collation)&&(t.collation=this.collation),h.isDefined(this.comment)&&(t.comment=this.comment),h.isDefined(this.compression)&&(t.compression=this.compression),h.isDefined(this.connection)&&(t.connection=this.connection),h.isDefined(this.dataDirectory)&&(t.dataDirectory=this.dataDirectory),h.isDefined(this.indexDirectory)&&(t.indexDirectory=this.indexDirectory),h.isDefined(this.delayKeyWrite)&&(t.delayKeyWrite=this.delayKeyWrite),h.isDefined(this.encryption)&&(t.encryption=this.encryption),h.isDefined(this.encryptionKeyId)&&(t.encryptionKeyId=this.encryptionKeyId),h.isDefined(this.ietfQuotes)&&(t.ietfQuotes=this.ietfQuotes),h.isDefined(this.engine)&&(t.engine=this.engine),h.isDefined(this.insertMethod)&&(t.insertMethod=this.insertMethod),h.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),h.isDefined(this.maxRows)&&(t.maxRows=this.maxRows),h.isDefined(this.minRows)&&(t.minRows=this.minRows),h.isDefined(this.packKeys)&&(t.packKeys=this.packKeys),h.isDefined(this.pageChecksum)&&(t.pageChecksum=this.pageChecksum),h.isDefined(this.password)&&(t.password=this.password),h.isDefined(this.rowFormat)&&(t.rowFormat=this.rowFormat),h.isDefined(this.statsAutoRecalc)&&(t.statsAutoRecalc=this.statsAutoRecalc),h.isDefined(this.statsPersistent)&&(t.statsPersistent=this.statsPersistent),h.isDefined(this.statsSamplePages)&&(t.statsSamplePages=this.statsSamplePages),h.isDefined(this.transactional)&&(t.transactional=this.transactional),h.isDefined(this.withSystemVersioning)&&(t.withSystemVersioning=this.withSystemVersioning),h.isDefined(this.tablespaceName)&&(t.tablespaceName=this.tablespaceName),h.isDefined(this.tablespaceStorage)&&(t.tablespaceStorage=this.tablespaceStorage),h.isDefined(this.union)&&(t.union=this.union.slice()),t}mergeWith(t){h.isDefined(t.autoincrement)&&(this.autoincrement=t.autoincrement),h.isDefined(t.avgRowLength)&&(this.avgRowLength=t.avgRowLength),h.isDefined(t.charset)&&(this.charset=t.charset),h.isDefined(t.checksum)&&(this.checksum=t.checksum),h.isDefined(t.collation)&&(this.collation=t.collation),h.isDefined(t.comment)&&(this.comment=t.comment),h.isDefined(t.compression)&&(this.compression=t.compression),h.isDefined(t.connection)&&(this.connection=t.connection),h.isDefined(t.dataDirectory)&&(this.dataDirectory=t.dataDirectory),h.isDefined(t.indexDirectory)&&(this.indexDirectory=t.indexDirectory),h.isDefined(t.delayKeyWrite)&&(this.delayKeyWrite=t.delayKeyWrite),h.isDefined(t.encryption)&&(this.encryption=t.encryption),h.isDefined(t.encryptionKeyId)&&(this.encryptionKeyId=t.encryptionKeyId),h.isDefined(t.ietfQuotes)&&(this.ietfQuotes=t.ietfQuotes),h.isDefined(t.engine)&&(this.engine=t.engine),h.isDefined(t.insertMethod)&&(this.insertMethod=t.insertMethod),h.isDefined(t.keyBlockSize)&&(this.keyBlockSize=t.keyBlockSize),h.isDefined(t.maxRows)&&(this.maxRows=t.maxRows),h.isDefined(t.minRows)&&(this.minRows=t.minRows),h.isDefined(t.packKeys)&&(this.packKeys=t.packKeys),h.isDefined(t.pageChecksum)&&(this.pageChecksum=t.pageChecksum),h.isDefined(t.password)&&(this.password=t.password),h.isDefined(t.rowFormat)&&(this.rowFormat=t.rowFormat),h.isDefined(t.statsAutoRecalc)&&(this.statsAutoRecalc=t.statsAutoRecalc),h.isDefined(t.statsPersistent)&&(this.statsPersistent=t.statsPersistent),h.isDefined(t.statsSamplePages)&&(this.statsSamplePages=t.statsSamplePages),h.isDefined(t.transactional)&&(this.transactional=t.transactional),h.isDefined(t.withSystemVersioning)&&(this.withSystemVersioning=t.withSystemVersioning),h.isDefined(t.tablespaceName)&&(this.tablespaceName=t.tablespaceName),h.isDefined(t.tablespaceStorage)&&(this.tablespaceStorage=t.tablespaceStorage),h.isDefined(t.union)&&(this.union=t.union.slice())}};ar.TableOptions=un});var Nu=Q(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.ColumnReferenceOn=void 0;var xn=class{static fromObject(t){let o=new xn;return o.action=t.action.toLowerCase(),o.trigger=t.trigger.toLowerCase(),o}toJSON(){return{trigger:this.trigger,action:this.action}}clone(){return xn.fromObject(this)}};pr.ColumnReferenceOn=xn});var Ks=Q(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IndexColumn=void 0;var $r=he(),an=class{static fromDef(t){if(t.id==="P_INDEX_COLUMN")return an.fromObject(t.def);throw new TypeError(`Unknown json id to build index column from: ${t.id}`)}static fromObject(t){let o=new an;return o.column=t.column,t.length&&(o.length=t.length),t.sort&&(o.sort=t.sort),o}toJSON(){let t={column:this.column};return $r.isDefined(this.length)&&(t.length=this.length),$r.isDefined(this.sort)&&(t.sort=this.sort),t}clone(){let t=new an;return t.column=this.column,$r.isDefined(this.length)&&(t.length=this.length),$r.isDefined(this.sort)&&(t.sort=this.sort),t}};Tr.IndexColumn=an});var Oo=Q(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.ColumnReference=void 0;var Su=he(),fc=Nu(),Ac=Ks(),Pn=class{constructor(){this.columns=[],this.on=[]}static fromDef(t){if(t.id==="P_COLUMN_REFERENCE"){let o=t.def,E=new Pn;return E.table=o.table,o.match&&(E.match=o.match.toLowerCase()),o.columns.length&&(E.columns=o.columns.map(Ac.IndexColumn.fromDef)),o.on.length&&(E.on=o.on.map(fc.ColumnReferenceOn.fromObject)),E}throw new TypeError(`Unknown json id to build column reference from: ${t.id}`)}toJSON(){let t={table:this.table};return Su.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.toJSON())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.toJSON())),t}clone(){let t=new Pn;return t.table=this.table,Su.isDefined(this.match)&&(t.match=this.match),this.on&&this.on.length&&(t.on=this.on.map(o=>o.clone())),this.columns&&this.columns.length&&(t.columns=this.columns.map(o=>o.clone())),t}};lr.ColumnReference=Pn});var Ro=Q(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.ColumnOptions=void 0;var ce=he(),Dn=class{static fromArray(t){let o=new Dn;return t.forEach(E=>{Object.assign(o,E.def)}),o.collation&&(o.collation=o.collation.toLowerCase()),o.charset&&(o.charset=o.charset.toLowerCase()),o.storage&&(o.storage=o.storage.toLowerCase()),o.format&&(o.format=o.format.toLowerCase()),ce.isDefined(o.nullable)||(o.nullable=!0),o.zerofill&&(o.unsigned=!0),o.primary&&(o.nullable=!1),o}toJSON(){let t={};return ce.isDefined(this.unsigned)&&(t.unsigned=this.unsigned),ce.isDefined(this.zerofill)&&(t.zerofill=this.zerofill),ce.isDefined(this.charset)&&(t.charset=this.charset),ce.isDefined(this.collation)&&(t.collation=this.collation),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.nullable)&&(t.nullable=this.nullable),ce.isDefined(this.default)&&(t.default=this.default),ce.isDefined(this.autoincrement)&&(t.autoincrement=this.autoincrement),ce.isDefined(this.unique)&&(t.unique=this.unique),ce.isDefined(this.primary)&&(t.primary=this.primary),ce.isDefined(this.invisible)&&(t.invisible=this.invisible),ce.isDefined(this.format)&&(t.format=this.format),ce.isDefined(this.storage)&&(t.storage=this.storage),ce.isDefined(this.comment)&&(t.comment=this.comment),ce.isDefined(this.onUpdate)&&(t.onUpdate=this.onUpdate),ce.isString(t.default)&&t.default.toLowerCase()==="null"&&(t.default=null),ce.isDefined(this.invisibleWithSystemVersioning)&&(t.invisibleWithSystemVersioning=this.invisibleWithSystemVersioning),ce.isDefined(this.invisibleWithoutSystemVersioning)&&(t.invisibleWithoutSystemVersioning=this.invisibleWithoutSystemVersioning),t}mergeWith(t){Object.getOwnPropertyNames(t).forEach(o=>{let E=t[o];ce.isDefined(E)&&ce.setProperty(this,o,E)})}clone(){let t=new Dn;return Object.getOwnPropertyNames(this).forEach(o=>{let E=this[o];ce.isDefined(E)&&ce.setProperty(t,o,E)}),t}};fr.ColumnOptions=Dn});var dn=Q(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.IndexOptions=void 0;var de=he(),Kn=class{static fromArray(t){let o=new Kn;return t.forEach(E=>{de.isDefined(E.def.comment)&&(o.comment=E.def.comment.toLowerCase()),de.isDefined(E.def.indexType)&&(o.indexType=E.def.indexType.def.toLowerCase()),de.isDefined(E.def.keyBlockSize)&&(o.keyBlockSize=E.def.keyBlockSize),de.isDefined(E.def.parser)&&(o.parser=E.def.parser),de.isDefined(E.def.algorithm)&&(o.algorithm=E.def.algorithm),de.isDefined(E.def.lock)&&(o.lock=E.def.lock)}),o}toJSON(){let t={};return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}clone(){let t=new Kn;return de.isDefined(this.keyBlockSize)&&(t.keyBlockSize=this.keyBlockSize),de.isDefined(this.indexType)&&(t.indexType=this.indexType),de.isDefined(this.algorithm)&&(t.algorithm=this.algorithm),de.isDefined(this.comment)&&(t.comment=this.comment),de.isDefined(this.parser)&&(t.parser=this.parser),de.isDefined(this.lock)&&(t.lock=this.lock),t}};Ar.IndexOptions=Kn});var mr=Q(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.PrimaryKey=void 0;var br=he(),bc=Ks(),cc=dn(),pn=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return pn.fromObject(t.def.primaryKey);throw new TypeError(`Unknown json id to build primary key from: ${t.id}`)}static fromObject(t){let o=new pn;return o.columns=t.columns.map(bc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),t.options&&t.options.length&&(o.options=cc.IndexOptions.fromArray(t.options)),o}toJSON(){var t;let o={columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return br.isDefined(this.name)&&(o.name=this.name),br.isDefined(this.options)&&(o.options=this.options.toJSON()),br.isDefined(this.indexType)&&(o.indexType=this.indexType),o}clone(){var t;let o=new pn;return o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),br.isDefined(this.indexType)&&(o.indexType=this.indexType),this.options&&(o.options=this.options.clone()),o}pushColumn(t){this.columns||(this.columns=[]),this.columns.push(t)}dropColumn(t){if(!this.columns)return!1;let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>{var T;return((T=this.columns)!==null&&T!==void 0?T:[]).some(c=>c.column===E.name)})}hasAllColumnsFromTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return((c=this.columns)!==null&&c!==void 0?c:[]).some(O=>O.column===T.name)}).length===((E=this.columns)!==null&&E!==void 0?E:[]).length}renameColumn(t,o){var E;return(E=this.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}};cr.PrimaryKey=pn});var Rr=Q(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.ForeignKey=void 0;var Ir=he(),mc=Oo(),Ic=Ks(),$n=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){if(Ir.isDefined(t.def.foreignKey))return $n.fromObject(t.def.foreignKey);throw new TypeError(`Statement ${t.id} has undefined foreignKey. Cannot format foreignKey.`)}throw new TypeError(`Unknown json id to build foreign key from: ${t.id}`)}static fromObject(t){let o=new $n;return o.columns=t.columns.map(Ic.IndexColumn.fromDef),o.reference=mc.ColumnReference.fromDef(t.reference),t.name&&(o.name=t.name),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON()),reference:this.reference.toJSON()};return Ir.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new $n;return t.columns=this.columns.map(o=>o.clone()),t.reference=this.reference.clone(),Ir.isDefined(this.name)&&(t.name=this.name),t}pushColumn(t){this.columns.push(t)}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Ir.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}hasAllColumnsFromRefTable(t){var o,E;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(T=>{var c;return(c=this.reference.columns)===null||c===void 0?void 0:c.some(O=>O.column===T.name)}).length===((E=this.reference.columns)===null||E===void 0?void 0:E.length)}getReferencedTable(t){var o;return(o=t.find(E=>E.name===this.reference.table))!==null&&o!==void 0?o:void 0}referencesTableAndColumn(t,o){var E;return this.reference.table===t.name&&((E=this.reference.columns)!==null&&E!==void 0?E:[]).some(T=>T.column===o.name)}referencesTable(t){return this.reference.table===t.name}renameColumn(t,o){var E;return(E=this.reference.columns)===null||E===void 0?void 0:E.filter(T=>T.column===t.name).forEach(T=>{T.column=o})}updateReferencedTableName(t){this.reference.table=t}};Or.ForeignKey=$n});var ut=Q(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.UniqueKey=void 0;var Ws=he(),Oc=dn(),Rc=Ks(),Qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Qs.fromObject(t.def.uniqueKey);if(t.id==="P_CREATE_INDEX")return Qs.fromObject(t.def);throw new TypeError(`Unknown json id to build unique key from: ${t.id}`)}static fromObject(t){let o=new Qs;return o.columns=t.columns.map(Rc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Ws.isDefined(t.options)&&t.options.length&&(o.options=Oc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new Qs;return t.columns=this.columns.map(o=>o.clone()),Ws.isDefined(this.name)&&(t.name=this.name),Ws.isDefined(this.indexType)&&(t.indexType=this.indexType),Ws.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Ws.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};hr.UniqueKey=Qs});var ho=Q(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.Datatype=void 0;var os=he(),Tn=class{static fromDef(t){if(t.id==="O_DATATYPE"){let o=new Tn;return Object.assign(o,t.def.def),o.datatype=Tn.filterDatatype(o.datatype),o}throw new TypeError(`Unknown json id to build datatype from: ${t.id}`)}static filterDatatype(t){let o=t.toLowerCase();return o==="integer"||o==="tinyint"||o==="smallint"||o==="mediumint"||o==="bigint"?"int":o==="numeric"?"decimal":o==="bool"?"boolean":o==="tinyblob"||o==="mediumblob"||o==="longblob"?"blob":o==="tinytext"||o==="mediumtext"||o==="longtext"?"text":o==="national char"||o==="character"||o==="nchar"?"char":o}getMaxIndexableSize(){return["int","decimal","float","double","bit","boolean","date","time","datetime","timestamp","year","json"].includes(this.datatype)||["geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection"].includes(this.datatype)?0:["blob","text","char","binary","varchar","varbinary"].includes(this.datatype)?this.length:0}toJSON(){let t={datatype:this.datatype};return os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values),t}clone(){let t=new Tn;return t.datatype=this.datatype,os.isDefined(this.width)&&(t.width=this.width),os.isDefined(this.digits)&&(t.digits=this.digits),os.isDefined(this.decimals)&&(t.decimals=this.decimals),os.isDefined(this.length)&&(t.length=this.length),os.isDefined(this.fractional)&&(t.fractional=this.fractional),os.isDefined(this.values)&&(t.values=this.values.slice()),t}};Nr.Datatype=Tn});var So=Q(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Column=void 0;var yu=he(),hc=Oo(),Nc=Ro(),No=Ks(),Sc=mr(),yc=Rr(),Lc=ut(),Cc=ho(),ln=class{static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION"){let o=t.def.column;return ln.fromObject({name:o.name,datatype:o.def.datatype,reference:o.def.reference,columnDefinition:o.def.columnDefinition})}throw new TypeError(`Unknown json id to build column from: ${t.id}`)}static fromObject(t){let o=new ln;return o.name=t.name,o.type=Cc.Datatype.fromDef(t.datatype),t.reference&&(o.reference=hc.ColumnReference.fromDef(t.reference)),t.columnDefinition&&(o.options=Nc.ColumnOptions.fromArray(t.columnDefinition)),o}toJSON(){let t={name:this.name,type:this.type.toJSON()};return yu.isDefined(this.options)&&(t.options=this.options.toJSON()),yu.isDefined(this.reference)&&(t.reference=this.reference.toJSON()),t}clone(){let t=new ln;return t.name=this.name,t.type=this.type.clone(),this.options&&(t.options=this.options.clone()),t}isPrimaryKey(){return this.options?this.options.primary===!0:!1}isUniqueKey(){return this.options?this.options.unique===!0:!1}isForeignKey(){return!!this.reference}extractPrimaryKey(){if(!this.isPrimaryKey())return;delete this.options.primary;let t=new No.IndexColumn;t.column=this.name;let o=new Sc.PrimaryKey;return o.pushColumn(t),o}extractForeignKey(){if(!this.isForeignKey())return;let t=new No.IndexColumn;t.column=this.name;let o=new yc.ForeignKey;return o.pushColumn(t),o.reference=this.reference,delete this.reference,o}extractUniqueKey(){if(!this.isUniqueKey())return;delete this.options.unique;let t=new No.IndexColumn;t.column=this.name;let o=new Lc.UniqueKey;return o.columns.push(t),o}};Sr.Column=ln});var Lr=Q(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.FulltextIndex=void 0;var at=he(),xc=Ks(),Pc=dn(),qs=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return qs.fromObject(t.def.fulltextIndex);if(t.id==="P_CREATE_INDEX")return qs.fromObject(t.def);throw new TypeError(`Unknown json id to build fulltext index from: ${t.id}`)}static fromObject(t){let o=new qs;return o.columns=t.columns.map(xc.IndexColumn.fromDef),t.name&&(o.name=t.name),at.isDefined(t.options)&&t.options.length&&(o.options=Pc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new qs;return t.columns=this.columns.map(o=>o.clone()),at.isDefined(this.name)&&(t.name=this.name),at.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};yr.FulltextIndex=qs});var xr=Q(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.SpatialIndex=void 0;var pt=he(),Dc=Ks(),Kc=dn(),ks=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return ks.fromObject(t.def.spatialIndex);if(t.id==="P_CREATE_INDEX")return ks.fromObject(t.def);throw new TypeError(`Unknown json id to build spatial index from: ${t.id}`)}static fromObject(t){let o=new ks;return o.columns=t.columns.map(Dc.IndexColumn.fromDef),t.name&&(o.name=t.name),pt.isDefined(t.options)&&t.options.length&&(o.options=Kc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.toJSON()),t}clone(){let t=new ks;return t.columns=this.columns.map(o=>o.clone()),pt.isDefined(this.name)&&(t.name=this.name),pt.isDefined(this.options)&&(t.options=this.options.clone()),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Cr.SpatialIndex=ks});var Dr=Q(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Index=void 0;var Vs=he(),dc=Ks(),Bc=dn(),Js=class{constructor(){this.columns=[]}static fromDef(t){if(t.id==="O_CREATE_TABLE_CREATE_DEFINITION")return Js.fromObject(t.def.index);if(t.id==="P_CREATE_INDEX")return Js.fromObject(t.def);throw new TypeError(`Unknown json id to build index from: ${t.id}`)}static fromObject(t){let o=new Js;return o.columns=t.columns.map(dc.IndexColumn.fromDef),t.name&&(o.name=t.name),t.index&&(o.indexType=t.index.def.toLowerCase()),Vs.isDefined(t.options)&&t.options.length&&(o.options=Bc.IndexOptions.fromArray(t.options)),o}toJSON(){let t={columns:this.columns.map(o=>o.toJSON())};return Vs.isDefined(this.options)&&(t.options=this.options.toJSON()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}clone(){let t=new Js;return t.columns=this.columns.map(o=>o.clone()),Vs.isDefined(this.options)&&(t.options=this.options.clone()),Vs.isDefined(this.indexType)&&(t.indexType=this.indexType),Vs.isDefined(this.name)&&(t.name=this.name),t}dropColumn(t){let o=-1;if(!this.columns.some((c,O)=>(o=O,c.column===t))||o<0)return!1;let T=this.columns.splice(o);return T.shift(),this.columns=this.columns.concat(T),!0}getColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name))}hasAllColumnsFromTable(t){var o;return((o=t.columns)!==null&&o!==void 0?o:[]).filter(E=>this.columns.some(T=>T.column===E.name)).length===this.columns.length}setIndexSizeFromTable(t){this.columns.filter(o=>!Vs.isDefined(o.length)).forEach(o=>{var E;let T=((E=t.columns)!==null&&E!==void 0?E:[]).find(O=>O.name===o.column);if(!T)return;let c=T.type.getMaxIndexableSize();c>0&&(o.length=c)})}renameColumn(t,o){this.columns.filter(E=>E.column===t.name).forEach(E=>{E.column=o})}};Pr.Index=Js});var Lu=Q(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.Table=void 0;var V=he(),vc=Io(),gc=So(),Mc=Lr(),Fc=xr(),Uc=Rr(),wc=ut(),Yc=mr(),Xc=Dr(),Bn=class{static fromCommonDef(t,o){if(t.id==="P_CREATE_TABLE_COMMON"){let E=t.def,T=new Bn;return T.database=o,T.name=E.table,E.tableOptions&&(T.options=vc.TableOptions.fromDef(E.tableOptions)),E.columnsDef.def.forEach(O=>{if(V.isDefined(O.def.column)){let U=gc.Column.fromDef(O);T.addColumn(U)}else V.isDefined(O.def.fulltextIndex)?T.pushFulltextIndex(Mc.FulltextIndex.fromDef(O)):V.isDefined(O.def.spatialIndex)?T.pushSpatialIndex(Fc.SpatialIndex.fromDef(O)):V.isDefined(O.def.foreignKey)?T.pushForeignKey(Uc.ForeignKey.fromDef(O)):V.isDefined(O.def.uniqueKey)?T.pushUniqueKey(wc.UniqueKey.fromDef(O)):V.isDefined(O.def.primaryKey)?T.setPrimaryKey(Yc.PrimaryKey.fromDef(O)):V.isDefined(O.def.index)&&T.pushIndex(Xc.Index.fromDef(O))}),T}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}static fromAlikeDef(t,o=[]){if(t.id==="P_CREATE_TABLE_LIKE"){let E=t.def,T=o.find(O=>O.name===E.like);if(!T)return;let c=T.clone();return c.name=E.table,c}throw new TypeError(`Unknown json id to build table from: ${t.id}`)}toJSON(){var t;let o={name:this.name,columns:((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.toJSON())};return V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.toJSON()),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.toJSON())),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.toJSON())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.toJSON())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.toJSON())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.toJSON())),V.isDefined(this.options)&&(o.options=this.options.toJSON()),o}clone(){var t;let o=new Bn;return o.database=this.database,o.name=this.name,o.columns=((t=this.columns)!==null&&t!==void 0?t:[]).map(E=>E.clone()),V.isDefined(this.options)&&(o.options=this.options.clone()),V.isDefined(this.primaryKey)&&(o.primaryKey=this.primaryKey.clone()),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&(o.uniqueKeys=this.uniqueKeys.map(E=>E.clone())),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&(o.foreignKeys=this.foreignKeys.map(E=>E.clone())),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&(o.fulltextIndexes=this.fulltextIndexes.map(E=>E.clone())),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&(o.spatialIndexes=this.spatialIndexes.map(E=>E.clone())),V.isDefined(this.indexes)&&this.indexes.length&&(o.indexes=this.indexes.map(E=>E.clone())),o}getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}renameTo(t){this.database.tables.forEach(o=>{var E;((E=o.foreignKeys)!==null&&E!==void 0?E:[]).filter(T=>T.referencesTable(this)).forEach(T=>T.updateReferencedTableName(t))}),this.name=t}addColumn(t,o){var E;if(!this.getColumn(t.name)&&!(t.options&&t.options.autoincrement&&((E=this.columns)!==null&&E!==void 0?E:[]).some(T=>T.options&&T.options.autoincrement))&&!(this.primaryKey&&t.options&&t.options.primary)){if(V.isArray(this.columns)||(this.columns=[]),!V.isDefined(o))this.columns.push(t);else if(!o.after)this.columns.unshift(t);else{let T=this.columns.find(U=>U.name===o.after);if(!T)return;let c=this.columns.indexOf(T),O=this.columns.splice(c+1);this.columns.push(t),this.columns=this.columns.concat(O)}this.extractColumnKeys(t)}}extractColumnKeys(t){let o=t.extractPrimaryKey(),E=t.extractForeignKey(),T=t.extractUniqueKey();o&&this.setPrimaryKey(o),E&&this.pushForeignKey(E),T&&this.pushUniqueKey(T)}moveColumn(t,o){if(!V.isDefined(this.columns)||!V.isDefined(o)||!this.columns.includes(t))return!1;let E;if(o.after&&(E=this.getColumn(o.after),!E))return!1;let T=this.columns.indexOf(t),c=this.columns.splice(T);if(c.shift(),this.columns=this.columns.concat(c),o.after){if(!E)return!1;T=this.columns.indexOf(E),c=this.columns.splice(T+1),this.columns.push(t),this.columns=this.columns.concat(c)}else this.columns.unshift(t);return!0}renameColumn(t,o){var E,T,c,O,U;return((E=this.columns)!==null&&E!==void 0?E:[]).includes(t)?(this.getTables().forEach(I=>{var L;((L=I.foreignKeys)!==null&&L!==void 0?L:[]).filter(P=>P.referencesTable(this)).forEach(P=>P.renameColumn(t,o))}),((T=this.fulltextIndexes)!==null&&T!==void 0?T:[]).forEach(I=>I.renameColumn(t,o)),((c=this.spatialIndexes)!==null&&c!==void 0?c:[]).forEach(I=>I.renameColumn(t,o)),((O=this.indexes)!==null&&O!==void 0?O:[]).forEach(I=>I.renameColumn(t,o)),((U=this.uniqueKeys)!==null&&U!==void 0?U:[]).forEach(I=>I.renameColumn(t,o)),this.primaryKey&&this.primaryKey.renameColumn(t,o),t.name=o,!0):!1}getColumnPosition(t){var o,E,T;let c=((o=this.columns)!==null&&o!==void 0?o:[]).indexOf(t);if(c===0)return{after:null};if(c+1!==((E=this.columns)!==null&&E!==void 0?E:[]).length)return{after:((T=this.columns)!==null&&T!==void 0?T:[])[c-1].name}}dropPrimaryKey(){!this.primaryKey||this.primaryKey.getColumnsFromTable(this).some(o=>o.options&&o.options.autoincrement)||delete this.primaryKey}dropColumn(t){var o;if(this.getTables().some(O=>{var U;return((U=O.foreignKeys)!==null&&U!==void 0?U:[]).some(I=>I.referencesTableAndColumn(this,t))})||!V.isDefined(this.columns)||this.columns.length===1)return;let T=this.columns.indexOf(t),c=this.columns.splice(T);c.shift(),this.columns=this.columns.concat(c),V.isDefined(this.fulltextIndexes)&&this.fulltextIndexes.length&&this.fulltextIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.spatialIndexes)&&this.spatialIndexes.length&&this.spatialIndexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.indexes)&&this.indexes.length&&this.indexes.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.uniqueKeys)&&this.uniqueKeys.length&&this.uniqueKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropIndexByInstance(O)}),V.isDefined(this.foreignKeys)&&this.foreignKeys.length&&this.foreignKeys.forEach(O=>{O.dropColumn(t.name)&&!O.columns.length&&this.dropForeignKey(O)}),V.isDefined(this.primaryKey)&&this.primaryKey.dropColumn(t.name)&&!(!((o=this.primaryKey.columns)===null||o===void 0)&&o.length)&&delete this.primaryKey}dropIndexByInstance(t){let o=this.getIndexTypeByInstance(t);if(!V.isDefined(o)||!V.isDefined(this[o]))return;let E=this[o],T=E.indexOf(t),c=E.splice(T);c.shift(),this[o]=E.concat(c)}dropForeignKey(t){if(!V.isDefined(this.foreignKeys))return;let o=this.foreignKeys.indexOf(t),E=this.foreignKeys.splice(o);E.shift(),this.foreignKeys=this.foreignKeys.concat(E)}getIndexByName(t){let o=this.getIndexTypeByName(t);if(!o)return;let E=this[o];if(!V.isArray(E))return;let T=E.find(c=>c.name===t);return T??void 0}getIndexTypeByInstance(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O===t)})}getIndexTypeByName(t){return["uniqueKeys","indexes","fulltextIndexes","spatialIndexes"].find(T=>{var c;return((c=this[T])!==null&&c!==void 0?c:[]).some(O=>O.name===t)})}getColumn(t){var o;return((o=this.columns)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}getForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).find(E=>E.name===t)}hasForeignKey(t){var o;return((o=this.foreignKeys)!==null&&o!==void 0?o:[]).some(E=>E.name===t)}setPrimaryKey(t){var o;this.primaryKey||!t.hasAllColumnsFromTable(this)||(((o=t.columns)!==null&&o!==void 0?o:[]).forEach(E=>{if(!E.column)return;let T=this.getColumn(E.column);!T||!T.options||(T.options.nullable=!1)}),this.primaryKey=t)}pushFulltextIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.fulltextIndexes)||(this.fulltextIndexes=[]),this.fulltextIndexes.push(t))}pushSpatialIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(V.isDefined(this.spatialIndexes)||(this.spatialIndexes=[]),this.spatialIndexes.push(t))}pushUniqueKey(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.uniqueKeys)||(this.uniqueKeys=[]),this.uniqueKeys.push(t))}pushForeignKey(t){t.name&&this.getIndexByName(t.name)||(t.setIndexSizeFromTable(this),V.isDefined(this.foreignKeys)||(this.foreignKeys=[]),this.foreignKeys.push(t))}pushIndex(t){t.name&&this.getIndexByName(t.name)||!t.hasAllColumnsFromTable(this)||(t.setIndexSizeFromTable(this),V.isDefined(this.indexes)||(this.indexes=[]),this.indexes.push(t))}};Kr.Table=Bn});var xu=Q(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.CreateTable=void 0;var Cu=Lu(),yo=class{getTable(t){return this.database.getTable(t)}getTables(){return this.database.getTables()}setDatabase(t){this.database=t}pushTable(t){this.database.pushTable(t)}handleDef(t){if(t.id==="P_CREATE_TABLE"){let o=t.def;if(o.id==="P_CREATE_TABLE_COMMON"){let E=Cu.Table.fromCommonDef(o,this.database);E&&this.pushTable(E)}else if(o.id==="P_CREATE_TABLE_LIKE"){let E=Cu.Table.fromAlikeDef(o,this.getTables());if(!E)return;E.foreignKeys=[],E&&this.pushTable(E)}return}throw new TypeError(`Expected P_CREATE_TABLE rule to be handled but received ${t.id}`)}};dr.CreateTable=yo});var Pu=Q(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.CreateIndex=void 0;var Gc=ut(),Hc=Lr(),Wc=xr(),Qc=Dr(),Lo=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_CREATE_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=t.def.type.toLowerCase();E.includes("unique")?o.pushUniqueKey(Gc.UniqueKey.fromDef(t)):E.includes("fulltext")?o.pushFulltextIndex(Hc.FulltextIndex.fromDef(t)):E.includes("spatial")?o.pushSpatialIndex(Wc.SpatialIndex.fromDef(t)):o.pushIndex(Qc.Index.fromDef(t));return}throw new TypeError(`Expected P_CREATE_INDEX rule to be handled but received ${t.id}`)}};Br.CreateIndex=Lo});var du=Q(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.AlterTable=void 0;var vn=he(),Du=Io(),Ku=So(),qc=Dr(),kc=mr(),Vc=ut(),Jc=Lr(),zc=xr(),Zc=Rr(),jc=Ro(),em=ho(),gn=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_ALTER_TABLE"){let o=this.getTable(t.def.table);if(!o)return;t.def.specs.forEach(E=>{let T=E.def.spec,c=E.def.tableOptions;if(T){let O=T.def,U=O.action,I=gn[U];vn.isFunction(I)&&I(O,o)}else c&&(o.options||(o.options=new Du.TableOptions),o.options.mergeWith(Du.TableOptions.fromDef(c)))});return}throw new TypeError(`Expected P_ALTER_TABLE rule to be handled but received ${t.id}`)}static addColumn(t,o){let E=Ku.Column.fromObject(t);E.reference&&delete E.reference,o.addColumn(E,t.position)}static addColumns(t,o){t.columns.forEach(E=>{let T=Ku.Column.fromObject(E);T.reference&&delete T.reference,o.addColumn(T)})}static addIndex(t,o){let E=qc.Index.fromObject(t);o.pushIndex(E)}static addPrimaryKey(t,o){let E=kc.PrimaryKey.fromObject(t);o.setPrimaryKey(E)}static addUniqueKey(t,o){let E=Vc.UniqueKey.fromObject(t);o.pushUniqueKey(E)}static addFulltextIndex(t,o){let E=Jc.FulltextIndex.fromObject(t);o.pushFulltextIndex(E)}static addSpatialIndex(t,o){let E=zc.SpatialIndex.fromObject(t);o.pushFulltextIndex(E)}static addForeignKey(t,o){let E=Zc.ForeignKey.fromObject(t);o.pushForeignKey(E)}static setDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||(E.options.default=t.value)}static dropDefaultColumnValue(t,o){let E=o.getColumn(t.column);!vn.isDefined(E)||!vn.isDefined(E.options)||delete E.options.default}static changeColumn(t,o){var E,T;let c=o.getColumn(t.column);if(!c)return;let O;if(t.position){if(t.position.after&&!o.getColumn(t.position.after))return;O=t.position}else O=o.getColumnPosition(c);let U=em.Datatype.fromDef(t.datatype),I;t.columnDefinition&&(I=jc.ColumnOptions.fromArray(t.columnDefinition)),vn.isDefined(I)&&(I.primary&&o.primaryKey||I.autoincrement&&((E=o.columns)!==null&&E!==void 0?E:[]).some(L=>{var P;return L!==c&&((P=L.options)===null||P===void 0?void 0:P.autoincrement)})||(I.unique&&((T=o.uniqueKeys)===null||T===void 0?void 0:T.some(L=>L.columns.length===1&&L.columns[0].column===c.name))&&delete I.unique,O&&o.moveColumn(c,O)&&(t.newName&&t.newName!==c.name&&o.renameColumn(c,t.newName),c.type=U,c.options=I,o.extractColumnKeys(c))))}static dropColumn(t,o){let E=o.getColumn(t.column);!E||o.dropColumn(E)}static dropIndex(t,o){if(t.index.toLowerCase()==="primary"){gn.dropPrimaryKey(t,o);return}let E=o.getIndexByName(t.index);!E||o.dropIndexByInstance(E)}static dropPrimaryKey(t,o){o.dropPrimaryKey()}static dropForeignKey(t,o){let E=o.getForeignKey(t.key);!E||o.dropForeignKey(E)}static renameIndex(t,o){let E=o.getIndexByName(t.index);!E||(E.name=t.newName)}static rename(t,o){o.renameTo(t.newName)}};vr.AlterTable=gn});var Bu=Q(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.RenameTable=void 0;var Co=class{getTable(t){var o;return(o=this.database.getTable(t))!==null&&o!==void 0?o:void 0}setDatabase(t){this.database=t}getTables(){return this.database.getTables()}handleDef(t){if(t.id==="P_RENAME_TABLE"){t.def.forEach(o=>{let E=this.getTables().find(T=>T.name===o.table);!E||E.renameTo(o.newName)});return}throw new TypeError(`Expected P_RENAME_TABLE rule to be handled but received ${t.id}`)}};gr.RenameTable=Co});var vu=Q(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DropTable=void 0;var xo=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_TABLE"){t.def.forEach(o=>{let E=this.getTable(o);if(!E)return;let T=this.database.getTables();if(T.some(U=>{var I;return(I=U.foreignKeys)===null||I===void 0?void 0:I.some(L=>L.referencesTable(E))})||!E)return;let O=T.splice(T.indexOf(E));O.shift(),T=T.concat(O),this.database.setTables(T)});return}throw new TypeError(`Expected P_DROP_TABLE rule to be handled but received ${t.id}`)}};Mr.DropTable=xo});var gu=Q(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.DropIndex=void 0;var Po=class{getTable(t){return this.database.getTable(t)}setDatabase(t){this.database=t}handleDef(t){if(t.id==="P_DROP_INDEX"){let o=this.getTable(t.def.table);if(!o)return;let E=o.getIndexByName(t.def.index);if(!E)return;o.dropIndexByInstance(E);return}throw new TypeError(`Expected P_DROP_INDEX rule to be handled but received ${t.id}`)}};Fr.DropIndex=Po});var Mu=Q(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Database=void 0;var sm=xu(),nm=Pu(),tm=du(),rm=Bu(),_m=vu(),om=gu(),$t=class{constructor(){this.ddsCollection=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseDdsCollection(t){this.ddsCollection=t,this.ddsCollection.forEach(o=>{if(!o)return;let E=o.def,T=$t.getHandler(E.id);!T||(T.setDatabase(this),T.handleDef(E))})}static getHandler(t){if(t==="P_CREATE_TABLE")return new sm.CreateTable;if(t==="P_CREATE_INDEX")return new nm.CreateIndex;if(t==="P_ALTER_TABLE")return new tm.AlterTable;if(t==="P_RENAME_TABLE")return new rm.RenameTable;if(t==="P_DROP_TABLE")return new _m.DropTable;if(t==="P_DROP_INDEX")return new om.DropIndex}};Ur.Database=$t});var Fu=Q(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.format=void 0;var im=Mu();wr.format=s=>{if(s.id==="MAIN"){let t=new im.Database;return t.parseDdsCollection(s.def),t.getTables().map(o=>o.toJSON())}throw new TypeError("Invalid JSON format provided for CompactFormatter. Please provide JSON from root element, containing { id: MAIN }.")}});var Uu=Q(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Datatype=void 0;var Mn=he(),Fn=class{static fromCompactJson(t){let o=new Fn;return o.datatype=t.datatype,Mn.isDefined(t.decimals)&&(o.decimals=t.decimals),Mn.isDefined(t.digits)&&(o.digits=t.digits),Mn.isDefined(t.fractional)&&(o.fractional=t.fractional),Mn.isDefined(t.length)&&(o.length=t.length),Mn.isDefined(t.values)&&(o.values=t.values),Mn.isDefined(t.width)&&(o.width=t.width),o}static filterDatatype(t){return t==="int"?"integer":t==="decimal"||t==="float"||t==="double"?"number":t==="boolean"?"boolean":"string"}toJSON(){let t={type:Fn.filterDatatype(this.datatype)};if(this.datatype==="int"){let o=Math.pow(2,8*this.width);this.isUnsigned?(t.minimum=0,t.maximum=o):(t.minimum=0-o/2,t.maximum=0-t.minimum-1)}else if(this.datatype==="decimal"||this.datatype==="float")t.maximum=Number(`${"9".repeat(this.digits-this.decimals)}.${"9".repeat(this.decimals)}`),this.isUnsigned?t.minimum=0:t.minimum=0-t.maximum;else if(this.datatype==="date")t.format="date";else if(this.datatype==="time")t.format="time";else if(this.datatype==="datetime")t.format="date-time";else if(this.datatype==="year")t.pattern=`\\d{1,${this.digits}}`;else if(this.datatype==="char"||this.datatype==="binary"||this.datatype==="varchar"||this.datatype==="varbinary"||this.datatype==="text")t.maxLength=this.length;else if(this.datatype==="enum")t.enum=this.values;else if(this.datatype==="set"){let o=this.values.join("|");t.pattern=`^(${o})(,(${o}))*$`}return t}};Yr.Datatype=Fn});var wu=Q(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Column=void 0;var Tt=he(),Em=Uu(),lt=class{static fromCompactJson(t){let o=new lt;o.datatype=Em.Datatype.fromCompactJson(t.type),o.name=t.name;let E=t.options;return E&&(E.unsigned&&(o.datatype.isUnsigned=E.unsigned),(E.default===null||Tt.isString(E.default)&&E.default.length)&&(o.default=E.default),Tt.isString(E.comment)&&E.comment.length&&(o.comment=E.comment),o.isNullable=E.nullable),o}toJSON(){let t={},o=this.datatype.toJSON();return this.isPrimaryKey===!0&&(t.$comment="primary key",o.minimum=1),Tt.isDefined(this.comment)&&(t.description=this.comment),Object.getOwnPropertyNames(o).forEach(E=>{let T=o[E],c=Tt.isNumber(T);(c&&Number.isFinite(T)||!c)&&Tt.setProperty(t,E,T)}),typeof this.default<"u"&&(t.default=this.default),t}};Xr.Column=lt});var Yu=Q(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.Table=void 0;var Un=he(),um=wu(),ft=class{constructor(){this.columns=[]}static fromCompactJson(t){var o;let E=new ft;E.name=t.name,Un.isDefined(t.columns)&&(E.columns=t.columns.map(c=>um.Column.fromCompactJson(c))),Un.isDefined(t.primaryKey)&&((o=t.primaryKey.columns)!==null&&o!==void 0?o:[]).map(c=>c.column).map(c=>E.columns.find(O=>O.name===c)).filter(Un.isDefined).forEach(c=>{c.isPrimaryKey=!0});let T=t.options;return T&&Un.isDefined(T.comment)&&(E.comment=T.comment),E}toJSON(t){let o={$schema:"http://json-schema.org/draft-07/schema",$comment:`JSON Schema for ${this.name} table`,$id:this.name,title:this.name,description:"",type:"object",required:[],definitions:{},properties:{}};return Un.isDefined(this.comment)?o.description=this.comment:delete o.description,this.columns.forEach(E=>{let T=E.toJSON(),c=E.name,O={};o.properties[c]={$ref:`#/definitions/${c}`},Object.getOwnPropertyNames(T).forEach(U=>{Un.setProperty(O,U,T[U])}),o.definitions[c]=O,E.isNullable===!1&&o.required.push(c)}),t.useRef===!1&&(o.properties=o.definitions,delete o.definitions),o}};Gr.Table=ft});var Xu=Q(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Database=void 0;var am=Yu(),Do=class{constructor(){this.compactJsonTables=[],this.tables=[]}getTables(){return this.tables}setTables(t){this.tables=t}getTable(t){return this.tables.find(o=>o.name===t)}pushTable(t){this.tables.some(o=>o.name===t.name)||this.tables.push(t)}parseCompactJson(t){this.setTables(t.map(o=>am.Table.fromCompactJson(o)))}};Hr.Database=Do});var Gu=Q(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.format=void 0;var pm=Xu();Wr.format=(s,t)=>{let o=new pm.Database;return o.parseCompactJson(s),o.getTables().map(T=>T.toJSON(t))}});var Wu=Q(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Parser=void 0;var Hu=bu(),$m=he(),Tm=hu(),lm=Fu(),fm=Gu(),wn=class{constructor(t="mysql"){if(this.statements=[],this.remains="",this.escaped=!1,this.quoted="",!t||t==="mysql"||t==="mariadb")this.compiledGrammar=Hu.Grammar.fromCompiled(Tm.Grammar),this.compactFormatter=lm.format,this.jsonSchemaFormatter=fm.format;else throw new TypeError(`Unsupported SQL dialect given to parser: '${t}. Please provide 'mysql', 'mariadb' or none to use default.`);this.resetParser()}feed(t){let o,E,T="",c=0;for(o=0;o1){let U=Number(O[1]),I=o+U-1;c.message=c.message.replace(/\d+/,I)}}throw this.resetParser(),this.statements=[],this.remains="",this.escaped=!1,this.quoted="",c}return this.remains="",this.escaped=!1,this.quoted="",{id:"MAIN",def:T}}toCompactJson(t){return this.compactFormatter(t??this.results)}toJsonSchemaArray(t={useRef:!0},o){return this.jsonSchemaFormatter(o??this.toCompactJson(),t)}};Qr.Parser=wn});var qu=Q(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0})});var Vu=Q(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0})});var zu=Q(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0})});var ju=Q(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0})});var ea=Q(Os=>{"use strict";var Am=Os&&Os.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),qr=Os&&Os.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&Am(t,s,o)};Object.defineProperty(Os,"__esModule",{value:!0});qr(qu(),Os);qr(Vu(),Os);qr(zu(),Os);qr(ju(),Os)});var sa=Q(zs=>{"use strict";var bm=zs&&zs.__createBinding||(Object.create?function(s,t,o,E){E===void 0&&(E=o),Object.defineProperty(s,E,{enumerable:!0,get:function(){return t[o]}})}:function(s,t,o,E){E===void 0&&(E=o),s[E]=t[o]}),cm=zs&&zs.__exportStar||function(s,t){for(var o in s)o!=="default"&&!t.hasOwnProperty(o)&&bm(t,s,o)};Object.defineProperty(zs,"__esModule",{value:!0});var mm=Wu();Object.defineProperty(zs,"Parser",{enumerable:!0,get:function(){return mm.Parser}});cm(ea(),zs)});var na=Q((Yn,At)=>{(function(){var s,t="4.17.21",o=200,E="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",c="Invalid `variable` option passed into `_.template`",O="__lodash_hash_undefined__",U=500,I="__lodash_placeholder__",L=1,P=2,K=4,q=1,X=2,te=1,_e=2,Se=4,re=8,ye=16,xe=32,pe=64,We=128,fs=256,Zs=512,R=30,x="...",v=800,w=16,J=1,G=2,se=3,Ee=1/0,ue=9007199254740991,Y=17976931348623157e292,Ae=0/0,Be=4294967295,Ne=Be-1,is=Be>>>1,ds=[["ary",We],["bind",te],["bindKey",_e],["curry",re],["curryRight",ye],["flip",Zs],["partial",xe],["partialRight",pe],["rearg",fs]],Pe="[object Arguments]",As="[object Array]",Bs="[object AsyncFunction]",Es="[object Boolean]",bs="[object Date]",kr="[object DOMException]",bt="[object Error]",ct="[object Function]",Mo="[object GeneratorFunction]",us="[object Map]",Xn="[object Number]",ia="[object Null]",Rs="[object Object]",Fo="[object Promise]",Ea="[object Proxy]",Gn="[object RegExp]",as="[object Set]",Hn="[object String]",mt="[object Symbol]",ua="[object Undefined]",Wn="[object WeakMap]",aa="[object WeakSet]",Qn="[object ArrayBuffer]",fn="[object DataView]",Vr="[object Float32Array]",Jr="[object Float64Array]",zr="[object Int8Array]",Zr="[object Int16Array]",jr="[object Int32Array]",e_="[object Uint8Array]",s_="[object Uint8ClampedArray]",n_="[object Uint16Array]",t_="[object Uint32Array]",pa=/\b__p \+= '';/g,$a=/\b(__p \+=) '' \+/g,Ta=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,wo=/[&<>"']/g,la=RegExp(Uo.source),fa=RegExp(wo.source),Aa=/<%-([\s\S]+?)%>/g,ba=/<%([\s\S]+?)%>/g,Yo=/<%=([\s\S]+?)%>/g,ca=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ma=/^\w*$/,Ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r_=/[\\^$.*+?()[\]{}|]/g,Oa=RegExp(r_.source),__=/^\s+/,Ra=/\s/,ha=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Na=/\{\n\/\* \[wrapped with (.+)\] \*/,Sa=/,? & /,ya=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,La=/[()=,{}\[\]\/\s]/,Ca=/\\(\\)?/g,xa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xo=/\w*$/,Pa=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,Ka=/^\[object .+?Constructor\]$/,da=/^0o[0-7]+$/i,Ba=/^(?:0|[1-9]\d*)$/,va=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,It=/($^)/,ga=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",Ma="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Ua="\\u20d0-\\u20ff",Go=Ma+Fa+Ua,Ho="\\u2700-\\u27bf",Wo="a-z\\xdf-\\xf6\\xf8-\\xff",wa="\\xac\\xb1\\xd7\\xf7",Ya="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xa="\\u2000-\\u206f",Ga=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qo="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",ko=wa+Ya+Xa+Ga,o_="['\u2019]",Ha="["+Ot+"]",Vo="["+ko+"]",Rt="["+Go+"]",Jo="\\d+",Wa="["+Ho+"]",zo="["+Wo+"]",Zo="[^"+Ot+ko+Jo+Ho+Wo+Qo+"]",i_="\\ud83c[\\udffb-\\udfff]",Qa="(?:"+Rt+"|"+i_+")",jo="[^"+Ot+"]",E_="(?:\\ud83c[\\udde6-\\uddff]){2}",u_="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+Qo+"]",ei="\\u200d",si="(?:"+zo+"|"+Zo+")",qa="(?:"+An+"|"+Zo+")",ni="(?:"+o_+"(?:d|ll|m|re|s|t|ve))?",ti="(?:"+o_+"(?:D|LL|M|RE|S|T|VE))?",ri=Qa+"?",_i="["+qo+"]?",ka="(?:"+ei+"(?:"+[jo,E_,u_].join("|")+")"+_i+ri+")*",Va="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ja="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oi=_i+ri+ka,za="(?:"+[Wa,E_,u_].join("|")+")"+oi,Za="(?:"+[jo+Rt+"?",Rt,E_,u_,Ha].join("|")+")",ja=RegExp(o_,"g"),ep=RegExp(Rt,"g"),a_=RegExp(i_+"(?="+i_+")|"+Za+oi,"g"),sp=RegExp([An+"?"+zo+"+"+ni+"(?="+[Vo,An,"$"].join("|")+")",qa+"+"+ti+"(?="+[Vo,An+si,"$"].join("|")+")",An+"?"+si+"+"+ni,An+"+"+ti,Ja,Va,Jo,za].join("|"),"g"),np=RegExp("["+ei+Ot+Go+qo+"]"),tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_p=-1,le={};le[Vr]=le[Jr]=le[zr]=le[Zr]=le[jr]=le[e_]=le[s_]=le[n_]=le[t_]=!0,le[Pe]=le[As]=le[Qn]=le[Es]=le[fn]=le[bs]=le[bt]=le[ct]=le[us]=le[Xn]=le[Rs]=le[Gn]=le[as]=le[Hn]=le[Wn]=!1;var Te={};Te[Pe]=Te[As]=Te[Qn]=Te[fn]=Te[Es]=Te[bs]=Te[Vr]=Te[Jr]=Te[zr]=Te[Zr]=Te[jr]=Te[us]=Te[Xn]=Te[Rs]=Te[Gn]=Te[as]=Te[Hn]=Te[mt]=Te[e_]=Te[s_]=Te[n_]=Te[t_]=!0,Te[bt]=Te[ct]=Te[Wn]=!1;var op={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ip={"&":"&","<":"<",">":">",'"':""","'":"'"},Ep={"&":"&","<":"<",">":">",""":'"',"'":"'"},up={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ap=parseFloat,pp=parseInt,ii=typeof global=="object"&&global&&global.Object===Object&&global,$p=typeof self=="object"&&self&&self.Object===Object&&self,De=ii||$p||Function("return this")(),p_=typeof Yn=="object"&&Yn&&!Yn.nodeType&&Yn,js=p_&&typeof At=="object"&&At&&!At.nodeType&&At,Ei=js&&js.exports===p_,$_=Ei&&ii.process,Ze=function(){try{var A=js&&js.require&&js.require("util").types;return A||$_&&$_.binding&&$_.binding("util")}catch{}}(),ui=Ze&&Ze.isArrayBuffer,ai=Ze&&Ze.isDate,pi=Ze&&Ze.isMap,$i=Ze&&Ze.isRegExp,Ti=Ze&&Ze.isSet,li=Ze&&Ze.isTypedArray;function Qe(A,N,m){switch(m.length){case 0:return A.call(N);case 1:return A.call(N,m[0]);case 2:return A.call(N,m[0],m[1]);case 3:return A.call(N,m[0],m[1],m[2])}return A.apply(N,m)}function Tp(A,N,m,d){for(var H=-1,oe=A==null?0:A.length;++H-1}function T_(A,N,m){for(var d=-1,H=A==null?0:A.length;++d-1;);return m}function Ri(A,N){for(var m=A.length;m--&&bn(N,A[m],0)>-1;);return m}function Rp(A,N){for(var m=A.length,d=0;m--;)A[m]===N&&++d;return d}var hp=b_(op),Np=b_(ip);function Sp(A){return"\\"+up[A]}function yp(A,N){return A==null?s:A[N]}function cn(A){return np.test(A)}function Lp(A){return tp.test(A)}function Cp(A){for(var N,m=[];!(N=A.next()).done;)m.push(N.value);return m}function O_(A){var N=-1,m=Array(A.size);return A.forEach(function(d,H){m[++N]=[H,d]}),m}function hi(A,N){return function(m){return A(N(m))}}function Ms(A,N){for(var m=-1,d=A.length,H=0,oe=[];++m-1}function f$(e,n){var r=this.__data__,i=wt(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}hs.prototype.clear=p$,hs.prototype.delete=$$,hs.prototype.get=T$,hs.prototype.has=l$,hs.prototype.set=f$;function Ns(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function ns(e,n,r,i,u,p){var $,l=n&L,b=n&P,S=n&K;if(r&&($=u?r(e,i,u,p):r(e)),$!==s)return $;if(!be(e))return e;var y=W(e);if(y){if($=mT(e),!l)return Ye(e,$)}else{var C=Me(e),D=C==ct||C==Mo;if(Hs(e))return _E(e,l);if(C==Rs||C==Pe||D&&!u){if($=b||D?{}:NE(e),!l)return b?ET(e,D$($,e)):iT(e,vi($,e))}else{if(!Te[C])return u?e:{};$=IT(e,C,l)}}p||(p=new $s);var B=p.get(e);if(B)return B;p.set(e,$),jE(e)?e.forEach(function(F){$.add(ns(F,n,r,F,e,p))}):zE(e)&&e.forEach(function(F,j){$.set(j,ns(F,n,r,j,e,p))});var M=S?b?q_:Q_:b?Ge:Ke,z=y?s:M(e);return je(z||e,function(F,j){z&&(j=F,F=e[j]),jn($,j,ns(F,n,r,j,e,p))}),$}function K$(e){var n=Ke(e);return function(r){return gi(r,e,n)}}function gi(e,n,r){var i=r.length;if(e==null)return!i;for(e=$e(e);i--;){var u=r[i],p=n[u],$=e[u];if($===s&&!(u in e)||!p($))return!1}return!0}function Mi(e,n,r){if(typeof e!="function")throw new es(T);return ot(function(){e.apply(s,r)},n)}function et(e,n,r,i){var u=-1,p=ht,$=!0,l=e.length,b=[],S=n.length;if(!l)return b;r&&(n=fe(n,qe(r))),i?(p=T_,$=!1):n.length>=o&&(p=qn,$=!1,n=new nn(n));e:for(;++uu?0:u+r),i=i===s||i>u?u:k(i),i<0&&(i+=u),i=r>i?0:su(i);r0&&r(l)?n>1?ve(l,n-1,r,i,u):gs(u,l):i||(u[u.length]=l)}return u}var C_=pE(),wi=pE(!0);function cs(e,n){return e&&C_(e,n,Ke)}function x_(e,n){return e&&wi(e,n,Ke)}function Xt(e,n){return vs(n,function(r){return xs(e[r])})}function rn(e,n){n=Xs(n,e);for(var r=0,i=n.length;e!=null&&rn}function v$(e,n){return e!=null&&ae.call(e,n)}function g$(e,n){return e!=null&&n in $e(e)}function M$(e,n,r){return e>=ge(n,r)&&e=120&&y.length>=120)?new nn($&&y):s}y=e[0];var C=-1,D=l[0];e:for(;++C-1;)l!==e&&dt.call(l,b,1),dt.call(e,b,1);return e}function zi(e,n){for(var r=e?n.length:0,i=r-1;r--;){var u=n[r];if(r==i||u!==p){var p=u;Cs(u)?dt.call(e,u,1):U_(e,u)}}return e}function g_(e,n){return e+gt(Di()*(n-e+1))}function J$(e,n,r,i){for(var u=-1,p=Ce(vt((n-e)/(r||1)),0),$=m(p);p--;)$[i?p:++u]=e,e+=r;return $}function M_(e,n){var r="";if(!e||n<1||n>ue)return r;do n%2&&(r+=e),n=gt(n/2),n&&(e+=e);while(n);return r}function Z(e,n){return eo(LE(e,n,He),e+"")}function z$(e){return Bi(Cn(e))}function Z$(e,n){var r=Cn(e);return jt(r,tn(n,0,r.length))}function tt(e,n,r,i){if(!be(e))return e;n=Xs(n,e);for(var u=-1,p=n.length,$=p-1,l=e;l!=null&&++uu?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var p=m(u);++i>>1,$=e[p];$!==null&&!Ve($)&&(r?$<=n:$=o){var S=n?null:$T(e);if(S)return St(S);$=!1,u=qn,b=new nn}else b=n?[]:l;e:for(;++i=i?e:ts(e,n,r)}var rE=Gp||function(e){return De.clearTimeout(e)};function _E(e,n){if(n)return e.slice();var r=e.length,i=yi?yi(r):new e.constructor(r);return e.copy(i),i}function G_(e){var n=new e.constructor(e.byteLength);return new Dt(n).set(new Dt(e)),n}function tT(e,n){var r=n?G_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function rT(e){var n=new e.constructor(e.source,Xo.exec(e));return n.lastIndex=e.lastIndex,n}function _T(e){return Zn?$e(Zn.call(e)):{}}function oE(e,n){var r=n?G_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function iE(e,n){if(e!==n){var r=e!==s,i=e===null,u=e===e,p=Ve(e),$=n!==s,l=n===null,b=n===n,S=Ve(n);if(!l&&!S&&!p&&e>n||p&&$&&b&&!l&&!S||i&&$&&b||!r&&b||!u)return 1;if(!i&&!p&&!S&&e=l)return b;var S=r[i];return b*(S=="desc"?-1:1)}}return e.index-n.index}function EE(e,n,r,i){for(var u=-1,p=e.length,$=r.length,l=-1,b=n.length,S=Ce(p-$,0),y=m(b+S),C=!i;++l1?r[u-1]:s,$=u>2?r[2]:s;for(p=e.length>3&&typeof p=="function"?(u--,p):s,$&&Ue(r[0],r[1],$)&&(p=u<3?s:p,u=1),n=$e(n);++i-1?u[p?n[$]:$]:s}}function lE(e){return Ls(function(n){var r=n.length,i=r,u=ss.prototype.thru;for(e&&n.reverse();i--;){var p=n[i];if(typeof p!="function")throw new es(T);if(u&&!$&&zt(p)=="wrapper")var $=new ss([],!0)}for(i=$?i:r;++i1&&ne.reverse(),y&&bl))return!1;var S=p.get(e),y=p.get(n);if(S&&y)return S==n&&y==e;var C=-1,D=!0,B=r&X?new nn:s;for(p.set(e,n),p.set(n,e);++C1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(ha,`{ /* [wrapped with `+n+`] */ -`)}function RT(e){return W(e)||En(e)||!!(xi&&e&&e[xi])}function Cs(e,n){var r=typeof e;return n=n??ue,!!n&&(r=="number"||r!="symbol"&&Ba.test(e))&&e>-1&&e%1==0&&e0){if(++n>=v)return arguments[0]}else n=0;return e.apply(s,arguments)}}function jt(e,n){var r=-1,i=e.length,u=i-1;for(n=n===s?i:n;++r1?e[n-1]:s;return r=typeof r=="function"?(e.pop(),r):s,UE(e,r)});function wE(e){var n=a(e);return n.__chain__=!0,n}function dl(e,n){return n(e),e}function er(e,n){return n(e)}var Bl=Ls(function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,u=function(p){return C_(p,e)};return n>1||this.__actions__.length||!(i instanceof ee)||!Cs(r)?this.thru(u):(i=i.slice(r,+r+(n?1:0)),i.__actions__.push({func:er,args:[u],thisArg:s}),new ss(i,this.__chain__).thru(function(p){return n&&!p.length&&p.push(s),p}))});function vl(){return wE(this)}function gl(){return new ss(this.value(),this.__chain__)}function Ml(){this.__values__===s&&(this.__values__=eu(this.value()));var e=this.__index__>=this.__values__.length,n=e?s:this.__values__[this.__index__++];return{done:e,value:n}}function Fl(){return this}function Ul(e){for(var n,r=this;r instanceof Ut;){var i=dE(r);i.__index__=0,i.__values__=s,n?u.__wrapped__=i:n=i;var u=i;r=r.__wrapped__}return u.__wrapped__=e,n}function wl(){var e=this.__wrapped__;if(e instanceof ee){var n=e;return this.__actions__.length&&(n=new ee(this)),n=n.reverse(),n.__actions__.push({func:er,args:[no],thisArg:s}),new ss(n,this.__chain__)}return this.thru(no)}function Yl(){return nE(this.__wrapped__,this.__actions__)}var Xl=Qt(function(e,n,r){ae.call(e,r)?++e[r]:Ss(e,r,1)});function Gl(e,n,r){var i=W(e)?fi:d$;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}function Hl(e,n){var r=W(e)?vs:Ui;return r(e,g(n,3))}var Wl=TE(BE),Ql=TE(vE);function ql(e,n){return ve(sr(e,n),1)}function kl(e,n){return ve(sr(e,n),Ee)}function Vl(e,n,r){return r=r===s?1:k(r),ve(sr(e,n),r)}function YE(e,n){var r=W(e)?je:ws;return r(e,g(n,3))}function XE(e,n){var r=W(e)?lp:Fi;return r(e,g(n,3))}var Jl=Qt(function(e,n,r){ae.call(e,r)?e[r].push(n):Ss(e,r,[n])});function zl(e,n,r,i){e=Xe(e)?e:Cn(e),r=r&&!i?k(r):0;var u=e.length;return r<0&&(r=Ce(u+r,0)),or(e)?r<=u&&e.indexOf(n,r)>-1:!!u&&bn(e,n,r)>-1}var Zl=Z(function(e,n,r){var i=-1,u=typeof n=="function",p=Xe(e)?m(e.length):[];return ws(e,function($){p[++i]=u?Qe(n,$,r):st($,n,r)}),p}),jl=Qt(function(e,n,r){Ss(e,r,n)});function sr(e,n){var r=W(e)?fe:Wi;return r(e,g(n,3))}function ef(e,n,r,i){return e==null?[]:(W(n)||(n=n==null?[]:[n]),r=i?s:r,W(r)||(r=r==null?[]:[r]),Vi(e,n,r))}var sf=Qt(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function nf(e,n,r){var i=W(e)?f_:mi,u=arguments.length<3;return i(e,g(n,4),r,u,ws)}function tf(e,n,r){var i=W(e)?fp:mi,u=arguments.length<3;return i(e,g(n,4),r,u,Fi)}function rf(e,n){var r=W(e)?vs:Ui;return r(e,rr(g(n,3)))}function _f(e){var n=W(e)?Bi:z$;return n(e)}function of(e,n,r){(r?Ue(e,n,r):n===s)?n=1:n=k(n);var i=W(e)?C$:Z$;return i(e,n)}function Ef(e){var n=W(e)?x$:eT;return n(e)}function uf(e){if(e==null)return 0;if(Xe(e))return or(e)?mn(e):e.length;var n=Me(e);return n==us||n==as?e.size:B_(e).length}function af(e,n,r){var i=W(e)?A_:sT;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}var pf=Z(function(e,n){if(e==null)return[];var r=n.length;return r>1&&Ue(e,n[0],n[1])?n=[]:r>2&&Ue(n[0],n[1],n[2])&&(n=[n[0]]),Vi(e,ve(n,1),[])}),nr=Hp||function(){return De.Date.now()};function $f(e,n){if(typeof n!="function")throw new es(T);return e=k(e),function(){if(--e<1)return n.apply(this,arguments)}}function GE(e,n,r){return n=r?s:n,n=e&&n==null?e.length:n,ys(e,We,s,s,s,s,n)}function HE(e,n){var r;if(typeof n!="function")throw new es(T);return e=k(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=s),r}}var ro=Z(function(e,n,r){var i=te;if(r.length){var u=Ms(r,yn(ro));i|=xe}return ys(e,i,n,r,u)}),WE=Z(function(e,n,r){var i=te|_e;if(r.length){var u=Ms(r,yn(WE));i|=xe}return ys(n,i,e,r,u)});function QE(e,n,r){n=r?s:n;var i=ys(e,re,s,s,s,s,s,n);return i.placeholder=QE.placeholder,i}function qE(e,n,r){n=r?s:n;var i=ys(e,ye,s,s,s,s,s,n);return i.placeholder=qE.placeholder,i}function kE(e,n,r){var i,u,p,$,l,b,S=0,y=!1,C=!1,D=!0;if(typeof e!="function")throw new es(T);n=_s(n)||0,be(r)&&(y=!!r.leading,C="maxWait"in r,p=C?Ce(_s(r.maxWait)||0,n):p,D="trailing"in r?!!r.trailing:D);function B(Re){var ls=i,Ds=u;return i=u=s,S=Re,$=e.apply(Ds,ls),$}function F(Re){return S=Re,l=ot(j,n),y?B(Re):$}function z(Re){var ls=Re-b,Ds=Re-S,Tu=n-ls;return C?ge(Tu,p-Ds):Tu}function U(Re){var ls=Re-b,Ds=Re-S;return b===s||ls>=n||ls<0||C&&Ds>=p}function j(){var Re=nr();if(U(Re))return ne(Re);l=ot(j,z(Re))}function ne(Re){return l=s,D&&i?B(Re):(i=u=s,$)}function Je(){l!==s&&rE(l),S=0,i=b=u=l=s}function we(){return l===s?$:ne(nr())}function ze(){var Re=nr(),ls=U(Re);if(i=arguments,u=this,b=Re,ls){if(l===s)return F(b);if(C)return rE(l),l=ot(j,n),B(b)}return l===s&&(l=ot(j,n)),$}return ze.cancel=Je,ze.flush=we,ze}var Tf=Z(function(e,n){return Mi(e,1,n)}),lf=Z(function(e,n,r){return Mi(e,_s(n)||0,r)});function ff(e){return ys(e,Zs)}function tr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new es(T);var r=function(){var i=arguments,u=n?n.apply(this,i):i[0],p=r.cache;if(p.has(u))return p.get(u);var $=e.apply(this,i);return r.cache=p.set(u,$)||p,$};return r.cache=new(tr.Cache||Ns),r}tr.Cache=Ns;function rr(e){if(typeof e!="function")throw new es(T);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Af(e){return HE(2,e)}var bf=nT(function(e,n){n=n.length==1&&W(n[0])?fe(n[0],qe(g())):fe(ve(n,1),qe(g()));var r=n.length;return Z(function(i){for(var u=-1,p=ge(i.length,r);++u=n}),En=Xi(function(){return arguments}())?Xi:function(e){return me(e)&&ae.call(e,"callee")&&!Ci.call(e,"callee")},W=m.isArray,Kf=ui?qe(ui):U$;function Xe(e){return e!=null&&_r(e.length)&&!xs(e)}function Oe(e){return me(e)&&Xe(e)}function df(e){return e===!0||e===!1||me(e)&&Fe(e)==Es}var Hs=Qp||Ao,Bf=ai?qe(ai):w$;function vf(e){return me(e)&&e.nodeType===1&&!it(e)}function gf(e){if(e==null)return!0;if(Xe(e)&&(W(e)||typeof e=="string"||typeof e.splice=="function"||Hs(e)||Ln(e)||En(e)))return!e.length;var n=Me(e);if(n==us||n==as)return!e.size;if(_t(e))return!B_(e).length;for(var r in e)if(ae.call(e,r))return!1;return!0}function Mf(e,n){return nt(e,n)}function Ff(e,n,r){r=typeof r=="function"?r:s;var i=r?r(e,n):s;return i===s?nt(e,n,s,r):!!i}function oo(e){if(!me(e))return!1;var n=Fe(e);return n==bt||n==Vr||typeof e.message=="string"&&typeof e.name=="string"&&!it(e)}function Uf(e){return typeof e=="number"&&Pi(e)}function xs(e){if(!be(e))return!1;var n=Fe(e);return n==ct||n==Mo||n==Bs||n==Ea}function JE(e){return typeof e=="number"&&e==k(e)}function _r(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ue}function be(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function me(e){return e!=null&&typeof e=="object"}var zE=pi?qe(pi):X$;function wf(e,n){return e===n||d_(e,n,J_(n))}function Yf(e,n,r){return r=typeof r=="function"?r:s,d_(e,n,J_(n),r)}function Xf(e){return ZE(e)&&e!=+e}function Gf(e){if(ST(e))throw new H(E);return Gi(e)}function Hf(e){return e===null}function Wf(e){return e==null}function ZE(e){return typeof e=="number"||me(e)&&Fe(e)==Xn}function it(e){if(!me(e)||Fe(e)!=Rs)return!1;var n=Kt(e);if(n===null)return!0;var r=ae.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Ct.call(r)==wp}var io=$i?qe($i):G$;function Qf(e){return JE(e)&&e>=-ue&&e<=ue}var jE=Ti?qe(Ti):H$;function or(e){return typeof e=="string"||!W(e)&&me(e)&&Fe(e)==Hn}function Ve(e){return typeof e=="symbol"||me(e)&&Fe(e)==mt}var Ln=li?qe(li):W$;function qf(e){return e===s}function kf(e){return me(e)&&Me(e)==Wn}function Vf(e){return me(e)&&Fe(e)==aa}var Jf=Jt(v_),zf=Jt(function(e,n){return e<=n});function eu(e){if(!e)return[];if(Xe(e))return or(e)?ps(e):Ye(e);if(kn&&e[kn])return Cp(e[kn]());var n=Me(e),r=n==us?R_:n==as?St:Cn;return r(e)}function Ps(e){if(!e)return e===0?e:0;if(e=_s(e),e===Ee||e===-Ee){var n=e<0?-1:1;return n*Y}return e===e?e:0}function k(e){var n=Ps(e),r=n%1;return n===n?r?n-r:n:0}function su(e){return e?tn(k(e),0,Be):0}function _s(e){if(typeof e=="number")return e;if(Ve(e))return Ae;if(be(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=be(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ii(e);var r=Da.test(e);return r||da.test(e)?pp(e.slice(2),r?2:8):Pa.test(e)?Ae:+e}function nu(e){return ms(e,Ge(e))}function Zf(e){return e?tn(k(e),-ue,ue):e===0?e:0}function ie(e){return e==null?"":ke(e)}var jf=Nn(function(e,n){if(_t(n)||Xe(n)){ms(n,Ke(n),e);return}for(var r in n)ae.call(n,r)&&jn(e,r,n[r])}),tu=Nn(function(e,n){ms(n,Ge(n),e)}),ir=Nn(function(e,n,r,i){ms(n,Ge(n),e,i)}),eA=Nn(function(e,n,r,i){ms(n,Ke(n),e,i)}),sA=Ls(C_);function nA(e,n){var r=hn(e);return n==null?r:vi(r,n)}var tA=Z(function(e,n){e=$e(e);var r=-1,i=n.length,u=i>2?n[2]:s;for(u&&Ue(n[0],n[1],u)&&(i=1);++r1),p}),ms(e,k_(e),r),i&&(r=ns(r,L|P|K,TT));for(var u=n.length;u--;)w_(r,n[u]);return r});function OA(e,n){return _u(e,rr(g(n)))}var RA=Ls(function(e,n){return e==null?{}:k$(e,n)});function _u(e,n){if(e==null)return{};var r=fe(k_(e),function(i){return[i]});return n=g(n),Ji(e,r,function(i,u){return n(i,u[0])})}function hA(e,n,r){n=Xs(n,e);var i=-1,u=n.length;for(u||(u=1,e=s);++in){var i=e;e=n,n=i}if(r||e%1||n%1){var u=Di();return ge(e+u*(n-e+ap("1e-"+((u+"").length-1))),n)}return M_(e,n)}var BA=Sn(function(e,n,r){return n=n.toLowerCase(),e+(r?Eu(n):n)});function Eu(e){return ao(ie(e).toLowerCase())}function uu(e){return e=ie(e),e&&e.replace(va,hp).replace(ep,"")}function vA(e,n,r){e=ie(e),n=ke(n);var i=e.length;r=r===s?i:tn(k(r),0,i);var u=r;return r-=n.length,r>=0&&e.slice(r,u)==n}function gA(e){return e=ie(e),e&&fa.test(e)?e.replace(wo,Np):e}function MA(e){return e=ie(e),e&&Oa.test(e)?e.replace(__,"\\$&"):e}var FA=Sn(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),UA=Sn(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),wA=$E("toLowerCase");function YA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;if(!n||i>=n)return e;var u=(n-i)/2;return Vt(gt(u),r)+e+Vt(vt(u),r)}function XA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;return n&&i>>0,r?(e=ie(e),e&&(typeof n=="string"||n!=null&&!io(n))&&(n=ke(n),!n&&cn(e))?Gs(ps(e),0,r):e.split(n,r)):[]}var VA=Sn(function(e,n,r){return e+(r?" ":"")+ao(n)});function JA(e,n,r){return e=ie(e),r=r==null?0:tn(k(r),0,e.length),n=ke(n),e.slice(r,r+n.length)==n}function zA(e,n,r){var i=a.templateSettings;r&&Ue(e,n,r)&&(n=s),e=ie(e),n=ir({},n,i,mE);var u=ir({},n.imports,i.imports,mE),p=Ke(u),$=O_(u,p),l,b,S=0,y=n.interpolate||It,C="__p += '",D=h_((n.escape||It).source+"|"+y.source+"|"+(y===Yo?xa:It).source+"|"+(n.evaluate||It).source+"|$","g"),B="//# sourceURL="+(ae.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_p+"]")+` -`;e.replace(D,function(U,j,ne,Je,we,ze){return ne||(ne=Je),C+=e.slice(S,ze).replace(ga,Sp),j&&(l=!0,C+=`' + +`)}function RT(e){return W(e)||En(e)||!!(xi&&e&&e[xi])}function Cs(e,n){var r=typeof e;return n=n??ue,!!n&&(r=="number"||r!="symbol"&&Ba.test(e))&&e>-1&&e%1==0&&e0){if(++n>=v)return arguments[0]}else n=0;return e.apply(s,arguments)}}function jt(e,n){var r=-1,i=e.length,u=i-1;for(n=n===s?i:n;++r1?e[n-1]:s;return r=typeof r=="function"?(e.pop(),r):s,UE(e,r)});function wE(e){var n=a(e);return n.__chain__=!0,n}function dl(e,n){return n(e),e}function er(e,n){return n(e)}var Bl=Ls(function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,u=function(p){return L_(p,e)};return n>1||this.__actions__.length||!(i instanceof ee)||!Cs(r)?this.thru(u):(i=i.slice(r,+r+(n?1:0)),i.__actions__.push({func:er,args:[u],thisArg:s}),new ss(i,this.__chain__).thru(function(p){return n&&!p.length&&p.push(s),p}))});function vl(){return wE(this)}function gl(){return new ss(this.value(),this.__chain__)}function Ml(){this.__values__===s&&(this.__values__=eu(this.value()));var e=this.__index__>=this.__values__.length,n=e?s:this.__values__[this.__index__++];return{done:e,value:n}}function Fl(){return this}function Ul(e){for(var n,r=this;r instanceof Ut;){var i=dE(r);i.__index__=0,i.__values__=s,n?u.__wrapped__=i:n=i;var u=i;r=r.__wrapped__}return u.__wrapped__=e,n}function wl(){var e=this.__wrapped__;if(e instanceof ee){var n=e;return this.__actions__.length&&(n=new ee(this)),n=n.reverse(),n.__actions__.push({func:er,args:[so],thisArg:s}),new ss(n,this.__chain__)}return this.thru(so)}function Yl(){return nE(this.__wrapped__,this.__actions__)}var Xl=Qt(function(e,n,r){ae.call(e,r)?++e[r]:Ss(e,r,1)});function Gl(e,n,r){var i=W(e)?fi:d$;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}function Hl(e,n){var r=W(e)?vs:Ui;return r(e,g(n,3))}var Wl=TE(BE),Ql=TE(vE);function ql(e,n){return ve(sr(e,n),1)}function kl(e,n){return ve(sr(e,n),Ee)}function Vl(e,n,r){return r=r===s?1:k(r),ve(sr(e,n),r)}function YE(e,n){var r=W(e)?je:ws;return r(e,g(n,3))}function XE(e,n){var r=W(e)?lp:Fi;return r(e,g(n,3))}var Jl=Qt(function(e,n,r){ae.call(e,r)?e[r].push(n):Ss(e,r,[n])});function zl(e,n,r,i){e=Xe(e)?e:Cn(e),r=r&&!i?k(r):0;var u=e.length;return r<0&&(r=Ce(u+r,0)),or(e)?r<=u&&e.indexOf(n,r)>-1:!!u&&bn(e,n,r)>-1}var Zl=Z(function(e,n,r){var i=-1,u=typeof n=="function",p=Xe(e)?m(e.length):[];return ws(e,function($){p[++i]=u?Qe(n,$,r):st($,n,r)}),p}),jl=Qt(function(e,n,r){Ss(e,r,n)});function sr(e,n){var r=W(e)?fe:Wi;return r(e,g(n,3))}function ef(e,n,r,i){return e==null?[]:(W(n)||(n=n==null?[]:[n]),r=i?s:r,W(r)||(r=r==null?[]:[r]),Vi(e,n,r))}var sf=Qt(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function nf(e,n,r){var i=W(e)?l_:mi,u=arguments.length<3;return i(e,g(n,4),r,u,ws)}function tf(e,n,r){var i=W(e)?fp:mi,u=arguments.length<3;return i(e,g(n,4),r,u,Fi)}function rf(e,n){var r=W(e)?vs:Ui;return r(e,rr(g(n,3)))}function _f(e){var n=W(e)?Bi:z$;return n(e)}function of(e,n,r){(r?Ue(e,n,r):n===s)?n=1:n=k(n);var i=W(e)?C$:Z$;return i(e,n)}function Ef(e){var n=W(e)?x$:eT;return n(e)}function uf(e){if(e==null)return 0;if(Xe(e))return or(e)?mn(e):e.length;var n=Me(e);return n==us||n==as?e.size:d_(e).length}function af(e,n,r){var i=W(e)?f_:sT;return r&&Ue(e,n,r)&&(n=s),i(e,g(n,3))}var pf=Z(function(e,n){if(e==null)return[];var r=n.length;return r>1&&Ue(e,n[0],n[1])?n=[]:r>2&&Ue(n[0],n[1],n[2])&&(n=[n[0]]),Vi(e,ve(n,1),[])}),nr=Hp||function(){return De.Date.now()};function $f(e,n){if(typeof n!="function")throw new es(T);return e=k(e),function(){if(--e<1)return n.apply(this,arguments)}}function GE(e,n,r){return n=r?s:n,n=e&&n==null?e.length:n,ys(e,We,s,s,s,s,n)}function HE(e,n){var r;if(typeof n!="function")throw new es(T);return e=k(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=s),r}}var to=Z(function(e,n,r){var i=te;if(r.length){var u=Ms(r,yn(to));i|=xe}return ys(e,i,n,r,u)}),WE=Z(function(e,n,r){var i=te|_e;if(r.length){var u=Ms(r,yn(WE));i|=xe}return ys(n,i,e,r,u)});function QE(e,n,r){n=r?s:n;var i=ys(e,re,s,s,s,s,s,n);return i.placeholder=QE.placeholder,i}function qE(e,n,r){n=r?s:n;var i=ys(e,ye,s,s,s,s,s,n);return i.placeholder=qE.placeholder,i}function kE(e,n,r){var i,u,p,$,l,b,S=0,y=!1,C=!1,D=!0;if(typeof e!="function")throw new es(T);n=_s(n)||0,be(r)&&(y=!!r.leading,C="maxWait"in r,p=C?Ce(_s(r.maxWait)||0,n):p,D="trailing"in r?!!r.trailing:D);function B(Re){var ls=i,Ds=u;return i=u=s,S=Re,$=e.apply(Ds,ls),$}function M(Re){return S=Re,l=ot(j,n),y?B(Re):$}function z(Re){var ls=Re-b,Ds=Re-S,Tu=n-ls;return C?ge(Tu,p-Ds):Tu}function F(Re){var ls=Re-b,Ds=Re-S;return b===s||ls>=n||ls<0||C&&Ds>=p}function j(){var Re=nr();if(F(Re))return ne(Re);l=ot(j,z(Re))}function ne(Re){return l=s,D&&i?B(Re):(i=u=s,$)}function Je(){l!==s&&rE(l),S=0,i=b=u=l=s}function we(){return l===s?$:ne(nr())}function ze(){var Re=nr(),ls=F(Re);if(i=arguments,u=this,b=Re,ls){if(l===s)return M(b);if(C)return rE(l),l=ot(j,n),B(b)}return l===s&&(l=ot(j,n)),$}return ze.cancel=Je,ze.flush=we,ze}var Tf=Z(function(e,n){return Mi(e,1,n)}),lf=Z(function(e,n,r){return Mi(e,_s(n)||0,r)});function ff(e){return ys(e,Zs)}function tr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new es(T);var r=function(){var i=arguments,u=n?n.apply(this,i):i[0],p=r.cache;if(p.has(u))return p.get(u);var $=e.apply(this,i);return r.cache=p.set(u,$)||p,$};return r.cache=new(tr.Cache||Ns),r}tr.Cache=Ns;function rr(e){if(typeof e!="function")throw new es(T);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Af(e){return HE(2,e)}var bf=nT(function(e,n){n=n.length==1&&W(n[0])?fe(n[0],qe(g())):fe(ve(n,1),qe(g()));var r=n.length;return Z(function(i){for(var u=-1,p=ge(i.length,r);++u=n}),En=Xi(function(){return arguments}())?Xi:function(e){return me(e)&&ae.call(e,"callee")&&!Ci.call(e,"callee")},W=m.isArray,Kf=ui?qe(ui):U$;function Xe(e){return e!=null&&_r(e.length)&&!xs(e)}function Oe(e){return me(e)&&Xe(e)}function df(e){return e===!0||e===!1||me(e)&&Fe(e)==Es}var Hs=Qp||fo,Bf=ai?qe(ai):w$;function vf(e){return me(e)&&e.nodeType===1&&!it(e)}function gf(e){if(e==null)return!0;if(Xe(e)&&(W(e)||typeof e=="string"||typeof e.splice=="function"||Hs(e)||Ln(e)||En(e)))return!e.length;var n=Me(e);if(n==us||n==as)return!e.size;if(_t(e))return!d_(e).length;for(var r in e)if(ae.call(e,r))return!1;return!0}function Mf(e,n){return nt(e,n)}function Ff(e,n,r){r=typeof r=="function"?r:s;var i=r?r(e,n):s;return i===s?nt(e,n,s,r):!!i}function _o(e){if(!me(e))return!1;var n=Fe(e);return n==bt||n==kr||typeof e.message=="string"&&typeof e.name=="string"&&!it(e)}function Uf(e){return typeof e=="number"&&Pi(e)}function xs(e){if(!be(e))return!1;var n=Fe(e);return n==ct||n==Mo||n==Bs||n==Ea}function JE(e){return typeof e=="number"&&e==k(e)}function _r(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ue}function be(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function me(e){return e!=null&&typeof e=="object"}var zE=pi?qe(pi):X$;function wf(e,n){return e===n||K_(e,n,V_(n))}function Yf(e,n,r){return r=typeof r=="function"?r:s,K_(e,n,V_(n),r)}function Xf(e){return ZE(e)&&e!=+e}function Gf(e){if(ST(e))throw new H(E);return Gi(e)}function Hf(e){return e===null}function Wf(e){return e==null}function ZE(e){return typeof e=="number"||me(e)&&Fe(e)==Xn}function it(e){if(!me(e)||Fe(e)!=Rs)return!1;var n=Kt(e);if(n===null)return!0;var r=ae.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Ct.call(r)==wp}var oo=$i?qe($i):G$;function Qf(e){return JE(e)&&e>=-ue&&e<=ue}var jE=Ti?qe(Ti):H$;function or(e){return typeof e=="string"||!W(e)&&me(e)&&Fe(e)==Hn}function Ve(e){return typeof e=="symbol"||me(e)&&Fe(e)==mt}var Ln=li?qe(li):W$;function qf(e){return e===s}function kf(e){return me(e)&&Me(e)==Wn}function Vf(e){return me(e)&&Fe(e)==aa}var Jf=Jt(B_),zf=Jt(function(e,n){return e<=n});function eu(e){if(!e)return[];if(Xe(e))return or(e)?ps(e):Ye(e);if(kn&&e[kn])return Cp(e[kn]());var n=Me(e),r=n==us?O_:n==as?St:Cn;return r(e)}function Ps(e){if(!e)return e===0?e:0;if(e=_s(e),e===Ee||e===-Ee){var n=e<0?-1:1;return n*Y}return e===e?e:0}function k(e){var n=Ps(e),r=n%1;return n===n?r?n-r:n:0}function su(e){return e?tn(k(e),0,Be):0}function _s(e){if(typeof e=="number")return e;if(Ve(e))return Ae;if(be(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=be(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ii(e);var r=Da.test(e);return r||da.test(e)?pp(e.slice(2),r?2:8):Pa.test(e)?Ae:+e}function nu(e){return ms(e,Ge(e))}function Zf(e){return e?tn(k(e),-ue,ue):e===0?e:0}function ie(e){return e==null?"":ke(e)}var jf=Nn(function(e,n){if(_t(n)||Xe(n)){ms(n,Ke(n),e);return}for(var r in n)ae.call(n,r)&&jn(e,r,n[r])}),tu=Nn(function(e,n){ms(n,Ge(n),e)}),ir=Nn(function(e,n,r,i){ms(n,Ge(n),e,i)}),eA=Nn(function(e,n,r,i){ms(n,Ke(n),e,i)}),sA=Ls(L_);function nA(e,n){var r=hn(e);return n==null?r:vi(r,n)}var tA=Z(function(e,n){e=$e(e);var r=-1,i=n.length,u=i>2?n[2]:s;for(u&&Ue(n[0],n[1],u)&&(i=1);++r1),p}),ms(e,q_(e),r),i&&(r=ns(r,L|P|K,TT));for(var u=n.length;u--;)U_(r,n[u]);return r});function OA(e,n){return _u(e,rr(g(n)))}var RA=Ls(function(e,n){return e==null?{}:k$(e,n)});function _u(e,n){if(e==null)return{};var r=fe(q_(e),function(i){return[i]});return n=g(n),Ji(e,r,function(i,u){return n(i,u[0])})}function hA(e,n,r){n=Xs(n,e);var i=-1,u=n.length;for(u||(u=1,e=s);++in){var i=e;e=n,n=i}if(r||e%1||n%1){var u=Di();return ge(e+u*(n-e+ap("1e-"+((u+"").length-1))),n)}return g_(e,n)}var BA=Sn(function(e,n,r){return n=n.toLowerCase(),e+(r?Eu(n):n)});function Eu(e){return uo(ie(e).toLowerCase())}function uu(e){return e=ie(e),e&&e.replace(va,hp).replace(ep,"")}function vA(e,n,r){e=ie(e),n=ke(n);var i=e.length;r=r===s?i:tn(k(r),0,i);var u=r;return r-=n.length,r>=0&&e.slice(r,u)==n}function gA(e){return e=ie(e),e&&fa.test(e)?e.replace(wo,Np):e}function MA(e){return e=ie(e),e&&Oa.test(e)?e.replace(r_,"\\$&"):e}var FA=Sn(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),UA=Sn(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),wA=$E("toLowerCase");function YA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;if(!n||i>=n)return e;var u=(n-i)/2;return Vt(gt(u),r)+e+Vt(vt(u),r)}function XA(e,n,r){e=ie(e),n=k(n);var i=n?mn(e):0;return n&&i>>0,r?(e=ie(e),e&&(typeof n=="string"||n!=null&&!oo(n))&&(n=ke(n),!n&&cn(e))?Gs(ps(e),0,r):e.split(n,r)):[]}var VA=Sn(function(e,n,r){return e+(r?" ":"")+uo(n)});function JA(e,n,r){return e=ie(e),r=r==null?0:tn(k(r),0,e.length),n=ke(n),e.slice(r,r+n.length)==n}function zA(e,n,r){var i=a.templateSettings;r&&Ue(e,n,r)&&(n=s),e=ie(e),n=ir({},n,i,mE);var u=ir({},n.imports,i.imports,mE),p=Ke(u),$=I_(u,p),l,b,S=0,y=n.interpolate||It,C="__p += '",D=R_((n.escape||It).source+"|"+y.source+"|"+(y===Yo?xa:It).source+"|"+(n.evaluate||It).source+"|$","g"),B="//# sourceURL="+(ae.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_p+"]")+` +`;e.replace(D,function(F,j,ne,Je,we,ze){return ne||(ne=Je),C+=e.slice(S,ze).replace(ga,Sp),j&&(l=!0,C+=`' + __e(`+j+`) + '`),we&&(b=!0,C+=`'; `+we+`; __p += '`),ne&&(C+=`' + ((__t = (`+ne+`)) == null ? '' : __t) + -'`),S=ze+U.length,U}),C+=`'; -`;var F=ae.call(n,"variable")&&n.variable;if(!F)C=`with (obj) { +'`),S=ze+F.length,F}),C+=`'; +`;var M=ae.call(n,"variable")&&n.variable;if(!M)C=`with (obj) { `+C+` } -`;else if(La.test(F))throw new H(c);C=(b?C.replace(pa,""):C).replace($a,"$1").replace(Ta,"$1;"),C="function("+(F||"obj")+`) { -`+(F?"":`obj || (obj = {}); +`;else if(La.test(M))throw new H(c);C=(b?C.replace(pa,""):C).replace($a,"$1").replace(Ta,"$1;"),C="function("+(M||"obj")+`) { +`+(M?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(b?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+C+`return __p -}`;var z=pu(function(){return oe(p,B+"return "+C).apply(s,$)});if(z.source=C,oo(z))throw z;return z}function ZA(e){return ie(e).toLowerCase()}function jA(e){return ie(e).toUpperCase()}function eb(e,n,r){if(e=ie(e),e&&(r||n===s))return Ii(e);if(!e||!(n=ke(n)))return e;var i=ps(e),u=ps(n),p=Oi(i,u),$=Ri(i,u)+1;return Gs(i,p,$).join("")}function sb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.slice(0,Ni(e)+1);if(!e||!(n=ke(n)))return e;var i=ps(e),u=Ri(i,ps(n))+1;return Gs(i,0,u).join("")}function nb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.replace(o_,"");if(!e||!(n=ke(n)))return e;var i=ps(e),u=Oi(i,ps(n));return Gs(i,u).join("")}function tb(e,n){var r=R,i=x;if(be(n)){var u="separator"in n?n.separator:u;r="length"in n?k(n.length):r,i="omission"in n?ke(n.omission):i}e=ie(e);var p=e.length;if(cn(e)){var $=ps(e);p=$.length}if(r>=p)return e;var l=r-mn(i);if(l<1)return i;var b=$?Gs($,0,l).join(""):e.slice(0,l);if(u===s)return b+i;if($&&(l+=b.length-l),io(u)){if(e.slice(l).search(u)){var S,y=b;for(u.global||(u=h_(u.source,ie(Xo.exec(u))+"g")),u.lastIndex=0;S=u.exec(y);)var C=S.index;b=b.slice(0,C===s?l:C)}}else if(e.indexOf(ke(u),l)!=l){var D=b.lastIndexOf(u);D>-1&&(b=b.slice(0,D))}return b+i}function rb(e){return e=ie(e),e&&la.test(e)?e.replace(Uo,Kp):e}var _b=Sn(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),ao=$E("toUpperCase");function au(e,n,r){return e=ie(e),n=r?s:n,n===s?Lp(e)?vp(e):cp(e):e.match(n)||[]}var pu=Z(function(e,n){try{return Qe(e,s,n)}catch(r){return oo(r)?r:new H(r)}}),ob=Ls(function(e,n){return je(n,function(r){r=Is(r),Ss(e,r,ro(e[r],e))}),e});function ib(e){var n=e==null?0:e.length,r=g();return e=n?fe(e,function(i){if(typeof i[1]!="function")throw new es(T);return[r(i[0]),i[1]]}):[],Z(function(i){for(var u=-1;++uue)return[];var r=Be,i=ge(e,Be);n=g(n),e-=Be;for(var u=I_(i,n);++r0||n<0)?new ee(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==s&&(n=k(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},ee.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ee.prototype.toArray=function(){return this.take(Be)},cs(ee.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),u=a[i?"take"+(n=="last"?"Right":""):n],p=i||/^find/.test(n);!u||(a.prototype[n]=function(){var $=this.__wrapped__,l=i?[1]:arguments,b=$ instanceof ee,S=l[0],y=b||W($),C=function(j){var ne=u.apply(a,gs([j],l));return i&&D?ne[0]:ne};y&&r&&typeof S=="function"&&S.length!=1&&(b=y=!1);var D=this.__chain__,B=!!this.__actions__.length,F=p&&!D,z=b&&!B;if(!p&&y){$=z?$:new ee(this);var U=e.apply($,l);return U.__actions__.push({func:er,args:[C],thisArg:s}),new ss(U,D)}return F&&z?e.apply(this,l):(U=this.thru(C),F?i?U.value()[0]:U.value():U)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var n=yt[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var p=this.value();return n.apply(W(p)?p:[],u)}return this[r](function($){return n.apply(W($)?$:[],u)})}}),cs(ee.prototype,function(e,n){var r=a[n];if(r){var i=r.name+"";ae.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:n,func:r})}}),Rn[qt(s,_e).name]=[{name:"wrapper",func:s}],ee.prototype.clone=t$,ee.prototype.reverse=r$,ee.prototype.value=_$,a.prototype.at=Bl,a.prototype.chain=vl,a.prototype.commit=gl,a.prototype.next=Ml,a.prototype.plant=Ul,a.prototype.reverse=wl,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Yl,a.prototype.first=a.prototype.head,kn&&(a.prototype[kn]=Fl),a},Fs=gp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(De._=Fs,define(function(){return Fs})):js?((js.exports=Fs)._=Fs,$_._=Fs):De._=Fs}).call(Yn)});import{promises as vo}from"fs";import go from"path";var ta=fu(sa(),1),ra=fu(na(),1);import kr from"assert";var Bo={"inter-token":["BINARY","national","STORED"],"match-token":["VIRTUAL","type = innodb","default 0000-00-00 00:00:00","default 0000-00-00"],function:["GENERATED","CHECK","PARTITION"]};var Om=new ta.Parser("mysql");function Rm(s,t){let o=s,E,T,c;for(;T=o.indexOf(t),T!==-1;){E=0,c=void 0;for(let O=T+t.length;O=0,`parenthesesDepth(${E}) is minus value`),E===0&&(c=O+1)),M===` -`&&c&&E===0)break}kr(c,"Not detect removal region"),o=o.slice(0,T)+o.slice(c)}return o}function hm(s,t){return t.reduce((o,E)=>Rm(o,E),s)}function Nm(s){return Object.keys(Bo).reduce((t,o)=>{let E=Bo[o];if(ra.default.isEmpty(E))return t;switch(o){case"inter-token":let T=new RegExp(`\\s+(${E.join("|")})\\s+`,"gmi");return t.replace(T," ");case"match-token":let c=new RegExp(`(${E.join("|")})`,"gm");return t.replace(c,"");case"function":return hm(t,E);default:kr(!1,`Not supported token type: ${o}`);break}},s)}function Sm(s){let t=[],o=/(CREATE|ALTER|DROP|RENAME|TRUNCATE)\sTABLE/i,E=0;for(;EO.$comment==="primary key"?[...T,c]:T,[]);return{tableName:t,columnNames:o,primaryKeys:E}}var _a=s=>Sm(s.replace(/\/\*.*?\*\/|--.*?\n/gs,"")).reduce((t,o)=>{try{let E={useRef:!0},T=Om.feed(o).toJsonSchemaArray(E);if(T.length===0)return t;kr(T.length===1,"Parse only one DDL at a time.");let{tableName:c,columnNames:O,primaryKeys:M}=ym(T[0]);return{...t,[c]:{columnNames:O,primaryKeys:M}}}catch(E){return console.error(`Can not parse "${o}"`,E),t}},{});function Lm(s,t,o){let T=t.map(c=>o.includes(c)?`*${c}`:c).join(` +}`;var z=pu(function(){return oe(p,B+"return "+C).apply(s,$)});if(z.source=C,_o(z))throw z;return z}function ZA(e){return ie(e).toLowerCase()}function jA(e){return ie(e).toUpperCase()}function eb(e,n,r){if(e=ie(e),e&&(r||n===s))return Ii(e);if(!e||!(n=ke(n)))return e;var i=ps(e),u=ps(n),p=Oi(i,u),$=Ri(i,u)+1;return Gs(i,p,$).join("")}function sb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.slice(0,Ni(e)+1);if(!e||!(n=ke(n)))return e;var i=ps(e),u=Ri(i,ps(n))+1;return Gs(i,0,u).join("")}function nb(e,n,r){if(e=ie(e),e&&(r||n===s))return e.replace(__,"");if(!e||!(n=ke(n)))return e;var i=ps(e),u=Oi(i,ps(n));return Gs(i,u).join("")}function tb(e,n){var r=R,i=x;if(be(n)){var u="separator"in n?n.separator:u;r="length"in n?k(n.length):r,i="omission"in n?ke(n.omission):i}e=ie(e);var p=e.length;if(cn(e)){var $=ps(e);p=$.length}if(r>=p)return e;var l=r-mn(i);if(l<1)return i;var b=$?Gs($,0,l).join(""):e.slice(0,l);if(u===s)return b+i;if($&&(l+=b.length-l),oo(u)){if(e.slice(l).search(u)){var S,y=b;for(u.global||(u=R_(u.source,ie(Xo.exec(u))+"g")),u.lastIndex=0;S=u.exec(y);)var C=S.index;b=b.slice(0,C===s?l:C)}}else if(e.indexOf(ke(u),l)!=l){var D=b.lastIndexOf(u);D>-1&&(b=b.slice(0,D))}return b+i}function rb(e){return e=ie(e),e&&la.test(e)?e.replace(Uo,Kp):e}var _b=Sn(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),uo=$E("toUpperCase");function au(e,n,r){return e=ie(e),n=r?s:n,n===s?Lp(e)?vp(e):cp(e):e.match(n)||[]}var pu=Z(function(e,n){try{return Qe(e,s,n)}catch(r){return _o(r)?r:new H(r)}}),ob=Ls(function(e,n){return je(n,function(r){r=Is(r),Ss(e,r,to(e[r],e))}),e});function ib(e){var n=e==null?0:e.length,r=g();return e=n?fe(e,function(i){if(typeof i[1]!="function")throw new es(T);return[r(i[0]),i[1]]}):[],Z(function(i){for(var u=-1;++uue)return[];var r=Be,i=ge(e,Be);n=g(n),e-=Be;for(var u=m_(i,n);++r0||n<0)?new ee(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==s&&(n=k(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},ee.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ee.prototype.toArray=function(){return this.take(Be)},cs(ee.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),u=a[i?"take"+(n=="last"?"Right":""):n],p=i||/^find/.test(n);!u||(a.prototype[n]=function(){var $=this.__wrapped__,l=i?[1]:arguments,b=$ instanceof ee,S=l[0],y=b||W($),C=function(j){var ne=u.apply(a,gs([j],l));return i&&D?ne[0]:ne};y&&r&&typeof S=="function"&&S.length!=1&&(b=y=!1);var D=this.__chain__,B=!!this.__actions__.length,M=p&&!D,z=b&&!B;if(!p&&y){$=z?$:new ee(this);var F=e.apply($,l);return F.__actions__.push({func:er,args:[C],thisArg:s}),new ss(F,D)}return M&&z?e.apply(this,l):(F=this.thru(C),M?i?F.value()[0]:F.value():F)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var n=yt[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var p=this.value();return n.apply(W(p)?p:[],u)}return this[r](function($){return n.apply(W($)?$:[],u)})}}),cs(ee.prototype,function(e,n){var r=a[n];if(r){var i=r.name+"";ae.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:n,func:r})}}),Rn[qt(s,_e).name]=[{name:"wrapper",func:s}],ee.prototype.clone=t$,ee.prototype.reverse=r$,ee.prototype.value=_$,a.prototype.at=Bl,a.prototype.chain=vl,a.prototype.commit=gl,a.prototype.next=Ml,a.prototype.plant=Ul,a.prototype.reverse=wl,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Yl,a.prototype.first=a.prototype.head,kn&&(a.prototype[kn]=Fl),a},Fs=gp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(De._=Fs,define(function(){return Fs})):js?((js.exports=Fs)._=Fs,p_._=Fs):De._=Fs}).call(Yn)});import{promises as vo}from"fs";import go from"path";var ta=fu(sa(),1),ra=fu(na(),1);import Bo from"assert";var Ko={"inter-token":["BINARY","national","STORED"],"match-token":["VIRTUAL","type = innodb","default 0000-00-00 00:00:00","default 0000-00-00"],function:["GENERATED","CHECK","PARTITION BY LIST (transaction_type)"]};var Om=new ta.Parser("mysql");function Rm(s,t){let o=s,E,T,c;for(;T=o.indexOf(t),T!==-1;){E=0,c=void 0;for(let O=T+t.length;ORm(o,E),s)}function Nm(s){return Object.keys(Ko).reduce((t,o)=>{let E=Ko[o];if(ra.default.isEmpty(E))return t;switch(o){case"inter-token":let T=new RegExp(`\\s+(${E.join("|")})\\s+`,"gmi");return t.replace(T," ");case"match-token":let c=new RegExp(`(${E.join("|")})`,"gm");return t.replace(c,"");case"function":return hm(t,E);default:Bo(!1,`Not supported token type: ${o}`);break}},s)}function Sm(s){let t=[],o=/(CREATE|ALTER|DROP|RENAME|TRUNCATE)\sTABLE/i,E=0;for(;EO.$comment==="primary key"?[...T,c]:T,[]);return{tableName:t,columnNames:o,primaryKeys:E}}var _a=s=>Sm(s.replace(/\/\*.*?\*\/|--.*?\n/gs,"")).reduce((t,o)=>{try{let E={useRef:!0},T=Om.feed(o).toJsonSchemaArray(E);if(T.length===0)return t;Bo(T.length===1,"Parse only one DDL at a time.");let{tableName:c,columnNames:O,primaryKeys:U}=ym(T[0]);return{...t,[c]:{columnNames:O,primaryKeys:U}}}catch(E){return console.error(`Can not parse "${o}"`,E),t}},{});function Lm(s,t,o){let T=t.map(c=>o.includes(c)?`*${c}`:c).join(` `);return`entity ${s} { ${T} } -`}function Cm(s,t,o,E){let T=Object.keys(E);return t.reduce((c,O)=>{if(!o.includes(O)&&T.includes(O)){let M=E[O];return[...c,`${s}::${O} --> ${M.tableName}::${M.columnName}`]}return c},[])}function oa(s){let t=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:M}])=>T+Lm(c,O,M),""),o=Object.entries(s).reduce((T,[c,{primaryKeys:O}])=>{if(O.length!==1)return T;let M=O[0],I=M.startsWith(c)?M:`${c}_${M}`,L={tableName:c,columnName:M};return{...T,[I]:L}},{}),E=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:M}])=>[...T,...Cm(c,O,M,o)],[]);return`@startuml +`}function Cm(s,t,o,E){let T=Object.keys(E);return t.reduce((c,O)=>{if(!o.includes(O)&&T.includes(O)){let U=E[O];return[...c,`${s}::${O} --> ${U.tableName}::${U.columnName}`]}return c},[])}function oa(s){let t=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:U}])=>T+Lm(c,O,U),""),o=Object.entries(s).reduce((T,[c,{primaryKeys:O}])=>{if(O.length!==1)return T;let U=O[0],I=U.startsWith(c)?U:`${c}_${U}`,L={tableName:c,columnName:U};return{...T,[I]:L}},{}),E=Object.entries(s).reduce((T,[c,{columnNames:O,primaryKeys:U}])=>[...T,...Cm(c,O,U,o)],[]);return`@startuml ' hide the spot hide circle diff --git a/package-lock.json b/package-lock.json index fd7a875..afbbadf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "schema-to-erd", - "version": "1.1.6", + "version": "1.2.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "schema-to-erd", - "version": "1.1.6", + "version": "1.2.7", "license": "MIT", "dependencies": { "glob": "^8.0.3", diff --git a/package.json b/package.json index 0130218..486b069 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schema-to-erd", - "version": "1.2.6", + "version": "1.2.7", "description": "Generate ERD UML file from Schema DDL file", "type": "module", "main": "dist/main.cjs", diff --git a/src/parse_ddl.js b/src/parse_ddl.js index fd8ab7d..93c1158 100644 --- a/src/parse_ddl.js +++ b/src/parse_ddl.js @@ -26,14 +26,11 @@ function _removeFunctionKeyword(sqlStr, functionKeyword) { parenthesesDepth += 1; } else if (c === ')') { parenthesesDepth -= 1; - assert(parenthesesDepth >= 0, `parenthesesDepth(${parenthesesDepth}) is minus value`); if (parenthesesDepth === 0) { removalEnd = i+1; + break; } } - if (c === '\n' && removalEnd && parenthesesDepth === 0) { - break; - } } assert(removalEnd, 'Not detect removal region'); removalSqlStr = removalSqlStr.slice(0, removalStart) + removalSqlStr.slice(removalEnd); diff --git a/src/unparsable_token.json b/src/unparsable_token.json index e9e4277..9798f3a 100644 --- a/src/unparsable_token.json +++ b/src/unparsable_token.json @@ -1,5 +1,5 @@ { "inter-token": ["BINARY", "national", "STORED"], "match-token": ["VIRTUAL", "type = innodb", "default 0000-00-00 00:00:00", "default 0000-00-00"], - "function": ["GENERATED", "CHECK", "PARTITION"] + "function": ["GENERATED", "CHECK", "PARTITION BY LIST (transaction_type)"] } diff --git a/test/schema_to_erd.spec.js b/test/schema_to_erd.spec.js index 32f706c..6eb8275 100644 --- a/test/schema_to_erd.spec.js +++ b/test/schema_to_erd.spec.js @@ -34,6 +34,13 @@ const fileList = await getSqlFiles('schema_samples/**/*.sql'); console.log(fileList); describe('samples', () => { + it('function.sql', async () => { + const pumlFilePath = await schemaToErd('./schema_samples/function.sql'); + const { dir, base } = path.parse(pumlFilePath); + const pathParts = dir.split(path.sep); + const expectedFilePath = path.join('./puml_examples', ...pathParts.slice(1), base); + assert.ok(await compareFiles(pumlFilePath, expectedFilePath)); + }); fileList.map((filePath) => { it(path.parse(filePath).base, async () => { const pumlFilePath = await schemaToErd(filePath);