@w6w/ui 0.2.0 → 0.2.54
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.
- package/CHANGELOG.md +146 -2
- package/README.md +28 -10
- package/dist/AppPicker.d.ts +58 -2
- package/dist/CanvasContextMenu.d.ts +19 -0
- package/dist/CanvasLayer.d.ts +38 -0
- package/dist/{CodeBlock-Dot3Pd7P.js → CodeBlock-C-oIIYfC.js} +1436 -555
- package/dist/CodeBlock-C-oIIYfC.js.map +1 -0
- package/dist/CodeBlock-CymlfyeA.cjs +15 -0
- package/dist/CodeBlock-CymlfyeA.cjs.map +1 -0
- package/dist/CodeEditor.d.ts +4 -1
- package/dist/ConditionEditor.d.ts +11 -0
- package/dist/EditConnectionModal.d.ts +6 -1
- package/dist/JsonEditor.d.ts +20 -0
- package/dist/Markdown.d.ts +25 -0
- package/dist/ParamCustomization.d.ts +5 -0
- package/dist/ParamsForm.d.ts +18 -4
- package/dist/RouterEditor.d.ts +5 -0
- package/dist/StepBuilderModal.d.ts +103 -15
- package/dist/StepNameEditor.d.ts +11 -0
- package/dist/StopEditor.d.ts +5 -0
- package/dist/TriggerFillForm.d.ts +14 -1
- package/dist/WebhookListenPanel.d.ts +28 -0
- package/dist/WorkflowConnections.d.ts +29 -0
- package/dist/WorkflowFlowEditor.d.ts +74 -7
- package/dist/app-pages.d.ts +2 -0
- package/dist/assets/script-completion.worker-DDJKkj5M.js +8290 -0
- package/dist/assets/script-completion.worker-DDJKkj5M.js.map +1 -0
- package/dist/canvas-context-menu.d.ts +27 -0
- package/dist/canvas-types.d.ts +36 -0
- package/dist/canvas-utils.d.ts +44 -0
- package/dist/code.cjs +1 -1
- package/dist/code.mjs +3 -4
- package/dist/code.mjs.map +1 -1
- package/dist/components/AnchoredFlyout.d.ts +7 -0
- package/dist/components/AuthFieldsForm.d.ts +11 -0
- package/dist/components/BudgetMeter.d.ts +15 -0
- package/dist/components/CallableList.d.ts +3 -2
- package/dist/components/ColumnsEditor.d.ts +27 -0
- package/dist/components/Combobox.d.ts +19 -1
- package/dist/components/ConnectionList.d.ts +2 -3
- package/dist/components/CredentialPicker.d.ts +35 -0
- package/dist/components/CsvPanel.d.ts +21 -0
- package/dist/components/DataEntryEditor.d.ts +38 -0
- package/dist/components/DataEntryList.d.ts +33 -0
- package/dist/components/DataStoreList.d.ts +33 -0
- package/dist/components/DataTable.d.ts +27 -0
- package/dist/components/DataTableGrid.d.ts +46 -0
- package/dist/components/EmptyState.d.ts +9 -0
- package/dist/components/EventbriteTriggerPicker.d.ts +7 -0
- package/dist/components/ExecutionDetail.d.ts +17 -1
- package/dist/components/ExecutionList.d.ts +19 -1
- package/dist/components/ExecutionLogPanel.d.ts +61 -3
- package/dist/components/ExpressionEditorModal.d.ts +33 -10
- package/dist/components/ExpressionOptions.d.ts +101 -15
- package/dist/components/HtmlPreview.d.ts +7 -0
- package/dist/components/JsonTree.d.ts +32 -0
- package/dist/components/ResolvedParams.d.ts +6 -1
- package/dist/components/ResultViewer.d.ts +46 -0
- package/dist/components/ScriptBindingsNotice.d.ts +31 -0
- package/dist/components/ScriptCodeField.d.ts +13 -0
- package/dist/components/StepStatusPill.d.ts +7 -0
- package/dist/components/expression-authoring.d.ts +13 -0
- package/dist/components/expression-dom.d.ts +17 -2
- package/dist/components/expression-template.d.ts +25 -3
- package/dist/components/icons.d.ts +1 -1
- package/dist/components/json-compose.d.ts +53 -0
- package/dist/components/result-format.d.ts +13 -0
- package/dist/condition-editor.d.ts +44 -0
- package/dist/data-stores/data-store-view.d.ts +371 -0
- package/dist/dynamic-fields.d.ts +60 -0
- package/dist/editor-theme.d.ts +24 -0
- package/dist/eventbrite-trigger-selection.d.ts +13 -0
- package/dist/flow-connect.d.ts +22 -16
- package/dist/flow-delete.d.ts +16 -0
- package/dist/flow-fanout.d.ts +2 -2
- package/dist/flow-history.d.ts +75 -0
- package/dist/flow-layout.d.ts +13 -0
- package/dist/flow-loop-colors.d.ts +39 -0
- package/dist/flow-loop.d.ts +98 -0
- package/dist/flow-node-flags.d.ts +14 -0
- package/dist/flow-problems.d.ts +69 -0
- package/dist/flow-state.d.ts +20 -0
- package/dist/flow-types.d.ts +155 -10
- package/dist/flow-utils.d.ts +33 -12
- package/dist/flow.cjs +4 -2
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.d.ts +15 -2
- package/dist/flow.mjs +3737 -1350
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +43 -5
- package/dist/index.mjs +2855 -1333
- package/dist/index.mjs.map +1 -1
- package/dist/node-samples-ChdyMBnJ.cjs +22 -0
- package/dist/node-samples-ChdyMBnJ.cjs.map +1 -0
- package/dist/node-samples-DkJL07EX.js +12302 -0
- package/dist/node-samples-DkJL07EX.js.map +1 -0
- package/dist/node-samples.d.ts +80 -0
- package/dist/note-markdown.d.ts +22 -0
- package/dist/output-shape.d.ts +30 -14
- package/dist/param-customization.d.ts +7 -0
- package/dist/provider.d.ts +174 -13
- package/dist/resolve-params.d.ts +50 -11
- package/dist/run-visuals.d.ts +18 -22
- package/dist/script-bindings.d.ts +63 -0
- package/dist/script-completion-service.d.ts +9 -0
- package/dist/script-completion.worker.d.ts +1 -0
- package/dist/script-completions.d.ts +2 -0
- package/dist/state-shape.d.ts +38 -0
- package/dist/step-preview-state.d.ts +155 -6
- package/dist/step-problems.d.ts +64 -0
- package/dist/test-inputs.d.ts +25 -0
- package/dist/trigger-registration.d.ts +28 -0
- package/dist/types.d.ts +179 -11
- package/dist/use-app-action-defs.d.ts +9 -1
- package/dist/use-dynamic-fields.d.ts +23 -0
- package/dist/use-test-input.d.ts +18 -0
- package/dist/workflow-connections.d.ts +30 -0
- package/package.json +18 -7
- package/src/code.css +60 -6
- package/src/styles/_budget-meter.scss +46 -0
- package/src/styles/_callable-list.scss +15 -6
- package/src/styles/_canvas.scss +353 -0
- package/src/styles/_code-editor.scss +35 -0
- package/src/styles/_code.scss +6 -5
- package/src/styles/_connections.scss +2 -14
- package/src/styles/_copyable.scss +24 -0
- package/src/styles/_data-stores.scss +138 -0
- package/src/styles/_data-table.scss +55 -0
- package/src/styles/_data-vars.scss +17 -6
- package/src/styles/_empty-state.scss +21 -0
- package/src/styles/_execution-history.scss +73 -0
- package/src/styles/_execution-log.scss +145 -1
- package/src/styles/_expression-modal.scss +106 -16
- package/src/styles/_fields.scss +11 -0
- package/src/styles/_flow.scss +171 -0
- package/src/styles/_fx.scss +26 -1
- package/src/styles/_incoming-state.scss +33 -0
- package/src/styles/_layout.scss +10 -0
- package/src/styles/_markdown.scss +20 -0
- package/src/styles/_modal.scss +12 -0
- package/src/styles/_multiselect.scss +35 -0
- package/src/styles/_sections.scss +36 -0
- package/src/styles/_step-builder.scss +145 -0
- package/src/styles/_tester.scss +57 -14
- package/src/styles/_tokens.scss +27 -1
- package/src/styles.css +1861 -115
- package/src/styles.scss +7 -0
- package/dist/CodeBlock-CZu4TFSi.cjs +0 -15
- package/dist/CodeBlock-CZu4TFSi.cjs.map +0 -1
- package/dist/CodeBlock-Dot3Pd7P.js.map +0 -1
- package/dist/ConfirmModal-ChoiGy2K.cjs +0 -11
- package/dist/ConfirmModal-ChoiGy2K.cjs.map +0 -1
- package/dist/ConfirmModal-Wx3i8F1n.js +0 -6359
- package/dist/ConfirmModal-Wx3i8F1n.js.map +0 -1
- package/dist/Copyable-1niV9gUa.js +0 -771
- package/dist/Copyable-1niV9gUa.js.map +0 -1
- package/dist/Copyable-CYZU1o4X.cjs +0 -2
- package/dist/Copyable-CYZU1o4X.cjs.map +0 -1
|
@@ -1,55 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createElement as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var t, a, l = "";
|
|
1
|
+
import { jsxs as x, Fragment as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as Q, useCallback as j, useMemo as ve, useId as ke, useState as we, useRef as se, useEffect as ie } from "react";
|
|
3
|
+
function le(e) {
|
|
4
|
+
var a, r, l = "";
|
|
6
5
|
if (typeof e == "string" || typeof e == "number") l += e;
|
|
7
6
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
8
|
-
var
|
|
9
|
-
for (
|
|
10
|
-
} else for (
|
|
7
|
+
var u = e.length;
|
|
8
|
+
for (a = 0; a < u; a++) e[a] && (r = le(e[a])) && (l && (l += " "), l += r);
|
|
9
|
+
} else for (r in e) e[r] && (l && (l += " "), l += r);
|
|
11
10
|
return l;
|
|
12
11
|
}
|
|
13
|
-
function
|
|
14
|
-
for (var e,
|
|
12
|
+
function ce() {
|
|
13
|
+
for (var e, a, r = 0, l = "", u = arguments.length; r < u; r++) (e = arguments[r]) && (a = le(e)) && (l && (l += " "), l += a);
|
|
15
14
|
return l;
|
|
16
15
|
}
|
|
17
|
-
var
|
|
18
|
-
for (var
|
|
19
|
-
|
|
20
|
-
if (
|
|
21
|
-
for (var
|
|
22
|
-
|
|
16
|
+
var xe = Object.create, V = Object.defineProperty, Ee = Object.defineProperties, Ae = Object.getOwnPropertyDescriptor, Se = Object.getOwnPropertyDescriptors, ue = Object.getOwnPropertyNames, W = Object.getOwnPropertySymbols, _e = Object.getPrototypeOf, J = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable, ae = (e, a, r) => a in e ? V(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, M = (e, a) => {
|
|
17
|
+
for (var r in a || (a = {}))
|
|
18
|
+
J.call(a, r) && ae(e, r, a[r]);
|
|
19
|
+
if (W)
|
|
20
|
+
for (var r of W(a))
|
|
21
|
+
pe.call(a, r) && ae(e, r, a[r]);
|
|
23
22
|
return e;
|
|
24
|
-
}, q = (e,
|
|
25
|
-
var
|
|
23
|
+
}, q = (e, a) => Ee(e, Se(a)), de = (e, a) => {
|
|
24
|
+
var r = {};
|
|
26
25
|
for (var l in e)
|
|
27
|
-
|
|
28
|
-
if (e != null &&
|
|
29
|
-
for (var l of
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
},
|
|
33
|
-
return
|
|
34
|
-
},
|
|
35
|
-
for (var
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
if (
|
|
39
|
-
for (let
|
|
40
|
-
!
|
|
26
|
+
J.call(e, l) && a.indexOf(l) < 0 && (r[l] = e[l]);
|
|
27
|
+
if (e != null && W)
|
|
28
|
+
for (var l of W(e))
|
|
29
|
+
a.indexOf(l) < 0 && pe.call(e, l) && (r[l] = e[l]);
|
|
30
|
+
return r;
|
|
31
|
+
}, Fe = (e, a) => function() {
|
|
32
|
+
return a || (0, e[ue(e)[0]])((a = { exports: {} }).exports, a), a.exports;
|
|
33
|
+
}, Te = (e, a) => {
|
|
34
|
+
for (var r in a)
|
|
35
|
+
V(e, r, { get: a[r], enumerable: !0 });
|
|
36
|
+
}, Re = (e, a, r, l) => {
|
|
37
|
+
if (a && typeof a == "object" || typeof a == "function")
|
|
38
|
+
for (let u of ue(a))
|
|
39
|
+
!J.call(e, u) && u !== r && V(e, u, { get: () => a[u], enumerable: !(l = Ae(a, u)) || l.enumerable });
|
|
41
40
|
return e;
|
|
42
|
-
},
|
|
41
|
+
}, Le = (e, a, r) => (r = e != null ? xe(_e(e)) : {}, Re(
|
|
43
42
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
44
43
|
// file that has been converted to a CommonJS file using a Babel-
|
|
45
44
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
46
45
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
47
|
-
!e || !e.__esModule ?
|
|
46
|
+
!e || !e.__esModule ? V(r, "default", { value: e, enumerable: !0 }) : r,
|
|
48
47
|
e
|
|
49
|
-
)),
|
|
50
|
-
"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,
|
|
51
|
-
var
|
|
52
|
-
var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
|
|
48
|
+
)), Be = Fe({
|
|
49
|
+
"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, a) {
|
|
50
|
+
var r = (function() {
|
|
51
|
+
var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, u = 0, k = {}, p = {
|
|
53
52
|
/**
|
|
54
53
|
* A namespace for utility methods.
|
|
55
54
|
*
|
|
@@ -60,8 +59,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
60
59
|
* @memberof Prism
|
|
61
60
|
*/
|
|
62
61
|
util: {
|
|
63
|
-
encode: function o
|
|
64
|
-
return
|
|
62
|
+
encode: function n(o) {
|
|
63
|
+
return o instanceof v ? new v(o.type, n(o.content), o.alias) : Array.isArray(o) ? o.map(n) : o.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
65
64
|
},
|
|
66
65
|
/**
|
|
67
66
|
* Returns the name of the type of the given value.
|
|
@@ -79,8 +78,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
79
78
|
* type(String) === 'Function'
|
|
80
79
|
* type(/abc+/) === 'RegExp'
|
|
81
80
|
*/
|
|
82
|
-
type: function(
|
|
83
|
-
return Object.prototype.toString.call(
|
|
81
|
+
type: function(n) {
|
|
82
|
+
return Object.prototype.toString.call(n).slice(8, -1);
|
|
84
83
|
},
|
|
85
84
|
/**
|
|
86
85
|
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
@@ -88,8 +87,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
88
87
|
* @param {Object} obj
|
|
89
88
|
* @returns {number}
|
|
90
89
|
*/
|
|
91
|
-
objId: function(
|
|
92
|
-
return
|
|
90
|
+
objId: function(n) {
|
|
91
|
+
return n.__id || Object.defineProperty(n, "__id", { value: ++u }), n.__id;
|
|
93
92
|
},
|
|
94
93
|
/**
|
|
95
94
|
* Creates a deep clone of the given object.
|
|
@@ -101,28 +100,28 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
101
100
|
* @returns {T}
|
|
102
101
|
* @template T
|
|
103
102
|
*/
|
|
104
|
-
clone: function o
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
switch (p.util.type(
|
|
103
|
+
clone: function n(o, i) {
|
|
104
|
+
i = i || {};
|
|
105
|
+
var y, c;
|
|
106
|
+
switch (p.util.type(o)) {
|
|
108
107
|
case "Object":
|
|
109
|
-
if (
|
|
110
|
-
return
|
|
111
|
-
|
|
112
|
-
{},
|
|
113
|
-
for (var
|
|
114
|
-
|
|
108
|
+
if (c = p.util.objId(o), i[c])
|
|
109
|
+
return i[c];
|
|
110
|
+
y = /** @type {Record<string, any>} */
|
|
111
|
+
{}, i[c] = y;
|
|
112
|
+
for (var b in o)
|
|
113
|
+
o.hasOwnProperty(b) && (y[b] = n(o[b], i));
|
|
115
114
|
return (
|
|
116
115
|
/** @type {any} */
|
|
117
|
-
|
|
116
|
+
y
|
|
118
117
|
);
|
|
119
118
|
case "Array":
|
|
120
|
-
return
|
|
121
|
-
|
|
119
|
+
return c = p.util.objId(o), i[c] ? i[c] : (y = [], i[c] = y, o.forEach(function(E, S) {
|
|
120
|
+
y[S] = n(E, i);
|
|
122
121
|
}), /** @type {any} */
|
|
123
|
-
|
|
122
|
+
y);
|
|
124
123
|
default:
|
|
125
|
-
return
|
|
124
|
+
return o;
|
|
126
125
|
}
|
|
127
126
|
},
|
|
128
127
|
/**
|
|
@@ -133,12 +132,12 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
133
132
|
* @param {Element} element
|
|
134
133
|
* @returns {string}
|
|
135
134
|
*/
|
|
136
|
-
getLanguage: function(
|
|
137
|
-
for (;
|
|
138
|
-
var
|
|
139
|
-
if (
|
|
140
|
-
return
|
|
141
|
-
|
|
135
|
+
getLanguage: function(n) {
|
|
136
|
+
for (; n; ) {
|
|
137
|
+
var o = l.exec(n.className);
|
|
138
|
+
if (o)
|
|
139
|
+
return o[1].toLowerCase();
|
|
140
|
+
n = n.parentElement;
|
|
142
141
|
}
|
|
143
142
|
return "none";
|
|
144
143
|
},
|
|
@@ -149,8 +148,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
149
148
|
* @param {string} language
|
|
150
149
|
* @returns {void}
|
|
151
150
|
*/
|
|
152
|
-
setLanguage: function(
|
|
153
|
-
|
|
151
|
+
setLanguage: function(n, o) {
|
|
152
|
+
n.className = n.className.replace(RegExp(l, "gi"), ""), n.classList.add("language-" + o);
|
|
154
153
|
},
|
|
155
154
|
/**
|
|
156
155
|
* Returns whether a given class is active for `element`.
|
|
@@ -171,16 +170,16 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
171
170
|
* @param {boolean} [defaultActivation=false]
|
|
172
171
|
* @returns {boolean}
|
|
173
172
|
*/
|
|
174
|
-
isActive: function(
|
|
175
|
-
for (var
|
|
176
|
-
var
|
|
177
|
-
if (
|
|
173
|
+
isActive: function(n, o, i) {
|
|
174
|
+
for (var y = "no-" + o; n; ) {
|
|
175
|
+
var c = n.classList;
|
|
176
|
+
if (c.contains(o))
|
|
178
177
|
return !0;
|
|
179
|
-
if (
|
|
178
|
+
if (c.contains(y))
|
|
180
179
|
return !1;
|
|
181
|
-
|
|
180
|
+
n = n.parentElement;
|
|
182
181
|
}
|
|
183
|
-
return !!
|
|
182
|
+
return !!i;
|
|
184
183
|
}
|
|
185
184
|
},
|
|
186
185
|
/**
|
|
@@ -194,10 +193,10 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
194
193
|
/**
|
|
195
194
|
* The grammar for plain, unformatted text.
|
|
196
195
|
*/
|
|
197
|
-
plain:
|
|
198
|
-
plaintext:
|
|
199
|
-
text:
|
|
200
|
-
txt:
|
|
196
|
+
plain: k,
|
|
197
|
+
plaintext: k,
|
|
198
|
+
text: k,
|
|
199
|
+
txt: k,
|
|
201
200
|
/**
|
|
202
201
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
203
202
|
*
|
|
@@ -226,11 +225,11 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
226
225
|
* 'color': /\b(?:red|green|blue)\b/
|
|
227
226
|
* });
|
|
228
227
|
*/
|
|
229
|
-
extend: function(
|
|
230
|
-
var
|
|
231
|
-
for (var
|
|
232
|
-
|
|
233
|
-
return
|
|
228
|
+
extend: function(n, o) {
|
|
229
|
+
var i = p.util.clone(p.languages[n]);
|
|
230
|
+
for (var y in o)
|
|
231
|
+
i[y] = o[y];
|
|
232
|
+
return i;
|
|
234
233
|
},
|
|
235
234
|
/**
|
|
236
235
|
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
@@ -307,31 +306,31 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
307
306
|
* @returns {Grammar} The new grammar object.
|
|
308
307
|
* @public
|
|
309
308
|
*/
|
|
310
|
-
insertBefore: function(
|
|
311
|
-
|
|
309
|
+
insertBefore: function(n, o, i, y) {
|
|
310
|
+
y = y || /** @type {any} */
|
|
312
311
|
p.languages;
|
|
313
|
-
var
|
|
314
|
-
for (var
|
|
315
|
-
if (
|
|
316
|
-
if (
|
|
317
|
-
for (var
|
|
318
|
-
|
|
319
|
-
|
|
312
|
+
var c = y[n], b = {};
|
|
313
|
+
for (var E in c)
|
|
314
|
+
if (c.hasOwnProperty(E)) {
|
|
315
|
+
if (E == o)
|
|
316
|
+
for (var S in i)
|
|
317
|
+
i.hasOwnProperty(S) && (b[S] = i[S]);
|
|
318
|
+
i.hasOwnProperty(E) || (b[E] = c[E]);
|
|
320
319
|
}
|
|
321
|
-
var
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
}),
|
|
320
|
+
var F = y[n];
|
|
321
|
+
return y[n] = b, p.languages.DFS(p.languages, function(_, T) {
|
|
322
|
+
T === F && _ != n && (this[_] = b);
|
|
323
|
+
}), b;
|
|
325
324
|
},
|
|
326
325
|
// Traverse a language definition with Depth First Search
|
|
327
|
-
DFS: function o
|
|
328
|
-
|
|
329
|
-
var
|
|
330
|
-
for (var
|
|
331
|
-
if (
|
|
332
|
-
|
|
333
|
-
var
|
|
334
|
-
|
|
326
|
+
DFS: function n(o, i, y, c) {
|
|
327
|
+
c = c || {};
|
|
328
|
+
var b = p.util.objId;
|
|
329
|
+
for (var E in o)
|
|
330
|
+
if (o.hasOwnProperty(E)) {
|
|
331
|
+
i.call(o, E, o[E], y || E);
|
|
332
|
+
var S = o[E], F = p.util.type(S);
|
|
333
|
+
F === "Object" && !c[b(S)] ? (c[b(S)] = !0, n(S, i, null, c)) : F === "Array" && !c[b(S)] && (c[b(S)] = !0, n(S, i, E, c));
|
|
335
334
|
}
|
|
336
335
|
}
|
|
337
336
|
},
|
|
@@ -356,15 +355,15 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
356
355
|
* @example
|
|
357
356
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
358
357
|
*/
|
|
359
|
-
highlight: function(
|
|
360
|
-
var
|
|
361
|
-
code:
|
|
362
|
-
grammar:
|
|
363
|
-
language:
|
|
358
|
+
highlight: function(n, o, i) {
|
|
359
|
+
var y = {
|
|
360
|
+
code: n,
|
|
361
|
+
grammar: o,
|
|
362
|
+
language: i
|
|
364
363
|
};
|
|
365
|
-
if (p.hooks.run("before-tokenize",
|
|
366
|
-
throw new Error('The language "' +
|
|
367
|
-
return
|
|
364
|
+
if (p.hooks.run("before-tokenize", y), !y.grammar)
|
|
365
|
+
throw new Error('The language "' + y.language + '" has no grammar.');
|
|
366
|
+
return y.tokens = p.tokenize(y.code, y.grammar), p.hooks.run("after-tokenize", y), v.stringify(p.util.encode(y.tokens), y.language);
|
|
368
367
|
},
|
|
369
368
|
/**
|
|
370
369
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -390,15 +389,15 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
390
389
|
* }
|
|
391
390
|
* });
|
|
392
391
|
*/
|
|
393
|
-
tokenize: function(
|
|
394
|
-
var
|
|
395
|
-
if (
|
|
396
|
-
for (var
|
|
397
|
-
|
|
398
|
-
delete
|
|
392
|
+
tokenize: function(n, o) {
|
|
393
|
+
var i = o.rest;
|
|
394
|
+
if (i) {
|
|
395
|
+
for (var y in i)
|
|
396
|
+
o[y] = i[y];
|
|
397
|
+
delete o.rest;
|
|
399
398
|
}
|
|
400
|
-
var
|
|
401
|
-
return
|
|
399
|
+
var c = new m();
|
|
400
|
+
return d(c, c.head, n), f(n, c, o, c.head, 0), A(c);
|
|
402
401
|
},
|
|
403
402
|
/**
|
|
404
403
|
* @namespace
|
|
@@ -419,9 +418,9 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
419
418
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
420
419
|
* @public
|
|
421
420
|
*/
|
|
422
|
-
add: function(
|
|
423
|
-
var
|
|
424
|
-
|
|
421
|
+
add: function(n, o) {
|
|
422
|
+
var i = p.hooks.all;
|
|
423
|
+
i[n] = i[n] || [], i[n].push(o);
|
|
425
424
|
},
|
|
426
425
|
/**
|
|
427
426
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -432,416 +431,416 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
|
|
|
432
431
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
433
432
|
* @public
|
|
434
433
|
*/
|
|
435
|
-
run: function(
|
|
436
|
-
var
|
|
437
|
-
if (!(!
|
|
438
|
-
for (var
|
|
439
|
-
|
|
434
|
+
run: function(n, o) {
|
|
435
|
+
var i = p.hooks.all[n];
|
|
436
|
+
if (!(!i || !i.length))
|
|
437
|
+
for (var y = 0, c; c = i[y++]; )
|
|
438
|
+
c(o);
|
|
440
439
|
}
|
|
441
440
|
},
|
|
442
|
-
Token:
|
|
441
|
+
Token: v
|
|
443
442
|
};
|
|
444
|
-
function
|
|
445
|
-
this.type =
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
if (typeof
|
|
449
|
-
return
|
|
450
|
-
if (Array.isArray(
|
|
451
|
-
var
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
}),
|
|
443
|
+
function v(n, o, i, y) {
|
|
444
|
+
this.type = n, this.content = o, this.alias = i, this.length = (y || "").length | 0;
|
|
445
|
+
}
|
|
446
|
+
v.stringify = function n(o, i) {
|
|
447
|
+
if (typeof o == "string")
|
|
448
|
+
return o;
|
|
449
|
+
if (Array.isArray(o)) {
|
|
450
|
+
var y = "";
|
|
451
|
+
return o.forEach(function(F) {
|
|
452
|
+
y += n(F, i);
|
|
453
|
+
}), y;
|
|
455
454
|
}
|
|
456
|
-
var
|
|
457
|
-
type:
|
|
458
|
-
content: o
|
|
455
|
+
var c = {
|
|
456
|
+
type: o.type,
|
|
457
|
+
content: n(o.content, i),
|
|
459
458
|
tag: "span",
|
|
460
|
-
classes: ["token",
|
|
459
|
+
classes: ["token", o.type],
|
|
461
460
|
attributes: {},
|
|
462
|
-
language:
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
var
|
|
466
|
-
for (var
|
|
467
|
-
|
|
468
|
-
return "<" +
|
|
461
|
+
language: i
|
|
462
|
+
}, b = o.alias;
|
|
463
|
+
b && (Array.isArray(b) ? Array.prototype.push.apply(c.classes, b) : c.classes.push(b)), p.hooks.run("wrap", c);
|
|
464
|
+
var E = "";
|
|
465
|
+
for (var S in c.attributes)
|
|
466
|
+
E += " " + S + '="' + (c.attributes[S] || "").replace(/"/g, """) + '"';
|
|
467
|
+
return "<" + c.tag + ' class="' + c.classes.join(" ") + '"' + E + ">" + c.content + "</" + c.tag + ">";
|
|
469
468
|
};
|
|
470
|
-
function g(
|
|
471
|
-
|
|
472
|
-
var
|
|
473
|
-
if (
|
|
474
|
-
var
|
|
475
|
-
|
|
469
|
+
function g(n, o, i, y) {
|
|
470
|
+
n.lastIndex = o;
|
|
471
|
+
var c = n.exec(i);
|
|
472
|
+
if (c && y && c[1]) {
|
|
473
|
+
var b = c[1].length;
|
|
474
|
+
c.index += b, c[0] = c[0].slice(b);
|
|
476
475
|
}
|
|
477
|
-
return
|
|
478
|
-
}
|
|
479
|
-
function
|
|
480
|
-
for (var
|
|
481
|
-
if (!(!
|
|
482
|
-
var
|
|
483
|
-
|
|
484
|
-
for (var
|
|
485
|
-
if (
|
|
476
|
+
return c;
|
|
477
|
+
}
|
|
478
|
+
function f(n, o, i, y, c, b) {
|
|
479
|
+
for (var E in i)
|
|
480
|
+
if (!(!i.hasOwnProperty(E) || !i[E])) {
|
|
481
|
+
var S = i[E];
|
|
482
|
+
S = Array.isArray(S) ? S : [S];
|
|
483
|
+
for (var F = 0; F < S.length; ++F) {
|
|
484
|
+
if (b && b.cause == E + "," + F)
|
|
486
485
|
return;
|
|
487
|
-
var
|
|
488
|
-
if (
|
|
489
|
-
var
|
|
490
|
-
|
|
486
|
+
var _ = S[F], T = _.inside, R = !!_.lookbehind, O = !!_.greedy, I = _.alias;
|
|
487
|
+
if (O && !_.pattern.global) {
|
|
488
|
+
var N = _.pattern.toString().match(/[imsuy]*$/)[0];
|
|
489
|
+
_.pattern = RegExp(_.pattern.source, N + "g");
|
|
491
490
|
}
|
|
492
|
-
for (var
|
|
493
|
-
var
|
|
494
|
-
if (
|
|
491
|
+
for (var ee = _.pattern || _, L = y.next, D = c; L !== o.tail && !(b && D >= b.reach); D += L.value.length, L = L.next) {
|
|
492
|
+
var P = L.value;
|
|
493
|
+
if (o.length > n.length)
|
|
495
494
|
return;
|
|
496
|
-
if (!(
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
if (
|
|
495
|
+
if (!(P instanceof v)) {
|
|
496
|
+
var Z = 1, C;
|
|
497
|
+
if (O) {
|
|
498
|
+
if (C = g(ee, D, n, R), !C || C.index >= n.length)
|
|
500
499
|
break;
|
|
501
|
-
var
|
|
502
|
-
for (
|
|
503
|
-
|
|
504
|
-
if (
|
|
500
|
+
var H = C.index, he = C.index + C[0].length, $ = D;
|
|
501
|
+
for ($ += L.value.length; H >= $; )
|
|
502
|
+
L = L.next, $ += L.value.length;
|
|
503
|
+
if ($ -= L.value.length, D = $, L.value instanceof v)
|
|
505
504
|
continue;
|
|
506
|
-
for (var
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
} else if (
|
|
505
|
+
for (var z = L; z !== o.tail && ($ < he || typeof z.value == "string"); z = z.next)
|
|
506
|
+
Z++, $ += z.value.length;
|
|
507
|
+
Z--, P = n.slice(D, $), C.index -= D;
|
|
508
|
+
} else if (C = g(ee, 0, P, R), !C)
|
|
510
509
|
continue;
|
|
511
|
-
var
|
|
512
|
-
|
|
513
|
-
var
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
517
|
-
var
|
|
518
|
-
cause:
|
|
519
|
-
reach:
|
|
510
|
+
var H = C.index, U = C[0], Y = P.slice(0, H), te = P.slice(H + U.length), K = D + P.length;
|
|
511
|
+
b && K > b.reach && (b.reach = K);
|
|
512
|
+
var G = L.prev;
|
|
513
|
+
Y && (G = d(o, G, Y), D += Y.length), w(o, G, Z);
|
|
514
|
+
var me = new v(E, T ? p.tokenize(U, T) : U, I, U);
|
|
515
|
+
if (L = d(o, G, me), te && d(o, L, te), Z > 1) {
|
|
516
|
+
var X = {
|
|
517
|
+
cause: E + "," + F,
|
|
518
|
+
reach: K
|
|
520
519
|
};
|
|
521
|
-
|
|
520
|
+
f(n, o, i, L.prev, D, X), b && X.reach > b.reach && (b.reach = X.reach);
|
|
522
521
|
}
|
|
523
522
|
}
|
|
524
523
|
}
|
|
525
524
|
}
|
|
526
525
|
}
|
|
527
526
|
}
|
|
528
|
-
function
|
|
529
|
-
var
|
|
530
|
-
|
|
527
|
+
function m() {
|
|
528
|
+
var n = { value: null, prev: null, next: null }, o = { value: null, prev: n, next: null };
|
|
529
|
+
n.next = o, this.head = n, this.tail = o, this.length = 0;
|
|
531
530
|
}
|
|
532
|
-
function
|
|
533
|
-
var
|
|
534
|
-
return
|
|
531
|
+
function d(n, o, i) {
|
|
532
|
+
var y = o.next, c = { value: i, prev: o, next: y };
|
|
533
|
+
return o.next = c, y.prev = c, n.length++, c;
|
|
535
534
|
}
|
|
536
|
-
function
|
|
537
|
-
for (var
|
|
538
|
-
|
|
539
|
-
|
|
535
|
+
function w(n, o, i) {
|
|
536
|
+
for (var y = o.next, c = 0; c < i && y !== n.tail; c++)
|
|
537
|
+
y = y.next;
|
|
538
|
+
o.next = y, y.prev = o, n.length -= c;
|
|
540
539
|
}
|
|
541
|
-
function
|
|
542
|
-
for (var
|
|
543
|
-
|
|
544
|
-
return
|
|
540
|
+
function A(n) {
|
|
541
|
+
for (var o = [], i = n.head.next; i !== n.tail; )
|
|
542
|
+
o.push(i.value), i = i.next;
|
|
543
|
+
return o;
|
|
545
544
|
}
|
|
546
545
|
return p;
|
|
547
546
|
})();
|
|
548
|
-
|
|
547
|
+
a.exports = r, r.default = r;
|
|
549
548
|
}
|
|
550
|
-
}),
|
|
551
|
-
|
|
549
|
+
}), s = Le(Be());
|
|
550
|
+
s.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] }, s.languages.markup.tag.inside["attr-value"].inside.entity = s.languages.markup.entity, s.languages.markup.doctype.inside["internal-subset"].inside = s.languages.markup, s.hooks.add("wrap", function(e) {
|
|
552
551
|
e.type === "entity" && (e.attributes.title = e.content.replace(/&/, "&"));
|
|
553
|
-
}), Object.defineProperty(
|
|
554
|
-
var
|
|
552
|
+
}), Object.defineProperty(s.languages.markup.tag, "addInlined", { value: function(e, l) {
|
|
553
|
+
var r = {}, r = (r["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: s.languages[l] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), l = (r["language-" + l] = { pattern: /[\s\S]+/, inside: s.languages[l] }, {});
|
|
555
554
|
l[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
556
555
|
return e;
|
|
557
|
-
}), "i"), lookbehind: !0, greedy: !0, inside:
|
|
558
|
-
} }), Object.defineProperty(
|
|
559
|
-
|
|
560
|
-
} }),
|
|
561
|
-
var
|
|
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:
|
|
563
|
-
})(
|
|
564
|
-
var
|
|
565
|
-
e.languages.coffeescript = e.languages.extend("javascript", { comment:
|
|
566
|
-
})(
|
|
567
|
-
var
|
|
568
|
-
Object.defineProperty(
|
|
569
|
-
(
|
|
570
|
-
var
|
|
571
|
-
|
|
556
|
+
}), "i"), lookbehind: !0, greedy: !0, inside: r }, s.languages.insertBefore("markup", "cdata", l);
|
|
557
|
+
} }), Object.defineProperty(s.languages.markup.tag, "addAttribute", { value: function(e, a) {
|
|
558
|
+
s.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: [a, "language-" + a], inside: s.languages[a] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
|
|
559
|
+
} }), s.languages.html = s.languages.markup, s.languages.mathml = s.languages.markup, s.languages.svg = s.languages.markup, s.languages.xml = s.languages.extend("markup", {}), s.languages.ssml = s.languages.xml, s.languages.atom = s.languages.xml, s.languages.rss = s.languages.xml, (function(e) {
|
|
560
|
+
var a = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, r = /\\(?: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 = "(?:[^\\\\-]|" + r.source + ")", l = RegExp(l + "-" + l), u = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
|
|
561
|
+
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: r, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": a, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: r } }, "special-escape": a, "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": u } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": u } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
|
|
562
|
+
})(s), s.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: /[{}[\];(),.:]/ }, s.languages.javascript = s.languages.extend("clike", { "class-name": [s.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}|\?\?=?|\?\.?|[~:]/ }), s.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, s.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: s.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: s.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: s.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: s.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: s.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), s.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: s.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" } }), s.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), s.languages.markup && (s.languages.markup.tag.addInlined("script", "javascript"), s.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")), s.languages.js = s.languages.javascript, s.languages.actionscript = s.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: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), s.languages.actionscript["class-name"].alias = "function", delete s.languages.actionscript.parameter, delete s.languages.actionscript["literal-property"], s.languages.markup && s.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: s.languages.markup } }), (function(e) {
|
|
563
|
+
var a = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
|
|
564
|
+
e.languages.coffeescript = e.languages.extend("javascript", { comment: a, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: r } }], 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: a, interpolation: r } } }), 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: r } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
|
|
565
|
+
})(s), (function(e) {
|
|
566
|
+
var a = 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: /[{}]/ };
|
|
567
|
+
Object.defineProperty(a, "addSupport", { value: function(r, l) {
|
|
568
|
+
(r = typeof r == "string" ? [r] : r).forEach(function(u) {
|
|
569
|
+
var k = function(d) {
|
|
570
|
+
d.inside || (d.inside = {}), d.inside.rest = l;
|
|
572
571
|
}, p = "doc-comment";
|
|
573
|
-
if (
|
|
574
|
-
var
|
|
575
|
-
if ((g = g || (
|
|
576
|
-
for (var
|
|
577
|
-
g[
|
|
572
|
+
if (v = e.languages[u]) {
|
|
573
|
+
var v, g = v[p];
|
|
574
|
+
if ((g = g || (v = e.languages.insertBefore(u, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[p]) instanceof RegExp && (g = v[p] = { pattern: g }), Array.isArray(g))
|
|
575
|
+
for (var f = 0, m = g.length; f < m; f++)
|
|
576
|
+
g[f] instanceof RegExp && (g[f] = { pattern: g[f] }), k(g[f]);
|
|
578
577
|
else
|
|
579
|
-
|
|
578
|
+
k(g);
|
|
580
579
|
}
|
|
581
580
|
});
|
|
582
|
-
} }),
|
|
583
|
-
})(
|
|
584
|
-
var
|
|
585
|
-
|
|
586
|
-
})(
|
|
587
|
-
var
|
|
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:
|
|
589
|
-
})(
|
|
590
|
-
var
|
|
581
|
+
} }), a.addSupport(["java", "javascript", "php"], a);
|
|
582
|
+
})(s), (function(e) {
|
|
583
|
+
var a = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, a = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + a.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\\((?:" + a.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + a.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + a.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: a, 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);
|
|
584
|
+
a && (a.tag.addInlined("style", "css"), a.tag.addAttribute("style", "css"));
|
|
585
|
+
})(s), (function(e) {
|
|
586
|
+
var a = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, a = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: a = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + a.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": [a, { 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 = a, 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 }), r = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
|
|
587
|
+
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: a, number: r, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: a, number: r });
|
|
588
|
+
})(s), (function(e) {
|
|
589
|
+
var a = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + r.source + "(?:[ ]+" + a.source + ")?|" + a.source + "(?:[ ]+" + r.source + ")?)", u = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
591
590
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
592
|
-
}),
|
|
593
|
-
function p(
|
|
591
|
+
}), k = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
592
|
+
function p(v, g) {
|
|
594
593
|
g = (g || "").replace(/m/g, "") + "m";
|
|
595
|
-
var
|
|
594
|
+
var f = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
596
595
|
return l;
|
|
597
596
|
}).replace(/<<value>>/g, function() {
|
|
598
|
-
return
|
|
597
|
+
return v;
|
|
599
598
|
});
|
|
600
|
-
return RegExp(
|
|
599
|
+
return RegExp(f, g);
|
|
601
600
|
}
|
|
602
601
|
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
602
|
return l;
|
|
604
603
|
})), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
605
604
|
return l;
|
|
606
605
|
}).replace(/<<key>>/g, function() {
|
|
607
|
-
return "(?:" +
|
|
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(
|
|
609
|
-
})(
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
return
|
|
613
|
-
return
|
|
614
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
|
606
|
+
return "(?:" + u + "|" + k + ")";
|
|
607
|
+
})), 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(k), 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: r, important: a, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
|
|
608
|
+
})(s), (function(e) {
|
|
609
|
+
var a = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
610
|
+
function r(f) {
|
|
611
|
+
return f = f.replace(/<inner>/g, function() {
|
|
612
|
+
return a;
|
|
613
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + f + ")");
|
|
615
614
|
}
|
|
616
|
-
var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,
|
|
615
|
+
var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, u = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
617
616
|
return l;
|
|
618
|
-
}),
|
|
619
|
-
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(
|
|
620
|
-
|
|
617
|
+
}), k = /\|?[ \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("^" + u + k + "(?:" + u + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + u + k + ")(?:" + u + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + u + ")" + k + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + u + "$"), 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: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<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: r(/!?\[(?:(?!\])<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(f) {
|
|
618
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(m) {
|
|
619
|
+
f !== m && (e.languages.markdown[f].inside.content.inside[m] = e.languages.markdown[m]);
|
|
621
620
|
});
|
|
622
|
-
}), e.hooks.add("after-tokenize", function(
|
|
623
|
-
|
|
624
|
-
if (
|
|
625
|
-
for (var
|
|
626
|
-
var
|
|
627
|
-
|
|
621
|
+
}), e.hooks.add("after-tokenize", function(f) {
|
|
622
|
+
f.language !== "markdown" && f.language !== "md" || (function m(d) {
|
|
623
|
+
if (d && typeof d != "string")
|
|
624
|
+
for (var w = 0, A = d.length; w < A; w++) {
|
|
625
|
+
var n, o = d[w];
|
|
626
|
+
o.type !== "code" ? m(o.content) : (n = o.content[1], o = o.content[3], n && o && n.type === "code-language" && o.type === "code-block" && typeof n.content == "string" && (n = n.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), n = "language-" + (n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase()), o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, n] : o.alias.push(n) : o.alias = [n]));
|
|
628
627
|
}
|
|
629
|
-
})(
|
|
630
|
-
}), e.hooks.add("wrap", function(
|
|
631
|
-
if (
|
|
632
|
-
for (var
|
|
633
|
-
var
|
|
634
|
-
if (
|
|
635
|
-
|
|
628
|
+
})(f.tokens);
|
|
629
|
+
}), e.hooks.add("wrap", function(f) {
|
|
630
|
+
if (f.type === "code-block") {
|
|
631
|
+
for (var m = "", d = 0, w = f.classes.length; d < w; d++) {
|
|
632
|
+
var A = f.classes[d], A = /language-(.+)/.exec(A);
|
|
633
|
+
if (A) {
|
|
634
|
+
m = A[1];
|
|
636
635
|
break;
|
|
637
636
|
}
|
|
638
637
|
}
|
|
639
|
-
var
|
|
640
|
-
|
|
641
|
-
return
|
|
642
|
-
var
|
|
643
|
-
return (
|
|
638
|
+
var n, o = e.languages[m];
|
|
639
|
+
o ? f.content = e.highlight((function(i) {
|
|
640
|
+
return i = i.replace(p, ""), i = i.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(y, c) {
|
|
641
|
+
var b;
|
|
642
|
+
return (c = c.toLowerCase())[0] === "#" ? (b = c[1] === "x" ? parseInt(c.slice(2), 16) : Number(c.slice(1)), g(b)) : v[c] || y;
|
|
644
643
|
});
|
|
645
|
-
})(
|
|
646
|
-
var
|
|
647
|
-
|
|
644
|
+
})(f.content), o, m) : m && m !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), f.attributes.id = n, e.plugins.autoloader.loadLanguages(m, function() {
|
|
645
|
+
var i = document.getElementById(n);
|
|
646
|
+
i && (i.innerHTML = e.highlight(i.textContent, e.languages[m], m));
|
|
648
647
|
}));
|
|
649
648
|
}
|
|
650
|
-
}), RegExp(e.languages.markup.tag.pattern.source, "gi")),
|
|
649
|
+
}), RegExp(e.languages.markup.tag.pattern.source, "gi")), v = { amp: "&", lt: "<", gt: ">", quot: '"' }, g = String.fromCodePoint || String.fromCharCode;
|
|
651
650
|
e.languages.md = e.languages.markdown;
|
|
652
|
-
})(
|
|
651
|
+
})(s), s.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: s.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+/ }, s.hooks.add("after-tokenize", function(e) {
|
|
653
652
|
if (e.language === "graphql")
|
|
654
|
-
for (var
|
|
655
|
-
return typeof
|
|
656
|
-
}),
|
|
657
|
-
var l =
|
|
653
|
+
for (var a = e.tokens.filter(function(n) {
|
|
654
|
+
return typeof n != "string" && n.type !== "comment" && n.type !== "scalar";
|
|
655
|
+
}), r = 0; r < a.length; ) {
|
|
656
|
+
var l = a[r++];
|
|
658
657
|
if (l.type === "keyword" && l.content === "mutation") {
|
|
659
|
-
var
|
|
660
|
-
if (
|
|
661
|
-
|
|
662
|
-
var
|
|
663
|
-
if (
|
|
658
|
+
var u = [];
|
|
659
|
+
if (d(["definition-mutation", "punctuation"]) && m(1).content === "(") {
|
|
660
|
+
r += 2;
|
|
661
|
+
var k = w(/^\($/, /^\)$/);
|
|
662
|
+
if (k === -1)
|
|
664
663
|
continue;
|
|
665
|
-
for (;
|
|
666
|
-
var p =
|
|
667
|
-
p.type === "variable" && (
|
|
664
|
+
for (; r < k; r++) {
|
|
665
|
+
var p = m(0);
|
|
666
|
+
p.type === "variable" && (A(p, "variable-input"), u.push(p.content));
|
|
668
667
|
}
|
|
669
|
-
|
|
668
|
+
r = k + 1;
|
|
670
669
|
}
|
|
671
|
-
if (
|
|
672
|
-
var
|
|
673
|
-
if (
|
|
674
|
-
for (var g =
|
|
675
|
-
var
|
|
676
|
-
|
|
670
|
+
if (d(["punctuation", "property-query"]) && m(0).content === "{" && (r++, A(m(0), "property-mutation"), 0 < u.length)) {
|
|
671
|
+
var v = w(/^\{$/, /^\}$/);
|
|
672
|
+
if (v !== -1)
|
|
673
|
+
for (var g = r; g < v; g++) {
|
|
674
|
+
var f = a[g];
|
|
675
|
+
f.type === "variable" && 0 <= u.indexOf(f.content) && A(f, "variable-input");
|
|
677
676
|
}
|
|
678
677
|
}
|
|
679
678
|
}
|
|
680
679
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
680
|
+
function m(n) {
|
|
681
|
+
return a[r + n];
|
|
683
682
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
686
|
-
for (var
|
|
687
|
-
var
|
|
688
|
-
if (!
|
|
683
|
+
function d(n, o) {
|
|
684
|
+
o = o || 0;
|
|
685
|
+
for (var i = 0; i < n.length; i++) {
|
|
686
|
+
var y = m(i + o);
|
|
687
|
+
if (!y || y.type !== n[i])
|
|
689
688
|
return;
|
|
690
689
|
}
|
|
691
690
|
return 1;
|
|
692
691
|
}
|
|
693
|
-
function
|
|
694
|
-
for (var
|
|
695
|
-
var
|
|
696
|
-
if (
|
|
697
|
-
if (
|
|
698
|
-
|
|
699
|
-
else if (
|
|
700
|
-
return
|
|
692
|
+
function w(n, o) {
|
|
693
|
+
for (var i = 1, y = r; y < a.length; y++) {
|
|
694
|
+
var c = a[y], b = c.content;
|
|
695
|
+
if (c.type === "punctuation" && typeof b == "string") {
|
|
696
|
+
if (n.test(b))
|
|
697
|
+
i++;
|
|
698
|
+
else if (o.test(b) && --i === 0)
|
|
699
|
+
return y;
|
|
701
700
|
}
|
|
702
701
|
}
|
|
703
702
|
return -1;
|
|
704
703
|
}
|
|
705
|
-
function
|
|
706
|
-
var
|
|
707
|
-
|
|
704
|
+
function A(n, o) {
|
|
705
|
+
var i = n.alias;
|
|
706
|
+
i ? Array.isArray(i) || (n.alias = i = [i]) : n.alias = i = [], i.push(o);
|
|
708
707
|
}
|
|
709
|
-
}),
|
|
710
|
-
var
|
|
711
|
-
function p(
|
|
712
|
-
if (e.languages[
|
|
713
|
-
return { pattern: RegExp("((?:" +
|
|
708
|
+
}), s.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) {
|
|
709
|
+
var a = e.languages.javascript["template-string"], r = a.pattern.source, l = a.inside.interpolation, u = l.inside["interpolation-punctuation"], k = l.pattern.source;
|
|
710
|
+
function p(d, w) {
|
|
711
|
+
if (e.languages[d])
|
|
712
|
+
return { pattern: RegExp("((?:" + w + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: d } } };
|
|
714
713
|
}
|
|
715
|
-
function
|
|
716
|
-
return
|
|
714
|
+
function v(d, w, A) {
|
|
715
|
+
return d = { code: d, grammar: w, language: A }, e.hooks.run("before-tokenize", d), d.tokens = e.tokenize(d.code, d.grammar), e.hooks.run("after-tokenize", d), d.tokens;
|
|
717
716
|
}
|
|
718
|
-
function g(
|
|
719
|
-
var
|
|
720
|
-
if (typeof
|
|
721
|
-
return
|
|
722
|
-
for (var
|
|
717
|
+
function g(d, w, A) {
|
|
718
|
+
var i = e.tokenize(d, { interpolation: { pattern: RegExp(k), lookbehind: !0 } }), n = 0, o = {}, i = v(i.map(function(c) {
|
|
719
|
+
if (typeof c == "string")
|
|
720
|
+
return c;
|
|
721
|
+
for (var b, E, c = c.content; d.indexOf((E = n++, b = "___" + A.toUpperCase() + "_" + E + "___")) !== -1; )
|
|
723
722
|
;
|
|
724
|
-
return
|
|
725
|
-
}).join(""),
|
|
726
|
-
return
|
|
727
|
-
for (var
|
|
728
|
-
if (
|
|
723
|
+
return o[b] = c, b;
|
|
724
|
+
}).join(""), w, A), y = Object.keys(o);
|
|
725
|
+
return n = 0, (function c(b) {
|
|
726
|
+
for (var E = 0; E < b.length; E++) {
|
|
727
|
+
if (n >= y.length)
|
|
729
728
|
return;
|
|
730
|
-
var
|
|
731
|
-
typeof
|
|
729
|
+
var S, F, _, T, R, O, I, N = b[E];
|
|
730
|
+
typeof N == "string" || typeof N.content == "string" ? (S = y[n], (I = (O = typeof N == "string" ? N : N.content).indexOf(S)) !== -1 && (++n, F = O.substring(0, I), R = o[S], _ = void 0, (T = {})["interpolation-punctuation"] = u, (T = e.tokenize(R, T)).length === 3 && ((_ = [1, 1]).push.apply(_, v(T[1], e.languages.javascript, "javascript")), T.splice.apply(T, _)), _ = new e.Token("interpolation", T, l.alias, R), T = O.substring(I + S.length), R = [], F && R.push(F), R.push(_), T && (c(O = [T]), R.push.apply(R, O)), typeof N == "string" ? (b.splice.apply(b, [E, 1].concat(R)), E += R.length - 1) : N.content = R)) : (I = N.content, Array.isArray(I) ? c(I) : c([I]));
|
|
732
731
|
}
|
|
733
|
-
})(
|
|
732
|
+
})(i), new e.Token(A, i, "language-" + A, d);
|
|
734
733
|
}
|
|
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),
|
|
736
|
-
var
|
|
737
|
-
function
|
|
738
|
-
return typeof
|
|
734
|
+
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), a].filter(Boolean);
|
|
735
|
+
var f = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
|
|
736
|
+
function m(d) {
|
|
737
|
+
return typeof d == "string" ? d : Array.isArray(d) ? d.map(m).join("") : m(d.content);
|
|
739
738
|
}
|
|
740
|
-
e.hooks.add("after-tokenize", function(
|
|
741
|
-
|
|
742
|
-
for (var
|
|
743
|
-
var
|
|
744
|
-
typeof
|
|
739
|
+
e.hooks.add("after-tokenize", function(d) {
|
|
740
|
+
d.language in f && (function w(A) {
|
|
741
|
+
for (var n = 0, o = A.length; n < o; n++) {
|
|
742
|
+
var i, y, c, b = A[n];
|
|
743
|
+
typeof b != "string" && (i = b.content, Array.isArray(i) ? b.type === "template-string" ? (b = i[1], i.length === 3 && typeof b != "string" && b.type === "embedded-code" && (y = m(b), b = b.alias, b = Array.isArray(b) ? b[0] : b, c = e.languages[b]) && (i[1] = g(y, c, b))) : w(i) : typeof i != "string" && w([i]));
|
|
745
744
|
}
|
|
746
|
-
})(
|
|
745
|
+
})(d.tokens);
|
|
747
746
|
});
|
|
748
|
-
})(
|
|
747
|
+
})(s), (function(e) {
|
|
749
748
|
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
|
|
751
|
-
delete
|
|
752
|
-
})(
|
|
753
|
-
var
|
|
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:
|
|
755
|
-
return
|
|
756
|
-
})), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" +
|
|
757
|
-
})(
|
|
749
|
+
var a = e.languages.extend("typescript", {});
|
|
750
|
+
delete a["class-name"], e.languages.typescript["class-name"].inside = a, 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: a } } } }), e.languages.ts = e.languages.typescript;
|
|
751
|
+
})(s), (function(e) {
|
|
752
|
+
var a = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
|
|
753
|
+
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: a, 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() {
|
|
754
|
+
return r;
|
|
755
|
+
})), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + r), lookbehind: !0, inside: { string: a.string, number: a.number, boolean: a.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: a, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
|
|
756
|
+
})(s), (function(e) {
|
|
758
757
|
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
|
-
})(
|
|
760
|
-
function
|
|
758
|
+
})(s), s.languages.n4js = s.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/ }), s.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), s.languages.n4jsd = s.languages.n4js, (function(e) {
|
|
759
|
+
function a(p, v) {
|
|
761
760
|
return RegExp(p.replace(/<ID>/g, function() {
|
|
762
761
|
return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
|
|
763
|
-
}),
|
|
762
|
+
}), v);
|
|
764
763
|
}
|
|
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:
|
|
766
|
-
for (var
|
|
767
|
-
var
|
|
768
|
-
(
|
|
764
|
+
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: a(/(\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: a(/(\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: a(/(\.\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" } });
|
|
765
|
+
for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < r.length; l++) {
|
|
766
|
+
var k = r[l], u = e.languages.javascript[k], k = (u = e.util.type(u) === "RegExp" ? e.languages.javascript[k] = { pattern: u } : u).inside || {};
|
|
767
|
+
(u.inside = k)["maybe-class-name"] = /^[A-Z][\s\S]*/;
|
|
769
768
|
}
|
|
770
|
-
})(
|
|
771
|
-
var
|
|
772
|
-
function
|
|
769
|
+
})(s), (function(e) {
|
|
770
|
+
var a = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, u = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
771
|
+
function k(g, f) {
|
|
773
772
|
return g = g.replace(/<S>/g, function() {
|
|
774
|
-
return
|
|
773
|
+
return r;
|
|
775
774
|
}).replace(/<BRACES>/g, function() {
|
|
776
775
|
return l;
|
|
777
776
|
}).replace(/<SPREAD>/g, function() {
|
|
778
|
-
return
|
|
779
|
-
}), RegExp(g,
|
|
777
|
+
return u;
|
|
778
|
+
}), RegExp(g, f);
|
|
780
779
|
}
|
|
781
|
-
|
|
780
|
+
u = k(u).source, e.languages.jsx = e.languages.extend("markup", a), e.languages.jsx.tag.pattern = k(/<\/?(?:[\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 = a.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: k(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: k(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
|
|
782
781
|
function p(g) {
|
|
783
|
-
for (var
|
|
784
|
-
var
|
|
785
|
-
typeof
|
|
782
|
+
for (var f = [], m = 0; m < g.length; m++) {
|
|
783
|
+
var d = g[m], w = !1;
|
|
784
|
+
typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? 0 < f.length && f[f.length - 1].tagName === v(d.content[0].content[1]) && f.pop() : d.content[d.content.length - 1].content !== "/>" && f.push({ tagName: v(d.content[0].content[1]), openedBraces: 0 }) : 0 < f.length && d.type === "punctuation" && d.content === "{" ? f[f.length - 1].openedBraces++ : 0 < f.length && 0 < f[f.length - 1].openedBraces && d.type === "punctuation" && d.content === "}" ? f[f.length - 1].openedBraces-- : w = !0), (w || typeof d == "string") && 0 < f.length && f[f.length - 1].openedBraces === 0 && (w = v(d), m < g.length - 1 && (typeof g[m + 1] == "string" || g[m + 1].type === "plain-text") && (w += v(g[m + 1]), g.splice(m + 1, 1)), 0 < m && (typeof g[m - 1] == "string" || g[m - 1].type === "plain-text") && (w = v(g[m - 1]) + w, g.splice(m - 1, 1), m--), g[m] = new e.Token("plain-text", w, null, w)), d.content && typeof d.content != "string" && p(d.content);
|
|
786
785
|
}
|
|
787
786
|
}
|
|
788
|
-
var
|
|
789
|
-
return g ? typeof g == "string" ? g : typeof g.content == "string" ? g.content : g.content.map(
|
|
787
|
+
var v = function(g) {
|
|
788
|
+
return g ? typeof g == "string" ? g : typeof g.content == "string" ? g.content : g.content.map(v).join("") : "";
|
|
790
789
|
};
|
|
791
790
|
e.hooks.add("after-tokenize", function(g) {
|
|
792
791
|
g.language !== "jsx" && g.language !== "tsx" || p(g.tokens);
|
|
793
792
|
});
|
|
794
|
-
})(
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
})(
|
|
798
|
-
e.inside.interpolation.inside =
|
|
793
|
+
})(s), (function(e) {
|
|
794
|
+
var a = e.util.clone(e.languages.typescript), a = (e.languages.tsx = e.languages.extend("jsx", a), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
|
|
795
|
+
a.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + a.pattern.source + ")", a.pattern.flags), a.lookbehind = !0;
|
|
796
|
+
})(s), s.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: /[{}[\]();,.:\\]/ }, s.languages.swift["string-literal"].forEach(function(e) {
|
|
797
|
+
e.inside.interpolation.inside = s.languages.swift;
|
|
799
798
|
}), (function(e) {
|
|
800
799
|
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
|
|
802
|
-
e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside:
|
|
803
|
-
})(
|
|
804
|
-
for (var
|
|
805
|
-
|
|
806
|
-
return
|
|
800
|
+
var a = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
|
|
801
|
+
e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: a }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: a }, 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;
|
|
802
|
+
})(s), s.languages.c = s.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|[?:~]|[-+*/%&|^!=<>]=?/ }), s.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), s.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 }, s.languages.c.string], char: s.languages.c.char, comment: s.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: s.languages.c } } } }), s.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 s.languages.c.boolean, s.languages.objectivec = s.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 s.languages.objectivec["class-name"], s.languages.objc = s.languages.objectivec, s.languages.reason = s.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/ }), s.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 s.languages.reason.function, (function(e) {
|
|
803
|
+
for (var a = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
|
|
804
|
+
a = a.replace(/<self>/g, function() {
|
|
805
|
+
return a;
|
|
807
806
|
});
|
|
808
|
-
|
|
807
|
+
a = a.replace(/<self>/g, function() {
|
|
809
808
|
return /[^\s\S]/.source;
|
|
810
|
-
}), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source +
|
|
811
|
-
})(
|
|
812
|
-
var
|
|
813
|
-
return
|
|
809
|
+
}), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + a), 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;
|
|
810
|
+
})(s), s.languages.go = s.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/ }), s.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete s.languages.go["class-name"], (function(e) {
|
|
811
|
+
var a = /\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/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
|
|
812
|
+
return a.source;
|
|
814
813
|
});
|
|
815
814
|
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
|
|
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:
|
|
818
|
-
return
|
|
815
|
+
return a.source;
|
|
816
|
+
})), 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: a, 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() {
|
|
817
|
+
return r;
|
|
819
818
|
}) + ")"), 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
|
-
})(
|
|
821
|
-
var
|
|
822
|
-
|
|
823
|
-
dracula: () =>
|
|
824
|
-
duotoneDark: () =>
|
|
825
|
-
duotoneLight: () =>
|
|
826
|
-
github: () =>
|
|
827
|
-
gruvboxMaterialDark: () =>
|
|
828
|
-
gruvboxMaterialLight: () =>
|
|
829
|
-
jettwaveDark: () =>
|
|
830
|
-
jettwaveLight: () =>
|
|
831
|
-
nightOwl: () =>
|
|
832
|
-
nightOwlLight: () =>
|
|
833
|
-
oceanicNext: () =>
|
|
834
|
-
okaidia: () =>
|
|
835
|
-
oneDark: () =>
|
|
836
|
-
oneLight: () =>
|
|
837
|
-
palenight: () =>
|
|
838
|
-
shadesOfPurple: () =>
|
|
839
|
-
synthwave84: () =>
|
|
840
|
-
ultramin: () =>
|
|
841
|
-
vsDark: () =>
|
|
842
|
-
vsLight: () =>
|
|
819
|
+
})(s), s.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: //, 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: /[{}[\];(),.:]/ }, s.languages.python["string-interpolation"].inside.interpolation.inside.rest = s.languages.python, s.languages.py = s.languages.python, s.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" } }, s.languages.webmanifest = s.languages.json;
|
|
820
|
+
var Ie = {};
|
|
821
|
+
Te(Ie, {
|
|
822
|
+
dracula: () => Oe,
|
|
823
|
+
duotoneDark: () => De,
|
|
824
|
+
duotoneLight: () => $e,
|
|
825
|
+
github: () => ze,
|
|
826
|
+
gruvboxMaterialDark: () => ft,
|
|
827
|
+
gruvboxMaterialLight: () => ht,
|
|
828
|
+
jettwaveDark: () => it,
|
|
829
|
+
jettwaveLight: () => ct,
|
|
830
|
+
nightOwl: () => Ze,
|
|
831
|
+
nightOwlLight: () => Ue,
|
|
832
|
+
oceanicNext: () => We,
|
|
833
|
+
okaidia: () => qe,
|
|
834
|
+
oneDark: () => pt,
|
|
835
|
+
oneLight: () => gt,
|
|
836
|
+
palenight: () => Ke,
|
|
837
|
+
shadesOfPurple: () => Qe,
|
|
838
|
+
synthwave84: () => et,
|
|
839
|
+
ultramin: () => at,
|
|
840
|
+
vsDark: () => ge,
|
|
841
|
+
vsLight: () => ot
|
|
843
842
|
});
|
|
844
|
-
var
|
|
843
|
+
var Ce = {
|
|
845
844
|
plain: {
|
|
846
845
|
color: "#F8F8F2",
|
|
847
846
|
backgroundColor: "#282A36"
|
|
@@ -903,7 +902,7 @@ var Se = {
|
|
|
903
902
|
}
|
|
904
903
|
}
|
|
905
904
|
]
|
|
906
|
-
},
|
|
905
|
+
}, Oe = Ce, Ne = {
|
|
907
906
|
plain: {
|
|
908
907
|
backgroundColor: "#2a2734",
|
|
909
908
|
color: "#9a86fd"
|
|
@@ -997,7 +996,7 @@ var Se = {
|
|
|
997
996
|
}
|
|
998
997
|
}
|
|
999
998
|
]
|
|
1000
|
-
},
|
|
999
|
+
}, De = Ne, Me = {
|
|
1001
1000
|
plain: {
|
|
1002
1001
|
backgroundColor: "#faf8f5",
|
|
1003
1002
|
color: "#728fcb"
|
|
@@ -1095,7 +1094,7 @@ var Se = {
|
|
|
1095
1094
|
}
|
|
1096
1095
|
}
|
|
1097
1096
|
]
|
|
1098
|
-
},
|
|
1097
|
+
}, $e = Me, Pe = {
|
|
1099
1098
|
plain: {
|
|
1100
1099
|
color: "#393A34",
|
|
1101
1100
|
backgroundColor: "#f6f8fa"
|
|
@@ -1168,7 +1167,7 @@ var Se = {
|
|
|
1168
1167
|
}
|
|
1169
1168
|
}
|
|
1170
1169
|
]
|
|
1171
|
-
},
|
|
1170
|
+
}, ze = Pe, je = {
|
|
1172
1171
|
plain: {
|
|
1173
1172
|
color: "#d6deeb",
|
|
1174
1173
|
backgroundColor: "#011627"
|
|
@@ -1272,7 +1271,7 @@ var Se = {
|
|
|
1272
1271
|
}
|
|
1273
1272
|
}
|
|
1274
1273
|
]
|
|
1275
|
-
},
|
|
1274
|
+
}, Ze = je, He = {
|
|
1276
1275
|
plain: {
|
|
1277
1276
|
color: "#403f53",
|
|
1278
1277
|
backgroundColor: "#FBFBFB"
|
|
@@ -1364,7 +1363,7 @@ var Se = {
|
|
|
1364
1363
|
}
|
|
1365
1364
|
}
|
|
1366
1365
|
]
|
|
1367
|
-
},
|
|
1366
|
+
}, Ue = He, B = {
|
|
1368
1367
|
char: "#D8DEE9",
|
|
1369
1368
|
comment: "#999999",
|
|
1370
1369
|
keyword: "#c5a5c5",
|
|
@@ -1375,7 +1374,7 @@ var Se = {
|
|
|
1375
1374
|
tag: "#fc929e",
|
|
1376
1375
|
function: "#79b6f2",
|
|
1377
1376
|
className: "#FAC863"
|
|
1378
|
-
},
|
|
1377
|
+
}, Ge = {
|
|
1379
1378
|
plain: {
|
|
1380
1379
|
backgroundColor: "#282c34",
|
|
1381
1380
|
color: "#ffffff"
|
|
@@ -1384,13 +1383,13 @@ var Se = {
|
|
|
1384
1383
|
{
|
|
1385
1384
|
types: ["attr-name"],
|
|
1386
1385
|
style: {
|
|
1387
|
-
color:
|
|
1386
|
+
color: B.keyword
|
|
1388
1387
|
}
|
|
1389
1388
|
},
|
|
1390
1389
|
{
|
|
1391
1390
|
types: ["attr-value"],
|
|
1392
1391
|
style: {
|
|
1393
|
-
color:
|
|
1392
|
+
color: B.string
|
|
1394
1393
|
}
|
|
1395
1394
|
},
|
|
1396
1395
|
{
|
|
@@ -1403,7 +1402,7 @@ var Se = {
|
|
|
1403
1402
|
"shebang"
|
|
1404
1403
|
],
|
|
1405
1404
|
style: {
|
|
1406
|
-
color:
|
|
1405
|
+
color: B.comment
|
|
1407
1406
|
}
|
|
1408
1407
|
},
|
|
1409
1408
|
{
|
|
@@ -1416,61 +1415,61 @@ var Se = {
|
|
|
1416
1415
|
"deleted"
|
|
1417
1416
|
],
|
|
1418
1417
|
style: {
|
|
1419
|
-
color:
|
|
1418
|
+
color: B.primitive
|
|
1420
1419
|
}
|
|
1421
1420
|
},
|
|
1422
1421
|
{
|
|
1423
1422
|
types: ["boolean"],
|
|
1424
1423
|
style: {
|
|
1425
|
-
color:
|
|
1424
|
+
color: B.boolean
|
|
1426
1425
|
}
|
|
1427
1426
|
},
|
|
1428
1427
|
{
|
|
1429
1428
|
types: ["tag"],
|
|
1430
1429
|
style: {
|
|
1431
|
-
color:
|
|
1430
|
+
color: B.tag
|
|
1432
1431
|
}
|
|
1433
1432
|
},
|
|
1434
1433
|
{
|
|
1435
1434
|
types: ["string"],
|
|
1436
1435
|
style: {
|
|
1437
|
-
color:
|
|
1436
|
+
color: B.string
|
|
1438
1437
|
}
|
|
1439
1438
|
},
|
|
1440
1439
|
{
|
|
1441
1440
|
types: ["punctuation"],
|
|
1442
1441
|
style: {
|
|
1443
|
-
color:
|
|
1442
|
+
color: B.string
|
|
1444
1443
|
}
|
|
1445
1444
|
},
|
|
1446
1445
|
{
|
|
1447
1446
|
types: ["selector", "char", "builtin", "inserted"],
|
|
1448
1447
|
style: {
|
|
1449
|
-
color:
|
|
1448
|
+
color: B.char
|
|
1450
1449
|
}
|
|
1451
1450
|
},
|
|
1452
1451
|
{
|
|
1453
1452
|
types: ["function"],
|
|
1454
1453
|
style: {
|
|
1455
|
-
color:
|
|
1454
|
+
color: B.function
|
|
1456
1455
|
}
|
|
1457
1456
|
},
|
|
1458
1457
|
{
|
|
1459
1458
|
types: ["operator", "entity", "url", "variable"],
|
|
1460
1459
|
style: {
|
|
1461
|
-
color:
|
|
1460
|
+
color: B.variable
|
|
1462
1461
|
}
|
|
1463
1462
|
},
|
|
1464
1463
|
{
|
|
1465
1464
|
types: ["keyword"],
|
|
1466
1465
|
style: {
|
|
1467
|
-
color:
|
|
1466
|
+
color: B.keyword
|
|
1468
1467
|
}
|
|
1469
1468
|
},
|
|
1470
1469
|
{
|
|
1471
1470
|
types: ["atrule", "class-name"],
|
|
1472
1471
|
style: {
|
|
1473
|
-
color:
|
|
1472
|
+
color: B.className
|
|
1474
1473
|
}
|
|
1475
1474
|
},
|
|
1476
1475
|
{
|
|
@@ -1498,7 +1497,7 @@ var Se = {
|
|
|
1498
1497
|
}
|
|
1499
1498
|
}
|
|
1500
1499
|
]
|
|
1501
|
-
},
|
|
1500
|
+
}, We = Ge, Ve = {
|
|
1502
1501
|
plain: {
|
|
1503
1502
|
color: "#f8f8f2",
|
|
1504
1503
|
backgroundColor: "#272822"
|
|
@@ -1613,7 +1612,7 @@ var Se = {
|
|
|
1613
1612
|
}
|
|
1614
1613
|
}
|
|
1615
1614
|
]
|
|
1616
|
-
},
|
|
1615
|
+
}, qe = Ve, Ye = {
|
|
1617
1616
|
plain: {
|
|
1618
1617
|
color: "#bfc7d5",
|
|
1619
1618
|
backgroundColor: "#292d3e"
|
|
@@ -1706,7 +1705,7 @@ var Se = {
|
|
|
1706
1705
|
}
|
|
1707
1706
|
}
|
|
1708
1707
|
]
|
|
1709
|
-
},
|
|
1708
|
+
}, Ke = Ye, Xe = {
|
|
1710
1709
|
plain: {
|
|
1711
1710
|
color: "#9EFEFF",
|
|
1712
1711
|
backgroundColor: "#2D2A55"
|
|
@@ -1794,7 +1793,7 @@ var Se = {
|
|
|
1794
1793
|
}
|
|
1795
1794
|
}
|
|
1796
1795
|
]
|
|
1797
|
-
},
|
|
1796
|
+
}, Qe = Xe, Je = {
|
|
1798
1797
|
plain: {
|
|
1799
1798
|
backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
|
|
1800
1799
|
backgroundImage: "#34294f",
|
|
@@ -1919,7 +1918,7 @@ var Se = {
|
|
|
1919
1918
|
}
|
|
1920
1919
|
}
|
|
1921
1920
|
]
|
|
1922
|
-
},
|
|
1921
|
+
}, et = Je, tt = {
|
|
1923
1922
|
plain: {
|
|
1924
1923
|
color: "#282a2e",
|
|
1925
1924
|
backgroundColor: "#ffffff"
|
|
@@ -1944,7 +1943,7 @@ var Se = {
|
|
|
1944
1943
|
}
|
|
1945
1944
|
}
|
|
1946
1945
|
]
|
|
1947
|
-
},
|
|
1946
|
+
}, at = tt, rt = {
|
|
1948
1947
|
plain: {
|
|
1949
1948
|
color: "#9CDCFE",
|
|
1950
1949
|
backgroundColor: "#1E1E1E"
|
|
@@ -2046,7 +2045,7 @@ var Se = {
|
|
|
2046
2045
|
}
|
|
2047
2046
|
}
|
|
2048
2047
|
]
|
|
2049
|
-
},
|
|
2048
|
+
}, ge = rt, nt = {
|
|
2050
2049
|
plain: {
|
|
2051
2050
|
color: "#000000",
|
|
2052
2051
|
backgroundColor: "#ffffff"
|
|
@@ -2119,7 +2118,7 @@ var Se = {
|
|
|
2119
2118
|
}
|
|
2120
2119
|
}
|
|
2121
2120
|
]
|
|
2122
|
-
},
|
|
2121
|
+
}, ot = nt, st = {
|
|
2123
2122
|
plain: {
|
|
2124
2123
|
color: "#f8fafc",
|
|
2125
2124
|
backgroundColor: "#011627"
|
|
@@ -2218,7 +2217,7 @@ var Se = {
|
|
|
2218
2217
|
}
|
|
2219
2218
|
}
|
|
2220
2219
|
]
|
|
2221
|
-
},
|
|
2220
|
+
}, it = st, lt = {
|
|
2222
2221
|
plain: {
|
|
2223
2222
|
color: "#0f172a",
|
|
2224
2223
|
backgroundColor: "#f1f5f9"
|
|
@@ -2317,7 +2316,7 @@ var Se = {
|
|
|
2317
2316
|
}
|
|
2318
2317
|
}
|
|
2319
2318
|
]
|
|
2320
|
-
},
|
|
2319
|
+
}, ct = lt, ut = {
|
|
2321
2320
|
plain: {
|
|
2322
2321
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
2323
2322
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -2415,7 +2414,7 @@ var Se = {
|
|
|
2415
2414
|
}
|
|
2416
2415
|
}
|
|
2417
2416
|
]
|
|
2418
|
-
},
|
|
2417
|
+
}, pt = ut, dt = {
|
|
2419
2418
|
plain: {
|
|
2420
2419
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
2421
2420
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -2516,7 +2515,7 @@ var Se = {
|
|
|
2516
2515
|
}
|
|
2517
2516
|
}
|
|
2518
2517
|
]
|
|
2519
|
-
},
|
|
2518
|
+
}, gt = dt, yt = {
|
|
2520
2519
|
plain: {
|
|
2521
2520
|
color: "#ebdbb2",
|
|
2522
2521
|
backgroundColor: "#292828"
|
|
@@ -2589,7 +2588,7 @@ var Se = {
|
|
|
2589
2588
|
}
|
|
2590
2589
|
}
|
|
2591
2590
|
]
|
|
2592
|
-
},
|
|
2591
|
+
}, ft = yt, bt = {
|
|
2593
2592
|
plain: {
|
|
2594
2593
|
color: "#654735",
|
|
2595
2594
|
backgroundColor: "#f9f5d7"
|
|
@@ -2661,46 +2660,46 @@ var Se = {
|
|
|
2661
2660
|
}
|
|
2662
2661
|
}
|
|
2663
2662
|
]
|
|
2664
|
-
},
|
|
2665
|
-
(
|
|
2666
|
-
var
|
|
2667
|
-
const
|
|
2668
|
-
className:
|
|
2663
|
+
}, ht = bt, mt = (e) => j(
|
|
2664
|
+
(a) => {
|
|
2665
|
+
var r = a, { className: l, style: u, line: k } = r, p = de(r, ["className", "style", "line"]);
|
|
2666
|
+
const v = q(M({}, p), {
|
|
2667
|
+
className: ce("token-line", l)
|
|
2669
2668
|
});
|
|
2670
|
-
return typeof e == "object" && "plain" in e && (
|
|
2669
|
+
return typeof e == "object" && "plain" in e && (v.style = e.plain), typeof u == "object" && (v.style = M(M({}, v.style || {}), u)), v;
|
|
2671
2670
|
},
|
|
2672
2671
|
[e]
|
|
2673
|
-
),
|
|
2674
|
-
const
|
|
2675
|
-
({ types:
|
|
2672
|
+
), vt = (e) => {
|
|
2673
|
+
const a = j(
|
|
2674
|
+
({ types: r, empty: l }) => {
|
|
2676
2675
|
if (e != null) {
|
|
2677
2676
|
{
|
|
2678
|
-
if (
|
|
2677
|
+
if (r.length === 1 && r[0] === "plain")
|
|
2679
2678
|
return l != null ? { display: "inline-block" } : void 0;
|
|
2680
|
-
if (
|
|
2681
|
-
return e[
|
|
2679
|
+
if (r.length === 1 && l != null)
|
|
2680
|
+
return e[r[0]];
|
|
2682
2681
|
}
|
|
2683
2682
|
return Object.assign(
|
|
2684
2683
|
l != null ? { display: "inline-block" } : {},
|
|
2685
|
-
...
|
|
2684
|
+
...r.map((u) => e[u])
|
|
2686
2685
|
);
|
|
2687
2686
|
}
|
|
2688
2687
|
},
|
|
2689
2688
|
[e]
|
|
2690
2689
|
);
|
|
2691
|
-
return
|
|
2692
|
-
(
|
|
2693
|
-
var l =
|
|
2694
|
-
const g = q(
|
|
2695
|
-
className:
|
|
2696
|
-
children:
|
|
2697
|
-
style:
|
|
2690
|
+
return j(
|
|
2691
|
+
(r) => {
|
|
2692
|
+
var l = r, { token: u, className: k, style: p } = l, v = de(l, ["token", "className", "style"]);
|
|
2693
|
+
const g = q(M({}, v), {
|
|
2694
|
+
className: ce("token", ...u.types, k),
|
|
2695
|
+
children: u.content,
|
|
2696
|
+
style: a(u)
|
|
2698
2697
|
});
|
|
2699
|
-
return p != null && (g.style =
|
|
2698
|
+
return p != null && (g.style = M(M({}, g.style || {}), p)), g;
|
|
2700
2699
|
},
|
|
2701
|
-
[
|
|
2700
|
+
[a]
|
|
2702
2701
|
);
|
|
2703
|
-
},
|
|
2702
|
+
}, kt = /\r\n|\r|\n/, re = (e) => {
|
|
2704
2703
|
e.length === 0 ? e.push({
|
|
2705
2704
|
types: ["plain"],
|
|
2706
2705
|
content: `
|
|
@@ -2708,78 +2707,78 @@ var Se = {
|
|
|
2708
2707
|
empty: !0
|
|
2709
2708
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
2710
2709
|
`, e[0].empty = !0);
|
|
2711
|
-
},
|
|
2712
|
-
const
|
|
2713
|
-
return
|
|
2714
|
-
},
|
|
2715
|
-
const
|
|
2716
|
-
let
|
|
2717
|
-
const g = [
|
|
2710
|
+
}, ne = (e, a) => {
|
|
2711
|
+
const r = e.length;
|
|
2712
|
+
return r > 0 && e[r - 1] === a ? e : e.concat(a);
|
|
2713
|
+
}, wt = (e) => {
|
|
2714
|
+
const a = [[]], r = [e], l = [0], u = [e.length];
|
|
2715
|
+
let k = 0, p = 0, v = [];
|
|
2716
|
+
const g = [v];
|
|
2718
2717
|
for (; p > -1; ) {
|
|
2719
|
-
for (; (
|
|
2720
|
-
let
|
|
2721
|
-
const
|
|
2722
|
-
if (typeof
|
|
2723
|
-
p++,
|
|
2718
|
+
for (; (k = l[p]++) < u[p]; ) {
|
|
2719
|
+
let f, m = a[p];
|
|
2720
|
+
const w = r[p][k];
|
|
2721
|
+
if (typeof w == "string" ? (m = p > 0 ? m : ["plain"], f = w) : (m = ne(m, w.type), w.alias && (m = ne(m, w.alias)), f = w.content), typeof f != "string") {
|
|
2722
|
+
p++, a.push(m), r.push(f), l.push(0), u.push(f.length);
|
|
2724
2723
|
continue;
|
|
2725
2724
|
}
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2728
|
-
types:
|
|
2729
|
-
content:
|
|
2725
|
+
const A = f.split(kt), n = A.length;
|
|
2726
|
+
v.push({
|
|
2727
|
+
types: m,
|
|
2728
|
+
content: A[0]
|
|
2730
2729
|
});
|
|
2731
|
-
for (let
|
|
2732
|
-
|
|
2733
|
-
types:
|
|
2734
|
-
content:
|
|
2730
|
+
for (let o = 1; o < n; o++)
|
|
2731
|
+
re(v), g.push(v = []), v.push({
|
|
2732
|
+
types: m,
|
|
2733
|
+
content: A[o]
|
|
2735
2734
|
});
|
|
2736
2735
|
}
|
|
2737
|
-
p--,
|
|
2736
|
+
p--, a.pop(), r.pop(), l.pop(), u.pop();
|
|
2738
2737
|
}
|
|
2739
|
-
return
|
|
2740
|
-
},
|
|
2741
|
-
if (
|
|
2742
|
-
return
|
|
2743
|
-
const
|
|
2744
|
-
code:
|
|
2745
|
-
grammar:
|
|
2738
|
+
return re(v), g;
|
|
2739
|
+
}, oe = wt, xt = ({ prism: e, code: a, grammar: r, language: l }) => ve(() => {
|
|
2740
|
+
if (r == null)
|
|
2741
|
+
return oe([a]);
|
|
2742
|
+
const u = {
|
|
2743
|
+
code: a,
|
|
2744
|
+
grammar: r,
|
|
2746
2745
|
language: l,
|
|
2747
2746
|
tokens: []
|
|
2748
2747
|
};
|
|
2749
|
-
return e.hooks.run("before-tokenize",
|
|
2748
|
+
return e.hooks.run("before-tokenize", u), u.tokens = e.tokenize(a, r), e.hooks.run("after-tokenize", u), oe(u.tokens);
|
|
2750
2749
|
}, [
|
|
2751
|
-
t,
|
|
2752
2750
|
a,
|
|
2751
|
+
r,
|
|
2753
2752
|
l,
|
|
2754
2753
|
// prism is a stable import
|
|
2755
2754
|
e
|
|
2756
|
-
]),
|
|
2757
|
-
const { plain:
|
|
2758
|
-
const { languages: p, style:
|
|
2759
|
-
return p && !p.includes(
|
|
2760
|
-
const
|
|
2761
|
-
|
|
2762
|
-
}),
|
|
2755
|
+
]), Et = (e, a) => {
|
|
2756
|
+
const { plain: r } = e, l = e.styles.reduce((u, k) => {
|
|
2757
|
+
const { languages: p, style: v } = k;
|
|
2758
|
+
return p && !p.includes(a) || k.types.forEach((g) => {
|
|
2759
|
+
const f = M(M({}, u[g]), v);
|
|
2760
|
+
u[g] = f;
|
|
2761
|
+
}), u;
|
|
2763
2762
|
}, {});
|
|
2764
|
-
return l.root =
|
|
2765
|
-
},
|
|
2763
|
+
return l.root = r, l.plain = q(M({}, r), { backgroundColor: void 0 }), l;
|
|
2764
|
+
}, At = Et, St = ({
|
|
2766
2765
|
children: e,
|
|
2767
|
-
language:
|
|
2768
|
-
code:
|
|
2766
|
+
language: a,
|
|
2767
|
+
code: r,
|
|
2769
2768
|
theme: l,
|
|
2770
|
-
prism:
|
|
2769
|
+
prism: u
|
|
2771
2770
|
}) => {
|
|
2772
|
-
const
|
|
2771
|
+
const k = a.toLowerCase(), p = At(l, k), v = mt(p), g = vt(p), f = u.languages[k], m = xt({ prism: u, language: k, code: r, grammar: f });
|
|
2773
2772
|
return e({
|
|
2774
|
-
tokens:
|
|
2775
|
-
className: `prism-code language-${
|
|
2773
|
+
tokens: m,
|
|
2774
|
+
className: `prism-code language-${k}`,
|
|
2776
2775
|
style: p != null ? p.root : {},
|
|
2777
|
-
getLineProps:
|
|
2776
|
+
getLineProps: v,
|
|
2778
2777
|
getTokenProps: g
|
|
2779
2778
|
});
|
|
2780
|
-
},
|
|
2781
|
-
prism: e.prism ||
|
|
2782
|
-
theme: e.theme ||
|
|
2779
|
+
}, _t = (e) => Q(St, q(M({}, e), {
|
|
2780
|
+
prism: e.prism || s,
|
|
2781
|
+
theme: e.theme || ge,
|
|
2783
2782
|
code: e.code,
|
|
2784
2783
|
language: e.language
|
|
2785
2784
|
}));
|
|
@@ -2795,7 +2794,883 @@ prismjs/prism.js:
|
|
|
2795
2794
|
* @public
|
|
2796
2795
|
*)
|
|
2797
2796
|
*/
|
|
2798
|
-
|
|
2797
|
+
function Ft() {
|
|
2798
|
+
const e = `w6w-py-eyes-${ke()}`;
|
|
2799
|
+
return /* @__PURE__ */ x(h, { children: [
|
|
2800
|
+
/* @__PURE__ */ t("title", { children: "Python" }),
|
|
2801
|
+
/* @__PURE__ */ x("mask", { id: e, children: [
|
|
2802
|
+
/* @__PURE__ */ t("rect", { x: "0", y: "0", width: "24", height: "24", fill: "white" }),
|
|
2803
|
+
/* @__PURE__ */ t("circle", { cx: "9.1", cy: "5.2", r: "1", fill: "black" }),
|
|
2804
|
+
/* @__PURE__ */ t("circle", { cx: "14.9", cy: "18.8", r: "1", fill: "black" })
|
|
2805
|
+
] }),
|
|
2806
|
+
/* @__PURE__ */ x("g", { mask: `url(#${e})`, fill: "currentColor", children: [
|
|
2807
|
+
/* @__PURE__ */ t("path", { d: "M11.6 2.6c-3 0-4.9.7-4.9 2.6v2.2h5v.9H5.2C3.2 8.3 2 9.9 2 12v1.4c0 2 1.2 3.5 3.2 3.5h1.6v-2.5c0-2 1.6-3.6 3.6-3.6h4.3c1.6 0 2.9-1.3 2.9-2.9V5.2c0-1.8-1.8-2.6-4.8-2.6z" }),
|
|
2808
|
+
/* @__PURE__ */ t("path", { d: "M12.4 21.4c3 0 4.9-.7 4.9-2.6v-2.2h-5v-.9h6.5c2 0 3.2-1.6 3.2-3.6v-1.4c0-2-1.2-3.5-3.2-3.5h-1.6v2.5c0 2-1.6 3.6-3.6 3.6H9.3c-1.6 0-2.9 1.3-2.9 2.9v3.3c0 1.8 1.8 2.6 4.8 2.6z" })
|
|
2809
|
+
] })
|
|
2810
|
+
] });
|
|
2811
|
+
}
|
|
2812
|
+
const ye = {
|
|
2813
|
+
/**
|
|
2814
|
+
* ui/src/components/EditButton.tsx (the two-path Feather pencil) — also drawn by `WorkflowFlowEditor.tsx`.
|
|
2815
|
+
*/
|
|
2816
|
+
edit: {
|
|
2817
|
+
viewBox: "0 0 24 24",
|
|
2818
|
+
variant: "stroke",
|
|
2819
|
+
strokeWidth: 2,
|
|
2820
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2821
|
+
/* @__PURE__ */ t("path", { d: "M12 20h9" }),
|
|
2822
|
+
/* @__PURE__ */ t("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
2823
|
+
] })
|
|
2824
|
+
},
|
|
2825
|
+
/**
|
|
2826
|
+
* studio/src/pages/FunctionsPage.tsx — byte-identical to `EndpointsPage.tsx`'s pencil, and NOT the `edit` above: this one is Feather `edit-2`, a bare outline with no baseline.
|
|
2827
|
+
*/
|
|
2828
|
+
"edit-2": {
|
|
2829
|
+
viewBox: "0 0 24 24",
|
|
2830
|
+
variant: "stroke",
|
|
2831
|
+
strokeWidth: 2,
|
|
2832
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" }) })
|
|
2833
|
+
},
|
|
2834
|
+
/**
|
|
2835
|
+
* ui/src/components/DeleteButton.tsx — byte-identical to `studio/src/pages/AppsPage.tsx`'s `TrashIcon`.
|
|
2836
|
+
*/
|
|
2837
|
+
delete: {
|
|
2838
|
+
viewBox: "0 0 24 24",
|
|
2839
|
+
variant: "stroke",
|
|
2840
|
+
strokeWidth: 2,
|
|
2841
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2842
|
+
/* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
|
|
2843
|
+
/* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }),
|
|
2844
|
+
/* @__PURE__ */ t("line", { x1: "10", y1: "11", x2: "10", y2: "17" }),
|
|
2845
|
+
/* @__PURE__ */ t("line", { x1: "14", y1: "11", x2: "14", y2: "17" })
|
|
2846
|
+
] })
|
|
2847
|
+
},
|
|
2848
|
+
/**
|
|
2849
|
+
* ui/src/components/Copyable.tsx — the same glyph `studio/src/components/CallFromCodeButton.tsx` copies around.
|
|
2850
|
+
*/
|
|
2851
|
+
copy: {
|
|
2852
|
+
viewBox: "0 0 24 24",
|
|
2853
|
+
variant: "stroke",
|
|
2854
|
+
strokeWidth: 2,
|
|
2855
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2856
|
+
/* @__PURE__ */ t("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
2857
|
+
/* @__PURE__ */ t("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
2858
|
+
] })
|
|
2859
|
+
},
|
|
2860
|
+
/**
|
|
2861
|
+
* ui/src/components/Copyable.tsx — the copy affordance's "copied" state.
|
|
2862
|
+
*/
|
|
2863
|
+
check: {
|
|
2864
|
+
viewBox: "0 0 24 24",
|
|
2865
|
+
variant: "stroke",
|
|
2866
|
+
strokeWidth: 2,
|
|
2867
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" }) })
|
|
2868
|
+
},
|
|
2869
|
+
/**
|
|
2870
|
+
* Feather `x` — the dismiss glyph for the `✕`/`×` characters studio's close and
|
|
2871
|
+
* remove buttons drew as text until now (T2), so those read as a drawing rather
|
|
2872
|
+
* than a font's idea of one. Drawn here rather than copied: the sources had no
|
|
2873
|
+
* `<svg>` to lift the paths from.
|
|
2874
|
+
*/
|
|
2875
|
+
close: {
|
|
2876
|
+
viewBox: "0 0 24 24",
|
|
2877
|
+
variant: "stroke",
|
|
2878
|
+
strokeWidth: 2,
|
|
2879
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2880
|
+
/* @__PURE__ */ t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
2881
|
+
/* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
2882
|
+
] })
|
|
2883
|
+
},
|
|
2884
|
+
/**
|
|
2885
|
+
* Feather "info" — a circle with an "i"; the glyph `InfoTip` renders.
|
|
2886
|
+
*/
|
|
2887
|
+
info: {
|
|
2888
|
+
viewBox: "0 0 24 24",
|
|
2889
|
+
variant: "stroke",
|
|
2890
|
+
strokeWidth: 2,
|
|
2891
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2892
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2893
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
2894
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
2895
|
+
] })
|
|
2896
|
+
},
|
|
2897
|
+
/**
|
|
2898
|
+
* studio/src/components/HistoryIcon.tsx — Material `query_stats`: a chart line under a magnifier.
|
|
2899
|
+
*/
|
|
2900
|
+
history: {
|
|
2901
|
+
viewBox: "0 0 24 24",
|
|
2902
|
+
variant: "fill",
|
|
2903
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58l-3.12-3.11zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6l2.72 4.08zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18l-4.69 7.4z" }) })
|
|
2904
|
+
},
|
|
2905
|
+
/**
|
|
2906
|
+
* studio/src/ui/rail/SettingsTool.tsx (the rail's "Version history" button) — a second glyph for the history MEANING; kept beside `history` under its own name because the two do not look alike.
|
|
2907
|
+
*/
|
|
2908
|
+
clock: {
|
|
2909
|
+
viewBox: "0 0 24 24",
|
|
2910
|
+
variant: "stroke",
|
|
2911
|
+
strokeWidth: 2,
|
|
2912
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2913
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9" }),
|
|
2914
|
+
/* @__PURE__ */ t("polyline", { points: "12 7 12 12 15.5 14" })
|
|
2915
|
+
] })
|
|
2916
|
+
},
|
|
2917
|
+
/**
|
|
2918
|
+
* studio/src/components/JsonToggle.tsx — curly braces, the raw-JSON toggle.
|
|
2919
|
+
*/
|
|
2920
|
+
json: {
|
|
2921
|
+
viewBox: "0 0 24 24",
|
|
2922
|
+
variant: "stroke",
|
|
2923
|
+
strokeWidth: 2,
|
|
2924
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2925
|
+
/* @__PURE__ */ t("path", { d: "M8 3c-1.5 0-2 .8-2 2v3c0 1-.5 1.5-2 1.5v1c1.5 0 2 .5 2 1.5v3c0 1.2.5 2 2 2" }),
|
|
2926
|
+
/* @__PURE__ */ t("path", { d: "M16 3c1.5 0 2 .8 2 2v3c0 1 .5 1.5 2 1.5v1c-1.5 0-2 .5-2 1.5v3c0 1.2-.5 2-2 2" })
|
|
2927
|
+
] })
|
|
2928
|
+
},
|
|
2929
|
+
/**
|
|
2930
|
+
* studio/src/components/CallFromCodeButton.tsx — `< />`; byte-identical to `studio/src/ui/rail/CodeTool.tsx`'s `CodeToolIcon`.
|
|
2931
|
+
*/
|
|
2932
|
+
code: {
|
|
2933
|
+
viewBox: "0 0 24 24",
|
|
2934
|
+
variant: "stroke",
|
|
2935
|
+
strokeWidth: 2,
|
|
2936
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2937
|
+
/* @__PURE__ */ t("polyline", { points: "16 18 22 12 16 6" }),
|
|
2938
|
+
/* @__PURE__ */ t("polyline", { points: "8 6 2 12 8 18" })
|
|
2939
|
+
] })
|
|
2940
|
+
},
|
|
2941
|
+
/**
|
|
2942
|
+
* studio/src/components/SyncButton.tsx — Feather `refresh-cw`; byte-identical to `studio/src/pages/AppsPage.tsx`'s `RefreshIcon`.
|
|
2943
|
+
*/
|
|
2944
|
+
sync: {
|
|
2945
|
+
viewBox: "0 0 24 24",
|
|
2946
|
+
variant: "stroke",
|
|
2947
|
+
strokeWidth: 2,
|
|
2948
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2949
|
+
/* @__PURE__ */ t("polyline", { points: "23 4 23 10 17 10" }),
|
|
2950
|
+
/* @__PURE__ */ t("polyline", { points: "1 20 1 14 7 14" }),
|
|
2951
|
+
/* @__PURE__ */ t("path", { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" })
|
|
2952
|
+
] })
|
|
2953
|
+
},
|
|
2954
|
+
/**
|
|
2955
|
+
* studio/src/pages/AppsPage.tsx — a cloud with a down arrow: "re-fetch fresh from the remote".
|
|
2956
|
+
*/
|
|
2957
|
+
"cloud-download": {
|
|
2958
|
+
viewBox: "0 0 24 24",
|
|
2959
|
+
variant: "stroke",
|
|
2960
|
+
strokeWidth: 2,
|
|
2961
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2962
|
+
/* @__PURE__ */ t("path", { d: "M8 17l4 4 4-4" }),
|
|
2963
|
+
/* @__PURE__ */ t("path", { d: "M12 12v9" }),
|
|
2964
|
+
/* @__PURE__ */ t("path", { d: "M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29" })
|
|
2965
|
+
] })
|
|
2966
|
+
},
|
|
2967
|
+
/**
|
|
2968
|
+
* studio/src/pages/AppsPage.tsx — inspect.
|
|
2969
|
+
*/
|
|
2970
|
+
eye: {
|
|
2971
|
+
viewBox: "0 0 24 24",
|
|
2972
|
+
variant: "stroke",
|
|
2973
|
+
strokeWidth: 2,
|
|
2974
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
2975
|
+
/* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z" }),
|
|
2976
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
|
|
2977
|
+
] })
|
|
2978
|
+
},
|
|
2979
|
+
/**
|
|
2980
|
+
* studio/src/pages/WorkflowsPage.tsx — the run button.
|
|
2981
|
+
*/
|
|
2982
|
+
play: {
|
|
2983
|
+
viewBox: "0 0 24 24",
|
|
2984
|
+
variant: "stroke",
|
|
2985
|
+
strokeWidth: 2,
|
|
2986
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polygon", { points: "5 3 19 12 5 21 5 3" }) })
|
|
2987
|
+
},
|
|
2988
|
+
/**
|
|
2989
|
+
* studio/src/pages/WorkflowsPage.tsx — the stop button's filled square.
|
|
2990
|
+
*/
|
|
2991
|
+
stop: {
|
|
2992
|
+
viewBox: "0 0 24 24",
|
|
2993
|
+
variant: "fill",
|
|
2994
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("rect", { x: "5", y: "5", width: "14", height: "14", rx: "1" }) })
|
|
2995
|
+
},
|
|
2996
|
+
/**
|
|
2997
|
+
* studio/src/ui/rail/ErrorHandlingTool.tsx — Feather `alert-triangle`.
|
|
2998
|
+
*/
|
|
2999
|
+
warning: {
|
|
3000
|
+
viewBox: "0 0 24 24",
|
|
3001
|
+
variant: "stroke",
|
|
3002
|
+
strokeWidth: 2,
|
|
3003
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3004
|
+
/* @__PURE__ */ t("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
3005
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
3006
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
3007
|
+
] })
|
|
3008
|
+
},
|
|
3009
|
+
/**
|
|
3010
|
+
* studio/src/ui/rail/SettingsTool.tsx — a document with text lines (Feather `file-text`), the export/edit-JSON affordance. Distinct from `file` below, which has a folded corner and no lines.
|
|
3011
|
+
*/
|
|
3012
|
+
"file-text": {
|
|
3013
|
+
viewBox: "0 0 24 24",
|
|
3014
|
+
variant: "stroke",
|
|
3015
|
+
strokeWidth: 2,
|
|
3016
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3017
|
+
/* @__PURE__ */ t("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
3018
|
+
/* @__PURE__ */ t("polyline", { points: "14 2 14 8 20 8" }),
|
|
3019
|
+
/* @__PURE__ */ t("line", { x1: "8", y1: "13", x2: "16", y2: "13" }),
|
|
3020
|
+
/* @__PURE__ */ t("line", { x1: "8", y1: "17", x2: "16", y2: "17" })
|
|
3021
|
+
] })
|
|
3022
|
+
},
|
|
3023
|
+
/**
|
|
3024
|
+
* studio/src/components/Layout.tsx — gear; byte-identical to `ui/rail/AliasesTool.tsx`'s and `ui/rail/SettingsTool.tsx`'s own copies.
|
|
3025
|
+
*/
|
|
3026
|
+
settings: {
|
|
3027
|
+
viewBox: "0 0 24 24",
|
|
3028
|
+
variant: "fill",
|
|
3029
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M10.09 2.18h3.82l-.47 2.76 2.53 1.06 1.62-2.29 2.7 2.7-2.29 1.62 1.06 2.53 2.76-.47v3.82l-2.76-.47-1.06 2.53 2.29 1.62-2.7 2.7-1.62-2.29-2.53 1.06.47 2.76h-3.82l.47-2.76-2.53-1.06-1.62 2.29-2.7-2.7 2.29-1.62-1.06-2.53-2.76.47v-3.82l2.76.47 1.06-2.53-2.29-1.62 2.7-2.7 1.62 2.29 2.53-1.06-.47-2.76ZM12 8.8a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4Z" }) })
|
|
3030
|
+
},
|
|
3031
|
+
/**
|
|
3032
|
+
* studio/src/components/Layout.tsx — the GitHub mark; byte-identical to `studio/src/pages/RepositoryPage.tsx`'s `GitHubMark` (which renders it at 16px, the header at 18px — hence `size`).
|
|
3033
|
+
*/
|
|
3034
|
+
github: {
|
|
3035
|
+
viewBox: "0 0 24 24",
|
|
3036
|
+
variant: "fill",
|
|
3037
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 0 0 7.86 10.92c.58.11.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.78 2.72 1.26 3.38.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.51-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.2-1.49 3.17-1.18 3.17-1.18.62 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.15v3.18c0 .31.21.68.8.56A11.5 11.5 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z" }) })
|
|
3038
|
+
},
|
|
3039
|
+
/**
|
|
3040
|
+
* studio/src/components/Layout.tsx — a robot head, the Agents nav item. Separate from `user`.
|
|
3041
|
+
*/
|
|
3042
|
+
bot: {
|
|
3043
|
+
viewBox: "0 0 24 24",
|
|
3044
|
+
variant: "fill",
|
|
3045
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M11 2h2v2h4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h4V2ZM9 9.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM8 15v1.5h8V15H8ZM2 10h1v5H2v-5Zm19 0h1v5h-1v-5Z" }) })
|
|
3046
|
+
},
|
|
3047
|
+
/**
|
|
3048
|
+
* studio/src/components/Layout.tsx — one person, the user chip.
|
|
3049
|
+
*/
|
|
3050
|
+
user: {
|
|
3051
|
+
viewBox: "0 0 24 24",
|
|
3052
|
+
variant: "fill",
|
|
3053
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z" }) })
|
|
3054
|
+
},
|
|
3055
|
+
/**
|
|
3056
|
+
* studio/src/components/Layout.tsx — two overlapping people, the team roster. Deliberately separate from `user`.
|
|
3057
|
+
*/
|
|
3058
|
+
users: {
|
|
3059
|
+
viewBox: "0 0 24 24",
|
|
3060
|
+
variant: "fill",
|
|
3061
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4 0-7 2-7 4.5V20h14v-1.5C16 16 13 14 9 14Zm8.5-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 2c-.7 0-1.36.1-1.96.3 1.2.98 1.96 2.4 1.96 4.2V20h5v-1.5c0-2.2-2.4-4-5-4Z" }) })
|
|
3062
|
+
},
|
|
3063
|
+
/**
|
|
3064
|
+
* studio/src/components/Layout.tsx — an exit door and arrow.
|
|
3065
|
+
*/
|
|
3066
|
+
logout: {
|
|
3067
|
+
viewBox: "0 0 24 24",
|
|
3068
|
+
variant: "fill",
|
|
3069
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M4 3h9v2H6v14h7v2H4V3Zm10.3 4.3 1.4-1.4L21.8 12l-6.1 6.1-1.4-1.4 3.7-3.7H9v-2h9l-3.7-3.7Z" }) })
|
|
3070
|
+
},
|
|
3071
|
+
/**
|
|
3072
|
+
* studio/src/components/SessionButton.tsx — an ID badge for the current session.
|
|
3073
|
+
*/
|
|
3074
|
+
"id-card": {
|
|
3075
|
+
viewBox: "0 0 24 24",
|
|
3076
|
+
variant: "fill",
|
|
3077
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm3 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-3 8c0-2 2-3 3-3s3 1 3 3H4Zm10-8h6v2h-6V8Zm0 4h6v2h-6v-2Z" }) })
|
|
3078
|
+
},
|
|
3079
|
+
/**
|
|
3080
|
+
* studio/src/components/Layout.tsx — 2x2 panels, the account dashboard. Distinct from `grid`, whose four cells are equal.
|
|
3081
|
+
*/
|
|
3082
|
+
dashboard: {
|
|
3083
|
+
viewBox: "0 0 24 24",
|
|
3084
|
+
variant: "fill",
|
|
3085
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M3 3h8v6H3V3Zm0 8h8v10H3V11Zm10 4h8v6h-8v-6Zm0-12h8v10h-8V3Z" }) })
|
|
3086
|
+
},
|
|
3087
|
+
/**
|
|
3088
|
+
* studio/src/components/Layout.tsx — a heartbeat trace, the reliability board.
|
|
3089
|
+
*/
|
|
3090
|
+
pulse: {
|
|
3091
|
+
viewBox: "0 0 24 24",
|
|
3092
|
+
variant: "fill",
|
|
3093
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M2 11h4.4l2-5 3.4 12 3-9 1.8 2H22v2h-6.4l-1-1.2-3.4 10.2-3.4-12-1 3H2v-2Z" }) })
|
|
3094
|
+
},
|
|
3095
|
+
/**
|
|
3096
|
+
* studio/src/components/Layout.tsx — three step boxes and their edges.
|
|
3097
|
+
*/
|
|
3098
|
+
workflow: {
|
|
3099
|
+
viewBox: "0 0 24 24",
|
|
3100
|
+
variant: "fill",
|
|
3101
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M2 3h7v7H2V3Zm13 0h7v7h-7V3ZM9 5.5h6v2H9v-2ZM15 15h7v7h-7v-7Zm2.5-5h2v5h-2v-5Z" }) })
|
|
3102
|
+
},
|
|
3103
|
+
/**
|
|
3104
|
+
* studio/src/components/Layout.tsx — a globe, an Endpoint being a web address. Stroked at 1.75, the rail's own weight.
|
|
3105
|
+
*/
|
|
3106
|
+
globe: {
|
|
3107
|
+
viewBox: "0 0 24 24",
|
|
3108
|
+
variant: "stroke",
|
|
3109
|
+
strokeWidth: 1.75,
|
|
3110
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3111
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9" }),
|
|
3112
|
+
/* @__PURE__ */ t("path", { d: "M3 12h18" }),
|
|
3113
|
+
/* @__PURE__ */ t("path", { d: "M12 3c2.4 2.4 3.8 5.8 3.8 9s-1.4 6.6-3.8 9c-2.4-2.4-3.8-5.8-3.8-9s1.4-6.6 3.8-9Z" })
|
|
3114
|
+
] })
|
|
3115
|
+
},
|
|
3116
|
+
/**
|
|
3117
|
+
* studio/src/components/Layout.tsx — a lambda, reusable functions.
|
|
3118
|
+
*/
|
|
3119
|
+
lambda: {
|
|
3120
|
+
viewBox: "0 0 24 24",
|
|
3121
|
+
variant: "fill",
|
|
3122
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M14 3a3 3 0 0 0-3 3v3H8v2h3v4a1 1 0 0 1-1 1H8v2h2a3 3 0 0 0 3-3v-4h3V9h-3V6a1 1 0 0 1 1-1h2V3h-2Z" }) })
|
|
3123
|
+
},
|
|
3124
|
+
/**
|
|
3125
|
+
* studio/src/components/Layout.tsx — three adjustable tracks (secrets AND variables; a padlock was rejected, it names only the security half). The knob dots are filled over the stroked tracks.
|
|
3126
|
+
*/
|
|
3127
|
+
sliders: {
|
|
3128
|
+
viewBox: "0 0 24 24",
|
|
3129
|
+
variant: "stroke",
|
|
3130
|
+
strokeWidth: 1.75,
|
|
3131
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3132
|
+
/* @__PURE__ */ t("path", { d: "M3 6h9M17 6h4M3 12h4M11 12h10M3 18h13M20 18h1" }),
|
|
3133
|
+
/* @__PURE__ */ t("circle", { cx: "13", cy: "6", r: "2.25", fill: "currentColor", stroke: "none" }),
|
|
3134
|
+
/* @__PURE__ */ t("circle", { cx: "7.5", cy: "12", r: "2.25", fill: "currentColor", stroke: "none" }),
|
|
3135
|
+
/* @__PURE__ */ t("circle", { cx: "16.5", cy: "18", r: "2.25", fill: "currentColor", stroke: "none" })
|
|
3136
|
+
] })
|
|
3137
|
+
},
|
|
3138
|
+
/**
|
|
3139
|
+
* studio/src/components/Layout.tsx — a document with a folded corner, the JSON document store.
|
|
3140
|
+
*/
|
|
3141
|
+
file: {
|
|
3142
|
+
viewBox: "0 0 24 24",
|
|
3143
|
+
variant: "fill",
|
|
3144
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm7 1.5V7h3.5L13 3.5ZM8 12h8v2H8v-2Zm0 4h8v2H8v-2Z" }) })
|
|
3145
|
+
},
|
|
3146
|
+
/**
|
|
3147
|
+
* studio/src/components/Layout.tsx — a power plug, external connections.
|
|
3148
|
+
*/
|
|
3149
|
+
plug: {
|
|
3150
|
+
viewBox: "0 0 24 24",
|
|
3151
|
+
variant: "fill",
|
|
3152
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M8 2h2v4H8V2Zm6 0h2v4h-2V2ZM6 6h12v4a4 4 0 0 1-4 4h-1v5h-2v-5h-1a4 4 0 0 1-4-4V6Z" }) })
|
|
3153
|
+
},
|
|
3154
|
+
/**
|
|
3155
|
+
* studio/src/components/Layout.tsx — 2x2 equal squares, the app catalog.
|
|
3156
|
+
*/
|
|
3157
|
+
grid: {
|
|
3158
|
+
viewBox: "0 0 24 24",
|
|
3159
|
+
variant: "fill",
|
|
3160
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M3 3h8v8H3V3Zm10 0h8v8h-8V3ZM3 13h8v8H3v-8Zm10 0h8v8h-8v-8Z" }) })
|
|
3161
|
+
},
|
|
3162
|
+
/**
|
|
3163
|
+
* studio/src/components/Layout.tsx — stacked folders, projects.
|
|
3164
|
+
*/
|
|
3165
|
+
folder: {
|
|
3166
|
+
viewBox: "0 0 24 24",
|
|
3167
|
+
variant: "fill",
|
|
3168
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M3 5a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2 2v10h14V7H5Z" }) })
|
|
3169
|
+
},
|
|
3170
|
+
/**
|
|
3171
|
+
* studio/src/components/Layout.tsx — a branching line, a bound git repository.
|
|
3172
|
+
*/
|
|
3173
|
+
"git-branch": {
|
|
3174
|
+
viewBox: "0 0 24 24",
|
|
3175
|
+
variant: "stroke",
|
|
3176
|
+
strokeWidth: 2,
|
|
3177
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3178
|
+
/* @__PURE__ */ t("line", { x1: "6", y1: "3", x2: "6", y2: "15" }),
|
|
3179
|
+
/* @__PURE__ */ t("circle", { cx: "18", cy: "6", r: "3" }),
|
|
3180
|
+
/* @__PURE__ */ t("circle", { cx: "6", cy: "18", r: "3" }),
|
|
3181
|
+
/* @__PURE__ */ t("path", { d: "M18 9a9 9 0 0 1-9 9" })
|
|
3182
|
+
] })
|
|
3183
|
+
},
|
|
3184
|
+
/**
|
|
3185
|
+
* studio/src/components/Layout.tsx — a ring, API tokens.
|
|
3186
|
+
*/
|
|
3187
|
+
coin: {
|
|
3188
|
+
viewBox: "0 0 24 24",
|
|
3189
|
+
variant: "fill",
|
|
3190
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12Zm0 3.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z" }) })
|
|
3191
|
+
},
|
|
3192
|
+
/**
|
|
3193
|
+
* studio/src/components/Layout.tsx — a building, tenant administration.
|
|
3194
|
+
*/
|
|
3195
|
+
building: {
|
|
3196
|
+
viewBox: "0 0 24 24",
|
|
3197
|
+
variant: "fill",
|
|
3198
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M5 21V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v17h4v2H3v-2h2Zm2-15v2h2V6H7Zm0 4v2h2v-2H7Zm0 4v2h2v-2H7Zm4-8v2h2V6h-2Zm0 4v2h2v-2h-2Zm0 4v2h2v-2h-2Z" }) })
|
|
3199
|
+
},
|
|
3200
|
+
/**
|
|
3201
|
+
* studio/src/components/Layout.tsx — stacked server units, the Installation panel.
|
|
3202
|
+
*/
|
|
3203
|
+
server: {
|
|
3204
|
+
viewBox: "0 0 24 24",
|
|
3205
|
+
variant: "fill",
|
|
3206
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M4 4h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM4 13h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" }) })
|
|
3207
|
+
},
|
|
3208
|
+
/**
|
|
3209
|
+
* studio/src/components/Layout.tsx — a price tag with a dollar mark, the plan + invoices.
|
|
3210
|
+
*/
|
|
3211
|
+
"price-tag": {
|
|
3212
|
+
viewBox: "0 0 24 24",
|
|
3213
|
+
variant: "fill",
|
|
3214
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12.41 2H4a2 2 0 0 0-2 2v8.41a2 2 0 0 0 .59 1.41l9 9a2 2 0 0 0 2.82 0l7.59-7.59a2 2 0 0 0 0-2.82l-9-9A2 2 0 0 0 12.41 2ZM7 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4.5 8.5-1-1L15 11l1 1-4.5 4.5Z" }) })
|
|
3215
|
+
},
|
|
3216
|
+
/**
|
|
3217
|
+
* studio/src/components/CallFromCodeButton.tsx — the Node mark, named for what it depicts.
|
|
3218
|
+
*/
|
|
3219
|
+
"lang-node": {
|
|
3220
|
+
viewBox: "0 0 24 24",
|
|
3221
|
+
variant: "mixed",
|
|
3222
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3223
|
+
/* @__PURE__ */ t("title", { children: "Node" }),
|
|
3224
|
+
/* @__PURE__ */ t(
|
|
3225
|
+
"path",
|
|
3226
|
+
{
|
|
3227
|
+
d: "M12 2.4 20.4 7.2v9.6L12 21.6 3.6 16.8V7.2z",
|
|
3228
|
+
fill: "none",
|
|
3229
|
+
stroke: "currentColor",
|
|
3230
|
+
strokeWidth: "1.6",
|
|
3231
|
+
strokeLinejoin: "round"
|
|
3232
|
+
}
|
|
3233
|
+
),
|
|
3234
|
+
/* @__PURE__ */ t(
|
|
3235
|
+
"path",
|
|
3236
|
+
{
|
|
3237
|
+
d: "M9.4 15.4V8.9l5.2 6.2V8.6",
|
|
3238
|
+
fill: "none",
|
|
3239
|
+
stroke: "currentColor",
|
|
3240
|
+
strokeWidth: "1.6",
|
|
3241
|
+
strokeLinecap: "round",
|
|
3242
|
+
strokeLinejoin: "round"
|
|
3243
|
+
}
|
|
3244
|
+
)
|
|
3245
|
+
] })
|
|
3246
|
+
},
|
|
3247
|
+
/**
|
|
3248
|
+
* studio/src/components/CallFromCodeButton.tsx — a terminal with a `>_` prompt, the CLI tab.
|
|
3249
|
+
*/
|
|
3250
|
+
terminal: {
|
|
3251
|
+
viewBox: "0 0 24 24",
|
|
3252
|
+
variant: "mixed",
|
|
3253
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3254
|
+
/* @__PURE__ */ t("title", { children: "CLI" }),
|
|
3255
|
+
/* @__PURE__ */ t(
|
|
3256
|
+
"rect",
|
|
3257
|
+
{
|
|
3258
|
+
x: "2.6",
|
|
3259
|
+
y: "4.4",
|
|
3260
|
+
width: "18.8",
|
|
3261
|
+
height: "15.2",
|
|
3262
|
+
rx: "2.2",
|
|
3263
|
+
fill: "none",
|
|
3264
|
+
stroke: "currentColor",
|
|
3265
|
+
strokeWidth: "1.6"
|
|
3266
|
+
}
|
|
3267
|
+
),
|
|
3268
|
+
/* @__PURE__ */ t(
|
|
3269
|
+
"polyline",
|
|
3270
|
+
{
|
|
3271
|
+
points: "6.8 9.6 9.8 12 6.8 14.4",
|
|
3272
|
+
fill: "none",
|
|
3273
|
+
stroke: "currentColor",
|
|
3274
|
+
strokeWidth: "1.6",
|
|
3275
|
+
strokeLinecap: "round",
|
|
3276
|
+
strokeLinejoin: "round"
|
|
3277
|
+
}
|
|
3278
|
+
),
|
|
3279
|
+
/* @__PURE__ */ t(
|
|
3280
|
+
"line",
|
|
3281
|
+
{
|
|
3282
|
+
x1: "12.4",
|
|
3283
|
+
y1: "15",
|
|
3284
|
+
x2: "17",
|
|
3285
|
+
y2: "15",
|
|
3286
|
+
stroke: "currentColor",
|
|
3287
|
+
strokeWidth: "1.6",
|
|
3288
|
+
strokeLinecap: "round"
|
|
3289
|
+
}
|
|
3290
|
+
)
|
|
3291
|
+
] })
|
|
3292
|
+
},
|
|
3293
|
+
/**
|
|
3294
|
+
* studio/src/components/CallFromCodeButton.tsx — the Python mark (see `PythonEyes` below, which owns its mask id).
|
|
3295
|
+
*/
|
|
3296
|
+
"lang-python": {
|
|
3297
|
+
viewBox: "0 0 24 24",
|
|
3298
|
+
variant: "mixed",
|
|
3299
|
+
body: /* @__PURE__ */ t(Ft, {})
|
|
3300
|
+
},
|
|
3301
|
+
/**
|
|
3302
|
+
* studio/src/components/CallFromCodeButton.tsx — curl's swoosh over a request in flight.
|
|
3303
|
+
*/
|
|
3304
|
+
"lang-curl": {
|
|
3305
|
+
viewBox: "0 0 24 24",
|
|
3306
|
+
variant: "mixed",
|
|
3307
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3308
|
+
/* @__PURE__ */ t("title", { children: "curl" }),
|
|
3309
|
+
/* @__PURE__ */ t(
|
|
3310
|
+
"path",
|
|
3311
|
+
{
|
|
3312
|
+
d: "M3 15.5c2.4 0 3.6-2.2 5.1-4.6C9.8 8.2 11.3 5.5 14 5.5c2.6 0 4 2 4 4.2 0 2.1-1.4 3.6-3.2 3.6-1.5 0-2.5-1-2.5-2.2 0-1.1.8-1.9 1.8-1.9",
|
|
3313
|
+
fill: "none",
|
|
3314
|
+
stroke: "currentColor",
|
|
3315
|
+
strokeWidth: "1.7",
|
|
3316
|
+
strokeLinecap: "round"
|
|
3317
|
+
}
|
|
3318
|
+
),
|
|
3319
|
+
/* @__PURE__ */ t("circle", { cx: "4.4", cy: "18.6", r: "1.5", fill: "currentColor" }),
|
|
3320
|
+
/* @__PURE__ */ t("circle", { cx: "20", cy: "18.6", r: "1.5", fill: "currentColor" }),
|
|
3321
|
+
/* @__PURE__ */ t(
|
|
3322
|
+
"line",
|
|
3323
|
+
{
|
|
3324
|
+
x1: "7.4",
|
|
3325
|
+
y1: "18.6",
|
|
3326
|
+
x2: "17",
|
|
3327
|
+
y2: "18.6",
|
|
3328
|
+
stroke: "currentColor",
|
|
3329
|
+
strokeWidth: "1.7",
|
|
3330
|
+
strokeLinecap: "round",
|
|
3331
|
+
strokeDasharray: "0.1 3.6"
|
|
3332
|
+
}
|
|
3333
|
+
)
|
|
3334
|
+
] })
|
|
3335
|
+
},
|
|
3336
|
+
/**
|
|
3337
|
+
* studio/src/components/Layout.tsx's theme toggle — the three glyphs that
|
|
3338
|
+
* button draws for its three states. It used to draw the text characters
|
|
3339
|
+
* `◐`/`☀︎`/`☾`, which no shared set can hold: a text glyph is not a drawn
|
|
3340
|
+
* shape, and `IconButton` names its glyph instead. Feather-style outline
|
|
3341
|
+
* (`strokeWidth` 2, like the rest of the Feather-derived entries) so all
|
|
3342
|
+
* three read as one family at 16px. `circle-half`'s filled half is the
|
|
3343
|
+
* "system" state — half light, half dark.
|
|
3344
|
+
*/
|
|
3345
|
+
sun: {
|
|
3346
|
+
viewBox: "0 0 24 24",
|
|
3347
|
+
variant: "stroke",
|
|
3348
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3349
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "5" }),
|
|
3350
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "1", x2: "12", y2: "3" }),
|
|
3351
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
|
|
3352
|
+
/* @__PURE__ */ t("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }),
|
|
3353
|
+
/* @__PURE__ */ t("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }),
|
|
3354
|
+
/* @__PURE__ */ t("line", { x1: "1", y1: "12", x2: "3", y2: "12" }),
|
|
3355
|
+
/* @__PURE__ */ t("line", { x1: "21", y1: "12", x2: "23", y2: "12" }),
|
|
3356
|
+
/* @__PURE__ */ t("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }),
|
|
3357
|
+
/* @__PURE__ */ t("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })
|
|
3358
|
+
] })
|
|
3359
|
+
},
|
|
3360
|
+
moon: {
|
|
3361
|
+
viewBox: "0 0 24 24",
|
|
3362
|
+
variant: "stroke",
|
|
3363
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79Z" }) })
|
|
3364
|
+
},
|
|
3365
|
+
"circle-half": {
|
|
3366
|
+
viewBox: "0 0 24 24",
|
|
3367
|
+
variant: "mixed",
|
|
3368
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3369
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
3370
|
+
/* @__PURE__ */ t("path", { d: "M12 3a9 9 0 0 1 0 18V3Z", fill: "currentColor" })
|
|
3371
|
+
] })
|
|
3372
|
+
},
|
|
3373
|
+
/**
|
|
3374
|
+
* ui/src/WorkflowFlowEditor.tsx's `AutoLayoutIcon` — the auto-layout control's
|
|
3375
|
+
* three-box hierarchy (one parent over two children), on a `0 0 24 24` box.
|
|
3376
|
+
*
|
|
3377
|
+
* `mixed` — rooted in the "the root adds NO paint" half of that variant, which
|
|
3378
|
+
* this glyph needs literally: its source `<svg>` carried no paint attribute at
|
|
3379
|
+
* all, and neither does its path, so a `fill="currentColor"` on the root would
|
|
3380
|
+
* NOT be the source's markup and a `fill="none" stroke=…` root would render
|
|
3381
|
+
* NOTHING at all here. The colour comes from the context — the path sits inside
|
|
3382
|
+
* a `@xyflow/react` control button whose `svg { fill: currentColor }` paints it
|
|
3383
|
+
* (`@xyflow/react/dist/style.css`), exactly as it does today.
|
|
3384
|
+
*/
|
|
3385
|
+
layout: {
|
|
3386
|
+
viewBox: "0 0 24 24",
|
|
3387
|
+
variant: "mixed",
|
|
3388
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M9 3h6v6H9zM11 9h2v2h-2zM4 11h16v2H4zM4 13h2v2H4zM18 13h2v2h-2zM2 15h6v6H2zM16 15h6v6h-6z" }) })
|
|
3389
|
+
},
|
|
3390
|
+
/**
|
|
3391
|
+
* ui/src/WorkflowFlowEditor.tsx's node-toolbar "Test-run this step" button — a
|
|
3392
|
+
* play triangle, but NOT `play` above: its points are its own (14 wide × 16
|
|
3393
|
+
* tall against `play`'s 14 × 18), so it keeps its own entry rather than being
|
|
3394
|
+
* redrawn to match.
|
|
3395
|
+
*/
|
|
3396
|
+
run: {
|
|
3397
|
+
viewBox: "0 0 24 24",
|
|
3398
|
+
variant: "stroke",
|
|
3399
|
+
strokeWidth: 2,
|
|
3400
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polygon", { points: "6 4 20 12 6 20 6 4" }) })
|
|
3401
|
+
},
|
|
3402
|
+
/**
|
|
3403
|
+
* ui/src/WorkflowFlowEditor.tsx's node-toolbar pause toggle — Feather `pause`
|
|
3404
|
+
* (two bars): a test run started from ▶ stops before a paused node.
|
|
3405
|
+
*/
|
|
3406
|
+
pause: {
|
|
3407
|
+
viewBox: "0 0 24 24",
|
|
3408
|
+
variant: "stroke",
|
|
3409
|
+
strokeWidth: 2,
|
|
3410
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3411
|
+
/* @__PURE__ */ t("rect", { x: "6", y: "4", width: "4", height: "16" }),
|
|
3412
|
+
/* @__PURE__ */ t("rect", { x: "14", y: "4", width: "4", height: "16" })
|
|
3413
|
+
] })
|
|
3414
|
+
},
|
|
3415
|
+
/**
|
|
3416
|
+
* ui/src/WorkflowFlowEditor.tsx's node-toolbar disable toggle — Feather `slash`
|
|
3417
|
+
* (a circle with a diagonal line): a disabled node is skipped in every run.
|
|
3418
|
+
*/
|
|
3419
|
+
ban: {
|
|
3420
|
+
viewBox: "0 0 24 24",
|
|
3421
|
+
variant: "stroke",
|
|
3422
|
+
strokeWidth: 2,
|
|
3423
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3424
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
|
|
3425
|
+
/* @__PURE__ */ t("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
3426
|
+
] })
|
|
3427
|
+
},
|
|
3428
|
+
/**
|
|
3429
|
+
* ui/src/WorkflowFlowEditor.tsx's node-toolbar delete button — Feather `trash`
|
|
3430
|
+
* (lid + body, no inner lines); distinct from `delete` above, which is the
|
|
3431
|
+
* fuller 4-shape `trash-2`.
|
|
3432
|
+
*/
|
|
3433
|
+
trash: {
|
|
3434
|
+
viewBox: "0 0 24 24",
|
|
3435
|
+
variant: "stroke",
|
|
3436
|
+
strokeWidth: 2,
|
|
3437
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3438
|
+
/* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
|
|
3439
|
+
/* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
3440
|
+
] })
|
|
3441
|
+
},
|
|
3442
|
+
/**
|
|
3443
|
+
* ui/src/ParamsForm.tsx's JSON field — "Open in full view": Feather
|
|
3444
|
+
* `maximize-2`, the two diagonal expand arrows.
|
|
3445
|
+
*/
|
|
3446
|
+
maximize: {
|
|
3447
|
+
viewBox: "0 0 24 24",
|
|
3448
|
+
variant: "stroke",
|
|
3449
|
+
strokeWidth: 2,
|
|
3450
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3451
|
+
/* @__PURE__ */ t("polyline", { points: "15 3 21 3 21 9" }),
|
|
3452
|
+
/* @__PURE__ */ t("polyline", { points: "9 21 3 21 3 15" }),
|
|
3453
|
+
/* @__PURE__ */ t("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
|
|
3454
|
+
/* @__PURE__ */ t("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
3455
|
+
] })
|
|
3456
|
+
},
|
|
3457
|
+
/**
|
|
3458
|
+
* ui/src/StepBuilderModal.tsx's `CONFIG_VIEW_GLYPHS.props` — a bordered panel
|
|
3459
|
+
* with three text lines: the step's field form. Distinct from `file-text`,
|
|
3460
|
+
* which is a document with a folded corner.
|
|
3461
|
+
*/
|
|
3462
|
+
form: {
|
|
3463
|
+
viewBox: "0 0 24 24",
|
|
3464
|
+
variant: "stroke",
|
|
3465
|
+
strokeWidth: 2,
|
|
3466
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3467
|
+
/* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
3468
|
+
/* @__PURE__ */ t("line", { x1: "7", y1: "8", x2: "17", y2: "8" }),
|
|
3469
|
+
/* @__PURE__ */ t("line", { x1: "7", y1: "12", x2: "17", y2: "12" }),
|
|
3470
|
+
/* @__PURE__ */ t("line", { x1: "7", y1: "16", x2: "13", y2: "16" })
|
|
3471
|
+
] })
|
|
3472
|
+
},
|
|
3473
|
+
/**
|
|
3474
|
+
* ui/src/StepBuilderModal.tsx's `CONFIG_VIEW_GLYPHS["params-code"]` — square
|
|
3475
|
+
* braces, the params as a VALUE. A second glyph for the braces meaning beside
|
|
3476
|
+
* `json` (whose curved `<path>` braces it does not share); its own name rather
|
|
3477
|
+
* than a redraw, so the two views stay tellable apart at 15px.
|
|
3478
|
+
*/
|
|
3479
|
+
braces: {
|
|
3480
|
+
viewBox: "0 0 24 24",
|
|
3481
|
+
variant: "stroke",
|
|
3482
|
+
strokeWidth: 2,
|
|
3483
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3484
|
+
/* @__PURE__ */ t("polyline", { points: "9 4 7 4 7 10 5 12 7 14 7 20 9 20" }),
|
|
3485
|
+
/* @__PURE__ */ t("polyline", { points: "15 4 17 4 17 10 19 12 17 14 17 20 15 20" })
|
|
3486
|
+
] })
|
|
3487
|
+
},
|
|
3488
|
+
/**
|
|
3489
|
+
* ui/src/StepBuilderModal.tsx's `CONFIG_VIEW_GLYPHS.config` — Feather
|
|
3490
|
+
* `settings`, the node-settings gear. Distinct from `settings` above (the
|
|
3491
|
+
* filled Material gear Layout.tsx draws): this one is the stroked outline.
|
|
3492
|
+
*/
|
|
3493
|
+
"settings-2": {
|
|
3494
|
+
viewBox: "0 0 24 24",
|
|
3495
|
+
variant: "stroke",
|
|
3496
|
+
strokeWidth: 2,
|
|
3497
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3498
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" }),
|
|
3499
|
+
/* @__PURE__ */ t("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
3500
|
+
] })
|
|
3501
|
+
},
|
|
3502
|
+
/**
|
|
3503
|
+
* ui/src/WorkflowFlowEditor.tsx's "Add note" canvas button — a sheet with a
|
|
3504
|
+
* folded corner (Lucide `sticky-note`). Drawn here, not copied from a studio
|
|
3505
|
+
* site: the canvas toolbar is its first and only user.
|
|
3506
|
+
*/
|
|
3507
|
+
"sticky-note": {
|
|
3508
|
+
viewBox: "0 0 24 24",
|
|
3509
|
+
variant: "stroke",
|
|
3510
|
+
strokeWidth: 2,
|
|
3511
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3512
|
+
/* @__PURE__ */ t("path", { d: "M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z" }),
|
|
3513
|
+
/* @__PURE__ */ t("path", { d: "M15 3v4a2 2 0 0 0 2 2h4" })
|
|
3514
|
+
] })
|
|
3515
|
+
},
|
|
3516
|
+
/**
|
|
3517
|
+
* ui/src/WorkflowFlowEditor.tsx's "Draw section" canvas tool — four crossing
|
|
3518
|
+
* lines marking out a frame (Feather/Lucide `frame`). Drawn here; first user.
|
|
3519
|
+
*/
|
|
3520
|
+
frame: {
|
|
3521
|
+
viewBox: "0 0 24 24",
|
|
3522
|
+
variant: "stroke",
|
|
3523
|
+
strokeWidth: 2,
|
|
3524
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3525
|
+
/* @__PURE__ */ t("line", { x1: "22", y1: "6", x2: "2", y2: "6" }),
|
|
3526
|
+
/* @__PURE__ */ t("line", { x1: "22", y1: "18", x2: "2", y2: "18" }),
|
|
3527
|
+
/* @__PURE__ */ t("line", { x1: "6", y1: "2", x2: "6", y2: "22" }),
|
|
3528
|
+
/* @__PURE__ */ t("line", { x1: "18", y1: "2", x2: "18", y2: "22" })
|
|
3529
|
+
] })
|
|
3530
|
+
},
|
|
3531
|
+
/**
|
|
3532
|
+
* ui/src/CanvasLayer.tsx's note toolbar — Feather `bold`. Drawn here; first user.
|
|
3533
|
+
*/
|
|
3534
|
+
bold: {
|
|
3535
|
+
viewBox: "0 0 24 24",
|
|
3536
|
+
variant: "stroke",
|
|
3537
|
+
strokeWidth: 2.5,
|
|
3538
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3539
|
+
/* @__PURE__ */ t("path", { d: "M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z" }),
|
|
3540
|
+
/* @__PURE__ */ t("path", { d: "M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z" })
|
|
3541
|
+
] })
|
|
3542
|
+
},
|
|
3543
|
+
/**
|
|
3544
|
+
* ui/src/CanvasLayer.tsx's note drag handle — two columns of three dots
|
|
3545
|
+
* (Lucide `grip-vertical`). Drawn here; first user.
|
|
3546
|
+
*/
|
|
3547
|
+
grip: {
|
|
3548
|
+
viewBox: "0 0 24 24",
|
|
3549
|
+
variant: "stroke",
|
|
3550
|
+
strokeWidth: 2,
|
|
3551
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3552
|
+
/* @__PURE__ */ t("circle", { cx: "9", cy: "12", r: "1" }),
|
|
3553
|
+
/* @__PURE__ */ t("circle", { cx: "9", cy: "5", r: "1" }),
|
|
3554
|
+
/* @__PURE__ */ t("circle", { cx: "9", cy: "19", r: "1" }),
|
|
3555
|
+
/* @__PURE__ */ t("circle", { cx: "15", cy: "12", r: "1" }),
|
|
3556
|
+
/* @__PURE__ */ t("circle", { cx: "15", cy: "5", r: "1" }),
|
|
3557
|
+
/* @__PURE__ */ t("circle", { cx: "15", cy: "19", r: "1" })
|
|
3558
|
+
] })
|
|
3559
|
+
},
|
|
3560
|
+
/**
|
|
3561
|
+
* ui/src/CanvasLayer.tsx's note toolbar menus — Feather `chevron-down`.
|
|
3562
|
+
* Drawn here; first user.
|
|
3563
|
+
*/
|
|
3564
|
+
"chevron-down": {
|
|
3565
|
+
viewBox: "0 0 24 24",
|
|
3566
|
+
variant: "stroke",
|
|
3567
|
+
strokeWidth: 2,
|
|
3568
|
+
body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" }) })
|
|
3569
|
+
},
|
|
3570
|
+
/**
|
|
3571
|
+
* The workflow toolbar's State button (embed `WorkflowEditor.tsx`) — Feather `database`, a
|
|
3572
|
+
* stack of records: the run's state tree.
|
|
3573
|
+
*/
|
|
3574
|
+
database: {
|
|
3575
|
+
viewBox: "0 0 24 24",
|
|
3576
|
+
variant: "stroke",
|
|
3577
|
+
strokeWidth: 2,
|
|
3578
|
+
body: /* @__PURE__ */ x(h, { children: [
|
|
3579
|
+
/* @__PURE__ */ t("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
|
|
3580
|
+
/* @__PURE__ */ t("path", { d: "M21 12c0 1.66-4 3-9 3s-9-1.34-9-3" }),
|
|
3581
|
+
/* @__PURE__ */ t("path", { d: "M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5" })
|
|
3582
|
+
] })
|
|
3583
|
+
}
|
|
3584
|
+
}, Mt = Object.keys(ye);
|
|
3585
|
+
function Tt(e) {
|
|
3586
|
+
return e.variant === "fill" ? { fill: "currentColor" } : e.variant === "stroke" ? {
|
|
3587
|
+
fill: "none",
|
|
3588
|
+
stroke: "currentColor",
|
|
3589
|
+
strokeWidth: e.strokeWidth ?? 2,
|
|
3590
|
+
strokeLinecap: "round",
|
|
3591
|
+
strokeLinejoin: "round"
|
|
3592
|
+
} : {};
|
|
3593
|
+
}
|
|
3594
|
+
function fe(e) {
|
|
3595
|
+
const { name: a, size: r = 16, label: l, className: u } = e, k = ye[a], p = !!l;
|
|
3596
|
+
return /* @__PURE__ */ t(
|
|
3597
|
+
"svg",
|
|
3598
|
+
{
|
|
3599
|
+
className: ["w6w-icon", u ?? ""].filter(Boolean).join(" "),
|
|
3600
|
+
width: r,
|
|
3601
|
+
height: r,
|
|
3602
|
+
viewBox: k.viewBox,
|
|
3603
|
+
...Tt(k),
|
|
3604
|
+
role: p ? "img" : void 0,
|
|
3605
|
+
"aria-label": p ? l : void 0,
|
|
3606
|
+
"aria-hidden": p ? void 0 : "true",
|
|
3607
|
+
focusable: p ? void 0 : "false",
|
|
3608
|
+
children: k.body
|
|
3609
|
+
}
|
|
3610
|
+
);
|
|
3611
|
+
}
|
|
3612
|
+
const be = 1500;
|
|
3613
|
+
function Rt(e, a = be) {
|
|
3614
|
+
const [r, l] = we(!1), u = se(null);
|
|
3615
|
+
ie(() => () => {
|
|
3616
|
+
u.current !== null && clearTimeout(u.current);
|
|
3617
|
+
}, []);
|
|
3618
|
+
const k = j(async () => {
|
|
3619
|
+
var p;
|
|
3620
|
+
try {
|
|
3621
|
+
await ((p = navigator.clipboard) == null ? void 0 : p.writeText(e)), l(!0), u.current !== null && clearTimeout(u.current), u.current = setTimeout(() => l(!1), a);
|
|
3622
|
+
} catch {
|
|
3623
|
+
}
|
|
3624
|
+
}, [e, a]);
|
|
3625
|
+
return { copied: r, copy: k };
|
|
3626
|
+
}
|
|
3627
|
+
function Lt() {
|
|
3628
|
+
return /* @__PURE__ */ t(fe, { name: "copy", size: 14 });
|
|
3629
|
+
}
|
|
3630
|
+
function Bt() {
|
|
3631
|
+
return /* @__PURE__ */ t(fe, { name: "check", size: 14 });
|
|
3632
|
+
}
|
|
3633
|
+
function It(e) {
|
|
3634
|
+
const {
|
|
3635
|
+
value: a,
|
|
3636
|
+
copiedMs: r = be,
|
|
3637
|
+
readOnly: l = !1,
|
|
3638
|
+
label: u = "Copy",
|
|
3639
|
+
className: k,
|
|
3640
|
+
children: p
|
|
3641
|
+
} = e, { copied: v, copy: g } = Rt(a, r), f = se(null), m = j(() => {
|
|
3642
|
+
var w;
|
|
3643
|
+
const d = (w = f.current) == null ? void 0 : w.querySelector("input, textarea");
|
|
3644
|
+
d == null || d.select();
|
|
3645
|
+
}, []);
|
|
3646
|
+
return ie(() => {
|
|
3647
|
+
if (!l) return;
|
|
3648
|
+
const d = f.current;
|
|
3649
|
+
if (!d) return;
|
|
3650
|
+
const w = (A) => {
|
|
3651
|
+
var i;
|
|
3652
|
+
const n = A.target;
|
|
3653
|
+
if ((i = n == null ? void 0 : n.closest) != null && i.call(n, "button")) return;
|
|
3654
|
+
const o = window.getSelection();
|
|
3655
|
+
o && !o.isCollapsed && d.contains(o.anchorNode) || (g(), m());
|
|
3656
|
+
};
|
|
3657
|
+
return d.addEventListener("click", w), () => d.removeEventListener("click", w);
|
|
3658
|
+
}, [l, g, m]), /* @__PURE__ */ x("div", { ref: f, className: ["w6w-copyable", k ?? ""].filter(Boolean).join(" "), children: [
|
|
3659
|
+
p,
|
|
3660
|
+
/* @__PURE__ */ t(
|
|
3661
|
+
"button",
|
|
3662
|
+
{
|
|
3663
|
+
type: "button",
|
|
3664
|
+
className: `w6w-icon-btn w6w-copyable-btn${v ? " is-copied" : ""}`,
|
|
3665
|
+
"aria-label": u,
|
|
3666
|
+
onClick: () => void g(),
|
|
3667
|
+
children: v ? /* @__PURE__ */ t(Bt, {}) : /* @__PURE__ */ t(Lt, {})
|
|
3668
|
+
}
|
|
3669
|
+
),
|
|
3670
|
+
/* @__PURE__ */ t("span", { className: "w6w-copyable-status", "aria-live": "polite", children: v ? "Copied" : "" })
|
|
3671
|
+
] });
|
|
3672
|
+
}
|
|
3673
|
+
const Ct = {
|
|
2799
3674
|
comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 },
|
|
2800
3675
|
// Before `string`, so the `\` ending a continued line never opens one.
|
|
2801
3676
|
continuation: { pattern: /\\$/m, alias: "punctuation" },
|
|
@@ -2812,8 +3687,8 @@ const vt = {
|
|
|
2812
3687
|
operator: /\|\||&&|[|&;<>]/,
|
|
2813
3688
|
punctuation: /[{}[\]()]/
|
|
2814
3689
|
};
|
|
2815
|
-
|
|
2816
|
-
const
|
|
3690
|
+
s.languages.shell || (s.languages.shell = Ct, s.languages.bash = s.languages.shell, s.languages.sh = s.languages.shell);
|
|
3691
|
+
const Ot = {
|
|
2817
3692
|
plain: { color: "var(--w6w-text)", backgroundColor: "transparent" },
|
|
2818
3693
|
styles: [
|
|
2819
3694
|
{
|
|
@@ -2842,48 +3717,54 @@ const wt = {
|
|
|
2842
3717
|
{ types: ["regex", "important"], style: { color: "var(--w6w-code-number)" } }
|
|
2843
3718
|
]
|
|
2844
3719
|
};
|
|
2845
|
-
function
|
|
3720
|
+
function $t(e) {
|
|
2846
3721
|
const {
|
|
2847
|
-
code:
|
|
2848
|
-
language:
|
|
3722
|
+
code: a,
|
|
3723
|
+
language: r = "plaintext",
|
|
2849
3724
|
wrap: l,
|
|
2850
|
-
showLineNumbers:
|
|
2851
|
-
maxHeight:
|
|
3725
|
+
showLineNumbers: u,
|
|
3726
|
+
maxHeight: k,
|
|
2852
3727
|
className: p,
|
|
2853
|
-
copyable:
|
|
3728
|
+
copyable: v = !0,
|
|
2854
3729
|
copiedMs: g
|
|
2855
|
-
} = e,
|
|
2856
|
-
return /* @__PURE__ */
|
|
2857
|
-
const
|
|
3730
|
+
} = e, f = a.replace(/\n+$/, "");
|
|
3731
|
+
return /* @__PURE__ */ t(_t, { theme: Ot, code: f, language: r, children: ({ className: m, style: d, tokens: w, getLineProps: A, getTokenProps: n }) => {
|
|
3732
|
+
const o = /* @__PURE__ */ t(
|
|
2858
3733
|
"pre",
|
|
2859
3734
|
{
|
|
2860
3735
|
className: [
|
|
2861
3736
|
"w6w-code-block",
|
|
2862
3737
|
l ? "w6w-code-block--wrap" : "",
|
|
2863
|
-
|
|
2864
|
-
|
|
3738
|
+
u ? "w6w-code-block--numbered" : "",
|
|
3739
|
+
m,
|
|
2865
3740
|
p ?? ""
|
|
2866
3741
|
].filter(Boolean).join(" "),
|
|
2867
|
-
style: { ...
|
|
2868
|
-
"aria-label": e["aria-label"] ?? `${
|
|
2869
|
-
children: /* @__PURE__ */
|
|
2870
|
-
let
|
|
2871
|
-
return
|
|
2872
|
-
const
|
|
2873
|
-
let
|
|
2874
|
-
const
|
|
2875
|
-
const
|
|
2876
|
-
return
|
|
3742
|
+
style: { ...d, ...k ? { maxHeight: k, overflowY: "auto" } : null },
|
|
3743
|
+
"aria-label": e["aria-label"] ?? `${r} code`,
|
|
3744
|
+
children: /* @__PURE__ */ t("code", { children: (() => {
|
|
3745
|
+
let i = 0;
|
|
3746
|
+
return w.map((y, c) => {
|
|
3747
|
+
const b = A({ line: y }), E = `w6w-code-line ${b.className ?? ""}`, S = `L${i}`;
|
|
3748
|
+
let F = i;
|
|
3749
|
+
const _ = y.map((T, R) => {
|
|
3750
|
+
const O = n({ token: T }), I = `T${F}-${R}`;
|
|
3751
|
+
return F += T.content.length, /* @__PURE__ */ Q("span", { ...O, key: I });
|
|
2877
3752
|
});
|
|
2878
|
-
return
|
|
3753
|
+
return i = F + 1, /* @__PURE__ */ Q("span", { ...b, key: S, className: E }, u && /* @__PURE__ */ t("span", { className: "w6w-code-line-no", "aria-hidden": "true", children: c + 1 }), /* @__PURE__ */ t("span", { className: "w6w-code-line-text", children: _ }));
|
|
2879
3754
|
});
|
|
2880
3755
|
})() })
|
|
2881
3756
|
}
|
|
2882
3757
|
);
|
|
2883
|
-
return
|
|
3758
|
+
return v ? /* @__PURE__ */ t(It, { value: f, copiedMs: g, readOnly: !0, children: o }) : o;
|
|
2884
3759
|
} });
|
|
2885
3760
|
}
|
|
2886
3761
|
export {
|
|
2887
|
-
|
|
3762
|
+
$t as C,
|
|
3763
|
+
fe as I,
|
|
3764
|
+
It as a,
|
|
3765
|
+
Bt as b,
|
|
3766
|
+
Lt as c,
|
|
3767
|
+
Mt as i,
|
|
3768
|
+
Rt as u
|
|
2888
3769
|
};
|
|
2889
|
-
//# sourceMappingURL=CodeBlock-
|
|
3770
|
+
//# sourceMappingURL=CodeBlock-C-oIIYfC.js.map
|