@mxmweb/rtext 1.6.12 → 1.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,144 @@
1
+ import { g as l } from "./lib_enter-Dc5XyCCf.js";
2
+ function p(e, t) {
3
+ for (var r = 0; r < t.length; r++) {
4
+ const a = t[r];
5
+ if (typeof a != "string" && !Array.isArray(a)) {
6
+ for (const n in a)
7
+ if (n !== "default" && !(n in e)) {
8
+ const s = Object.getOwnPropertyDescriptor(a, n);
9
+ s && Object.defineProperty(e, n, s.get ? s : {
10
+ enumerable: !0,
11
+ get: () => a[n]
12
+ });
13
+ }
14
+ }
15
+ }
16
+ return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
17
+ }
18
+ var i = {}, u;
19
+ function c() {
20
+ return u || (u = 1, (function(e) {
21
+ for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
22
+ t = t.replace(/<self>/g, function() {
23
+ return t;
24
+ });
25
+ t = t.replace(/<self>/g, function() {
26
+ return /[^\s\S]/.source;
27
+ }), e.languages.rust = {
28
+ comment: [
29
+ {
30
+ pattern: RegExp(/(^|[^\\])/.source + t),
31
+ lookbehind: !0,
32
+ greedy: !0
33
+ },
34
+ {
35
+ pattern: /(^|[^\\:])\/\/.*/,
36
+ lookbehind: !0,
37
+ greedy: !0
38
+ }
39
+ ],
40
+ string: {
41
+ pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,
42
+ greedy: !0
43
+ },
44
+ char: {
45
+ pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,
46
+ greedy: !0
47
+ },
48
+ attribute: {
49
+ pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,
50
+ greedy: !0,
51
+ alias: "attr-name",
52
+ inside: {
53
+ string: null
54
+ // see below
55
+ }
56
+ },
57
+ // Closure params should not be confused with bitwise OR |
58
+ "closure-params": {
59
+ pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,
60
+ lookbehind: !0,
61
+ greedy: !0,
62
+ inside: {
63
+ "closure-punctuation": {
64
+ pattern: /^\||\|$/,
65
+ alias: "punctuation"
66
+ },
67
+ rest: null
68
+ // see below
69
+ }
70
+ },
71
+ "lifetime-annotation": {
72
+ pattern: /'\w+/,
73
+ alias: "symbol"
74
+ },
75
+ "fragment-specifier": {
76
+ pattern: /(\$\w+:)[a-z]+/,
77
+ lookbehind: !0,
78
+ alias: "punctuation"
79
+ },
80
+ variable: /\$\w+/,
81
+ "function-definition": {
82
+ pattern: /(\bfn\s+)\w+/,
83
+ lookbehind: !0,
84
+ alias: "function"
85
+ },
86
+ "type-definition": {
87
+ pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/,
88
+ lookbehind: !0,
89
+ alias: "class-name"
90
+ },
91
+ "module-declaration": [
92
+ {
93
+ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,
94
+ lookbehind: !0,
95
+ alias: "namespace"
96
+ },
97
+ {
98
+ pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,
99
+ lookbehind: !0,
100
+ alias: "namespace",
101
+ inside: {
102
+ punctuation: /::/
103
+ }
104
+ }
105
+ ],
106
+ keyword: [
107
+ // https://github.com/rust-lang/reference/blob/master/src/keywords.md
108
+ /\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,
109
+ // primitives and str
110
+ // https://doc.rust-lang.org/stable/rust-by-example/primitives.html
111
+ /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/
112
+ ],
113
+ // functions can technically start with an upper-case letter, but this will introduce a lot of false positives
114
+ // and Rust's naming conventions recommend snake_case anyway.
115
+ // https://doc.rust-lang.org/1.0.0/style/style/naming/README.html
116
+ function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,
117
+ macro: {
118
+ pattern: /\b\w+!/,
119
+ alias: "property"
120
+ },
121
+ constant: /\b[A-Z_][A-Z_\d]+\b/,
122
+ "class-name": /\b[A-Z]\w*\b/,
123
+ namespace: {
124
+ pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,
125
+ inside: {
126
+ punctuation: /::/
127
+ }
128
+ },
129
+ // Hex, oct, bin, dec numbers with visual separators and type suffix
130
+ number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
131
+ boolean: /\b(?:false|true)\b/,
132
+ punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
133
+ operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
134
+ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
135
+ })(Prism)), i;
136
+ }
137
+ var o = c();
138
+ const d = /* @__PURE__ */ l(o), f = /* @__PURE__ */ p({
139
+ __proto__: null,
140
+ default: d
141
+ }, [o]);
142
+ export {
143
+ f as p
144
+ };
@@ -0,0 +1,33 @@
1
+ Prism.languages.sql = {
2
+ comment: {
3
+ pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
4
+ lookbehind: !0
5
+ },
6
+ variable: [
7
+ {
8
+ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
9
+ greedy: !0
10
+ },
11
+ /@[\w.$]+/
12
+ ],
13
+ string: {
14
+ pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
15
+ greedy: !0,
16
+ lookbehind: !0
17
+ },
18
+ identifier: {
19
+ pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
20
+ greedy: !0,
21
+ lookbehind: !0,
22
+ inside: {
23
+ punctuation: /^`|`$/
24
+ }
25
+ },
26
+ function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
27
+ // Should we highlight user defined functions too?
28
+ keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
29
+ boolean: /\b(?:FALSE|NULL|TRUE)\b/i,
30
+ number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
31
+ operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
32
+ punctuation: /[;[\]()`,.]/
33
+ };
@@ -0,0 +1,113 @@
1
+ Prism.languages.swift = {
2
+ comment: {
3
+ // Nested comments are supported up to 2 levels
4
+ pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,
5
+ lookbehind: !0,
6
+ greedy: !0
7
+ },
8
+ "string-literal": [
9
+ // https://docs.swift.org/swift-book/LanguageGuide/StringsAndCharacters.html
10
+ {
11
+ pattern: RegExp(
12
+ /(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source
13
+ ),
14
+ lookbehind: !0,
15
+ greedy: !0,
16
+ inside: {
17
+ interpolation: {
18
+ pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/,
19
+ lookbehind: !0,
20
+ inside: null
21
+ // see below
22
+ },
23
+ "interpolation-punctuation": {
24
+ pattern: /^\)|\\\($/,
25
+ alias: "punctuation"
26
+ },
27
+ punctuation: /\\(?=[\r\n])/,
28
+ string: /[\s\S]+/
29
+ }
30
+ },
31
+ {
32
+ pattern: RegExp(
33
+ /(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"
34
+ ),
35
+ lookbehind: !0,
36
+ greedy: !0,
37
+ inside: {
38
+ interpolation: {
39
+ pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,
40
+ lookbehind: !0,
41
+ inside: null
42
+ // see below
43
+ },
44
+ "interpolation-punctuation": {
45
+ pattern: /^\)|\\#+\($/,
46
+ alias: "punctuation"
47
+ },
48
+ string: /[\s\S]+/
49
+ }
50
+ }
51
+ ],
52
+ directive: {
53
+ // directives with conditions
54
+ pattern: RegExp(
55
+ /#/.source + "(?:" + (/(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+") + "|" + /(?:else|endif)\b/.source + ")"
56
+ ),
57
+ alias: "property",
58
+ inside: {
59
+ "directive-name": /^#\w+/,
60
+ boolean: /\b(?:false|true)\b/,
61
+ number: /\b\d+(?:\.\d+)*\b/,
62
+ operator: /!|&&|\|\||[<>]=?/,
63
+ punctuation: /[(),]/
64
+ }
65
+ },
66
+ literal: {
67
+ pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,
68
+ alias: "constant"
69
+ },
70
+ "other-directive": {
71
+ pattern: /#\w+\b/,
72
+ alias: "property"
73
+ },
74
+ attribute: {
75
+ pattern: /@\w+/,
76
+ alias: "atrule"
77
+ },
78
+ "function-definition": {
79
+ pattern: /(\bfunc\s+)\w+/,
80
+ lookbehind: !0,
81
+ alias: "function"
82
+ },
83
+ label: {
84
+ // https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html#ID141
85
+ pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,
86
+ lookbehind: !0,
87
+ alias: "important"
88
+ },
89
+ keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,
90
+ boolean: /\b(?:false|true)\b/,
91
+ nil: {
92
+ pattern: /\bnil\b/,
93
+ alias: "constant"
94
+ },
95
+ "short-argument": /\$\d+\b/,
96
+ omit: {
97
+ pattern: /\b_\b/,
98
+ alias: "keyword"
99
+ },
100
+ number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,
101
+ // A class name must start with an upper-case letter and be either 1 letter long or contain a lower-case letter.
102
+ "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,
103
+ function: /\b[a-z_]\w*(?=\s*\()/i,
104
+ constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,
105
+ // Operators are generic in Swift. Developers can even create new operators (e.g. +++).
106
+ // https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html#ID481
107
+ // This regex only supports ASCII operators.
108
+ operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,
109
+ punctuation: /[{}[\]();,.:\\]/
110
+ };
111
+ Prism.languages.swift["string-literal"].forEach(function(e) {
112
+ e.inside.interpolation.inside = Prism.languages.swift;
113
+ });
@@ -0,0 +1,6 @@
1
+ (function(e) {
2
+ var a = e.util.clone(e.languages.typescript);
3
+ e.languages.tsx = e.languages.extend("jsx", a), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
4
+ var t = e.languages.tsx.tag;
5
+ t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
6
+ })(Prism);
@@ -0,0 +1,73 @@
1
+ import { g as c } from "./lib_enter-Dc5XyCCf.js";
2
+ function u(e, t) {
3
+ for (var n = 0; n < t.length; n++) {
4
+ const r = t[n];
5
+ if (typeof r != "string" && !Array.isArray(r)) {
6
+ for (const s in r)
7
+ if (s !== "default" && !(s in e)) {
8
+ const a = Object.getOwnPropertyDescriptor(r, s);
9
+ a && Object.defineProperty(e, s, a.get ? a : {
10
+ enumerable: !0,
11
+ get: () => r[s]
12
+ });
13
+ }
14
+ }
15
+ }
16
+ return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
17
+ }
18
+ var i = {}, p;
19
+ function l() {
20
+ return p || (p = 1, (function(e) {
21
+ e.languages.typescript = e.languages.extend("javascript", {
22
+ "class-name": {
23
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
24
+ lookbehind: !0,
25
+ greedy: !0,
26
+ inside: null
27
+ // see below
28
+ },
29
+ builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
30
+ }), e.languages.typescript.keyword.push(
31
+ /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
32
+ // keywords that have to be followed by an identifier
33
+ /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
34
+ // This is for `import type *, {}`
35
+ /\btype\b(?=\s*(?:[\{*]|$))/
36
+ ), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
37
+ var t = e.languages.extend("typescript", {});
38
+ delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
39
+ decorator: {
40
+ pattern: /@[$\w\xA0-\uFFFF]+/,
41
+ inside: {
42
+ at: {
43
+ pattern: /^@/,
44
+ alias: "operator"
45
+ },
46
+ function: /^[\s\S]+/
47
+ }
48
+ },
49
+ "generic-function": {
50
+ // e.g. foo<T extends "bar" | "baz">( ...
51
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
52
+ greedy: !0,
53
+ inside: {
54
+ function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
55
+ generic: {
56
+ pattern: /<[\s\S]+/,
57
+ // everything after the first <
58
+ alias: "class-name",
59
+ inside: t
60
+ }
61
+ }
62
+ }
63
+ }), e.languages.ts = e.languages.typescript;
64
+ })(Prism)), i;
65
+ }
66
+ var o = l();
67
+ const g = /* @__PURE__ */ c(o), F = /* @__PURE__ */ u({
68
+ __proto__: null,
69
+ default: g
70
+ }, [o]);
71
+ export {
72
+ F as p
73
+ };
@@ -0,0 +1,66 @@
1
+ (function(r) {
2
+ var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, a = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", d = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
3
+ return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
4
+ }), o = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
5
+ function e(i, u) {
6
+ u = (u || "").replace(/m/g, "") + "m";
7
+ var p = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
8
+ return a;
9
+ }).replace(/<<value>>/g, function() {
10
+ return i;
11
+ });
12
+ return RegExp(p, u);
13
+ }
14
+ r.languages.yaml = {
15
+ scalar: {
16
+ pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
17
+ return a;
18
+ })),
19
+ lookbehind: !0,
20
+ alias: "string"
21
+ },
22
+ comment: /#.*/,
23
+ key: {
24
+ pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
25
+ return a;
26
+ }).replace(/<<key>>/g, function() {
27
+ return "(?:" + d + "|" + o + ")";
28
+ })),
29
+ lookbehind: !0,
30
+ greedy: !0,
31
+ alias: "atrule"
32
+ },
33
+ directive: {
34
+ pattern: /(^[ \t]*)%.+/m,
35
+ lookbehind: !0,
36
+ alias: "important"
37
+ },
38
+ datetime: {
39
+ pattern: e(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
40
+ lookbehind: !0,
41
+ alias: "number"
42
+ },
43
+ boolean: {
44
+ pattern: e(/false|true/.source, "i"),
45
+ lookbehind: !0,
46
+ alias: "important"
47
+ },
48
+ null: {
49
+ pattern: e(/null|~/.source, "i"),
50
+ lookbehind: !0,
51
+ alias: "important"
52
+ },
53
+ string: {
54
+ pattern: e(o),
55
+ lookbehind: !0,
56
+ greedy: !0
57
+ },
58
+ number: {
59
+ pattern: e(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
60
+ lookbehind: !0
61
+ },
62
+ tag: n,
63
+ important: t,
64
+ punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
65
+ }, r.languages.yml = r.languages.yaml;
66
+ })(Prism);