import {
  a as t,
  c as r
} from "./chunk-IO47FP3U.js";

// ../node_modules/highlight.js/lib/languages/http.js
var g = r((b, c) => {
  function l(n) {
    return n ? typeof n == "string" ? n : n.source : null;
  }
  t(l, "source");
  function o(...n) {
    return n.map((s) => l(s)).join("");
  }
  t(o, "concat");
  function u(n) {
    let e = "HTTP/(2|1\\.[01])", a = {
      className: "attribute",
      begin: o("^", /[A-Za-z][A-Za-z0-9-]*/, "(?=\\:\\s)"),
      starts: {
        contains: [
          {
            className: "punctuation",
            begin: /: /,
            relevance: 0,
            starts: {
              end: "$",
              relevance: 0
            }
          }
        ]
      }
    }, i = [
      a,
      {
        begin: "\\n\\n",
        starts: { subLanguage: [], endsWithParent: !0 }
      }
    ];
    return {
      name: "HTTP",
      aliases: ["https"],
      illegal: /\S/,
      contains: [
        // response
        {
          begin: "^(?=" + e + " \\d{3})",
          end: /$/,
          contains: [
            {
              className: "meta",
              begin: e
            },
            {
              className: "number",
              begin: "\\b\\d{3}\\b"
            }
          ],
          starts: {
            end: /\b\B/,
            illegal: /\S/,
            contains: i
          }
        },
        // request
        {
          begin: "(?=^[A-Z]+ (.*?) " + e + "$)",
          end: /$/,
          contains: [
            {
              className: "string",
              begin: " ",
              end: " ",
              excludeBegin: !0,
              excludeEnd: !0
            },
            {
              className: "meta",
              begin: e
            },
            {
              className: "keyword",
              begin: "[A-Z]+"
            }
          ],
          starts: {
            end: /\b\B/,
            illegal: /\S/,
            contains: i
          }
        },
        // to allow headers to work even without a preamble
        n.inherit(a, {
          relevance: 0
        })
      ]
    };
  }
  t(u, "http");
  c.exports = u;
});

export {
  g as a
};
