text: function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  
  /*!-----------------------------------------------------------------------------
   * Copyright (c) Microsoft Corporation. All rights reserved.
   * Version: 0.32.1(29a273516805a852aa8edc5e05059f119b13eff0)
   * Released under the MIT license
   * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
   *-----------------------------------------------------------------------------*/
  define("vs/basic-languages/go/go", ["require", "require"], function (require) {
    var moduleExports = function () {
      var s = Object.defineProperty;
      var i = Object.getOwnPropertyDescriptor;
      var a = Object.getOwnPropertyNames;
      var c = Object.prototype.hasOwnProperty;
  
      var m = function m(n) {
        return s(n, "__esModule", {
          value: !0
        });
      };
  
      var l = function l(n, e) {
        for (var o in e) {
          s(n, o, {
            get: e[o],
            enumerable: !0
          });
        }
      },
          g = function g(n, e, o, r) {
        if (e && babelHelpers.typeof(e) == "object" || typeof e == "function") {
          var _iterator = _createForOfIteratorHelper(a(e)),
              _step;
  
          try {
            var _loop = function _loop() {
              var t = _step.value;
              !c.call(n, t) && (o || t !== "default") && s(n, t, {
                get: function get() {
                  return e[t];
                },
                enumerable: !(r = i(e, t)) || r.enumerable
              });
            };
  
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              _loop();
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }
  
        return n;
      };
  
      var p = function (n) {
        return function (e, o) {
          return n && n.get(e) || (o = g(m({}), e, 1), n && n.set(e, o), o);
        };
      }(typeof WeakMap != "undefined" ? new WeakMap() : 0);
  
      var f = {};
      l(f, {
        conf: function conf() {
          return u;
        },
        language: function language() {
          return d;
        }
      });
      var u = {
        comments: {
          lineComment: "//",
          blockComment: ["/*", "*/"]
        },
        brackets: [["{", "}"], ["[", "]"], ["(", ")"]],
        autoClosingPairs: [{
          open: "{",
          close: "}"
        }, {
          open: "[",
          close: "]"
        }, {
          open: "(",
          close: ")"
        }, {
          open: "`",
          close: "`",
          notIn: ["string"]
        }, {
          open: '"',
          close: '"',
          notIn: ["string"]
        }, {
          open: "'",
          close: "'",
          notIn: ["string", "comment"]
        }],
        surroundingPairs: [{
          open: "{",
          close: "}"
        }, {
          open: "[",
          close: "]"
        }, {
          open: "(",
          close: ")"
        }, {
          open: "`",
          close: "`"
        }, {
          open: '"',
          close: '"'
        }, {
          open: "'",
          close: "'"
        }]
      },
          d = {
        defaultToken: "",
        tokenPostfix: ".go",
        keywords: ["break", "case", "chan", "const", "continue", "default", "defer", "else", "fallthrough", "for", "func", "go", "goto", "if", "import", "interface", "map", "package", "range", "return", "select", "struct", "switch", "type", "var", "bool", "true", "false", "uint8", "uint16", "uint32", "uint64", "int8", "int16", "int32", "int64", "float32", "float64", "complex64", "complex128", "byte", "rune", "uint", "int", "uintptr", "string", "nil"],
        operators: ["+", "-", "*", "/", "%", "&", "|", "^", "<<", ">>", "&^", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", "&^=", "&&", "||", "<-", "++", "--", "==", "<", ">", "=", "!", "!=", "<=", ">=", ":=", "...", "(", ")", "", "]", "{", "}", ",", ";", ".", ":"],
        symbols: /[=><!~?:&|+\-*\/\^%]+/,
        escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
        tokenizer: {
          root: [[/[a-zA-Z_]\w*/, {
            cases: {
              "@keywords": {
                token: "keyword.$0"
              },
              "@default": "identifier"
            }
          }], {
            include: "@whitespace"
          }, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {
            cases: {
              "@operators": "delimiter",
              "@default": ""
            }
          }], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"], [/0[0-7']*[0-7]/, "number.octal"], [/0[bB][0-1']*[0-1]/, "number.binary"], [/\d[\d']*/, "number"], [/\d/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/`/, "string", "@rawstring"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]],
          whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]],
          comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]],
          doccomment: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]],
          string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]],
          rawstring: [[/[^\`]/, "string"], [/`/, "string", "@pop"]]
        }
      };
      return p(f);
    }();
  
    return moduleExports;
  });