@w6w/ui 0.0.0-stage → 0.1.1

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.
Files changed (142) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/LICENSE +21 -0
  3. package/README.md +275 -2
  4. package/dist/ActionTestForm.d.ts +76 -0
  5. package/dist/AddConnectionModal.d.ts +24 -0
  6. package/dist/AppPicker.d.ts +83 -0
  7. package/dist/CodeBlock-CZu4TFSi.cjs +15 -0
  8. package/dist/CodeBlock-CZu4TFSi.cjs.map +1 -0
  9. package/dist/CodeBlock-Dot3Pd7P.js +2889 -0
  10. package/dist/CodeBlock-Dot3Pd7P.js.map +1 -0
  11. package/dist/CodeBlock.d.ts +65 -0
  12. package/dist/CodeEditor.d.ts +42 -0
  13. package/dist/ConfirmModal-8avl9Nv8.cjs +11 -0
  14. package/dist/ConfirmModal-8avl9Nv8.cjs.map +1 -0
  15. package/dist/ConfirmModal-CD-P8mhN.js +6335 -0
  16. package/dist/ConfirmModal-CD-P8mhN.js.map +1 -0
  17. package/dist/Copyable-1niV9gUa.js +771 -0
  18. package/dist/Copyable-1niV9gUa.js.map +1 -0
  19. package/dist/Copyable-CYZU1o4X.cjs +2 -0
  20. package/dist/Copyable-CYZU1o4X.cjs.map +1 -0
  21. package/dist/JsonEditor.d.ts +60 -0
  22. package/dist/NodeConfigForm.d.ts +70 -0
  23. package/dist/ParamsForm.d.ts +56 -0
  24. package/dist/PropertyEntryForm.d.ts +56 -0
  25. package/dist/RetryPolicyFields.d.ts +18 -0
  26. package/dist/StepBuilderModal.d.ts +375 -0
  27. package/dist/TriggerFillForm.d.ts +52 -0
  28. package/dist/WaitEditor.d.ts +6 -0
  29. package/dist/WorkflowFlowEditor.d.ts +119 -0
  30. package/dist/YamlEditor.d.ts +46 -0
  31. package/dist/app-categories.d.ts +38 -0
  32. package/dist/app-pages.d.ts +111 -0
  33. package/dist/code.cjs +2 -0
  34. package/dist/code.cjs.map +1 -0
  35. package/dist/code.d.ts +29 -0
  36. package/dist/code.mjs +8 -0
  37. package/dist/code.mjs.map +1 -0
  38. package/dist/components/ApiCallsPanel.d.ts +41 -0
  39. package/dist/components/AppIcon.d.ts +25 -0
  40. package/dist/components/AuthFieldsForm.d.ts +22 -0
  41. package/dist/components/Combobox.d.ts +24 -0
  42. package/dist/components/ConfirmModal.d.ts +33 -0
  43. package/dist/components/Copyable.d.ts +51 -0
  44. package/dist/components/CopyableText.d.ts +40 -0
  45. package/dist/components/DeleteButton.d.ts +16 -0
  46. package/dist/components/EditButton.d.ts +10 -0
  47. package/dist/components/ExecutionDetail.d.ts +70 -0
  48. package/dist/components/ExecutionFilters.d.ts +59 -0
  49. package/dist/components/ExecutionList.d.ts +60 -0
  50. package/dist/components/ExecutionLogPanel.d.ts +98 -0
  51. package/dist/components/ExecutionStats.d.ts +47 -0
  52. package/dist/components/ExpressionEditorModal.d.ts +42 -0
  53. package/dist/components/ExpressionInput.d.ts +36 -0
  54. package/dist/components/ExpressionOptions.d.ts +185 -0
  55. package/dist/components/HealthStatusPill.d.ts +25 -0
  56. package/dist/components/HistoryTimeline.d.ts +56 -0
  57. package/dist/components/Icon.d.ts +34 -0
  58. package/dist/components/IconButton.d.ts +60 -0
  59. package/dist/components/InfoTip.d.ts +15 -0
  60. package/dist/components/InternalIcon.d.ts +19 -0
  61. package/dist/components/ListItem.d.ts +25 -0
  62. package/dist/components/Modal.d.ts +29 -0
  63. package/dist/components/RepoSyncIndicator.d.ts +29 -0
  64. package/dist/components/ResolvedParams.d.ts +31 -0
  65. package/dist/components/ServerResources.d.ts +47 -0
  66. package/dist/components/StepStatusPill.d.ts +51 -0
  67. package/dist/components/UptimeStrip.d.ts +56 -0
  68. package/dist/components/execution-format.d.ts +24 -0
  69. package/dist/components/expression-dom.d.ts +154 -0
  70. package/dist/components/expression-template.d.ts +86 -0
  71. package/dist/components/history-scale.d.ts +33 -0
  72. package/dist/components/icons.d.ts +41 -0
  73. package/dist/components/resolved-clip.d.ts +42 -0
  74. package/dist/components/server-resources-format.d.ts +68 -0
  75. package/dist/components/server-resources.fixture.d.ts +9 -0
  76. package/dist/components/use-copy.d.ts +14 -0
  77. package/dist/createW6WApi.d.ts +31 -0
  78. package/dist/flow-connect.d.ts +138 -0
  79. package/dist/flow-fanout.d.ts +15 -0
  80. package/dist/flow-types.d.ts +356 -0
  81. package/dist/flow-utils.d.ts +284 -0
  82. package/dist/flow.cjs +3 -0
  83. package/dist/flow.cjs.map +1 -0
  84. package/dist/flow.d.ts +24 -0
  85. package/dist/flow.mjs +1978 -0
  86. package/dist/flow.mjs.map +1 -0
  87. package/dist/index.cjs +2 -0
  88. package/dist/index.cjs.map +1 -0
  89. package/dist/index.d.ts +94 -0
  90. package/dist/index.mjs +1812 -0
  91. package/dist/index.mjs.map +1 -0
  92. package/dist/oauth-popup.d.ts +17 -0
  93. package/dist/output-shape.d.ts +58 -0
  94. package/dist/provider.d.ts +421 -0
  95. package/dist/resolve-params.d.ts +112 -0
  96. package/dist/resolved-json.d.ts +21 -0
  97. package/dist/run-visuals.d.ts +90 -0
  98. package/dist/step-preview-state.d.ts +143 -0
  99. package/dist/theme.d.ts +32 -0
  100. package/dist/trigger-fields.d.ts +56 -0
  101. package/dist/types.d.ts +413 -0
  102. package/dist/use-app-action-defs.d.ts +7 -0
  103. package/dist/use-enter-submit.d.ts +23 -0
  104. package/dist/use-seed-sources.d.ts +16 -0
  105. package/package.json +112 -3
  106. package/src/code.css +561 -0
  107. package/src/styles/_buttons.scss +38 -0
  108. package/src/styles/_chips.scss +210 -0
  109. package/src/styles/_code.scss +139 -0
  110. package/src/styles/_copyable.scss +147 -0
  111. package/src/styles/_data-vars.scss +38 -0
  112. package/src/styles/_execution-history.scss +282 -0
  113. package/src/styles/_execution-log.scss +178 -0
  114. package/src/styles/_expression-field.scss +65 -0
  115. package/src/styles/_expression-inline.scss +63 -0
  116. package/src/styles/_expression-modal.scss +292 -0
  117. package/src/styles/_fields.scss +161 -0
  118. package/src/styles/_flow.scss +217 -0
  119. package/src/styles/_fx.scss +158 -0
  120. package/src/styles/_health.scss +46 -0
  121. package/src/styles/_history-timeline.scss +156 -0
  122. package/src/styles/_icon-button.scss +22 -0
  123. package/src/styles/_icon.scss +15 -0
  124. package/src/styles/_icons.scss +31 -0
  125. package/src/styles/_incoming-state.scss +46 -0
  126. package/src/styles/_info-tip.scss +9 -0
  127. package/src/styles/_layout.scss +6 -0
  128. package/src/styles/_lists.scss +64 -0
  129. package/src/styles/_modal.scss +125 -0
  130. package/src/styles/_multiselect.scss +69 -0
  131. package/src/styles/_repo-sync-indicator.scss +99 -0
  132. package/src/styles/_scale.scss +70 -0
  133. package/src/styles/_sections.scss +36 -0
  134. package/src/styles/_server-resources.scss +163 -0
  135. package/src/styles/_step-builder.scss +376 -0
  136. package/src/styles/_step-config.scss +195 -0
  137. package/src/styles/_tabs.scss +54 -0
  138. package/src/styles/_tester.scss +111 -0
  139. package/src/styles/_tokens.scss +160 -0
  140. package/src/styles/_uptime.scss +61 -0
  141. package/src/styles.css +4894 -0
  142. package/src/styles.scss +61 -0
@@ -0,0 +1,2889 @@
1
+ import { jsx as $ } from "react/jsx-runtime";
2
+ import { createElement as K, useCallback as V, useMemo as ge } from "react";
3
+ import { C as de } from "./Copyable-1niV9gUa.js";
4
+ function re(e) {
5
+ var t, a, l = "";
6
+ if (typeof e == "string" || typeof e == "number") l += e;
7
+ else if (typeof e == "object") if (Array.isArray(e)) {
8
+ var c = e.length;
9
+ for (t = 0; t < c; t++) e[t] && (a = re(e[t])) && (l && (l += " "), l += a);
10
+ } else for (a in e) e[a] && (l && (l += " "), l += a);
11
+ return l;
12
+ }
13
+ function oe() {
14
+ for (var e, t, a = 0, l = "", c = arguments.length; a < c; a++) (e = arguments[a]) && (t = re(e)) && (l && (l += " "), l += t);
15
+ return l;
16
+ }
17
+ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties, be = Object.getOwnPropertyDescriptor, me = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertyNames, G = Object.getOwnPropertySymbols, he = Object.getPrototypeOf, X = Object.prototype.hasOwnProperty, le = Object.prototype.propertyIsEnumerable, ee = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, C = (e, t) => {
18
+ for (var a in t || (t = {}))
19
+ X.call(t, a) && ee(e, a, t[a]);
20
+ if (G)
21
+ for (var a of G(t))
22
+ le.call(t, a) && ee(e, a, t[a]);
23
+ return e;
24
+ }, q = (e, t) => fe(e, me(t)), ie = (e, t) => {
25
+ var a = {};
26
+ for (var l in e)
27
+ X.call(e, l) && t.indexOf(l) < 0 && (a[l] = e[l]);
28
+ if (e != null && G)
29
+ for (var l of G(e))
30
+ t.indexOf(l) < 0 && le.call(e, l) && (a[l] = e[l]);
31
+ return a;
32
+ }, ve = (e, t) => function() {
33
+ return t || (0, e[se(e)[0]])((t = { exports: {} }).exports, t), t.exports;
34
+ }, we = (e, t) => {
35
+ for (var a in t)
36
+ Z(e, a, { get: t[a], enumerable: !0 });
37
+ }, ke = (e, t, a, l) => {
38
+ if (t && typeof t == "object" || typeof t == "function")
39
+ for (let c of se(t))
40
+ !X.call(e, c) && c !== a && Z(e, c, { get: () => t[c], enumerable: !(l = be(t, c)) || l.enumerable });
41
+ return e;
42
+ }, Ee = (e, t, a) => (a = e != null ? ye(he(e)) : {}, ke(
43
+ // If the importer is in node compatibility mode or this is not an ESM
44
+ // file that has been converted to a CommonJS file using a Babel-
45
+ // compatible transform (i.e. "__esModule" has not been set), then set
46
+ // "default" to the CommonJS "module.exports" for node compatibility.
47
+ !e || !e.__esModule ? Z(a, "default", { value: e, enumerable: !0 }) : a,
48
+ e
49
+ )), xe = ve({
50
+ "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
51
+ var a = (function() {
52
+ var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, c = 0, h = {}, p = {
53
+ /**
54
+ * A namespace for utility methods.
55
+ *
56
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
57
+ * change or disappear at any time.
58
+ *
59
+ * @namespace
60
+ * @memberof Prism
61
+ */
62
+ util: {
63
+ encode: function o(r) {
64
+ return r instanceof m ? new m(r.type, o(r.content), r.alias) : Array.isArray(r) ? r.map(o) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
65
+ },
66
+ /**
67
+ * Returns the name of the type of the given value.
68
+ *
69
+ * @param {any} o
70
+ * @returns {string}
71
+ * @example
72
+ * type(null) === 'Null'
73
+ * type(undefined) === 'Undefined'
74
+ * type(123) === 'Number'
75
+ * type('foo') === 'String'
76
+ * type(true) === 'Boolean'
77
+ * type([1, 2]) === 'Array'
78
+ * type({}) === 'Object'
79
+ * type(String) === 'Function'
80
+ * type(/abc+/) === 'RegExp'
81
+ */
82
+ type: function(o) {
83
+ return Object.prototype.toString.call(o).slice(8, -1);
84
+ },
85
+ /**
86
+ * Returns a unique number for the given object. Later calls will still return the same number.
87
+ *
88
+ * @param {Object} obj
89
+ * @returns {number}
90
+ */
91
+ objId: function(o) {
92
+ return o.__id || Object.defineProperty(o, "__id", { value: ++c }), o.__id;
93
+ },
94
+ /**
95
+ * Creates a deep clone of the given object.
96
+ *
97
+ * The main intended use of this function is to clone language definitions.
98
+ *
99
+ * @param {T} o
100
+ * @param {Record<number, any>} [visited]
101
+ * @returns {T}
102
+ * @template T
103
+ */
104
+ clone: function o(r, s) {
105
+ s = s || {};
106
+ var u, i;
107
+ switch (p.util.type(r)) {
108
+ case "Object":
109
+ if (i = p.util.objId(r), s[i])
110
+ return s[i];
111
+ u = /** @type {Record<string, any>} */
112
+ {}, s[i] = u;
113
+ for (var y in r)
114
+ r.hasOwnProperty(y) && (u[y] = o(r[y], s));
115
+ return (
116
+ /** @type {any} */
117
+ u
118
+ );
119
+ case "Array":
120
+ return i = p.util.objId(r), s[i] ? s[i] : (u = [], s[i] = u, r.forEach(function(w, k) {
121
+ u[k] = o(w, s);
122
+ }), /** @type {any} */
123
+ u);
124
+ default:
125
+ return r;
126
+ }
127
+ },
128
+ /**
129
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
130
+ *
131
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
132
+ *
133
+ * @param {Element} element
134
+ * @returns {string}
135
+ */
136
+ getLanguage: function(o) {
137
+ for (; o; ) {
138
+ var r = l.exec(o.className);
139
+ if (r)
140
+ return r[1].toLowerCase();
141
+ o = o.parentElement;
142
+ }
143
+ return "none";
144
+ },
145
+ /**
146
+ * Sets the Prism `language-xxxx` class of the given element.
147
+ *
148
+ * @param {Element} element
149
+ * @param {string} language
150
+ * @returns {void}
151
+ */
152
+ setLanguage: function(o, r) {
153
+ o.className = o.className.replace(RegExp(l, "gi"), ""), o.classList.add("language-" + r);
154
+ },
155
+ /**
156
+ * Returns whether a given class is active for `element`.
157
+ *
158
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
159
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
160
+ * given class is just the given class with a `no-` prefix.
161
+ *
162
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
163
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
164
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
165
+ *
166
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
167
+ * version of it, the class is considered active.
168
+ *
169
+ * @param {Element} element
170
+ * @param {string} className
171
+ * @param {boolean} [defaultActivation=false]
172
+ * @returns {boolean}
173
+ */
174
+ isActive: function(o, r, s) {
175
+ for (var u = "no-" + r; o; ) {
176
+ var i = o.classList;
177
+ if (i.contains(r))
178
+ return !0;
179
+ if (i.contains(u))
180
+ return !1;
181
+ o = o.parentElement;
182
+ }
183
+ return !!s;
184
+ }
185
+ },
186
+ /**
187
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
188
+ *
189
+ * @namespace
190
+ * @memberof Prism
191
+ * @public
192
+ */
193
+ languages: {
194
+ /**
195
+ * The grammar for plain, unformatted text.
196
+ */
197
+ plain: h,
198
+ plaintext: h,
199
+ text: h,
200
+ txt: h,
201
+ /**
202
+ * Creates a deep copy of the language with the given id and appends the given tokens.
203
+ *
204
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
205
+ * will be overwritten at its original position.
206
+ *
207
+ * ## Best practices
208
+ *
209
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
210
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
211
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
212
+ *
213
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
214
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
215
+ *
216
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
217
+ * @param {Grammar} redef The new tokens to append.
218
+ * @returns {Grammar} The new language created.
219
+ * @public
220
+ * @example
221
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
222
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
223
+ * // at its original position
224
+ * 'comment': { ... },
225
+ * // CSS doesn't have a 'color' token, so this token will be appended
226
+ * 'color': /\b(?:red|green|blue)\b/
227
+ * });
228
+ */
229
+ extend: function(o, r) {
230
+ var s = p.util.clone(p.languages[o]);
231
+ for (var u in r)
232
+ s[u] = r[u];
233
+ return s;
234
+ },
235
+ /**
236
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
237
+ *
238
+ * ## Usage
239
+ *
240
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
241
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
242
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
243
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
244
+ * this:
245
+ *
246
+ * ```js
247
+ * Prism.languages.markup.style = {
248
+ * // token
249
+ * };
250
+ * ```
251
+ *
252
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
253
+ * before existing tokens. For the CSS example above, you would use it like this:
254
+ *
255
+ * ```js
256
+ * Prism.languages.insertBefore('markup', 'cdata', {
257
+ * 'style': {
258
+ * // token
259
+ * }
260
+ * });
261
+ * ```
262
+ *
263
+ * ## Special cases
264
+ *
265
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
266
+ * will be ignored.
267
+ *
268
+ * This behavior can be used to insert tokens after `before`:
269
+ *
270
+ * ```js
271
+ * Prism.languages.insertBefore('markup', 'comment', {
272
+ * 'comment': Prism.languages.markup.comment,
273
+ * // tokens after 'comment'
274
+ * });
275
+ * ```
276
+ *
277
+ * ## Limitations
278
+ *
279
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
280
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
281
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
282
+ * deleting properties which is necessary to insert at arbitrary positions.
283
+ *
284
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
285
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
286
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
287
+ *
288
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
289
+ * you hold the target object in a variable, then the value of the variable will not change.
290
+ *
291
+ * ```js
292
+ * var oldMarkup = Prism.languages.markup;
293
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
294
+ *
295
+ * assert(oldMarkup !== Prism.languages.markup);
296
+ * assert(newMarkup === Prism.languages.markup);
297
+ * ```
298
+ *
299
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
300
+ * object to be modified.
301
+ * @param {string} before The key to insert before.
302
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
303
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
304
+ * object to be modified.
305
+ *
306
+ * Defaults to `Prism.languages`.
307
+ * @returns {Grammar} The new grammar object.
308
+ * @public
309
+ */
310
+ insertBefore: function(o, r, s, u) {
311
+ u = u || /** @type {any} */
312
+ p.languages;
313
+ var i = u[o], y = {};
314
+ for (var w in i)
315
+ if (i.hasOwnProperty(w)) {
316
+ if (w == r)
317
+ for (var k in s)
318
+ s.hasOwnProperty(k) && (y[k] = s[k]);
319
+ s.hasOwnProperty(w) || (y[w] = i[w]);
320
+ }
321
+ var A = u[o];
322
+ return u[o] = y, p.languages.DFS(p.languages, function(x, S) {
323
+ S === A && x != o && (this[x] = y);
324
+ }), y;
325
+ },
326
+ // Traverse a language definition with Depth First Search
327
+ DFS: function o(r, s, u, i) {
328
+ i = i || {};
329
+ var y = p.util.objId;
330
+ for (var w in r)
331
+ if (r.hasOwnProperty(w)) {
332
+ s.call(r, w, r[w], u || w);
333
+ var k = r[w], A = p.util.type(k);
334
+ A === "Object" && !i[y(k)] ? (i[y(k)] = !0, o(k, s, null, i)) : A === "Array" && !i[y(k)] && (i[y(k)] = !0, o(k, s, w, i));
335
+ }
336
+ }
337
+ },
338
+ plugins: {},
339
+ /**
340
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
341
+ * and the language definitions to use, and returns a string with the HTML produced.
342
+ *
343
+ * The following hooks will be run:
344
+ * 1. `before-tokenize`
345
+ * 2. `after-tokenize`
346
+ * 3. `wrap`: On each {@link Token}.
347
+ *
348
+ * @param {string} text A string with the code to be highlighted.
349
+ * @param {Grammar} grammar An object containing the tokens to use.
350
+ *
351
+ * Usually a language definition like `Prism.languages.markup`.
352
+ * @param {string} language The name of the language definition passed to `grammar`.
353
+ * @returns {string} The highlighted HTML.
354
+ * @memberof Prism
355
+ * @public
356
+ * @example
357
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
358
+ */
359
+ highlight: function(o, r, s) {
360
+ var u = {
361
+ code: o,
362
+ grammar: r,
363
+ language: s
364
+ };
365
+ if (p.hooks.run("before-tokenize", u), !u.grammar)
366
+ throw new Error('The language "' + u.language + '" has no grammar.');
367
+ return u.tokens = p.tokenize(u.code, u.grammar), p.hooks.run("after-tokenize", u), m.stringify(p.util.encode(u.tokens), u.language);
368
+ },
369
+ /**
370
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
371
+ * and the language definitions to use, and returns an array with the tokenized code.
372
+ *
373
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
374
+ *
375
+ * This method could be useful in other contexts as well, as a very crude parser.
376
+ *
377
+ * @param {string} text A string with the code to be highlighted.
378
+ * @param {Grammar} grammar An object containing the tokens to use.
379
+ *
380
+ * Usually a language definition like `Prism.languages.markup`.
381
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
382
+ * @memberof Prism
383
+ * @public
384
+ * @example
385
+ * let code = `var foo = 0;`;
386
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
387
+ * tokens.forEach(token => {
388
+ * if (token instanceof Prism.Token && token.type === 'number') {
389
+ * console.log(`Found numeric literal: ${token.content}`);
390
+ * }
391
+ * });
392
+ */
393
+ tokenize: function(o, r) {
394
+ var s = r.rest;
395
+ if (s) {
396
+ for (var u in s)
397
+ r[u] = s[u];
398
+ delete r.rest;
399
+ }
400
+ var i = new b();
401
+ return f(i, i.head, o), d(o, i, r, i.head, 0), E(i);
402
+ },
403
+ /**
404
+ * @namespace
405
+ * @memberof Prism
406
+ * @public
407
+ */
408
+ hooks: {
409
+ all: {},
410
+ /**
411
+ * Adds the given callback to the list of callbacks for the given hook.
412
+ *
413
+ * The callback will be invoked when the hook it is registered for is run.
414
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
415
+ *
416
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
417
+ *
418
+ * @param {string} name The name of the hook.
419
+ * @param {HookCallback} callback The callback function which is given environment variables.
420
+ * @public
421
+ */
422
+ add: function(o, r) {
423
+ var s = p.hooks.all;
424
+ s[o] = s[o] || [], s[o].push(r);
425
+ },
426
+ /**
427
+ * Runs a hook invoking all registered callbacks with the given environment variables.
428
+ *
429
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
430
+ *
431
+ * @param {string} name The name of the hook.
432
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
433
+ * @public
434
+ */
435
+ run: function(o, r) {
436
+ var s = p.hooks.all[o];
437
+ if (!(!s || !s.length))
438
+ for (var u = 0, i; i = s[u++]; )
439
+ i(r);
440
+ }
441
+ },
442
+ Token: m
443
+ };
444
+ function m(o, r, s, u) {
445
+ this.type = o, this.content = r, this.alias = s, this.length = (u || "").length | 0;
446
+ }
447
+ m.stringify = function o(r, s) {
448
+ if (typeof r == "string")
449
+ return r;
450
+ if (Array.isArray(r)) {
451
+ var u = "";
452
+ return r.forEach(function(A) {
453
+ u += o(A, s);
454
+ }), u;
455
+ }
456
+ var i = {
457
+ type: r.type,
458
+ content: o(r.content, s),
459
+ tag: "span",
460
+ classes: ["token", r.type],
461
+ attributes: {},
462
+ language: s
463
+ }, y = r.alias;
464
+ y && (Array.isArray(y) ? Array.prototype.push.apply(i.classes, y) : i.classes.push(y)), p.hooks.run("wrap", i);
465
+ var w = "";
466
+ for (var k in i.attributes)
467
+ w += " " + k + '="' + (i.attributes[k] || "").replace(/"/g, "&quot;") + '"';
468
+ return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + w + ">" + i.content + "</" + i.tag + ">";
469
+ };
470
+ function g(o, r, s, u) {
471
+ o.lastIndex = r;
472
+ var i = o.exec(s);
473
+ if (i && u && i[1]) {
474
+ var y = i[1].length;
475
+ i.index += y, i[0] = i[0].slice(y);
476
+ }
477
+ return i;
478
+ }
479
+ function d(o, r, s, u, i, y) {
480
+ for (var w in s)
481
+ if (!(!s.hasOwnProperty(w) || !s[w])) {
482
+ var k = s[w];
483
+ k = Array.isArray(k) ? k : [k];
484
+ for (var A = 0; A < k.length; ++A) {
485
+ if (y && y.cause == w + "," + A)
486
+ return;
487
+ var x = k[A], S = x.inside, _ = !!x.lookbehind, L = !!x.greedy, R = x.alias;
488
+ if (L && !x.pattern.global) {
489
+ var O = x.pattern.toString().match(/[imsuy]*$/)[0];
490
+ x.pattern = RegExp(x.pattern.source, O + "g");
491
+ }
492
+ for (var Q = x.pattern || x, F = u.next, N = i; F !== r.tail && !(y && N >= y.reach); N += F.value.length, F = F.next) {
493
+ var B = F.value;
494
+ if (r.length > o.length)
495
+ return;
496
+ if (!(B instanceof m)) {
497
+ var j = 1, I;
498
+ if (L) {
499
+ if (I = g(Q, N, o, _), !I || I.index >= o.length)
500
+ break;
501
+ var z = I.index, ce = I.index + I[0].length, D = N;
502
+ for (D += F.value.length; z >= D; )
503
+ F = F.next, D += F.value.length;
504
+ if (D -= F.value.length, N = D, F.value instanceof m)
505
+ continue;
506
+ for (var P = F; P !== r.tail && (D < ce || typeof P.value == "string"); P = P.next)
507
+ j++, D += P.value.length;
508
+ j--, B = o.slice(N, D), I.index -= N;
509
+ } else if (I = g(Q, 0, B, _), !I)
510
+ continue;
511
+ var z = I.index, M = I[0], H = B.slice(0, z), J = B.slice(z + M.length), W = N + B.length;
512
+ y && W > y.reach && (y.reach = W);
513
+ var U = F.prev;
514
+ H && (U = f(r, U, H), N += H.length), v(r, U, j);
515
+ var pe = new m(w, S ? p.tokenize(M, S) : M, R, M);
516
+ if (F = f(r, U, pe), J && f(r, F, J), j > 1) {
517
+ var Y = {
518
+ cause: w + "," + A,
519
+ reach: W
520
+ };
521
+ d(o, r, s, F.prev, N, Y), y && Y.reach > y.reach && (y.reach = Y.reach);
522
+ }
523
+ }
524
+ }
525
+ }
526
+ }
527
+ }
528
+ function b() {
529
+ var o = { value: null, prev: null, next: null }, r = { value: null, prev: o, next: null };
530
+ o.next = r, this.head = o, this.tail = r, this.length = 0;
531
+ }
532
+ function f(o, r, s) {
533
+ var u = r.next, i = { value: s, prev: r, next: u };
534
+ return r.next = i, u.prev = i, o.length++, i;
535
+ }
536
+ function v(o, r, s) {
537
+ for (var u = r.next, i = 0; i < s && u !== o.tail; i++)
538
+ u = u.next;
539
+ r.next = u, u.prev = r, o.length -= i;
540
+ }
541
+ function E(o) {
542
+ for (var r = [], s = o.head.next; s !== o.tail; )
543
+ r.push(s.value), s = s.next;
544
+ return r;
545
+ }
546
+ return p;
547
+ })();
548
+ t.exports = a, a.default = a;
549
+ }
550
+ }), n = Ee(xe());
551
+ n.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(e) {
552
+ e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
553
+ }), Object.defineProperty(n.languages.markup.tag, "addInlined", { value: function(e, l) {
554
+ var a = {}, a = (a["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: n.languages[l] }, a.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: a } }), l = (a["language-" + l] = { pattern: /[\s\S]+/, inside: n.languages[l] }, {});
555
+ l[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
556
+ return e;
557
+ }), "i"), lookbehind: !0, greedy: !0, inside: a }, n.languages.insertBefore("markup", "cdata", l);
558
+ } }), Object.defineProperty(n.languages.markup.tag, "addAttribute", { value: function(e, t) {
559
+ n.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [t, "language-" + t], inside: n.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
560
+ } }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, (function(e) {
561
+ var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, a = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, l = "(?:[^\\\\-]|" + a.source + ")", l = RegExp(l + "-" + l), c = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
562
+ e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: l, inside: { escape: a, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: a } }, "special-escape": t, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": c } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: a, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": c } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
563
+ })(n), n.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, n.languages.javascript = n.languages.extend("clike", { "class-name": [n.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: n.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: n.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: n.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: n.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: n.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), n.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: n.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), n.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), n.languages.js = n.languages.javascript, n.languages.actionscript = n.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), n.languages.actionscript["class-name"].alias = "function", delete n.languages.actionscript.parameter, delete n.languages.actionscript["literal-property"], n.languages.markup && n.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: n.languages.markup } }), (function(e) {
564
+ var t = /#(?!\{).+/, a = { pattern: /#\{[^}]+\}/, alias: "variable" };
565
+ e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: a } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: t, interpolation: a } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: a } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
566
+ })(n), (function(e) {
567
+ var t = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
568
+ Object.defineProperty(t, "addSupport", { value: function(a, l) {
569
+ (a = typeof a == "string" ? [a] : a).forEach(function(c) {
570
+ var h = function(f) {
571
+ f.inside || (f.inside = {}), f.inside.rest = l;
572
+ }, p = "doc-comment";
573
+ if (m = e.languages[c]) {
574
+ var m, g = m[p];
575
+ if ((g = g || (m = e.languages.insertBefore(c, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[p]) instanceof RegExp && (g = m[p] = { pattern: g }), Array.isArray(g))
576
+ for (var d = 0, b = g.length; d < b; d++)
577
+ g[d] instanceof RegExp && (g[d] = { pattern: g[d] }), h(g[d]);
578
+ else
579
+ h(g);
580
+ }
581
+ });
582
+ } }), t.addSupport(["java", "javascript", "php"], t);
583
+ })(n), (function(e) {
584
+ var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, t = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + t.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + t.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + t.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + t.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: t, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
585
+ t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
586
+ })(n), (function(e) {
587
+ var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [t, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = t, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), a = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
588
+ e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: t, number: a, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: a });
589
+ })(n), (function(e) {
590
+ var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + a.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + a.source + ")?)", c = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
591
+ return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
592
+ }), h = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
593
+ function p(m, g) {
594
+ g = (g || "").replace(/m/g, "") + "m";
595
+ var d = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
596
+ return l;
597
+ }).replace(/<<value>>/g, function() {
598
+ return m;
599
+ });
600
+ return RegExp(d, g);
601
+ }
602
+ e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
603
+ return l;
604
+ })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
605
+ return l;
606
+ }).replace(/<<key>>/g, function() {
607
+ return "(?:" + c + "|" + h + ")";
608
+ })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: p(/\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), lookbehind: !0, alias: "number" }, boolean: { pattern: p(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: p(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: p(h), lookbehind: !0, greedy: !0 }, number: { pattern: p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: a, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
609
+ })(n), (function(e) {
610
+ var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
611
+ function a(d) {
612
+ return d = d.replace(/<inner>/g, function() {
613
+ return t;
614
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + d + ")");
615
+ }
616
+ var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, c = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
617
+ return l;
618
+ }), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, p = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + c + h + "(?:" + c + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + c + h + ")(?:" + c + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + c + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + c + "$"), inside: { "table-header": { pattern: RegExp(l), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: a(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(d) {
619
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
620
+ d !== b && (e.languages.markdown[d].inside.content.inside[b] = e.languages.markdown[b]);
621
+ });
622
+ }), e.hooks.add("after-tokenize", function(d) {
623
+ d.language !== "markdown" && d.language !== "md" || (function b(f) {
624
+ if (f && typeof f != "string")
625
+ for (var v = 0, E = f.length; v < E; v++) {
626
+ var o, r = f[v];
627
+ r.type !== "code" ? b(r.content) : (o = r.content[1], r = r.content[3], o && r && o.type === "code-language" && r.type === "code-block" && typeof o.content == "string" && (o = o.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), o = "language-" + (o = (/[a-z][\w-]*/i.exec(o) || [""])[0].toLowerCase()), r.alias ? typeof r.alias == "string" ? r.alias = [r.alias, o] : r.alias.push(o) : r.alias = [o]));
628
+ }
629
+ })(d.tokens);
630
+ }), e.hooks.add("wrap", function(d) {
631
+ if (d.type === "code-block") {
632
+ for (var b = "", f = 0, v = d.classes.length; f < v; f++) {
633
+ var E = d.classes[f], E = /language-(.+)/.exec(E);
634
+ if (E) {
635
+ b = E[1];
636
+ break;
637
+ }
638
+ }
639
+ var o, r = e.languages[b];
640
+ r ? d.content = e.highlight((function(s) {
641
+ return s = s.replace(p, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(u, i) {
642
+ var y;
643
+ return (i = i.toLowerCase())[0] === "#" ? (y = i[1] === "x" ? parseInt(i.slice(2), 16) : Number(i.slice(1)), g(y)) : m[i] || u;
644
+ });
645
+ })(d.content), r, b) : b && b !== "none" && e.plugins.autoloader && (o = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), d.attributes.id = o, e.plugins.autoloader.loadLanguages(b, function() {
646
+ var s = document.getElementById(o);
647
+ s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
648
+ }));
649
+ }
650
+ }), RegExp(e.languages.markup.tag.pattern.source, "gi")), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, g = String.fromCodePoint || String.fromCharCode;
651
+ e.languages.md = e.languages.markdown;
652
+ })(n), n.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: n.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, n.hooks.add("after-tokenize", function(e) {
653
+ if (e.language === "graphql")
654
+ for (var t = e.tokens.filter(function(o) {
655
+ return typeof o != "string" && o.type !== "comment" && o.type !== "scalar";
656
+ }), a = 0; a < t.length; ) {
657
+ var l = t[a++];
658
+ if (l.type === "keyword" && l.content === "mutation") {
659
+ var c = [];
660
+ if (f(["definition-mutation", "punctuation"]) && b(1).content === "(") {
661
+ a += 2;
662
+ var h = v(/^\($/, /^\)$/);
663
+ if (h === -1)
664
+ continue;
665
+ for (; a < h; a++) {
666
+ var p = b(0);
667
+ p.type === "variable" && (E(p, "variable-input"), c.push(p.content));
668
+ }
669
+ a = h + 1;
670
+ }
671
+ if (f(["punctuation", "property-query"]) && b(0).content === "{" && (a++, E(b(0), "property-mutation"), 0 < c.length)) {
672
+ var m = v(/^\{$/, /^\}$/);
673
+ if (m !== -1)
674
+ for (var g = a; g < m; g++) {
675
+ var d = t[g];
676
+ d.type === "variable" && 0 <= c.indexOf(d.content) && E(d, "variable-input");
677
+ }
678
+ }
679
+ }
680
+ }
681
+ function b(o) {
682
+ return t[a + o];
683
+ }
684
+ function f(o, r) {
685
+ r = r || 0;
686
+ for (var s = 0; s < o.length; s++) {
687
+ var u = b(s + r);
688
+ if (!u || u.type !== o[s])
689
+ return;
690
+ }
691
+ return 1;
692
+ }
693
+ function v(o, r) {
694
+ for (var s = 1, u = a; u < t.length; u++) {
695
+ var i = t[u], y = i.content;
696
+ if (i.type === "punctuation" && typeof y == "string") {
697
+ if (o.test(y))
698
+ s++;
699
+ else if (r.test(y) && --s === 0)
700
+ return u;
701
+ }
702
+ }
703
+ return -1;
704
+ }
705
+ function E(o, r) {
706
+ var s = o.alias;
707
+ s ? Array.isArray(s) || (o.alias = s = [s]) : o.alias = s = [], s.push(r);
708
+ }
709
+ }), n.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, 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, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, (function(e) {
710
+ var t = e.languages.javascript["template-string"], a = t.pattern.source, l = t.inside.interpolation, c = l.inside["interpolation-punctuation"], h = l.pattern.source;
711
+ function p(f, v) {
712
+ if (e.languages[f])
713
+ return { pattern: RegExp("((?:" + v + ")\\s*)" + a), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: f } } };
714
+ }
715
+ function m(f, v, E) {
716
+ return f = { code: f, grammar: v, language: E }, e.hooks.run("before-tokenize", f), f.tokens = e.tokenize(f.code, f.grammar), e.hooks.run("after-tokenize", f), f.tokens;
717
+ }
718
+ function g(f, v, E) {
719
+ var s = e.tokenize(f, { interpolation: { pattern: RegExp(h), lookbehind: !0 } }), o = 0, r = {}, s = m(s.map(function(i) {
720
+ if (typeof i == "string")
721
+ return i;
722
+ for (var y, w, i = i.content; f.indexOf((w = o++, y = "___" + E.toUpperCase() + "_" + w + "___")) !== -1; )
723
+ ;
724
+ return r[y] = i, y;
725
+ }).join(""), v, E), u = Object.keys(r);
726
+ return o = 0, (function i(y) {
727
+ for (var w = 0; w < y.length; w++) {
728
+ if (o >= u.length)
729
+ return;
730
+ var k, A, x, S, _, L, R, O = y[w];
731
+ typeof O == "string" || typeof O.content == "string" ? (k = u[o], (R = (L = typeof O == "string" ? O : O.content).indexOf(k)) !== -1 && (++o, A = L.substring(0, R), _ = r[k], x = void 0, (S = {})["interpolation-punctuation"] = c, (S = e.tokenize(_, S)).length === 3 && ((x = [1, 1]).push.apply(x, m(S[1], e.languages.javascript, "javascript")), S.splice.apply(S, x)), x = new e.Token("interpolation", S, l.alias, _), S = L.substring(R + k.length), _ = [], A && _.push(A), _.push(x), S && (i(L = [S]), _.push.apply(_, L)), typeof O == "string" ? (y.splice.apply(y, [w, 1].concat(_)), w += _.length - 1) : O.content = _)) : (R = O.content, Array.isArray(R) ? i(R) : i([R]));
732
+ }
733
+ })(s), new e.Token(E, s, "language-" + E, f);
734
+ }
735
+ e.languages.javascript["template-string"] = [p("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), p("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), p("svg", /\bsvg/.source), p("markdown", /\b(?:markdown|md)/.source), p("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), p("sql", /\bsql/.source), t].filter(Boolean);
736
+ var d = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
737
+ function b(f) {
738
+ return typeof f == "string" ? f : Array.isArray(f) ? f.map(b).join("") : b(f.content);
739
+ }
740
+ e.hooks.add("after-tokenize", function(f) {
741
+ f.language in d && (function v(E) {
742
+ for (var o = 0, r = E.length; o < r; o++) {
743
+ var s, u, i, y = E[o];
744
+ typeof y != "string" && (s = y.content, Array.isArray(s) ? y.type === "template-string" ? (y = s[1], s.length === 3 && typeof y != "string" && y.type === "embedded-code" && (u = b(y), y = y.alias, y = Array.isArray(y) ? y[0] : y, i = e.languages[y]) && (s[1] = g(u, i, y))) : v(s) : typeof s != "string" && v([s]));
745
+ }
746
+ })(f.tokens);
747
+ });
748
+ })(n), (function(e) {
749
+ e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
750
+ var t = e.languages.extend("typescript", {});
751
+ delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
752
+ })(n), (function(e) {
753
+ var t = e.languages.javascript, a = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + a + "\\s+)?)";
754
+ e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(l + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(l + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: t, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
755
+ return a;
756
+ })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + a), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
757
+ })(n), (function(e) {
758
+ e.languages.flow = e.languages.extend("javascript", {}), e.languages.insertBefore("flow", "keyword", { type: [{ pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/, alias: "class-name" }] }), e.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i, delete e.languages.flow.parameter, e.languages.insertBefore("flow", "operator", { "flow-punctuation": { pattern: /\{\||\|\}/, alias: "punctuation" } }), Array.isArray(e.languages.flow.keyword) || (e.languages.flow.keyword = [e.languages.flow.keyword]), e.languages.flow.keyword.unshift({ pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/, lookbehind: !0 }, { pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/, lookbehind: !0 });
759
+ })(n), n.languages.n4js = n.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), n.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), n.languages.n4jsd = n.languages.n4js, (function(e) {
760
+ function t(p, m) {
761
+ return RegExp(p.replace(/<ID>/g, function() {
762
+ return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
763
+ }), m);
764
+ }
765
+ e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: t(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
766
+ for (var a = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < a.length; l++) {
767
+ var h = a[l], c = e.languages.javascript[h], h = (c = e.util.type(c) === "RegExp" ? e.languages.javascript[h] = { pattern: c } : c).inside || {};
768
+ (c.inside = h)["maybe-class-name"] = /^[A-Z][\s\S]*/;
769
+ }
770
+ })(n), (function(e) {
771
+ var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, c = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
772
+ function h(g, d) {
773
+ return g = g.replace(/<S>/g, function() {
774
+ return a;
775
+ }).replace(/<BRACES>/g, function() {
776
+ return l;
777
+ }).replace(/<SPREAD>/g, function() {
778
+ return c;
779
+ }), RegExp(g, d);
780
+ }
781
+ c = h(c).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: h(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: h(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
782
+ function p(g) {
783
+ for (var d = [], b = 0; b < g.length; b++) {
784
+ var f = g[b], v = !1;
785
+ typeof f != "string" && (f.type === "tag" && f.content[0] && f.content[0].type === "tag" ? f.content[0].content[0].content === "</" ? 0 < d.length && d[d.length - 1].tagName === m(f.content[0].content[1]) && d.pop() : f.content[f.content.length - 1].content !== "/>" && d.push({ tagName: m(f.content[0].content[1]), openedBraces: 0 }) : 0 < d.length && f.type === "punctuation" && f.content === "{" ? d[d.length - 1].openedBraces++ : 0 < d.length && 0 < d[d.length - 1].openedBraces && f.type === "punctuation" && f.content === "}" ? d[d.length - 1].openedBraces-- : v = !0), (v || typeof f == "string") && 0 < d.length && d[d.length - 1].openedBraces === 0 && (v = m(f), b < g.length - 1 && (typeof g[b + 1] == "string" || g[b + 1].type === "plain-text") && (v += m(g[b + 1]), g.splice(b + 1, 1)), 0 < b && (typeof g[b - 1] == "string" || g[b - 1].type === "plain-text") && (v = m(g[b - 1]) + v, g.splice(b - 1, 1), b--), g[b] = new e.Token("plain-text", v, null, v)), f.content && typeof f.content != "string" && p(f.content);
786
+ }
787
+ }
788
+ var m = function(g) {
789
+ return g ? typeof g == "string" ? g : typeof g.content == "string" ? g.content : g.content.map(m).join("") : "";
790
+ };
791
+ e.hooks.add("after-tokenize", function(g) {
792
+ g.language !== "jsx" && g.language !== "tsx" || p(g.tokens);
793
+ });
794
+ })(n), (function(e) {
795
+ var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
796
+ t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
797
+ })(n), n.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, 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/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, n.languages.swift["string-literal"].forEach(function(e) {
798
+ e.inside.interpolation.inside = n.languages.swift;
799
+ }), (function(e) {
800
+ e.languages.kotlin = e.languages.extend("clike", { keyword: { pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/, lookbehind: !0 }, function: [{ pattern: /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/, greedy: !0 }, { pattern: /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/, lookbehind: !0, greedy: !0 }], number: /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/, operator: /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete e.languages.kotlin["class-name"];
801
+ var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
802
+ e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: t }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: t }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
803
+ })(n), n.languages.c = n.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), n.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), n.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, n.languages.c.string], char: n.languages.c.char, comment: n.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: n.languages.c } } } }), n.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete n.languages.c.boolean, n.languages.objectivec = n.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete n.languages.objectivec["class-name"], n.languages.objc = n.languages.objectivec, n.languages.reason = n.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), n.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete n.languages.reason.function, (function(e) {
804
+ for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, a = 0; a < 2; a++)
805
+ t = t.replace(/<self>/g, function() {
806
+ return t;
807
+ });
808
+ t = t.replace(/<self>/g, function() {
809
+ return /[^\s\S]/.source;
810
+ }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\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/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, 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/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
811
+ })(n), n.languages.go = n.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), n.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete n.languages.go["class-name"], (function(e) {
812
+ var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, a = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
813
+ return t.source;
814
+ });
815
+ e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
816
+ return t.source;
817
+ })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
818
+ return a;
819
+ }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
820
+ })(n), n.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, n.languages.python["string-interpolation"].inside.interpolation.inside.rest = n.languages.python, n.languages.py = n.languages.python, n.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, n.languages.webmanifest = n.languages.json;
821
+ var Ae = {};
822
+ we(Ae, {
823
+ dracula: () => _e,
824
+ duotoneDark: () => Te,
825
+ duotoneLight: () => Ie,
826
+ github: () => Oe,
827
+ gruvboxMaterialDark: () => lt,
828
+ gruvboxMaterialLight: () => ut,
829
+ jettwaveDark: () => Je,
830
+ jettwaveLight: () => tt,
831
+ nightOwl: () => Ce,
832
+ nightOwlLight: () => Be,
833
+ oceanicNext: () => Pe,
834
+ okaidia: () => ze,
835
+ oneDark: () => nt,
836
+ oneLight: () => ot,
837
+ palenight: () => Ue,
838
+ shadesOfPurple: () => Ze,
839
+ synthwave84: () => He,
840
+ ultramin: () => Ye,
841
+ vsDark: () => ue,
842
+ vsLight: () => Xe
843
+ });
844
+ var Se = {
845
+ plain: {
846
+ color: "#F8F8F2",
847
+ backgroundColor: "#282A36"
848
+ },
849
+ styles: [
850
+ {
851
+ types: ["prolog", "constant", "builtin"],
852
+ style: {
853
+ color: "rgb(189, 147, 249)"
854
+ }
855
+ },
856
+ {
857
+ types: ["inserted", "function"],
858
+ style: {
859
+ color: "rgb(80, 250, 123)"
860
+ }
861
+ },
862
+ {
863
+ types: ["deleted"],
864
+ style: {
865
+ color: "rgb(255, 85, 85)"
866
+ }
867
+ },
868
+ {
869
+ types: ["changed"],
870
+ style: {
871
+ color: "rgb(255, 184, 108)"
872
+ }
873
+ },
874
+ {
875
+ types: ["punctuation", "symbol"],
876
+ style: {
877
+ color: "rgb(248, 248, 242)"
878
+ }
879
+ },
880
+ {
881
+ types: ["string", "char", "tag", "selector"],
882
+ style: {
883
+ color: "rgb(255, 121, 198)"
884
+ }
885
+ },
886
+ {
887
+ types: ["keyword", "variable"],
888
+ style: {
889
+ color: "rgb(189, 147, 249)",
890
+ fontStyle: "italic"
891
+ }
892
+ },
893
+ {
894
+ types: ["comment"],
895
+ style: {
896
+ color: "rgb(98, 114, 164)"
897
+ }
898
+ },
899
+ {
900
+ types: ["attr-name"],
901
+ style: {
902
+ color: "rgb(241, 250, 140)"
903
+ }
904
+ }
905
+ ]
906
+ }, _e = Se, Fe = {
907
+ plain: {
908
+ backgroundColor: "#2a2734",
909
+ color: "#9a86fd"
910
+ },
911
+ styles: [
912
+ {
913
+ types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
914
+ style: {
915
+ color: "#6c6783"
916
+ }
917
+ },
918
+ {
919
+ types: ["namespace"],
920
+ style: {
921
+ opacity: 0.7
922
+ }
923
+ },
924
+ {
925
+ types: ["tag", "operator", "number"],
926
+ style: {
927
+ color: "#e09142"
928
+ }
929
+ },
930
+ {
931
+ types: ["property", "function"],
932
+ style: {
933
+ color: "#9a86fd"
934
+ }
935
+ },
936
+ {
937
+ types: ["tag-id", "selector", "atrule-id"],
938
+ style: {
939
+ color: "#eeebff"
940
+ }
941
+ },
942
+ {
943
+ types: ["attr-name"],
944
+ style: {
945
+ color: "#c4b9fe"
946
+ }
947
+ },
948
+ {
949
+ types: [
950
+ "boolean",
951
+ "string",
952
+ "entity",
953
+ "url",
954
+ "attr-value",
955
+ "keyword",
956
+ "control",
957
+ "directive",
958
+ "unit",
959
+ "statement",
960
+ "regex",
961
+ "atrule",
962
+ "placeholder",
963
+ "variable"
964
+ ],
965
+ style: {
966
+ color: "#ffcc99"
967
+ }
968
+ },
969
+ {
970
+ types: ["deleted"],
971
+ style: {
972
+ textDecorationLine: "line-through"
973
+ }
974
+ },
975
+ {
976
+ types: ["inserted"],
977
+ style: {
978
+ textDecorationLine: "underline"
979
+ }
980
+ },
981
+ {
982
+ types: ["italic"],
983
+ style: {
984
+ fontStyle: "italic"
985
+ }
986
+ },
987
+ {
988
+ types: ["important", "bold"],
989
+ style: {
990
+ fontWeight: "bold"
991
+ }
992
+ },
993
+ {
994
+ types: ["important"],
995
+ style: {
996
+ color: "#c4b9fe"
997
+ }
998
+ }
999
+ ]
1000
+ }, Te = Fe, Re = {
1001
+ plain: {
1002
+ backgroundColor: "#faf8f5",
1003
+ color: "#728fcb"
1004
+ },
1005
+ styles: [
1006
+ {
1007
+ types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1008
+ style: {
1009
+ color: "#b6ad9a"
1010
+ }
1011
+ },
1012
+ {
1013
+ types: ["namespace"],
1014
+ style: {
1015
+ opacity: 0.7
1016
+ }
1017
+ },
1018
+ {
1019
+ types: ["tag", "operator", "number"],
1020
+ style: {
1021
+ color: "#063289"
1022
+ }
1023
+ },
1024
+ {
1025
+ types: ["property", "function"],
1026
+ style: {
1027
+ color: "#b29762"
1028
+ }
1029
+ },
1030
+ {
1031
+ types: ["tag-id", "selector", "atrule-id"],
1032
+ style: {
1033
+ color: "#2d2006"
1034
+ }
1035
+ },
1036
+ {
1037
+ types: ["attr-name"],
1038
+ style: {
1039
+ color: "#896724"
1040
+ }
1041
+ },
1042
+ {
1043
+ types: [
1044
+ "boolean",
1045
+ "string",
1046
+ "entity",
1047
+ "url",
1048
+ "attr-value",
1049
+ "keyword",
1050
+ "control",
1051
+ "directive",
1052
+ "unit",
1053
+ "statement",
1054
+ "regex",
1055
+ "atrule"
1056
+ ],
1057
+ style: {
1058
+ color: "#728fcb"
1059
+ }
1060
+ },
1061
+ {
1062
+ types: ["placeholder", "variable"],
1063
+ style: {
1064
+ color: "#93abdc"
1065
+ }
1066
+ },
1067
+ {
1068
+ types: ["deleted"],
1069
+ style: {
1070
+ textDecorationLine: "line-through"
1071
+ }
1072
+ },
1073
+ {
1074
+ types: ["inserted"],
1075
+ style: {
1076
+ textDecorationLine: "underline"
1077
+ }
1078
+ },
1079
+ {
1080
+ types: ["italic"],
1081
+ style: {
1082
+ fontStyle: "italic"
1083
+ }
1084
+ },
1085
+ {
1086
+ types: ["important", "bold"],
1087
+ style: {
1088
+ fontWeight: "bold"
1089
+ }
1090
+ },
1091
+ {
1092
+ types: ["important"],
1093
+ style: {
1094
+ color: "#896724"
1095
+ }
1096
+ }
1097
+ ]
1098
+ }, Ie = Re, Le = {
1099
+ plain: {
1100
+ color: "#393A34",
1101
+ backgroundColor: "#f6f8fa"
1102
+ },
1103
+ styles: [
1104
+ {
1105
+ types: ["comment", "prolog", "doctype", "cdata"],
1106
+ style: {
1107
+ color: "#999988",
1108
+ fontStyle: "italic"
1109
+ }
1110
+ },
1111
+ {
1112
+ types: ["namespace"],
1113
+ style: {
1114
+ opacity: 0.7
1115
+ }
1116
+ },
1117
+ {
1118
+ types: ["string", "attr-value"],
1119
+ style: {
1120
+ color: "#e3116c"
1121
+ }
1122
+ },
1123
+ {
1124
+ types: ["punctuation", "operator"],
1125
+ style: {
1126
+ color: "#393A34"
1127
+ }
1128
+ },
1129
+ {
1130
+ types: [
1131
+ "entity",
1132
+ "url",
1133
+ "symbol",
1134
+ "number",
1135
+ "boolean",
1136
+ "variable",
1137
+ "constant",
1138
+ "property",
1139
+ "regex",
1140
+ "inserted"
1141
+ ],
1142
+ style: {
1143
+ color: "#36acaa"
1144
+ }
1145
+ },
1146
+ {
1147
+ types: ["atrule", "keyword", "attr-name", "selector"],
1148
+ style: {
1149
+ color: "#00a4db"
1150
+ }
1151
+ },
1152
+ {
1153
+ types: ["function", "deleted", "tag"],
1154
+ style: {
1155
+ color: "#d73a49"
1156
+ }
1157
+ },
1158
+ {
1159
+ types: ["function-variable"],
1160
+ style: {
1161
+ color: "#6f42c1"
1162
+ }
1163
+ },
1164
+ {
1165
+ types: ["tag", "selector", "keyword"],
1166
+ style: {
1167
+ color: "#00009f"
1168
+ }
1169
+ }
1170
+ ]
1171
+ }, Oe = Le, Ne = {
1172
+ plain: {
1173
+ color: "#d6deeb",
1174
+ backgroundColor: "#011627"
1175
+ },
1176
+ styles: [
1177
+ {
1178
+ types: ["changed"],
1179
+ style: {
1180
+ color: "rgb(162, 191, 252)",
1181
+ fontStyle: "italic"
1182
+ }
1183
+ },
1184
+ {
1185
+ types: ["deleted"],
1186
+ style: {
1187
+ color: "rgba(239, 83, 80, 0.56)",
1188
+ fontStyle: "italic"
1189
+ }
1190
+ },
1191
+ {
1192
+ types: ["inserted", "attr-name"],
1193
+ style: {
1194
+ color: "rgb(173, 219, 103)",
1195
+ fontStyle: "italic"
1196
+ }
1197
+ },
1198
+ {
1199
+ types: ["comment"],
1200
+ style: {
1201
+ color: "rgb(99, 119, 119)",
1202
+ fontStyle: "italic"
1203
+ }
1204
+ },
1205
+ {
1206
+ types: ["string", "url"],
1207
+ style: {
1208
+ color: "rgb(173, 219, 103)"
1209
+ }
1210
+ },
1211
+ {
1212
+ types: ["variable"],
1213
+ style: {
1214
+ color: "rgb(214, 222, 235)"
1215
+ }
1216
+ },
1217
+ {
1218
+ types: ["number"],
1219
+ style: {
1220
+ color: "rgb(247, 140, 108)"
1221
+ }
1222
+ },
1223
+ {
1224
+ types: ["builtin", "char", "constant", "function"],
1225
+ style: {
1226
+ color: "rgb(130, 170, 255)"
1227
+ }
1228
+ },
1229
+ {
1230
+ // This was manually added after the auto-generation
1231
+ // so that punctuations are not italicised
1232
+ types: ["punctuation"],
1233
+ style: {
1234
+ color: "rgb(199, 146, 234)"
1235
+ }
1236
+ },
1237
+ {
1238
+ types: ["selector", "doctype"],
1239
+ style: {
1240
+ color: "rgb(199, 146, 234)",
1241
+ fontStyle: "italic"
1242
+ }
1243
+ },
1244
+ {
1245
+ types: ["class-name"],
1246
+ style: {
1247
+ color: "rgb(255, 203, 139)"
1248
+ }
1249
+ },
1250
+ {
1251
+ types: ["tag", "operator", "keyword"],
1252
+ style: {
1253
+ color: "rgb(127, 219, 202)"
1254
+ }
1255
+ },
1256
+ {
1257
+ types: ["boolean"],
1258
+ style: {
1259
+ color: "rgb(255, 88, 116)"
1260
+ }
1261
+ },
1262
+ {
1263
+ types: ["property"],
1264
+ style: {
1265
+ color: "rgb(128, 203, 196)"
1266
+ }
1267
+ },
1268
+ {
1269
+ types: ["namespace"],
1270
+ style: {
1271
+ color: "rgb(178, 204, 214)"
1272
+ }
1273
+ }
1274
+ ]
1275
+ }, Ce = Ne, De = {
1276
+ plain: {
1277
+ color: "#403f53",
1278
+ backgroundColor: "#FBFBFB"
1279
+ },
1280
+ styles: [
1281
+ {
1282
+ types: ["changed"],
1283
+ style: {
1284
+ color: "rgb(162, 191, 252)",
1285
+ fontStyle: "italic"
1286
+ }
1287
+ },
1288
+ {
1289
+ types: ["deleted"],
1290
+ style: {
1291
+ color: "rgba(239, 83, 80, 0.56)",
1292
+ fontStyle: "italic"
1293
+ }
1294
+ },
1295
+ {
1296
+ types: ["inserted", "attr-name"],
1297
+ style: {
1298
+ color: "rgb(72, 118, 214)",
1299
+ fontStyle: "italic"
1300
+ }
1301
+ },
1302
+ {
1303
+ types: ["comment"],
1304
+ style: {
1305
+ color: "rgb(152, 159, 177)",
1306
+ fontStyle: "italic"
1307
+ }
1308
+ },
1309
+ {
1310
+ types: ["string", "builtin", "char", "constant", "url"],
1311
+ style: {
1312
+ color: "rgb(72, 118, 214)"
1313
+ }
1314
+ },
1315
+ {
1316
+ types: ["variable"],
1317
+ style: {
1318
+ color: "rgb(201, 103, 101)"
1319
+ }
1320
+ },
1321
+ {
1322
+ types: ["number"],
1323
+ style: {
1324
+ color: "rgb(170, 9, 130)"
1325
+ }
1326
+ },
1327
+ {
1328
+ // This was manually added after the auto-generation
1329
+ // so that punctuations are not italicised
1330
+ types: ["punctuation"],
1331
+ style: {
1332
+ color: "rgb(153, 76, 195)"
1333
+ }
1334
+ },
1335
+ {
1336
+ types: ["function", "selector", "doctype"],
1337
+ style: {
1338
+ color: "rgb(153, 76, 195)",
1339
+ fontStyle: "italic"
1340
+ }
1341
+ },
1342
+ {
1343
+ types: ["class-name"],
1344
+ style: {
1345
+ color: "rgb(17, 17, 17)"
1346
+ }
1347
+ },
1348
+ {
1349
+ types: ["tag"],
1350
+ style: {
1351
+ color: "rgb(153, 76, 195)"
1352
+ }
1353
+ },
1354
+ {
1355
+ types: ["operator", "property", "keyword", "namespace"],
1356
+ style: {
1357
+ color: "rgb(12, 150, 155)"
1358
+ }
1359
+ },
1360
+ {
1361
+ types: ["boolean"],
1362
+ style: {
1363
+ color: "rgb(188, 84, 84)"
1364
+ }
1365
+ }
1366
+ ]
1367
+ }, Be = De, T = {
1368
+ char: "#D8DEE9",
1369
+ comment: "#999999",
1370
+ keyword: "#c5a5c5",
1371
+ primitive: "#5a9bcf",
1372
+ string: "#8dc891",
1373
+ variable: "#d7deea",
1374
+ boolean: "#ff8b50",
1375
+ tag: "#fc929e",
1376
+ function: "#79b6f2",
1377
+ className: "#FAC863"
1378
+ }, $e = {
1379
+ plain: {
1380
+ backgroundColor: "#282c34",
1381
+ color: "#ffffff"
1382
+ },
1383
+ styles: [
1384
+ {
1385
+ types: ["attr-name"],
1386
+ style: {
1387
+ color: T.keyword
1388
+ }
1389
+ },
1390
+ {
1391
+ types: ["attr-value"],
1392
+ style: {
1393
+ color: T.string
1394
+ }
1395
+ },
1396
+ {
1397
+ types: [
1398
+ "comment",
1399
+ "block-comment",
1400
+ "prolog",
1401
+ "doctype",
1402
+ "cdata",
1403
+ "shebang"
1404
+ ],
1405
+ style: {
1406
+ color: T.comment
1407
+ }
1408
+ },
1409
+ {
1410
+ types: [
1411
+ "property",
1412
+ "number",
1413
+ "function-name",
1414
+ "constant",
1415
+ "symbol",
1416
+ "deleted"
1417
+ ],
1418
+ style: {
1419
+ color: T.primitive
1420
+ }
1421
+ },
1422
+ {
1423
+ types: ["boolean"],
1424
+ style: {
1425
+ color: T.boolean
1426
+ }
1427
+ },
1428
+ {
1429
+ types: ["tag"],
1430
+ style: {
1431
+ color: T.tag
1432
+ }
1433
+ },
1434
+ {
1435
+ types: ["string"],
1436
+ style: {
1437
+ color: T.string
1438
+ }
1439
+ },
1440
+ {
1441
+ types: ["punctuation"],
1442
+ style: {
1443
+ color: T.string
1444
+ }
1445
+ },
1446
+ {
1447
+ types: ["selector", "char", "builtin", "inserted"],
1448
+ style: {
1449
+ color: T.char
1450
+ }
1451
+ },
1452
+ {
1453
+ types: ["function"],
1454
+ style: {
1455
+ color: T.function
1456
+ }
1457
+ },
1458
+ {
1459
+ types: ["operator", "entity", "url", "variable"],
1460
+ style: {
1461
+ color: T.variable
1462
+ }
1463
+ },
1464
+ {
1465
+ types: ["keyword"],
1466
+ style: {
1467
+ color: T.keyword
1468
+ }
1469
+ },
1470
+ {
1471
+ types: ["atrule", "class-name"],
1472
+ style: {
1473
+ color: T.className
1474
+ }
1475
+ },
1476
+ {
1477
+ types: ["important"],
1478
+ style: {
1479
+ fontWeight: "400"
1480
+ }
1481
+ },
1482
+ {
1483
+ types: ["bold"],
1484
+ style: {
1485
+ fontWeight: "bold"
1486
+ }
1487
+ },
1488
+ {
1489
+ types: ["italic"],
1490
+ style: {
1491
+ fontStyle: "italic"
1492
+ }
1493
+ },
1494
+ {
1495
+ types: ["namespace"],
1496
+ style: {
1497
+ opacity: 0.7
1498
+ }
1499
+ }
1500
+ ]
1501
+ }, Pe = $e, je = {
1502
+ plain: {
1503
+ color: "#f8f8f2",
1504
+ backgroundColor: "#272822"
1505
+ },
1506
+ styles: [
1507
+ {
1508
+ types: ["changed"],
1509
+ style: {
1510
+ color: "rgb(162, 191, 252)",
1511
+ fontStyle: "italic"
1512
+ }
1513
+ },
1514
+ {
1515
+ types: ["deleted"],
1516
+ style: {
1517
+ color: "#f92672",
1518
+ fontStyle: "italic"
1519
+ }
1520
+ },
1521
+ {
1522
+ types: ["inserted"],
1523
+ style: {
1524
+ color: "rgb(173, 219, 103)",
1525
+ fontStyle: "italic"
1526
+ }
1527
+ },
1528
+ {
1529
+ types: ["comment"],
1530
+ style: {
1531
+ color: "#8292a2",
1532
+ fontStyle: "italic"
1533
+ }
1534
+ },
1535
+ {
1536
+ types: ["string", "url"],
1537
+ style: {
1538
+ color: "#a6e22e"
1539
+ }
1540
+ },
1541
+ {
1542
+ types: ["variable"],
1543
+ style: {
1544
+ color: "#f8f8f2"
1545
+ }
1546
+ },
1547
+ {
1548
+ types: ["number"],
1549
+ style: {
1550
+ color: "#ae81ff"
1551
+ }
1552
+ },
1553
+ {
1554
+ types: ["builtin", "char", "constant", "function", "class-name"],
1555
+ style: {
1556
+ color: "#e6db74"
1557
+ }
1558
+ },
1559
+ {
1560
+ types: ["punctuation"],
1561
+ style: {
1562
+ color: "#f8f8f2"
1563
+ }
1564
+ },
1565
+ {
1566
+ types: ["selector", "doctype"],
1567
+ style: {
1568
+ color: "#a6e22e",
1569
+ fontStyle: "italic"
1570
+ }
1571
+ },
1572
+ {
1573
+ types: ["tag", "operator", "keyword"],
1574
+ style: {
1575
+ color: "#66d9ef"
1576
+ }
1577
+ },
1578
+ {
1579
+ types: ["boolean"],
1580
+ style: {
1581
+ color: "#ae81ff"
1582
+ }
1583
+ },
1584
+ {
1585
+ types: ["namespace"],
1586
+ style: {
1587
+ color: "rgb(178, 204, 214)",
1588
+ opacity: 0.7
1589
+ }
1590
+ },
1591
+ {
1592
+ types: ["tag", "property"],
1593
+ style: {
1594
+ color: "#f92672"
1595
+ }
1596
+ },
1597
+ {
1598
+ types: ["attr-name"],
1599
+ style: {
1600
+ color: "#a6e22e !important"
1601
+ }
1602
+ },
1603
+ {
1604
+ types: ["doctype"],
1605
+ style: {
1606
+ color: "#8292a2"
1607
+ }
1608
+ },
1609
+ {
1610
+ types: ["rule"],
1611
+ style: {
1612
+ color: "#e6db74"
1613
+ }
1614
+ }
1615
+ ]
1616
+ }, ze = je, Me = {
1617
+ plain: {
1618
+ color: "#bfc7d5",
1619
+ backgroundColor: "#292d3e"
1620
+ },
1621
+ styles: [
1622
+ {
1623
+ types: ["comment"],
1624
+ style: {
1625
+ color: "rgb(105, 112, 152)",
1626
+ fontStyle: "italic"
1627
+ }
1628
+ },
1629
+ {
1630
+ types: ["string", "inserted"],
1631
+ style: {
1632
+ color: "rgb(195, 232, 141)"
1633
+ }
1634
+ },
1635
+ {
1636
+ types: ["number"],
1637
+ style: {
1638
+ color: "rgb(247, 140, 108)"
1639
+ }
1640
+ },
1641
+ {
1642
+ types: ["builtin", "char", "constant", "function"],
1643
+ style: {
1644
+ color: "rgb(130, 170, 255)"
1645
+ }
1646
+ },
1647
+ {
1648
+ types: ["punctuation", "selector"],
1649
+ style: {
1650
+ color: "rgb(199, 146, 234)"
1651
+ }
1652
+ },
1653
+ {
1654
+ types: ["variable"],
1655
+ style: {
1656
+ color: "rgb(191, 199, 213)"
1657
+ }
1658
+ },
1659
+ {
1660
+ types: ["class-name", "attr-name"],
1661
+ style: {
1662
+ color: "rgb(255, 203, 107)"
1663
+ }
1664
+ },
1665
+ {
1666
+ types: ["tag", "deleted"],
1667
+ style: {
1668
+ color: "rgb(255, 85, 114)"
1669
+ }
1670
+ },
1671
+ {
1672
+ types: ["operator"],
1673
+ style: {
1674
+ color: "rgb(137, 221, 255)"
1675
+ }
1676
+ },
1677
+ {
1678
+ types: ["boolean"],
1679
+ style: {
1680
+ color: "rgb(255, 88, 116)"
1681
+ }
1682
+ },
1683
+ {
1684
+ types: ["keyword"],
1685
+ style: {
1686
+ fontStyle: "italic"
1687
+ }
1688
+ },
1689
+ {
1690
+ types: ["doctype"],
1691
+ style: {
1692
+ color: "rgb(199, 146, 234)",
1693
+ fontStyle: "italic"
1694
+ }
1695
+ },
1696
+ {
1697
+ types: ["namespace"],
1698
+ style: {
1699
+ color: "rgb(178, 204, 214)"
1700
+ }
1701
+ },
1702
+ {
1703
+ types: ["url"],
1704
+ style: {
1705
+ color: "rgb(221, 221, 221)"
1706
+ }
1707
+ }
1708
+ ]
1709
+ }, Ue = Me, Ge = {
1710
+ plain: {
1711
+ color: "#9EFEFF",
1712
+ backgroundColor: "#2D2A55"
1713
+ },
1714
+ styles: [
1715
+ {
1716
+ types: ["changed"],
1717
+ style: {
1718
+ color: "rgb(255, 238, 128)"
1719
+ }
1720
+ },
1721
+ {
1722
+ types: ["deleted"],
1723
+ style: {
1724
+ color: "rgba(239, 83, 80, 0.56)"
1725
+ }
1726
+ },
1727
+ {
1728
+ types: ["inserted"],
1729
+ style: {
1730
+ color: "rgb(173, 219, 103)"
1731
+ }
1732
+ },
1733
+ {
1734
+ types: ["comment"],
1735
+ style: {
1736
+ color: "rgb(179, 98, 255)",
1737
+ fontStyle: "italic"
1738
+ }
1739
+ },
1740
+ {
1741
+ types: ["punctuation"],
1742
+ style: {
1743
+ color: "rgb(255, 255, 255)"
1744
+ }
1745
+ },
1746
+ {
1747
+ types: ["constant"],
1748
+ style: {
1749
+ color: "rgb(255, 98, 140)"
1750
+ }
1751
+ },
1752
+ {
1753
+ types: ["string", "url"],
1754
+ style: {
1755
+ color: "rgb(165, 255, 144)"
1756
+ }
1757
+ },
1758
+ {
1759
+ types: ["variable"],
1760
+ style: {
1761
+ color: "rgb(255, 238, 128)"
1762
+ }
1763
+ },
1764
+ {
1765
+ types: ["number", "boolean"],
1766
+ style: {
1767
+ color: "rgb(255, 98, 140)"
1768
+ }
1769
+ },
1770
+ {
1771
+ types: ["attr-name"],
1772
+ style: {
1773
+ color: "rgb(255, 180, 84)"
1774
+ }
1775
+ },
1776
+ {
1777
+ types: [
1778
+ "keyword",
1779
+ "operator",
1780
+ "property",
1781
+ "namespace",
1782
+ "tag",
1783
+ "selector",
1784
+ "doctype"
1785
+ ],
1786
+ style: {
1787
+ color: "rgb(255, 157, 0)"
1788
+ }
1789
+ },
1790
+ {
1791
+ types: ["builtin", "char", "constant", "function", "class-name"],
1792
+ style: {
1793
+ color: "rgb(250, 208, 0)"
1794
+ }
1795
+ }
1796
+ ]
1797
+ }, Ze = Ge, qe = {
1798
+ plain: {
1799
+ backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
1800
+ backgroundImage: "#34294f",
1801
+ color: "#f92aad",
1802
+ textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
1803
+ },
1804
+ styles: [
1805
+ {
1806
+ types: ["comment", "block-comment", "prolog", "doctype", "cdata"],
1807
+ style: {
1808
+ color: "#495495",
1809
+ fontStyle: "italic"
1810
+ }
1811
+ },
1812
+ {
1813
+ types: ["punctuation"],
1814
+ style: {
1815
+ color: "#ccc"
1816
+ }
1817
+ },
1818
+ {
1819
+ types: [
1820
+ "tag",
1821
+ "attr-name",
1822
+ "namespace",
1823
+ "number",
1824
+ "unit",
1825
+ "hexcode",
1826
+ "deleted"
1827
+ ],
1828
+ style: {
1829
+ color: "#e2777a"
1830
+ }
1831
+ },
1832
+ {
1833
+ types: ["property", "selector"],
1834
+ style: {
1835
+ color: "#72f1b8",
1836
+ textShadow: "0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"
1837
+ }
1838
+ },
1839
+ {
1840
+ types: ["function-name"],
1841
+ style: {
1842
+ color: "#6196cc"
1843
+ }
1844
+ },
1845
+ {
1846
+ types: ["boolean", "selector-id", "function"],
1847
+ style: {
1848
+ color: "#fdfdfd",
1849
+ textShadow: "0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"
1850
+ }
1851
+ },
1852
+ {
1853
+ types: ["class-name", "maybe-class-name", "builtin"],
1854
+ style: {
1855
+ color: "#fff5f6",
1856
+ textShadow: "0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"
1857
+ }
1858
+ },
1859
+ {
1860
+ types: ["constant", "symbol"],
1861
+ style: {
1862
+ color: "#f92aad",
1863
+ textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
1864
+ }
1865
+ },
1866
+ {
1867
+ types: ["important", "atrule", "keyword", "selector-class"],
1868
+ style: {
1869
+ color: "#f4eee4",
1870
+ textShadow: "0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"
1871
+ }
1872
+ },
1873
+ {
1874
+ types: ["string", "char", "attr-value", "regex", "variable"],
1875
+ style: {
1876
+ color: "#f87c32"
1877
+ }
1878
+ },
1879
+ {
1880
+ types: ["parameter"],
1881
+ style: {
1882
+ fontStyle: "italic"
1883
+ }
1884
+ },
1885
+ {
1886
+ types: ["entity", "url"],
1887
+ style: {
1888
+ color: "#67cdcc"
1889
+ }
1890
+ },
1891
+ {
1892
+ types: ["operator"],
1893
+ style: {
1894
+ color: "ffffffee"
1895
+ }
1896
+ },
1897
+ {
1898
+ types: ["important", "bold"],
1899
+ style: {
1900
+ fontWeight: "bold"
1901
+ }
1902
+ },
1903
+ {
1904
+ types: ["italic"],
1905
+ style: {
1906
+ fontStyle: "italic"
1907
+ }
1908
+ },
1909
+ {
1910
+ types: ["entity"],
1911
+ style: {
1912
+ cursor: "help"
1913
+ }
1914
+ },
1915
+ {
1916
+ types: ["inserted"],
1917
+ style: {
1918
+ color: "green"
1919
+ }
1920
+ }
1921
+ ]
1922
+ }, He = qe, We = {
1923
+ plain: {
1924
+ color: "#282a2e",
1925
+ backgroundColor: "#ffffff"
1926
+ },
1927
+ styles: [
1928
+ {
1929
+ types: ["comment"],
1930
+ style: {
1931
+ color: "rgb(197, 200, 198)"
1932
+ }
1933
+ },
1934
+ {
1935
+ types: ["string", "number", "builtin", "variable"],
1936
+ style: {
1937
+ color: "rgb(150, 152, 150)"
1938
+ }
1939
+ },
1940
+ {
1941
+ types: ["class-name", "function", "tag", "attr-name"],
1942
+ style: {
1943
+ color: "rgb(40, 42, 46)"
1944
+ }
1945
+ }
1946
+ ]
1947
+ }, Ye = We, Ke = {
1948
+ plain: {
1949
+ color: "#9CDCFE",
1950
+ backgroundColor: "#1E1E1E"
1951
+ },
1952
+ styles: [
1953
+ {
1954
+ types: ["prolog"],
1955
+ style: {
1956
+ color: "rgb(0, 0, 128)"
1957
+ }
1958
+ },
1959
+ {
1960
+ types: ["comment"],
1961
+ style: {
1962
+ color: "rgb(106, 153, 85)"
1963
+ }
1964
+ },
1965
+ {
1966
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
1967
+ style: {
1968
+ color: "rgb(86, 156, 214)"
1969
+ }
1970
+ },
1971
+ {
1972
+ types: ["number", "inserted"],
1973
+ style: {
1974
+ color: "rgb(181, 206, 168)"
1975
+ }
1976
+ },
1977
+ {
1978
+ types: ["constant"],
1979
+ style: {
1980
+ color: "rgb(100, 102, 149)"
1981
+ }
1982
+ },
1983
+ {
1984
+ types: ["attr-name", "variable"],
1985
+ style: {
1986
+ color: "rgb(156, 220, 254)"
1987
+ }
1988
+ },
1989
+ {
1990
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
1991
+ style: {
1992
+ color: "rgb(206, 145, 120)"
1993
+ }
1994
+ },
1995
+ {
1996
+ types: ["selector"],
1997
+ style: {
1998
+ color: "rgb(215, 186, 125)"
1999
+ }
2000
+ },
2001
+ {
2002
+ // Fix tag color
2003
+ types: ["tag"],
2004
+ style: {
2005
+ color: "rgb(78, 201, 176)"
2006
+ }
2007
+ },
2008
+ {
2009
+ // Fix tag color for HTML
2010
+ types: ["tag"],
2011
+ languages: ["markup"],
2012
+ style: {
2013
+ color: "rgb(86, 156, 214)"
2014
+ }
2015
+ },
2016
+ {
2017
+ types: ["punctuation", "operator"],
2018
+ style: {
2019
+ color: "rgb(212, 212, 212)"
2020
+ }
2021
+ },
2022
+ {
2023
+ // Fix punctuation color for HTML
2024
+ types: ["punctuation"],
2025
+ languages: ["markup"],
2026
+ style: {
2027
+ color: "#808080"
2028
+ }
2029
+ },
2030
+ {
2031
+ types: ["function"],
2032
+ style: {
2033
+ color: "rgb(220, 220, 170)"
2034
+ }
2035
+ },
2036
+ {
2037
+ types: ["class-name"],
2038
+ style: {
2039
+ color: "rgb(78, 201, 176)"
2040
+ }
2041
+ },
2042
+ {
2043
+ types: ["char"],
2044
+ style: {
2045
+ color: "rgb(209, 105, 105)"
2046
+ }
2047
+ }
2048
+ ]
2049
+ }, ue = Ke, Ve = {
2050
+ plain: {
2051
+ color: "#000000",
2052
+ backgroundColor: "#ffffff"
2053
+ },
2054
+ styles: [
2055
+ {
2056
+ types: ["comment"],
2057
+ style: {
2058
+ color: "rgb(0, 128, 0)"
2059
+ }
2060
+ },
2061
+ {
2062
+ types: ["builtin"],
2063
+ style: {
2064
+ color: "rgb(0, 112, 193)"
2065
+ }
2066
+ },
2067
+ {
2068
+ types: ["number", "variable", "inserted"],
2069
+ style: {
2070
+ color: "rgb(9, 134, 88)"
2071
+ }
2072
+ },
2073
+ {
2074
+ types: ["operator"],
2075
+ style: {
2076
+ color: "rgb(0, 0, 0)"
2077
+ }
2078
+ },
2079
+ {
2080
+ types: ["constant", "char"],
2081
+ style: {
2082
+ color: "rgb(129, 31, 63)"
2083
+ }
2084
+ },
2085
+ {
2086
+ types: ["tag"],
2087
+ style: {
2088
+ color: "rgb(128, 0, 0)"
2089
+ }
2090
+ },
2091
+ {
2092
+ types: ["attr-name"],
2093
+ style: {
2094
+ color: "rgb(255, 0, 0)"
2095
+ }
2096
+ },
2097
+ {
2098
+ types: ["deleted", "string"],
2099
+ style: {
2100
+ color: "rgb(163, 21, 21)"
2101
+ }
2102
+ },
2103
+ {
2104
+ types: ["changed", "punctuation"],
2105
+ style: {
2106
+ color: "rgb(4, 81, 165)"
2107
+ }
2108
+ },
2109
+ {
2110
+ types: ["function", "keyword"],
2111
+ style: {
2112
+ color: "rgb(0, 0, 255)"
2113
+ }
2114
+ },
2115
+ {
2116
+ types: ["class-name"],
2117
+ style: {
2118
+ color: "rgb(38, 127, 153)"
2119
+ }
2120
+ }
2121
+ ]
2122
+ }, Xe = Ve, Qe = {
2123
+ plain: {
2124
+ color: "#f8fafc",
2125
+ backgroundColor: "#011627"
2126
+ },
2127
+ styles: [
2128
+ {
2129
+ types: ["prolog"],
2130
+ style: {
2131
+ color: "#000080"
2132
+ }
2133
+ },
2134
+ {
2135
+ types: ["comment"],
2136
+ style: {
2137
+ color: "#6A9955"
2138
+ }
2139
+ },
2140
+ {
2141
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2142
+ style: {
2143
+ color: "#569CD6"
2144
+ }
2145
+ },
2146
+ {
2147
+ types: ["number", "inserted"],
2148
+ style: {
2149
+ color: "#B5CEA8"
2150
+ }
2151
+ },
2152
+ {
2153
+ types: ["constant"],
2154
+ style: {
2155
+ color: "#f8fafc"
2156
+ }
2157
+ },
2158
+ {
2159
+ types: ["attr-name", "variable"],
2160
+ style: {
2161
+ color: "#9CDCFE"
2162
+ }
2163
+ },
2164
+ {
2165
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2166
+ style: {
2167
+ color: "#cbd5e1"
2168
+ }
2169
+ },
2170
+ {
2171
+ types: ["selector"],
2172
+ style: {
2173
+ color: "#D7BA7D"
2174
+ }
2175
+ },
2176
+ {
2177
+ types: ["tag"],
2178
+ style: {
2179
+ color: "#0ea5e9"
2180
+ }
2181
+ },
2182
+ {
2183
+ types: ["tag"],
2184
+ languages: ["markup"],
2185
+ style: {
2186
+ color: "#0ea5e9"
2187
+ }
2188
+ },
2189
+ {
2190
+ types: ["punctuation", "operator"],
2191
+ style: {
2192
+ color: "#D4D4D4"
2193
+ }
2194
+ },
2195
+ {
2196
+ types: ["punctuation"],
2197
+ languages: ["markup"],
2198
+ style: {
2199
+ color: "#808080"
2200
+ }
2201
+ },
2202
+ {
2203
+ types: ["function"],
2204
+ style: {
2205
+ color: "#7dd3fc"
2206
+ }
2207
+ },
2208
+ {
2209
+ types: ["class-name"],
2210
+ style: {
2211
+ color: "#0ea5e9"
2212
+ }
2213
+ },
2214
+ {
2215
+ types: ["char"],
2216
+ style: {
2217
+ color: "#D16969"
2218
+ }
2219
+ }
2220
+ ]
2221
+ }, Je = Qe, et = {
2222
+ plain: {
2223
+ color: "#0f172a",
2224
+ backgroundColor: "#f1f5f9"
2225
+ },
2226
+ styles: [
2227
+ {
2228
+ types: ["prolog"],
2229
+ style: {
2230
+ color: "#000080"
2231
+ }
2232
+ },
2233
+ {
2234
+ types: ["comment"],
2235
+ style: {
2236
+ color: "#6A9955"
2237
+ }
2238
+ },
2239
+ {
2240
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2241
+ style: {
2242
+ color: "#0c4a6e"
2243
+ }
2244
+ },
2245
+ {
2246
+ types: ["number", "inserted"],
2247
+ style: {
2248
+ color: "#B5CEA8"
2249
+ }
2250
+ },
2251
+ {
2252
+ types: ["constant"],
2253
+ style: {
2254
+ color: "#0f172a"
2255
+ }
2256
+ },
2257
+ {
2258
+ types: ["attr-name", "variable"],
2259
+ style: {
2260
+ color: "#0c4a6e"
2261
+ }
2262
+ },
2263
+ {
2264
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2265
+ style: {
2266
+ color: "#64748b"
2267
+ }
2268
+ },
2269
+ {
2270
+ types: ["selector"],
2271
+ style: {
2272
+ color: "#D7BA7D"
2273
+ }
2274
+ },
2275
+ {
2276
+ types: ["tag"],
2277
+ style: {
2278
+ color: "#0ea5e9"
2279
+ }
2280
+ },
2281
+ {
2282
+ types: ["tag"],
2283
+ languages: ["markup"],
2284
+ style: {
2285
+ color: "#0ea5e9"
2286
+ }
2287
+ },
2288
+ {
2289
+ types: ["punctuation", "operator"],
2290
+ style: {
2291
+ color: "#475569"
2292
+ }
2293
+ },
2294
+ {
2295
+ types: ["punctuation"],
2296
+ languages: ["markup"],
2297
+ style: {
2298
+ color: "#808080"
2299
+ }
2300
+ },
2301
+ {
2302
+ types: ["function"],
2303
+ style: {
2304
+ color: "#0e7490"
2305
+ }
2306
+ },
2307
+ {
2308
+ types: ["class-name"],
2309
+ style: {
2310
+ color: "#0ea5e9"
2311
+ }
2312
+ },
2313
+ {
2314
+ types: ["char"],
2315
+ style: {
2316
+ color: "#D16969"
2317
+ }
2318
+ }
2319
+ ]
2320
+ }, tt = et, at = {
2321
+ plain: {
2322
+ backgroundColor: "hsl(220, 13%, 18%)",
2323
+ color: "hsl(220, 14%, 71%)",
2324
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)"
2325
+ },
2326
+ styles: [
2327
+ {
2328
+ types: ["comment", "prolog", "cdata"],
2329
+ style: {
2330
+ color: "hsl(220, 10%, 40%)"
2331
+ }
2332
+ },
2333
+ {
2334
+ types: ["doctype", "punctuation", "entity"],
2335
+ style: {
2336
+ color: "hsl(220, 14%, 71%)"
2337
+ }
2338
+ },
2339
+ {
2340
+ types: [
2341
+ "attr-name",
2342
+ "class-name",
2343
+ "maybe-class-name",
2344
+ "boolean",
2345
+ "constant",
2346
+ "number",
2347
+ "atrule"
2348
+ ],
2349
+ style: { color: "hsl(29, 54%, 61%)" }
2350
+ },
2351
+ {
2352
+ types: ["keyword"],
2353
+ style: { color: "hsl(286, 60%, 67%)" }
2354
+ },
2355
+ {
2356
+ types: ["property", "tag", "symbol", "deleted", "important"],
2357
+ style: {
2358
+ color: "hsl(355, 65%, 65%)"
2359
+ }
2360
+ },
2361
+ {
2362
+ types: [
2363
+ "selector",
2364
+ "string",
2365
+ "char",
2366
+ "builtin",
2367
+ "inserted",
2368
+ "regex",
2369
+ "attr-value"
2370
+ ],
2371
+ style: {
2372
+ color: "hsl(95, 38%, 62%)"
2373
+ }
2374
+ },
2375
+ {
2376
+ types: ["variable", "operator", "function"],
2377
+ style: {
2378
+ color: "hsl(207, 82%, 66%)"
2379
+ }
2380
+ },
2381
+ {
2382
+ types: ["url"],
2383
+ style: {
2384
+ color: "hsl(187, 47%, 55%)"
2385
+ }
2386
+ },
2387
+ {
2388
+ types: ["deleted"],
2389
+ style: {
2390
+ textDecorationLine: "line-through"
2391
+ }
2392
+ },
2393
+ {
2394
+ types: ["inserted"],
2395
+ style: {
2396
+ textDecorationLine: "underline"
2397
+ }
2398
+ },
2399
+ {
2400
+ types: ["italic"],
2401
+ style: {
2402
+ fontStyle: "italic"
2403
+ }
2404
+ },
2405
+ {
2406
+ types: ["important", "bold"],
2407
+ style: {
2408
+ fontWeight: "bold"
2409
+ }
2410
+ },
2411
+ {
2412
+ types: ["important"],
2413
+ style: {
2414
+ color: "hsl(220, 14%, 71%)"
2415
+ }
2416
+ }
2417
+ ]
2418
+ }, nt = at, rt = {
2419
+ plain: {
2420
+ backgroundColor: "hsl(230, 1%, 98%)",
2421
+ color: "hsl(230, 8%, 24%)"
2422
+ },
2423
+ styles: [
2424
+ {
2425
+ types: ["comment", "prolog", "cdata"],
2426
+ style: {
2427
+ color: "hsl(230, 4%, 64%)"
2428
+ }
2429
+ },
2430
+ {
2431
+ types: ["doctype", "punctuation", "entity"],
2432
+ style: {
2433
+ color: "hsl(230, 8%, 24%)"
2434
+ }
2435
+ },
2436
+ {
2437
+ types: [
2438
+ "attr-name",
2439
+ "class-name",
2440
+ "boolean",
2441
+ "constant",
2442
+ "number",
2443
+ "atrule"
2444
+ ],
2445
+ style: {
2446
+ color: "hsl(35, 99%, 36%)"
2447
+ }
2448
+ },
2449
+ {
2450
+ types: ["keyword"],
2451
+ style: {
2452
+ color: "hsl(301, 63%, 40%)"
2453
+ }
2454
+ },
2455
+ {
2456
+ types: ["property", "tag", "symbol", "deleted", "important"],
2457
+ style: {
2458
+ color: "hsl(5, 74%, 59%)"
2459
+ }
2460
+ },
2461
+ {
2462
+ types: [
2463
+ "selector",
2464
+ "string",
2465
+ "char",
2466
+ "builtin",
2467
+ "inserted",
2468
+ "regex",
2469
+ "attr-value",
2470
+ "punctuation"
2471
+ ],
2472
+ style: {
2473
+ color: "hsl(119, 34%, 47%)"
2474
+ }
2475
+ },
2476
+ {
2477
+ types: ["variable", "operator", "function"],
2478
+ style: {
2479
+ color: "hsl(221, 87%, 60%)"
2480
+ }
2481
+ },
2482
+ {
2483
+ types: ["url"],
2484
+ style: {
2485
+ color: "hsl(198, 99%, 37%)"
2486
+ }
2487
+ },
2488
+ {
2489
+ types: ["deleted"],
2490
+ style: {
2491
+ textDecorationLine: "line-through"
2492
+ }
2493
+ },
2494
+ {
2495
+ types: ["inserted"],
2496
+ style: {
2497
+ textDecorationLine: "underline"
2498
+ }
2499
+ },
2500
+ {
2501
+ types: ["italic"],
2502
+ style: {
2503
+ fontStyle: "italic"
2504
+ }
2505
+ },
2506
+ {
2507
+ types: ["important", "bold"],
2508
+ style: {
2509
+ fontWeight: "bold"
2510
+ }
2511
+ },
2512
+ {
2513
+ types: ["important"],
2514
+ style: {
2515
+ color: "hsl(230, 8%, 24%)"
2516
+ }
2517
+ }
2518
+ ]
2519
+ }, ot = rt, st = {
2520
+ plain: {
2521
+ color: "#ebdbb2",
2522
+ backgroundColor: "#292828"
2523
+ },
2524
+ styles: [
2525
+ {
2526
+ types: [
2527
+ "imports",
2528
+ "class-name",
2529
+ "maybe-class-name",
2530
+ "constant",
2531
+ "doctype",
2532
+ "builtin",
2533
+ "function"
2534
+ ],
2535
+ style: {
2536
+ color: "#d8a657"
2537
+ }
2538
+ },
2539
+ {
2540
+ types: ["property-access"],
2541
+ style: {
2542
+ color: "#7daea3"
2543
+ }
2544
+ },
2545
+ {
2546
+ types: ["tag"],
2547
+ style: {
2548
+ color: "#e78a4e"
2549
+ }
2550
+ },
2551
+ {
2552
+ types: ["attr-name", "char", "url", "regex"],
2553
+ style: {
2554
+ color: "#a9b665"
2555
+ }
2556
+ },
2557
+ {
2558
+ types: ["attr-value", "string"],
2559
+ style: {
2560
+ color: "#89b482"
2561
+ }
2562
+ },
2563
+ {
2564
+ types: ["comment", "prolog", "cdata", "operator", "inserted"],
2565
+ style: {
2566
+ color: "#a89984"
2567
+ }
2568
+ },
2569
+ {
2570
+ types: [
2571
+ "delimiter",
2572
+ "boolean",
2573
+ "keyword",
2574
+ "selector",
2575
+ "important",
2576
+ "atrule",
2577
+ "property",
2578
+ "variable",
2579
+ "deleted"
2580
+ ],
2581
+ style: {
2582
+ color: "#ea6962"
2583
+ }
2584
+ },
2585
+ {
2586
+ types: ["entity", "number", "symbol"],
2587
+ style: {
2588
+ color: "#d3869b"
2589
+ }
2590
+ }
2591
+ ]
2592
+ }, lt = st, it = {
2593
+ plain: {
2594
+ color: "#654735",
2595
+ backgroundColor: "#f9f5d7"
2596
+ },
2597
+ styles: [
2598
+ {
2599
+ types: [
2600
+ "delimiter",
2601
+ "boolean",
2602
+ "keyword",
2603
+ "selector",
2604
+ "important",
2605
+ "atrule",
2606
+ "property",
2607
+ "variable",
2608
+ "deleted"
2609
+ ],
2610
+ style: {
2611
+ color: "#af2528"
2612
+ }
2613
+ },
2614
+ {
2615
+ types: [
2616
+ "imports",
2617
+ "class-name",
2618
+ "maybe-class-name",
2619
+ "constant",
2620
+ "doctype",
2621
+ "builtin"
2622
+ ],
2623
+ style: {
2624
+ color: "#b4730e"
2625
+ }
2626
+ },
2627
+ {
2628
+ types: ["string", "attr-value"],
2629
+ style: {
2630
+ color: "#477a5b"
2631
+ }
2632
+ },
2633
+ {
2634
+ types: ["property-access"],
2635
+ style: {
2636
+ color: "#266b79"
2637
+ }
2638
+ },
2639
+ {
2640
+ types: ["function", "attr-name", "char", "url"],
2641
+ style: {
2642
+ color: "#72761e"
2643
+ }
2644
+ },
2645
+ {
2646
+ types: ["tag"],
2647
+ style: {
2648
+ color: "#b94c07"
2649
+ }
2650
+ },
2651
+ {
2652
+ types: ["comment", "prolog", "cdata", "operator", "inserted"],
2653
+ style: {
2654
+ color: "#a89984"
2655
+ }
2656
+ },
2657
+ {
2658
+ types: ["entity", "number", "symbol"],
2659
+ style: {
2660
+ color: "#924f79"
2661
+ }
2662
+ }
2663
+ ]
2664
+ }, ut = it, ct = (e) => V(
2665
+ (t) => {
2666
+ var a = t, { className: l, style: c, line: h } = a, p = ie(a, ["className", "style", "line"]);
2667
+ const m = q(C({}, p), {
2668
+ className: oe("token-line", l)
2669
+ });
2670
+ return typeof e == "object" && "plain" in e && (m.style = e.plain), typeof c == "object" && (m.style = C(C({}, m.style || {}), c)), m;
2671
+ },
2672
+ [e]
2673
+ ), pt = (e) => {
2674
+ const t = V(
2675
+ ({ types: a, empty: l }) => {
2676
+ if (e != null) {
2677
+ {
2678
+ if (a.length === 1 && a[0] === "plain")
2679
+ return l != null ? { display: "inline-block" } : void 0;
2680
+ if (a.length === 1 && l != null)
2681
+ return e[a[0]];
2682
+ }
2683
+ return Object.assign(
2684
+ l != null ? { display: "inline-block" } : {},
2685
+ ...a.map((c) => e[c])
2686
+ );
2687
+ }
2688
+ },
2689
+ [e]
2690
+ );
2691
+ return V(
2692
+ (a) => {
2693
+ var l = a, { token: c, className: h, style: p } = l, m = ie(l, ["token", "className", "style"]);
2694
+ const g = q(C({}, m), {
2695
+ className: oe("token", ...c.types, h),
2696
+ children: c.content,
2697
+ style: t(c)
2698
+ });
2699
+ return p != null && (g.style = C(C({}, g.style || {}), p)), g;
2700
+ },
2701
+ [t]
2702
+ );
2703
+ }, gt = /\r\n|\r|\n/, te = (e) => {
2704
+ e.length === 0 ? e.push({
2705
+ types: ["plain"],
2706
+ content: `
2707
+ `,
2708
+ empty: !0
2709
+ }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2710
+ `, e[0].empty = !0);
2711
+ }, ae = (e, t) => {
2712
+ const a = e.length;
2713
+ return a > 0 && e[a - 1] === t ? e : e.concat(t);
2714
+ }, dt = (e) => {
2715
+ const t = [[]], a = [e], l = [0], c = [e.length];
2716
+ let h = 0, p = 0, m = [];
2717
+ const g = [m];
2718
+ for (; p > -1; ) {
2719
+ for (; (h = l[p]++) < c[p]; ) {
2720
+ let d, b = t[p];
2721
+ const v = a[p][h];
2722
+ if (typeof v == "string" ? (b = p > 0 ? b : ["plain"], d = v) : (b = ae(b, v.type), v.alias && (b = ae(b, v.alias)), d = v.content), typeof d != "string") {
2723
+ p++, t.push(b), a.push(d), l.push(0), c.push(d.length);
2724
+ continue;
2725
+ }
2726
+ const E = d.split(gt), o = E.length;
2727
+ m.push({
2728
+ types: b,
2729
+ content: E[0]
2730
+ });
2731
+ for (let r = 1; r < o; r++)
2732
+ te(m), g.push(m = []), m.push({
2733
+ types: b,
2734
+ content: E[r]
2735
+ });
2736
+ }
2737
+ p--, t.pop(), a.pop(), l.pop(), c.pop();
2738
+ }
2739
+ return te(m), g;
2740
+ }, ne = dt, yt = ({ prism: e, code: t, grammar: a, language: l }) => ge(() => {
2741
+ if (a == null)
2742
+ return ne([t]);
2743
+ const c = {
2744
+ code: t,
2745
+ grammar: a,
2746
+ language: l,
2747
+ tokens: []
2748
+ };
2749
+ return e.hooks.run("before-tokenize", c), c.tokens = e.tokenize(t, a), e.hooks.run("after-tokenize", c), ne(c.tokens);
2750
+ }, [
2751
+ t,
2752
+ a,
2753
+ l,
2754
+ // prism is a stable import
2755
+ e
2756
+ ]), ft = (e, t) => {
2757
+ const { plain: a } = e, l = e.styles.reduce((c, h) => {
2758
+ const { languages: p, style: m } = h;
2759
+ return p && !p.includes(t) || h.types.forEach((g) => {
2760
+ const d = C(C({}, c[g]), m);
2761
+ c[g] = d;
2762
+ }), c;
2763
+ }, {});
2764
+ return l.root = a, l.plain = q(C({}, a), { backgroundColor: void 0 }), l;
2765
+ }, bt = ft, mt = ({
2766
+ children: e,
2767
+ language: t,
2768
+ code: a,
2769
+ theme: l,
2770
+ prism: c
2771
+ }) => {
2772
+ const h = t.toLowerCase(), p = bt(l, h), m = ct(p), g = pt(p), d = c.languages[h], b = yt({ prism: c, language: h, code: a, grammar: d });
2773
+ return e({
2774
+ tokens: b,
2775
+ className: `prism-code language-${h}`,
2776
+ style: p != null ? p.root : {},
2777
+ getLineProps: m,
2778
+ getTokenProps: g
2779
+ });
2780
+ }, ht = (e) => K(mt, q(C({}, e), {
2781
+ prism: e.prism || n,
2782
+ theme: e.theme || ue,
2783
+ code: e.code,
2784
+ language: e.language
2785
+ }));
2786
+ /*! Bundled license information:
2787
+
2788
+ prismjs/prism.js:
2789
+ (**
2790
+ * Prism: Lightweight, robust, elegant syntax highlighting
2791
+ *
2792
+ * @license MIT <https://opensource.org/licenses/MIT>
2793
+ * @author Lea Verou <https://lea.verou.me>
2794
+ * @namespace
2795
+ * @public
2796
+ *)
2797
+ */
2798
+ const vt = {
2799
+ comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 },
2800
+ // Before `string`, so the `\` ending a continued line never opens one.
2801
+ continuation: { pattern: /\\$/m, alias: "punctuation" },
2802
+ string: [
2803
+ { pattern: /"(?:[^"\\]|\\[\s\S])*"/, greedy: !0 },
2804
+ { pattern: /'(?:[^'\\]|\\[\s\S])*'/, greedy: !0 }
2805
+ ],
2806
+ variable: /\$(?:\{[^}]*\}|[A-Za-z_]\w*)/,
2807
+ // `--payload`, `-w`. Kept distinct from `keyword` so a reader can pick the
2808
+ // flags out of a long command at a glance — the whole point of the CLI tab.
2809
+ parameter: { pattern: /(^|\s)--?[\w-]+/, lookbehind: !0, alias: "keyword" },
2810
+ // The command word: line start, or after a pipe/`&&`/`;`.
2811
+ function: { pattern: /(^|[|&;]\s*)[\w./-]+/m, lookbehind: !0 },
2812
+ operator: /\|\||&&|[|&;<>]/,
2813
+ punctuation: /[{}[\]()]/
2814
+ };
2815
+ n.languages.shell || (n.languages.shell = vt, n.languages.bash = n.languages.shell, n.languages.sh = n.languages.shell);
2816
+ const wt = {
2817
+ plain: { color: "var(--w6w-text)", backgroundColor: "transparent" },
2818
+ styles: [
2819
+ {
2820
+ types: ["comment", "prolog", "doctype", "cdata"],
2821
+ style: { color: "var(--w6w-code-comment)", fontStyle: "italic" }
2822
+ },
2823
+ { types: ["punctuation", "continuation"], style: { color: "var(--w6w-code-punctuation)" } },
2824
+ {
2825
+ types: ["property", "tag", "constant", "symbol", "deleted"],
2826
+ style: { color: "var(--w6w-code-keyword)" }
2827
+ },
2828
+ { types: ["boolean", "number"], style: { color: "var(--w6w-code-number)" } },
2829
+ {
2830
+ types: ["selector", "attr-name", "string", "char", "builtin", "inserted"],
2831
+ style: { color: "var(--w6w-code-string)" }
2832
+ },
2833
+ {
2834
+ types: ["operator", "entity", "url", "variable"],
2835
+ style: { color: "var(--w6w-code-variable)" }
2836
+ },
2837
+ {
2838
+ types: ["atrule", "attr-value", "keyword", "parameter"],
2839
+ style: { color: "var(--w6w-code-keyword)" }
2840
+ },
2841
+ { types: ["function", "class-name"], style: { color: "var(--w6w-code-function)" } },
2842
+ { types: ["regex", "important"], style: { color: "var(--w6w-code-number)" } }
2843
+ ]
2844
+ };
2845
+ function At(e) {
2846
+ const {
2847
+ code: t,
2848
+ language: a = "plaintext",
2849
+ wrap: l,
2850
+ showLineNumbers: c,
2851
+ maxHeight: h,
2852
+ className: p,
2853
+ copyable: m = !0,
2854
+ copiedMs: g
2855
+ } = e, d = t.replace(/\n+$/, "");
2856
+ return /* @__PURE__ */ $(ht, { theme: wt, code: d, language: a, children: ({ className: b, style: f, tokens: v, getLineProps: E, getTokenProps: o }) => {
2857
+ const r = /* @__PURE__ */ $(
2858
+ "pre",
2859
+ {
2860
+ className: [
2861
+ "w6w-code-block",
2862
+ l ? "w6w-code-block--wrap" : "",
2863
+ c ? "w6w-code-block--numbered" : "",
2864
+ b,
2865
+ p ?? ""
2866
+ ].filter(Boolean).join(" "),
2867
+ style: { ...f, ...h ? { maxHeight: h, overflowY: "auto" } : null },
2868
+ "aria-label": e["aria-label"] ?? `${a} code`,
2869
+ children: /* @__PURE__ */ $("code", { children: (() => {
2870
+ let s = 0;
2871
+ return v.map((u, i) => {
2872
+ const y = E({ line: u }), w = `w6w-code-line ${y.className ?? ""}`, k = `L${s}`;
2873
+ let A = s;
2874
+ const x = u.map((S, _) => {
2875
+ const L = o({ token: S }), R = `T${A}-${_}`;
2876
+ return A += S.content.length, /* @__PURE__ */ K("span", { ...L, key: R });
2877
+ });
2878
+ return s = A + 1, /* @__PURE__ */ K("span", { ...y, key: k, className: w }, c && /* @__PURE__ */ $("span", { className: "w6w-code-line-no", "aria-hidden": "true", children: i + 1 }), /* @__PURE__ */ $("span", { className: "w6w-code-line-text", children: x }));
2879
+ });
2880
+ })() })
2881
+ }
2882
+ );
2883
+ return m ? /* @__PURE__ */ $(de, { value: d, copiedMs: g, readOnly: !0, children: r }) : r;
2884
+ } });
2885
+ }
2886
+ export {
2887
+ At as C
2888
+ };
2889
+ //# sourceMappingURL=CodeBlock-Dot3Pd7P.js.map