import { styleText } from "node:util";
//#region ../../node_modules/.pnpm/@speed-highlight+core@2.1.0/node_modules/@speed-highlight/core/dist/languages/bash.js
var e$1 = {
type: "var",
match: /\$\w+|\${[^}]*}|\$\([^)]*\)/g
};
var t$8 = [
{
type: "cmnt",
sub: "todo",
match: /#.*/g
},
{
type: "str",
match: /(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,
sub: [e$1]
},
{
type: "oper",
match: /(?<=\s|^)\.*\/[a-z/_.-]+/gi
},
{
type: "kwd",
match: /\s-[a-zA-Z]+|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g
},
{ expand: "num" },
{
type: "func",
match: /(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gim
},
{
type: "bool",
match: /(?<=\s|^)(true|false)(?=\s|$)/g
},
{
type: "oper",
match: /[=(){}<>!]+/g
},
{
type: "var",
match: /(?<=\s|^)[\w_]+(?=\s*=)/g
},
e$1
];
//#endregion
//#region ../../node_modules/.pnpm/@speed-highlight+core@2.1.0/node_modules/@speed-highlight/core/dist/languages/css.js
var t$7 = [
{
match: /\/\*((?!\*\/)[^])*(\*\/)?/g,
type: "cmnt",
sub: "todo"
},
{ expand: "str" },
{
type: "var",
match: /--[\w-]+|\b[\w-]+(?=\s*:)/g
},
{
type: "kwd",
match: /@[\w-]+\b|!important\b|\b(and|not|only|or)\b|\b(?=([a-z-]+))\2(?=[^{}]*{)/g
},
{
type: "var",
match: /(::?|\.)(?!\d)[\w-]+(?=[^{}]*{)/g
},
{
type: "func",
match: /#[\w-]+(?=[^{}]*{)/g
},
{
type: "num",
match: /#[\da-f]{3,8}/gi
},
{
type: "num",
match: /-?\d*\.?\d+([a-z]+|%)?/gi,
sub: [{
type: "var",
match: /[a-z]+|%/gi
}]
},
{
match: /url\([^)]*\)/g,
sub: [{
type: "func",
match: /url(?=\()/g
}, {
type: "str",
match: /[^()]+/g
}]
},
{
type: "func",
match: /\b[a-zA-Z][\w-]*(?=\s*\()/g
},
{
type: "num",
match: /\b[a-z-]+\b/g
}
];
//#endregion
//#region ../../node_modules/.pnpm/@speed-highlight+core@2.1.0/node_modules/@speed-highlight/core/dist/languages/diff.js
var t$6 = [
{
type: "deleted",
match: /^[-<].*/gm
},
{
type: "insert",
match: /^[+>].*/gm
},
{
type: "kwd",
match: /!.*/gm
},
{
type: "section",
match: /^@@.*@@$|^\d.*|^([*+-])\1\1.*/gm
}
];
//#endregion
//#region ../../node_modules/.pnpm/@speed-highlight+core@2.1.0/node_modules/@speed-highlight/core/dist/languages/html.js
var a$2 = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�";
var t$5 = `[${a$2}][${a$2 + "\\-\\.0-9·̀-ͯ‿-⁀"}]*`;
var e = `(\\s+${t$5}\\s*(=\\s*([^"'>\\s][^>\\s]*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?)*\\s*`;
var s$2 = {
match: RegExp(`<[/!?]?${t$5}${e}[/!?]?>`, "g"),
sub: [
{
type: "var",
match: RegExp(`^<[/!?]?${t$5}`, "g"),
sub: [{
type: "oper",
match: /^<[\/!?]?/g
}]
},
{
type: "str",
match: /=\s*([^"'>\s][^>\s]*|("|')(\\[^]|(?!\2)[^])*\2?)/g,
sub: [{
type: "oper",
match: /^=/g
}]
},
{
type: "oper",
match: /[\/!?]?>/g
},
{
type: "class",
match: RegExp(t$5, "g")
}
]
};
var m$2 = [
{
match: //g,
type: "cmnt",
sub: "todo"
},
{
type: "class",
match: //gi
},
s$2,
{
type: "str",
match: RegExp(`<\\?${t$5}([^?]|\\?[^?>])*\\?+>`, "g"),
sub: [{
type: "var",
match: RegExp(`^<\\?${t$5}`, "g"),
sub: [{
type: "oper",
match: /^<\?/g
}]
}, {
type: "oper",
match: /\?+>$/g
}]
},
{
type: "var",
match: /&(#x?)?[\da-z]{1,8};/gi
}
];
var c$1 = (u, g) => ({
type: "str",
match: RegExp(`(?<=\\s${u}\\s*)=\\s*('[^']*'|"[^"]*")`, "gi"),
sub: [{
type: "oper",
match: /^=/g
}, {
match: /(?<=['"])[^]+(?=['"]$)/g,
sub: g
}]
});
var p$1 = {
...s$2,
sub: [
c$1("style", "css"),
c$1("on\\w+", "js"),
...s$2.sub
]
};
var F = [
{
type: "class",
match: /])*>/gi,
sub: [
{
type: "str",
match: /"[^"]*"|'[^']*'/g
},
{
type: "oper",
match: /^$/g
},
{
type: "var",
match: /DOCTYPE/gi
}
]
},
{
match: RegExp(``, "g"),
sub: [
{
match: RegExp(`^