import { i as re, c as ae, f as ne, s as ie, t as i, L as se, a as oe, E as le, b as ce, d as de, e as me, g as ue, __tla as __tla_0 } from "./main-1f248fe2.js";
import { __tla as __tla_1 } from "./index-c30f3063.js";
let ot, it, nt, at, lt, rt, m, st, U, Fe, Ge, tt;
let __tla = Promise.all([
  (() => {
    try {
      return __tla_0;
    } catch {
    }
  })(),
  (() => {
    try {
      return __tla_1;
    } catch {
    }
  })()
]).then(async () => {
  const pe = 36, X = 1, fe = 2, b = 3, C = 4, _e = 5, ge = 6, he = 7, ye = 8, be = 9, ve = 10, ke = 11, xe = 12, Oe = 13, we = 14, Qe = 15, Ce = 16, Se = 17, I = 18, qe = 19, E = 20, W = 21, R = 22, Pe = 23, Te = 24;
  function q(t) {
    return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 48 && t <= 57;
  }
  function ze(t) {
    return t >= 48 && t <= 57 || t >= 97 && t <= 102 || t >= 65 && t <= 70;
  }
  function g(t, e, a) {
    for (let r = false; ; ) {
      if (t.next < 0)
        return;
      if (t.next == e && !r) {
        t.advance();
        return;
      }
      r = a && !r && t.next == 92, t.advance();
    }
  }
  function je(t, e) {
    e:
      for (; ; ) {
        if (t.next < 0)
          return;
        if (t.next == 36) {
          t.advance();
          for (let a = 0; a < e.length; a++) {
            if (t.next != e.charCodeAt(a))
              continue e;
            t.advance();
          }
          if (t.next == 36) {
            t.advance();
            return;
          }
        } else
          t.advance();
      }
  }
  function Ue(t, e) {
    let a = "[{<(".indexOf(String.fromCharCode(e)), r = a < 0 ? e : "]}>)".charCodeAt(a);
    for (; ; ) {
      if (t.next < 0)
        return;
      if (t.next == r && t.peek(1) == 39) {
        t.advance(2);
        return;
      }
      t.advance();
    }
  }
  function P(t, e) {
    for (; !(t.next != 95 && !q(t.next)); )
      e != null && (e += String.fromCharCode(t.next)), t.advance();
    return e;
  }
  function Le(t) {
    if (t.next == 39 || t.next == 34 || t.next == 96) {
      let e = t.next;
      t.advance(), g(t, e, false);
    } else
      P(t);
  }
  function D(t, e) {
    for (; t.next == 48 || t.next == 49; )
      t.advance();
    e && t.next == e && t.advance();
  }
  function Z(t, e) {
    for (; ; ) {
      if (t.next == 46) {
        if (e)
          break;
        e = true;
      } else if (t.next < 48 || t.next > 57)
        break;
      t.advance();
    }
    if (t.next == 69 || t.next == 101)
      for (t.advance(), (t.next == 43 || t.next == 45) && t.advance(); t.next >= 48 && t.next <= 57; )
        t.advance();
  }
  function N(t) {
    for (; !(t.next < 0 || t.next == 10); )
      t.advance();
  }
  function _(t, e) {
    for (let a = 0; a < e.length; a++)
      if (e.charCodeAt(a) == t)
        return true;
    return false;
  }
  const S = ` 	\r
`;
  function M(t, e, a) {
    let r = /* @__PURE__ */ Object.create(null);
    r.true = r.false = _e, r.null = r.unknown = ge;
    for (let n of t.split(" "))
      n && (r[n] = E);
    for (let n of e.split(" "))
      n && (r[n] = W);
    for (let n of (a || "").split(" "))
      n && (r[n] = Te);
    return r;
  }
  const h = "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ", y = "absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ", T = {
    backslashEscapes: false,
    hashComments: false,
    spaceAfterDashes: false,
    slashComments: false,
    doubleQuotedStrings: false,
    doubleDollarQuotedStrings: false,
    unquotedBitLiterals: false,
    treatBitsAsBytes: false,
    charSetCasts: false,
    plsqlQuotingMechanism: false,
    operatorChars: "*+-%<>!=&|~^/",
    specialVar: "?",
    identifierQuotes: '"',
    caseInsensitiveIdentifiers: false,
    words: M(y, h)
  };
  function Be(t, e, a, r) {
    let n = {};
    for (let s in T)
      n[s] = (t.hasOwnProperty(s) ? t : T)[s];
    return e && (n.words = M(e, a || "", r)), n;
  }
  function K(t) {
    return new le((e) => {
      var a;
      let { next: r } = e;
      if (e.advance(), _(r, S)) {
        for (; _(e.next, S); )
          e.advance();
        e.acceptToken(pe);
      } else if (r == 36 && t.doubleDollarQuotedStrings) {
        let n = P(e, "");
        e.next == 36 && (e.advance(), je(e, n), e.acceptToken(b));
      } else if (r == 39 || r == 34 && t.doubleQuotedStrings)
        g(e, r, t.backslashEscapes), e.acceptToken(b);
      else if (r == 35 && t.hashComments || r == 47 && e.next == 47 && t.slashComments)
        N(e), e.acceptToken(X);
      else if (r == 45 && e.next == 45 && (!t.spaceAfterDashes || e.peek(1) == 32))
        N(e), e.acceptToken(X);
      else if (r == 47 && e.next == 42) {
        e.advance();
        for (let n = 1; ; ) {
          let s = e.next;
          if (e.next < 0)
            break;
          if (e.advance(), s == 42 && e.next == 47) {
            if (n--, e.advance(), !n)
              break;
          } else
            s == 47 && e.next == 42 && (n++, e.advance());
        }
        e.acceptToken(fe);
      } else if ((r == 101 || r == 69) && e.next == 39)
        e.advance(), g(e, 39, true), e.acceptToken(b);
      else if ((r == 110 || r == 78) && e.next == 39 && t.charSetCasts)
        e.advance(), g(e, 39, t.backslashEscapes), e.acceptToken(b);
      else if (r == 95 && t.charSetCasts)
        for (let n = 0; ; n++) {
          if (e.next == 39 && n > 1) {
            e.advance(), g(e, 39, t.backslashEscapes), e.acceptToken(b);
            break;
          }
          if (!q(e.next))
            break;
          e.advance();
        }
      else if (t.plsqlQuotingMechanism && (r == 113 || r == 81) && e.next == 39 && e.peek(1) > 0 && !_(e.peek(1), S)) {
        let n = e.peek(1);
        e.advance(2), Ue(e, n), e.acceptToken(b);
      } else if (_(r, t.identifierQuotes)) {
        const n = r == 91 ? 93 : r;
        g(e, n, false), e.acceptToken(qe);
      } else if (r == 40)
        e.acceptToken(he);
      else if (r == 41)
        e.acceptToken(ye);
      else if (r == 123)
        e.acceptToken(be);
      else if (r == 125)
        e.acceptToken(ve);
      else if (r == 91)
        e.acceptToken(ke);
      else if (r == 93)
        e.acceptToken(xe);
      else if (r == 59)
        e.acceptToken(Oe);
      else if (t.unquotedBitLiterals && r == 48 && e.next == 98)
        e.advance(), D(e), e.acceptToken(R);
      else if ((r == 98 || r == 66) && (e.next == 39 || e.next == 34)) {
        const n = e.next;
        e.advance(), t.treatBitsAsBytes ? (g(e, n, t.backslashEscapes), e.acceptToken(Pe)) : (D(e, n), e.acceptToken(R));
      } else if (r == 48 && (e.next == 120 || e.next == 88) || (r == 120 || r == 88) && e.next == 39) {
        let n = e.next == 39;
        for (e.advance(); ze(e.next); )
          e.advance();
        n && e.next == 39 && e.advance(), e.acceptToken(C);
      } else if (r == 46 && e.next >= 48 && e.next <= 57)
        Z(e, true), e.acceptToken(C);
      else if (r == 46)
        e.acceptToken(we);
      else if (r >= 48 && r <= 57)
        Z(e, false), e.acceptToken(C);
      else if (_(r, t.operatorChars)) {
        for (; _(e.next, t.operatorChars); )
          e.advance();
        e.acceptToken(Qe);
      } else if (_(r, t.specialVar))
        e.next == r && e.advance(), Le(e), e.acceptToken(Se);
      else if (r == 58 || r == 44)
        e.acceptToken(Ce);
      else if (q(r)) {
        let n = P(e, String.fromCharCode(r));
        e.acceptToken(e.next == 46 || e.peek(-n.length - 1) == 46 ? I : (a = t.words[n.toLowerCase()]) !== null && a !== void 0 ? a : I);
      }
    });
  }
  const F = K(T), Xe = ce.deserialize({
    version: 14,
    states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
    stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
    goto: "#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",
    nodeNames: "\u26A0 LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",
    maxTerm: 38,
    nodeProps: [
      [
        "isolate",
        -4,
        1,
        2,
        3,
        19,
        ""
      ]
    ],
    skippedNodes: [
      0,
      1,
      2
    ],
    repeatNodeCount: 3,
    tokenData: "RORO",
    tokenizers: [
      0,
      F
    ],
    topRules: {
      Script: [
        0,
        25
      ]
    },
    tokenPrec: 0
  });
  function z(t) {
    let e = t.cursor().moveTo(t.from, -1);
    for (; /Comment/.test(e.name); )
      e.moveTo(e.from, -1);
    return e.node;
  }
  function x(t, e) {
    let a = t.sliceString(e.from, e.to), r = /^([`'"\[])(.*)([`'"\]])$/.exec(a);
    return r ? r[2] : a;
  }
  function Q(t) {
    return t && (t.name == "Identifier" || t.name == "QuotedIdentifier");
  }
  function Ie(t, e) {
    if (e.name == "CompositeIdentifier") {
      let a = [];
      for (let r = e.firstChild; r; r = r.nextSibling)
        Q(r) && a.push(x(t, r));
      return a;
    }
    return [
      x(t, e)
    ];
  }
  function V(t, e) {
    for (let a = []; ; ) {
      if (!e || e.name != ".")
        return a;
      let r = z(e);
      if (!Q(r))
        return a;
      a.unshift(x(t, r)), e = z(r);
    }
  }
  function Re(t, e) {
    let a = ue(t).resolveInner(e, -1), r = Ze(t.doc, a);
    return a.name == "Identifier" || a.name == "QuotedIdentifier" || a.name == "Keyword" ? {
      from: a.from,
      quoted: a.name == "QuotedIdentifier" ? t.doc.sliceString(a.from, a.from + 1) : null,
      parents: V(t.doc, z(a)),
      aliases: r
    } : a.name == "." ? {
      from: e,
      quoted: null,
      parents: V(t.doc, a),
      aliases: r
    } : {
      from: e,
      quoted: null,
      parents: [],
      empty: true,
      aliases: r
    };
  }
  const De = new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));
  function Ze(t, e) {
    let a;
    for (let n = e; !a; n = n.parent) {
      if (!n)
        return null;
      n.name == "Statement" && (a = n);
    }
    let r = null;
    for (let n = a.firstChild, s = false, c = null; n; n = n.nextSibling) {
      let l = n.name == "Keyword" ? t.sliceString(n.from, n.to).toLowerCase() : null, o = null;
      if (!s)
        s = l == "from";
      else if (l == "as" && c && Q(n.nextSibling))
        o = x(t, n.nextSibling);
      else {
        if (l && De.has(l))
          break;
        c && Q(n) && (o = x(t, n));
      }
      o && (r || (r = /* @__PURE__ */ Object.create(null)), r[o] = Ie(t, c)), c = /Identifier$/.test(n.name) ? n : null;
    }
    return r;
  }
  function Ne(t, e, a) {
    return a.map((r) => ({
      ...r,
      label: r.label[0] == t ? r.label : t + r.label + e,
      apply: void 0
    }));
  }
  const Ve = /^\w*$/, $e = /^[`'"\[]?\w*[`'"\]]?$/;
  function $(t) {
    return t.self && typeof t.self.label == "string";
  }
  class j {
    constructor(e, a) {
      this.idQuote = e, this.idCaseInsensitive = a, this.list = [], this.children = void 0;
    }
    child(e) {
      let a = this.children || (this.children = /* @__PURE__ */ Object.create(null)), r = a[e];
      return r || (e && !this.list.some((n) => n.label == e) && this.list.push(A(e, "type", this.idQuote, this.idCaseInsensitive)), a[e] = new j(this.idQuote, this.idCaseInsensitive));
    }
    maybeChild(e) {
      return this.children ? this.children[e] : null;
    }
    addCompletion(e) {
      let a = this.list.findIndex((r) => r.label == e.label);
      a > -1 ? this.list[a] = e : this.list.push(e);
    }
    addCompletions(e) {
      for (let a of e)
        this.addCompletion(typeof a == "string" ? A(a, "property", this.idQuote, this.idCaseInsensitive) : a);
    }
    addNamespace(e) {
      Array.isArray(e) ? this.addCompletions(e) : $(e) ? this.addNamespace(e.children) : this.addNamespaceObject(e);
    }
    addNamespaceObject(e) {
      for (let a of Object.keys(e)) {
        let r = e[a], n = null, s = a.replace(/\\?\./g, (l) => l == "." ? "\0" : l).split("\0"), c = this;
        $(r) && (n = r.self, r = r.children);
        for (let l = 0; l < s.length; l++)
          n && l == s.length - 1 && c.addCompletion(n), c = c.child(s[l].replace(/\\\./g, "."));
        c.addNamespace(r);
      }
    }
  }
  function A(t, e, a, r) {
    return new RegExp("^[a-z_][a-z_\\d]*$", r ? "i" : "").test(t) ? {
      label: t,
      type: e
    } : {
      label: t,
      type: e,
      apply: a + t + G(a)
    };
  }
  function G(t) {
    return t === "[" ? "]" : t;
  }
  function Ae(t, e, a, r, n, s) {
    var c;
    let l = ((c = s == null ? void 0 : s.spec.identifierQuotes) === null || c === void 0 ? void 0 : c[0]) || '"', o = new j(l, !!(s == null ? void 0 : s.spec.caseInsensitiveIdentifiers)), u = n ? o.child(n) : null;
    return o.addNamespace(t), e && (u || o).addCompletions(e), a && o.addCompletions(a), u && o.addCompletions(u.list), r && o.addCompletions((u || o).child(r).list), (p) => {
      let { parents: v, from: L, quoted: B, empty: ee, aliases: O } = Re(p.state, p.pos);
      if (ee && !p.explicit)
        return null;
      O && v.length == 1 && (v = O[v[0]] || v);
      let d = o;
      for (let f of v) {
        for (; !d.children || !d.children[f]; )
          if (d == o && u)
            d = u;
          else if (d == u && r)
            d = d.child(r);
          else
            return null;
        let k = d.maybeChild(f);
        if (!k)
          return null;
        d = k;
      }
      let w = d.list;
      if (d == o && O && (w = w.concat(Object.keys(O).map((f) => ({
        label: f,
        type: "constant"
      })))), B) {
        let f = B[0], k = G(f), te = p.state.sliceDoc(p.pos, p.pos + 1) == k;
        return {
          from: L,
          to: te ? p.pos + 1 : void 0,
          options: Ne(f, k, w),
          validFor: $e
        };
      } else
        return {
          from: L,
          options: w,
          validFor: Ve
        };
    };
  }
  function Ee(t) {
    return t == W ? "type" : t == E ? "keyword" : "variable";
  }
  function We(t, e, a) {
    let r = Object.keys(t).map((n) => a(e ? n.toUpperCase() : n, Ee(t[n])));
    return de([
      "QuotedIdentifier",
      "String",
      "LineComment",
      "BlockComment",
      "."
    ], me(r));
  }
  let Me = Xe.configure({
    props: [
      re.add({
        Statement: ae()
      }),
      ne.add({
        Statement(t, e) {
          return {
            from: Math.min(t.from + 100, e.doc.lineAt(t.from).to),
            to: t.to
          };
        },
        BlockComment(t) {
          return {
            from: t.from + 2,
            to: t.to - 2
          };
        }
      }),
      ie({
        Keyword: i.keyword,
        Type: i.typeName,
        Builtin: i.standard(i.name),
        Bits: i.number,
        Bytes: i.string,
        Bool: i.bool,
        Null: i.null,
        Number: i.number,
        String: i.string,
        Identifier: i.name,
        QuotedIdentifier: i.special(i.string),
        SpecialVar: i.special(i.name),
        LineComment: i.lineComment,
        BlockComment: i.blockComment,
        Operator: i.operator,
        "Semi Punctuation": i.punctuation,
        "( )": i.paren,
        "{ }": i.brace,
        "[ ]": i.squareBracket
      })
    ]
  });
  m = class {
    constructor(e, a, r) {
      this.dialect = e, this.language = a, this.spec = r;
    }
    get extension() {
      return this.language.extension;
    }
    configureLanguage(e, a) {
      return new m(this.dialect, this.language.configure(e, a), this.spec);
    }
    static define(e) {
      let a = Be(e, e.keywords, e.types, e.builtin), r = se.define({
        name: "sql",
        parser: Me.configure({
          tokenizers: [
            {
              from: F,
              to: K(a)
            }
          ]
        }),
        languageData: {
          commentTokens: {
            line: "--",
            block: {
              open: "/*",
              close: "*/"
            }
          },
          closeBrackets: {
            brackets: [
              "(",
              "[",
              "{",
              "'",
              '"',
              "`"
            ]
          }
        }
      });
      return new m(a, r, e);
    }
  };
  function Ke(t, e) {
    return {
      label: t,
      type: e,
      boost: -1
    };
  }
  Fe = function(t, e = false, a) {
    return We(t.dialect.words, e, a || Ke);
  };
  Ge = function(t) {
    return t.schema ? Ae(t.schema, t.tables, t.schemas, t.defaultTable, t.defaultSchema, t.dialect || U) : () => null;
  };
  function Ye(t) {
    return t.schema ? (t.dialect || U).language.data.of({
      autocomplete: Ge(t)
    }) : [];
  }
  tt = function(t = {}) {
    let e = t.dialect || U;
    return new oe(e.language, [
      Ye(t),
      e.language.data.of({
        autocomplete: Fe(e, t.upperCaseKeywords, t.keywordCompletion)
      })
    ]);
  };
  let Y, H, J;
  U = m.define({});
  rt = m.define({
    charSetCasts: true,
    doubleDollarQuotedStrings: true,
    operatorChars: "+-*/<>=~!@#%^&|`?",
    specialVar: "",
    keywords: y + "abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",
    types: h + "bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"
  });
  Y = "accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill";
  H = h + "bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed";
  J = "charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee";
  at = m.define({
    operatorChars: "*+-%<>!=&|^",
    charSetCasts: true,
    doubleQuotedStrings: true,
    unquotedBitLiterals: true,
    hashComments: true,
    spaceAfterDashes: true,
    specialVar: "@?",
    identifierQuotes: "`",
    keywords: y + "group_concat " + Y,
    types: H,
    builtin: J
  });
  nt = m.define({
    operatorChars: "*+-%<>!=&|^",
    charSetCasts: true,
    doubleQuotedStrings: true,
    unquotedBitLiterals: true,
    hashComments: true,
    spaceAfterDashes: true,
    specialVar: "@?",
    identifierQuotes: "`",
    keywords: y + "always generated groupby_concat hard persistent shutdown soft virtual " + Y,
    types: H,
    builtin: J
  });
  let He = "approx_count_distinct approx_percentile_cont approx_percentile_disc avg checksum_agg count count_big grouping grouping_id max min product stdev stdevp sum var varp ai_generate_embeddings ai_generate_chunks cume_dist first_value lag last_value lead percentile_cont percentile_disc percent_rank left_shift right_shift bit_count get_bit set_bit collationproperty tertiary_weights @@datefirst @@dbts @@langid @@language @@lock_timeout @@max_connections @@max_precision @@nestlevel @@options @@remserver @@servername @@servicename @@spid @@textsize @@version cast convert parse try_cast try_convert try_parse asymkey_id asymkeyproperty certproperty cert_id crypt_gen_random decryptbyasymkey decryptbycert decryptbykey decryptbykeyautoasymkey decryptbykeyautocert decryptbypassphrase encryptbyasymkey encryptbycert encryptbykey encryptbypassphrase hashbytes is_objectsigned key_guid key_id key_name signbyasymkey signbycert symkeyproperty verifysignedbycert verifysignedbyasymkey @@cursor_rows @@fetch_status cursor_status datalength ident_current ident_incr ident_seed identity sql_variant_property @@datefirst current_timestamp current_timezone current_timezone_id date_bucket dateadd datediff datediff_big datefromparts datename datepart datetime2fromparts datetimefromparts datetimeoffsetfromparts datetrunc day eomonth getdate getutcdate isdate month smalldatetimefromparts switchoffset sysdatetime sysdatetimeoffset sysutcdatetime timefromparts todatetimeoffset year edit_distance edit_distance_similarity jaro_winkler_distance jaro_winkler_similarity edge_id_from_parts graph_id_from_edge_id graph_id_from_node_id node_id_from_parts object_id_from_edge_id object_id_from_node_id json isjson json_array json_contains json_modify json_object json_path_exists json_query json_value regexp_like regexp_replace regexp_substr regexp_instr regexp_count regexp_matches regexp_split_to_table abs acos asin atan atn2 ceiling cos cot degrees exp floor log log10 pi power radians rand round sign sin sqrt square tan choose greatest iif least @@procid app_name applock_mode applock_test assemblyproperty col_length col_name columnproperty databasepropertyex db_id db_name file_id file_idex file_name filegroup_id filegroup_name filegroupproperty fileproperty filepropertyex fulltextcatalogproperty fulltextserviceproperty index_col indexkey_property indexproperty next value for object_definition object_id object_name object_schema_name objectproperty objectpropertyex original_db_name parsename schema_id schema_name scope_identity serverproperty stats_date type_id type_name typeproperty dense_rank ntile rank row_number publishingservername certenclosed certprivatekey current_user database_principal_id has_dbaccess has_perms_by_name is_member is_rolemember is_srvrolemember loginproperty original_login permissions pwdencrypt pwdcompare session_user sessionproperty suser_id suser_name suser_sid suser_sname system_user user user_id user_name ascii char charindex concat concat_ws difference format left len lower ltrim nchar patindex quotename replace replicate reverse right rtrim soundex space str string_agg string_escape stuff substring translate trim unicode upper $partition @@error @@identity @@pack_received @@rowcount @@trancount binary_checksum checksum compress connectionproperty context_info current_request_id current_transaction_id decompress error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big session_context xact_state @@connections @@cpu_busy @@idle @@io_busy @@pack_sent @@packet_errors @@timeticks @@total_errors @@total_read @@total_write textptr textvalid columns_updated eventdata trigger_nestlevel vector_distance vectorproperty vector_search generate_series opendatasource openjson openquery openrowset openxml predict string_split coalesce nullif apply catch filter force include keep keepfixed modify optimize parameterization parameters partition recompile sequence set";
  it = m.define({
    keywords: y + "add external procedure all fetch public alter file raiserror and fillfactor read any for readtext as foreign reconfigure asc freetext references authorization freetexttable replication backup from restore begin full restrict between function return break goto revert browse grant revoke bulk group right by having rollback cascade holdlock rowcount case identity rowguidcol check identity_insert rule checkpoint identitycol save close if schema clustered in securityaudit coalesce index select collate inner semantickeyphrasetable column insert semanticsimilaritydetailstable commit intersect semanticsimilaritytable compute into session_user constraint is set contains join setuser containstable key shutdown continue kill some convert left statistics create like system_user cross lineno table current load tablesample current_date merge textsize current_time national then current_timestamp nocheck to current_user nonclustered top cursor not tran database null transaction dbcc nullif trigger deallocate of truncate declare off try_convert default offsets tsequal delete on union deny open unique desc opendatasource unpivot disk openquery update distinct openrowset updatetext distributed openxml use double option user drop or values dump order varying else outer view end over waitfor errlvl percent when escape pivot where except plan while exec precision with execute primary within group exists print writetext exit proc noexpand index forceseek forcescan holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot spatial_window_max_cells tablock tablockx updlock xlock keepidentity keepdefaults ignore_constraints ignore_triggers",
    types: h + "smalldatetime datetimeoffset datetime2 datetime bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",
    builtin: He,
    operatorChars: "*+-%<>!=^&|/",
    specialVar: "@",
    identifierQuotes: '"['
  });
  st = m.define({
    keywords: y + "abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",
    types: h + "bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",
    builtin: "auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",
    operatorChars: "*+-%<>!=&|/~",
    identifierQuotes: '`"',
    specialVar: "@:?$"
  });
  ot = m.define({
    keywords: "add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",
    types: h + "ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",
    slashComments: true
  });
  lt = m.define({
    keywords: y + "abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",
    builtin: "appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",
    types: h + "ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",
    operatorChars: "*/+-%<>!=~",
    doubleQuotedStrings: true,
    charSetCasts: true,
    plsqlQuotingMechanism: true
  });
});
export {
  ot as Cassandra,
  it as MSSQL,
  nt as MariaSQL,
  at as MySQL,
  lt as PLSQL,
  rt as PostgreSQL,
  m as SQLDialect,
  st as SQLite,
  U as StandardSQL,
  __tla,
  Fe as keywordCompletionSource,
  Ge as schemaCompletionSource,
  tt as sql
};
