import { C as d } from "./codemirror.es-CVgHrv2u.js";
import { o as onlineParser, i as isIgnored, L as LexRules, P as ParseRules } from "./GraphQLPlaygroundPage-BNtxA91h.js";
import { r } from "./mode-indent.es-CX18p_8d.js";
import "./codemirror.es2-DH2syXui.js";
import "./index-Cr4zbAtA.js";
import "./createCell-D7cbP3PP.js";
var a = Object.defineProperty;
var t = (e, r2) => a(e, "name", { value: r2, configurable: true });
const m = /* @__PURE__ */ t((e) => {
  const r$1 = onlineParser({
    eatWhitespace: (o) => o.eatWhile(isIgnored),
    lexRules: LexRules,
    parseRules: ParseRules,
    editorConfig: { tabSize: e.tabSize }
  });
  return {
    config: e,
    startState: r$1.startState,
    token: r$1.token,
    indent: r,
    electricInput: /^\s*[})\]]/,
    fold: "brace",
    lineComment: "#",
    closeBrackets: {
      pairs: '()[]{}""',
      explode: "()[]{}"
    }
  };
}, "graphqlModeFactory");
d.defineMode("graphql", m);
