@fldr/ui 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +18 -18
- package/dist/chunks/{code-nj2nu6qzxhz6qnkk.js → code-hp2x28uiufmk3elz.js} +2 -4
- package/dist/chunks/highlighter-mouttug0tu8xg1i8.js +1364 -0
- package/dist/code/server.d.ts +4 -89
- package/dist/code/server.js +3 -136
- package/dist/code.d.ts +53 -70
- package/dist/code.js +186 -327
- package/dist/command-line/cli.js +0 -0
- package/dist/command-line/commands/add.js +0 -0
- package/dist/command-line/commands/ai.js +0 -0
- package/dist/command-line/commands/blocks.js +0 -0
- package/dist/command-line/commands/doc.js +0 -0
- package/dist/command-line/commands/init.js +0 -0
- package/dist/command-line/commands/ls.js +0 -0
- package/dist/components/code.d.ts +1 -1
- package/dist/components/code.js +1 -1
- package/dist/highlighter-BT3TakhJ.d.ts +13 -0
- package/dist/{index-B9niVl3r.d.ts → index-CNL6VDYZ.d.ts} +2 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/kumo-binding.css +1 -0
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +20 -38
- package/dist/styles/theme-code.css +142 -0
- package/dist/styles/theme-fldr.css +429 -15
- package/dist/theming.d.ts +71 -32
- package/dist/theming.js +162 -17
- package/package.json +2 -4
- package/scripts/css-build.ts +1 -0
- package/scripts/publish-fldr.ts +62 -10
- package/scripts/theme-generator/index.ts +15 -5
- package/dist/chunks/bash-jpzh6zbf5237424t.js +0 -3
- package/dist/chunks/core-n0de50o00ej2ecfe.js +0 -7177
- package/dist/chunks/css-j501gxq1am2gnikh.js +0 -4
- package/dist/chunks/diff-g2re0kj6fh27rgg5.js +0 -4
- package/dist/chunks/engine-javascript-e9xj8hhz9xfqhpnu.js +0 -3118
- package/dist/chunks/engine-oniguruma-ias56ildu01gf939.js +0 -389
- package/dist/chunks/github-light-hir7yctc38258pwt.js +0 -5
- package/dist/chunks/graphql-n9vlzkvcp2j19p7a.js +0 -16
- package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +0 -4
- package/dist/chunks/html-nimj6ljkkifnc9ni.js +0 -12
- package/dist/chunks/javascript-b6fq9bl50fdj6813.js +0 -4
- package/dist/chunks/json-h2g0z143t3cs13d7.js +0 -4
- package/dist/chunks/jsonc-jxlzvingck161eej.js +0 -4
- package/dist/chunks/jsx-jp7a33937sef92sn.js +0 -4
- package/dist/chunks/markdown-eybeqjr58vfygtz1.js +0 -4
- package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +0 -4
- package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +0 -4
- package/dist/chunks/sql-hqp2eekl7qhmxe92.js +0 -4
- package/dist/chunks/toml-oyqrgosuct25x413.js +0 -4
- package/dist/chunks/tsx-pem8x69upvmibv6l.js +0 -4
- package/dist/chunks/typescript-pe5y016phdwbgws7.js +0 -4
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +0 -5
- package/dist/chunks/wasm-cpasy0o9lsjrm39j.js +0 -8
- package/dist/chunks/yaml-kzk5ddyekbyha04v.js +0 -4
- package/dist/types-C6in2C8V.d.ts +0 -135
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@shikijs+engine-oniguruma@4.3.1/node_modules/@shikijs/engine-oniguruma/dist/index.mjs
|
|
3
|
-
var ShikiError = class extends Error {
|
|
4
|
-
constructor(message) {
|
|
5
|
-
super(message);
|
|
6
|
-
this.name = "ShikiError";
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
function getHeapMax() {
|
|
10
|
-
return 2147483648;
|
|
11
|
-
}
|
|
12
|
-
function _emscripten_get_now() {
|
|
13
|
-
return typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
14
|
-
}
|
|
15
|
-
const alignUp = (x, multiple) => x + (multiple - x % multiple) % multiple;
|
|
16
|
-
async function main(init) {
|
|
17
|
-
let wasmMemory;
|
|
18
|
-
let buffer;
|
|
19
|
-
const binding = {};
|
|
20
|
-
function updateGlobalBufferAndViews(buf) {
|
|
21
|
-
buffer = buf;
|
|
22
|
-
binding.HEAPU8 = new Uint8Array(buf);
|
|
23
|
-
binding.HEAPU32 = new Uint32Array(buf);
|
|
24
|
-
}
|
|
25
|
-
function _emscripten_memcpy_big(dest, src, num) {
|
|
26
|
-
binding.HEAPU8.copyWithin(dest, src, src + num);
|
|
27
|
-
}
|
|
28
|
-
function emscripten_realloc_buffer(size) {
|
|
29
|
-
try {
|
|
30
|
-
wasmMemory.grow(size - buffer.byteLength + 65535 >>> 16);
|
|
31
|
-
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|
32
|
-
return 1;
|
|
33
|
-
} catch {}
|
|
34
|
-
}
|
|
35
|
-
function _emscripten_resize_heap(requestedSize) {
|
|
36
|
-
const oldSize = binding.HEAPU8.length;
|
|
37
|
-
requestedSize = requestedSize >>> 0;
|
|
38
|
-
const maxHeapSize = getHeapMax();
|
|
39
|
-
if (requestedSize > maxHeapSize) return false;
|
|
40
|
-
for (let cutDown = 1; cutDown <= 4; cutDown *= 2) {
|
|
41
|
-
let overGrownHeapSize = oldSize * (1 + .2 / cutDown);
|
|
42
|
-
overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
|
|
43
|
-
if (emscripten_realloc_buffer(Math.min(maxHeapSize, alignUp(Math.max(requestedSize, overGrownHeapSize), 65536)))) return true;
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
const UTF8Decoder = typeof TextDecoder != "undefined" ? new TextDecoder("utf8") : void 0;
|
|
48
|
-
function UTF8ArrayToString(heapOrArray, idx, maxBytesToRead = 1024) {
|
|
49
|
-
const endIdx = idx + maxBytesToRead;
|
|
50
|
-
let endPtr = idx;
|
|
51
|
-
while (heapOrArray[endPtr] && !(endPtr >= endIdx)) ++endPtr;
|
|
52
|
-
if (endPtr - idx > 16 && heapOrArray.buffer && UTF8Decoder) return UTF8Decoder.decode(heapOrArray.subarray(idx, endPtr));
|
|
53
|
-
let str = "";
|
|
54
|
-
while (idx < endPtr) {
|
|
55
|
-
let u0 = heapOrArray[idx++];
|
|
56
|
-
if (!(u0 & 128)) {
|
|
57
|
-
str += String.fromCharCode(u0);
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
const u1 = heapOrArray[idx++] & 63;
|
|
61
|
-
if ((u0 & 224) === 192) {
|
|
62
|
-
str += String.fromCharCode((u0 & 31) << 6 | u1);
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
const u2 = heapOrArray[idx++] & 63;
|
|
66
|
-
if ((u0 & 240) === 224) u0 = (u0 & 15) << 12 | u1 << 6 | u2;
|
|
67
|
-
else u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heapOrArray[idx++] & 63;
|
|
68
|
-
if (u0 < 65536) str += String.fromCharCode(u0);
|
|
69
|
-
else {
|
|
70
|
-
const ch = u0 - 65536;
|
|
71
|
-
str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return str;
|
|
75
|
-
}
|
|
76
|
-
function UTF8ToString(ptr, maxBytesToRead) {
|
|
77
|
-
return ptr ? UTF8ArrayToString(binding.HEAPU8, ptr, maxBytesToRead) : "";
|
|
78
|
-
}
|
|
79
|
-
const asmLibraryArg = {
|
|
80
|
-
emscripten_get_now: _emscripten_get_now,
|
|
81
|
-
emscripten_memcpy_big: _emscripten_memcpy_big,
|
|
82
|
-
emscripten_resize_heap: _emscripten_resize_heap,
|
|
83
|
-
fd_write: () => 0
|
|
84
|
-
};
|
|
85
|
-
async function createWasm() {
|
|
86
|
-
const exports = await init({
|
|
87
|
-
env: asmLibraryArg,
|
|
88
|
-
wasi_snapshot_preview1: asmLibraryArg
|
|
89
|
-
});
|
|
90
|
-
wasmMemory = exports.memory;
|
|
91
|
-
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|
92
|
-
Object.assign(binding, exports);
|
|
93
|
-
binding.UTF8ToString = UTF8ToString;
|
|
94
|
-
}
|
|
95
|
-
await createWasm();
|
|
96
|
-
return binding;
|
|
97
|
-
}
|
|
98
|
-
var __defProp = Object.defineProperty;
|
|
99
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
configurable: true,
|
|
102
|
-
writable: true,
|
|
103
|
-
value
|
|
104
|
-
}) : obj[key] = value;
|
|
105
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
106
|
-
let onigBinding = null;
|
|
107
|
-
function throwLastOnigError(onigBinding2) {
|
|
108
|
-
throw new ShikiError(onigBinding2.UTF8ToString(onigBinding2.getLastOnigError()));
|
|
109
|
-
}
|
|
110
|
-
var UtfString = class UtfString {
|
|
111
|
-
constructor(str) {
|
|
112
|
-
__publicField(this, "utf16Length");
|
|
113
|
-
__publicField(this, "utf8Length");
|
|
114
|
-
__publicField(this, "utf16Value");
|
|
115
|
-
__publicField(this, "utf8Value");
|
|
116
|
-
__publicField(this, "utf16OffsetToUtf8");
|
|
117
|
-
__publicField(this, "utf8OffsetToUtf16");
|
|
118
|
-
const utf16Length = str.length;
|
|
119
|
-
const utf8Length = UtfString._utf8ByteLength(str);
|
|
120
|
-
const computeIndicesMapping = utf8Length !== utf16Length;
|
|
121
|
-
const utf16OffsetToUtf8 = computeIndicesMapping ? new Uint32Array(utf16Length + 1) : null;
|
|
122
|
-
if (computeIndicesMapping) utf16OffsetToUtf8[utf16Length] = utf8Length;
|
|
123
|
-
const utf8OffsetToUtf16 = computeIndicesMapping ? new Uint32Array(utf8Length + 1) : null;
|
|
124
|
-
if (computeIndicesMapping) utf8OffsetToUtf16[utf8Length] = utf16Length;
|
|
125
|
-
const utf8Value = new Uint8Array(utf8Length);
|
|
126
|
-
let i8 = 0;
|
|
127
|
-
for (let i16 = 0; i16 < utf16Length; i16++) {
|
|
128
|
-
const charCode = str.charCodeAt(i16);
|
|
129
|
-
let codePoint = charCode;
|
|
130
|
-
let wasSurrogatePair = false;
|
|
131
|
-
if (charCode >= 55296 && charCode <= 56319) {
|
|
132
|
-
if (i16 + 1 < utf16Length) {
|
|
133
|
-
const nextCharCode = str.charCodeAt(i16 + 1);
|
|
134
|
-
if (nextCharCode >= 56320 && nextCharCode <= 57343) {
|
|
135
|
-
codePoint = (charCode - 55296 << 10) + 65536 | nextCharCode - 56320;
|
|
136
|
-
wasSurrogatePair = true;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (computeIndicesMapping) {
|
|
141
|
-
utf16OffsetToUtf8[i16] = i8;
|
|
142
|
-
if (wasSurrogatePair) utf16OffsetToUtf8[i16 + 1] = i8;
|
|
143
|
-
if (codePoint <= 127) utf8OffsetToUtf16[i8 + 0] = i16;
|
|
144
|
-
else if (codePoint <= 2047) {
|
|
145
|
-
utf8OffsetToUtf16[i8 + 0] = i16;
|
|
146
|
-
utf8OffsetToUtf16[i8 + 1] = i16;
|
|
147
|
-
} else if (codePoint <= 65535) {
|
|
148
|
-
utf8OffsetToUtf16[i8 + 0] = i16;
|
|
149
|
-
utf8OffsetToUtf16[i8 + 1] = i16;
|
|
150
|
-
utf8OffsetToUtf16[i8 + 2] = i16;
|
|
151
|
-
} else {
|
|
152
|
-
utf8OffsetToUtf16[i8 + 0] = i16;
|
|
153
|
-
utf8OffsetToUtf16[i8 + 1] = i16;
|
|
154
|
-
utf8OffsetToUtf16[i8 + 2] = i16;
|
|
155
|
-
utf8OffsetToUtf16[i8 + 3] = i16;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
if (codePoint <= 127) utf8Value[i8++] = codePoint;
|
|
159
|
-
else if (codePoint <= 2047) {
|
|
160
|
-
utf8Value[i8++] = 192 | (codePoint & 1984) >>> 6;
|
|
161
|
-
utf8Value[i8++] = 128 | (codePoint & 63) >>> 0;
|
|
162
|
-
} else if (codePoint <= 65535) {
|
|
163
|
-
utf8Value[i8++] = 224 | (codePoint & 61440) >>> 12;
|
|
164
|
-
utf8Value[i8++] = 128 | (codePoint & 4032) >>> 6;
|
|
165
|
-
utf8Value[i8++] = 128 | (codePoint & 63) >>> 0;
|
|
166
|
-
} else {
|
|
167
|
-
utf8Value[i8++] = 240 | (codePoint & 1835008) >>> 18;
|
|
168
|
-
utf8Value[i8++] = 128 | (codePoint & 258048) >>> 12;
|
|
169
|
-
utf8Value[i8++] = 128 | (codePoint & 4032) >>> 6;
|
|
170
|
-
utf8Value[i8++] = 128 | (codePoint & 63) >>> 0;
|
|
171
|
-
}
|
|
172
|
-
if (wasSurrogatePair) i16++;
|
|
173
|
-
}
|
|
174
|
-
this.utf16Length = utf16Length;
|
|
175
|
-
this.utf8Length = utf8Length;
|
|
176
|
-
this.utf16Value = str;
|
|
177
|
-
this.utf8Value = utf8Value;
|
|
178
|
-
this.utf16OffsetToUtf8 = utf16OffsetToUtf8;
|
|
179
|
-
this.utf8OffsetToUtf16 = utf8OffsetToUtf16;
|
|
180
|
-
}
|
|
181
|
-
static _utf8ByteLength(str) {
|
|
182
|
-
let result = 0;
|
|
183
|
-
for (let i = 0, len = str.length; i < len; i++) {
|
|
184
|
-
const charCode = str.charCodeAt(i);
|
|
185
|
-
let codepoint = charCode;
|
|
186
|
-
let wasSurrogatePair = false;
|
|
187
|
-
if (charCode >= 55296 && charCode <= 56319) {
|
|
188
|
-
if (i + 1 < len) {
|
|
189
|
-
const nextCharCode = str.charCodeAt(i + 1);
|
|
190
|
-
if (nextCharCode >= 56320 && nextCharCode <= 57343) {
|
|
191
|
-
codepoint = (charCode - 55296 << 10) + 65536 | nextCharCode - 56320;
|
|
192
|
-
wasSurrogatePair = true;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if (codepoint <= 127) result += 1;
|
|
197
|
-
else if (codepoint <= 2047) result += 2;
|
|
198
|
-
else if (codepoint <= 65535) result += 3;
|
|
199
|
-
else result += 4;
|
|
200
|
-
if (wasSurrogatePair) i++;
|
|
201
|
-
}
|
|
202
|
-
return result;
|
|
203
|
-
}
|
|
204
|
-
createString(onigBinding2) {
|
|
205
|
-
const result = onigBinding2.omalloc(this.utf8Length);
|
|
206
|
-
onigBinding2.HEAPU8.set(this.utf8Value, result);
|
|
207
|
-
return result;
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
const _OnigString = class _OnigString {
|
|
211
|
-
constructor(str) {
|
|
212
|
-
__publicField(this, "id", ++_OnigString.LAST_ID);
|
|
213
|
-
__publicField(this, "_onigBinding");
|
|
214
|
-
__publicField(this, "content");
|
|
215
|
-
__publicField(this, "utf16Length");
|
|
216
|
-
__publicField(this, "utf8Length");
|
|
217
|
-
__publicField(this, "utf16OffsetToUtf8");
|
|
218
|
-
__publicField(this, "utf8OffsetToUtf16");
|
|
219
|
-
__publicField(this, "ptr");
|
|
220
|
-
if (!onigBinding) throw new ShikiError("Must invoke loadWasm first.");
|
|
221
|
-
this._onigBinding = onigBinding;
|
|
222
|
-
this.content = str;
|
|
223
|
-
const utfString = new UtfString(str);
|
|
224
|
-
this.utf16Length = utfString.utf16Length;
|
|
225
|
-
this.utf8Length = utfString.utf8Length;
|
|
226
|
-
this.utf16OffsetToUtf8 = utfString.utf16OffsetToUtf8;
|
|
227
|
-
this.utf8OffsetToUtf16 = utfString.utf8OffsetToUtf16;
|
|
228
|
-
if (this.utf8Length < 1e4 && !_OnigString._sharedPtrInUse) {
|
|
229
|
-
if (!_OnigString._sharedPtr) _OnigString._sharedPtr = onigBinding.omalloc(1e4);
|
|
230
|
-
_OnigString._sharedPtrInUse = true;
|
|
231
|
-
onigBinding.HEAPU8.set(utfString.utf8Value, _OnigString._sharedPtr);
|
|
232
|
-
this.ptr = _OnigString._sharedPtr;
|
|
233
|
-
} else this.ptr = utfString.createString(onigBinding);
|
|
234
|
-
}
|
|
235
|
-
convertUtf8OffsetToUtf16(utf8Offset) {
|
|
236
|
-
if (this.utf8OffsetToUtf16) {
|
|
237
|
-
if (utf8Offset < 0) return 0;
|
|
238
|
-
if (utf8Offset > this.utf8Length) return this.utf16Length;
|
|
239
|
-
return this.utf8OffsetToUtf16[utf8Offset];
|
|
240
|
-
}
|
|
241
|
-
return utf8Offset;
|
|
242
|
-
}
|
|
243
|
-
convertUtf16OffsetToUtf8(utf16Offset) {
|
|
244
|
-
if (this.utf16OffsetToUtf8) {
|
|
245
|
-
if (utf16Offset < 0) return 0;
|
|
246
|
-
if (utf16Offset > this.utf16Length) return this.utf8Length;
|
|
247
|
-
return this.utf16OffsetToUtf8[utf16Offset];
|
|
248
|
-
}
|
|
249
|
-
return utf16Offset;
|
|
250
|
-
}
|
|
251
|
-
dispose() {
|
|
252
|
-
if (this.ptr === _OnigString._sharedPtr) _OnigString._sharedPtrInUse = false;
|
|
253
|
-
else this._onigBinding.ofree(this.ptr);
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
__publicField(_OnigString, "LAST_ID", 0);
|
|
257
|
-
__publicField(_OnigString, "_sharedPtr", 0);
|
|
258
|
-
__publicField(_OnigString, "_sharedPtrInUse", false);
|
|
259
|
-
let OnigString = _OnigString;
|
|
260
|
-
var OnigScanner = class {
|
|
261
|
-
constructor(patterns) {
|
|
262
|
-
__publicField(this, "_onigBinding");
|
|
263
|
-
__publicField(this, "_ptr");
|
|
264
|
-
if (!onigBinding) throw new ShikiError("Must invoke loadWasm first.");
|
|
265
|
-
const strPtrsArr = [];
|
|
266
|
-
const strLenArr = [];
|
|
267
|
-
for (let i = 0, len = patterns.length; i < len; i++) {
|
|
268
|
-
const utfString = new UtfString(patterns[i]);
|
|
269
|
-
strPtrsArr[i] = utfString.createString(onigBinding);
|
|
270
|
-
strLenArr[i] = utfString.utf8Length;
|
|
271
|
-
}
|
|
272
|
-
const strPtrsPtr = onigBinding.omalloc(4 * patterns.length);
|
|
273
|
-
onigBinding.HEAPU32.set(strPtrsArr, strPtrsPtr / 4);
|
|
274
|
-
const strLenPtr = onigBinding.omalloc(4 * patterns.length);
|
|
275
|
-
onigBinding.HEAPU32.set(strLenArr, strLenPtr / 4);
|
|
276
|
-
const scannerPtr = onigBinding.createOnigScanner(strPtrsPtr, strLenPtr, patterns.length);
|
|
277
|
-
for (let i = 0, len = patterns.length; i < len; i++) onigBinding.ofree(strPtrsArr[i]);
|
|
278
|
-
onigBinding.ofree(strLenPtr);
|
|
279
|
-
onigBinding.ofree(strPtrsPtr);
|
|
280
|
-
if (scannerPtr === 0) throwLastOnigError(onigBinding);
|
|
281
|
-
this._onigBinding = onigBinding;
|
|
282
|
-
this._ptr = scannerPtr;
|
|
283
|
-
}
|
|
284
|
-
dispose() {
|
|
285
|
-
this._onigBinding.freeOnigScanner(this._ptr);
|
|
286
|
-
}
|
|
287
|
-
findNextMatchSync(string, startPosition, arg) {
|
|
288
|
-
let options = 0;
|
|
289
|
-
if (typeof arg === "number") options = arg;
|
|
290
|
-
if (typeof string === "string") {
|
|
291
|
-
string = new OnigString(string);
|
|
292
|
-
const result = this._findNextMatchSync(string, startPosition, false, options);
|
|
293
|
-
string.dispose();
|
|
294
|
-
return result;
|
|
295
|
-
}
|
|
296
|
-
return this._findNextMatchSync(string, startPosition, false, options);
|
|
297
|
-
}
|
|
298
|
-
_findNextMatchSync(string, startPosition, debugCall, options) {
|
|
299
|
-
const onigBinding2 = this._onigBinding;
|
|
300
|
-
const resultPtr = onigBinding2.findNextOnigScannerMatch(this._ptr, string.id, string.ptr, string.utf8Length, string.convertUtf16OffsetToUtf8(startPosition), options);
|
|
301
|
-
if (resultPtr === 0) return null;
|
|
302
|
-
const HEAPU32 = onigBinding2.HEAPU32;
|
|
303
|
-
let offset = resultPtr / 4;
|
|
304
|
-
const index = HEAPU32[offset++];
|
|
305
|
-
const count = HEAPU32[offset++];
|
|
306
|
-
const captureIndices = [];
|
|
307
|
-
for (let i = 0; i < count; i++) {
|
|
308
|
-
const beg = string.convertUtf8OffsetToUtf16(HEAPU32[offset++]);
|
|
309
|
-
const end = string.convertUtf8OffsetToUtf16(HEAPU32[offset++]);
|
|
310
|
-
captureIndices[i] = {
|
|
311
|
-
start: beg,
|
|
312
|
-
end,
|
|
313
|
-
length: end - beg
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
return {
|
|
317
|
-
index,
|
|
318
|
-
captureIndices
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
function isInstantiatorOptionsObject(dataOrOptions) {
|
|
323
|
-
return typeof dataOrOptions.instantiator === "function";
|
|
324
|
-
}
|
|
325
|
-
function isInstantiatorModule(dataOrOptions) {
|
|
326
|
-
return typeof dataOrOptions.default === "function";
|
|
327
|
-
}
|
|
328
|
-
function isDataOptionsObject(dataOrOptions) {
|
|
329
|
-
return typeof dataOrOptions.data !== "undefined";
|
|
330
|
-
}
|
|
331
|
-
function isResponse(dataOrOptions) {
|
|
332
|
-
return typeof Response !== "undefined" && dataOrOptions instanceof Response;
|
|
333
|
-
}
|
|
334
|
-
function isArrayBuffer(data) {
|
|
335
|
-
return typeof ArrayBuffer !== "undefined" && (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) || typeof Buffer !== "undefined" && Buffer.isBuffer?.(data) || typeof SharedArrayBuffer !== "undefined" && data instanceof SharedArrayBuffer || typeof Uint32Array !== "undefined" && data instanceof Uint32Array;
|
|
336
|
-
}
|
|
337
|
-
let initPromise;
|
|
338
|
-
function loadWasm(options) {
|
|
339
|
-
if (initPromise) return initPromise;
|
|
340
|
-
async function _load() {
|
|
341
|
-
onigBinding = await main(async (info) => {
|
|
342
|
-
let instance = options;
|
|
343
|
-
instance = await instance;
|
|
344
|
-
if (typeof instance === "function") instance = await instance(info);
|
|
345
|
-
if (typeof instance === "function") instance = await instance(info);
|
|
346
|
-
if (isInstantiatorOptionsObject(instance)) instance = await instance.instantiator(info);
|
|
347
|
-
else if (isInstantiatorModule(instance)) instance = await instance.default(info);
|
|
348
|
-
else {
|
|
349
|
-
if (isDataOptionsObject(instance)) instance = instance.data;
|
|
350
|
-
if (isResponse(instance)) {
|
|
351
|
-
if (typeof WebAssembly.instantiateStreaming === "function") instance = await _makeResponseStreamingLoader(instance)(info);
|
|
352
|
-
else instance = await _makeResponseNonStreamingLoader(instance)(info);
|
|
353
|
-
} else if (isArrayBuffer(instance)) instance = await _makeArrayBufferLoader(instance)(info);
|
|
354
|
-
else if (instance instanceof WebAssembly.Module) instance = await _makeArrayBufferLoader(instance)(info);
|
|
355
|
-
else if ("default" in instance && instance.default instanceof WebAssembly.Module) instance = await _makeArrayBufferLoader(instance.default)(info);
|
|
356
|
-
}
|
|
357
|
-
if ("instance" in instance) instance = instance.instance;
|
|
358
|
-
if ("exports" in instance) instance = instance.exports;
|
|
359
|
-
return instance;
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
initPromise = _load();
|
|
363
|
-
return initPromise;
|
|
364
|
-
}
|
|
365
|
-
function _makeArrayBufferLoader(data) {
|
|
366
|
-
return (importObject) => WebAssembly.instantiate(data, importObject);
|
|
367
|
-
}
|
|
368
|
-
function _makeResponseStreamingLoader(data) {
|
|
369
|
-
return (importObject) => WebAssembly.instantiateStreaming(data, importObject);
|
|
370
|
-
}
|
|
371
|
-
function _makeResponseNonStreamingLoader(data) {
|
|
372
|
-
return async (importObject) => {
|
|
373
|
-
const arrayBuffer = await data.arrayBuffer();
|
|
374
|
-
return WebAssembly.instantiate(arrayBuffer, importObject);
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
async function createOnigurumaEngine(options) {
|
|
378
|
-
if (options) await loadWasm(options);
|
|
379
|
-
return {
|
|
380
|
-
createScanner(patterns) {
|
|
381
|
-
return new OnigScanner(patterns.map((p) => typeof p === "string" ? p : p.source));
|
|
382
|
-
},
|
|
383
|
-
createString(s) {
|
|
384
|
-
return new OnigString(s);
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
//#endregion
|
|
389
|
-
export { createOnigurumaEngine };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@shikijs+themes@4.3.1/node_modules/@shikijs/themes/dist/github-light.mjs
|
|
3
|
-
var github_light_default = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#f9826c\",\"activityBar.background\":\"#fff\",\"activityBar.border\":\"#e1e4e8\",\"activityBar.foreground\":\"#2f363d\",\"activityBar.inactiveForeground\":\"#959da5\",\"activityBarBadge.background\":\"#2188ff\",\"activityBarBadge.foreground\":\"#fff\",\"badge.background\":\"#dbedff\",\"badge.foreground\":\"#005cc5\",\"breadcrumb.activeSelectionForeground\":\"#586069\",\"breadcrumb.focusForeground\":\"#2f363d\",\"breadcrumb.foreground\":\"#6a737d\",\"breadcrumbPicker.background\":\"#fafbfc\",\"button.background\":\"#159739\",\"button.foreground\":\"#fff\",\"button.hoverBackground\":\"#138934\",\"button.secondaryBackground\":\"#e1e4e8\",\"button.secondaryForeground\":\"#1b1f23\",\"button.secondaryHoverBackground\":\"#d1d5da\",\"checkbox.background\":\"#fafbfc\",\"checkbox.border\":\"#d1d5da\",\"debugToolBar.background\":\"#fff\",\"descriptionForeground\":\"#6a737d\",\"diffEditor.insertedTextBackground\":\"#34d05822\",\"diffEditor.removedTextBackground\":\"#d73a4922\",\"dropdown.background\":\"#fafbfc\",\"dropdown.border\":\"#e1e4e8\",\"dropdown.foreground\":\"#2f363d\",\"dropdown.listBackground\":\"#fff\",\"editor.background\":\"#fff\",\"editor.findMatchBackground\":\"#ffdf5d\",\"editor.findMatchHighlightBackground\":\"#ffdf5d66\",\"editor.focusedStackFrameHighlightBackground\":\"#28a74525\",\"editor.foldBackground\":\"#d1d5da11\",\"editor.foreground\":\"#24292e\",\"editor.inactiveSelectionBackground\":\"#0366d611\",\"editor.lineHighlightBackground\":\"#f6f8fa\",\"editor.linkedEditingBackground\":\"#0366d611\",\"editor.selectionBackground\":\"#0366d625\",\"editor.selectionHighlightBackground\":\"#34d05840\",\"editor.selectionHighlightBorder\":\"#34d05800\",\"editor.stackFrameHighlightBackground\":\"#ffd33d33\",\"editor.wordHighlightBackground\":\"#34d05800\",\"editor.wordHighlightBorder\":\"#24943e99\",\"editor.wordHighlightStrongBackground\":\"#34d05800\",\"editor.wordHighlightStrongBorder\":\"#24943e50\",\"editorBracketHighlight.foreground1\":\"#005cc5\",\"editorBracketHighlight.foreground2\":\"#e36209\",\"editorBracketHighlight.foreground3\":\"#5a32a3\",\"editorBracketHighlight.foreground4\":\"#005cc5\",\"editorBracketHighlight.foreground5\":\"#e36209\",\"editorBracketHighlight.foreground6\":\"#5a32a3\",\"editorBracketMatch.background\":\"#34d05840\",\"editorBracketMatch.border\":\"#34d05800\",\"editorCursor.foreground\":\"#044289\",\"editorError.foreground\":\"#cb2431\",\"editorGroup.border\":\"#e1e4e8\",\"editorGroupHeader.tabsBackground\":\"#f6f8fa\",\"editorGroupHeader.tabsBorder\":\"#e1e4e8\",\"editorGutter.addedBackground\":\"#28a745\",\"editorGutter.deletedBackground\":\"#d73a49\",\"editorGutter.modifiedBackground\":\"#2188ff\",\"editorIndentGuide.activeBackground\":\"#d7dbe0\",\"editorIndentGuide.background\":\"#eff2f6\",\"editorLineNumber.activeForeground\":\"#24292e\",\"editorLineNumber.foreground\":\"#1b1f234d\",\"editorOverviewRuler.border\":\"#fff\",\"editorWarning.foreground\":\"#f9c513\",\"editorWhitespace.foreground\":\"#d1d5da\",\"editorWidget.background\":\"#f6f8fa\",\"errorForeground\":\"#cb2431\",\"focusBorder\":\"#2188ff\",\"foreground\":\"#444d56\",\"gitDecoration.addedResourceForeground\":\"#28a745\",\"gitDecoration.conflictingResourceForeground\":\"#e36209\",\"gitDecoration.deletedResourceForeground\":\"#d73a49\",\"gitDecoration.ignoredResourceForeground\":\"#959da5\",\"gitDecoration.modifiedResourceForeground\":\"#005cc5\",\"gitDecoration.submoduleResourceForeground\":\"#959da5\",\"gitDecoration.untrackedResourceForeground\":\"#28a745\",\"input.background\":\"#fafbfc\",\"input.border\":\"#e1e4e8\",\"input.foreground\":\"#2f363d\",\"input.placeholderForeground\":\"#959da5\",\"list.activeSelectionBackground\":\"#e2e5e9\",\"list.activeSelectionForeground\":\"#2f363d\",\"list.focusBackground\":\"#cce5ff\",\"list.hoverBackground\":\"#ebf0f4\",\"list.hoverForeground\":\"#2f363d\",\"list.inactiveFocusBackground\":\"#dbedff\",\"list.inactiveSelectionBackground\":\"#e8eaed\",\"list.inactiveSelectionForeground\":\"#2f363d\",\"notificationCenterHeader.background\":\"#e1e4e8\",\"notificationCenterHeader.foreground\":\"#6a737d\",\"notifications.background\":\"#fafbfc\",\"notifications.border\":\"#e1e4e8\",\"notifications.foreground\":\"#2f363d\",\"notificationsErrorIcon.foreground\":\"#d73a49\",\"notificationsInfoIcon.foreground\":\"#005cc5\",\"notificationsWarningIcon.foreground\":\"#e36209\",\"panel.background\":\"#f6f8fa\",\"panel.border\":\"#e1e4e8\",\"panelInput.border\":\"#e1e4e8\",\"panelTitle.activeBorder\":\"#f9826c\",\"panelTitle.activeForeground\":\"#2f363d\",\"panelTitle.inactiveForeground\":\"#6a737d\",\"pickerGroup.border\":\"#e1e4e8\",\"pickerGroup.foreground\":\"#2f363d\",\"progressBar.background\":\"#2188ff\",\"quickInput.background\":\"#fafbfc\",\"quickInput.foreground\":\"#2f363d\",\"scrollbar.shadow\":\"#6a737d33\",\"scrollbarSlider.activeBackground\":\"#959da588\",\"scrollbarSlider.background\":\"#959da533\",\"scrollbarSlider.hoverBackground\":\"#959da544\",\"settings.headerForeground\":\"#2f363d\",\"settings.modifiedItemIndicator\":\"#2188ff\",\"sideBar.background\":\"#f6f8fa\",\"sideBar.border\":\"#e1e4e8\",\"sideBar.foreground\":\"#586069\",\"sideBarSectionHeader.background\":\"#f6f8fa\",\"sideBarSectionHeader.border\":\"#e1e4e8\",\"sideBarSectionHeader.foreground\":\"#2f363d\",\"sideBarTitle.foreground\":\"#2f363d\",\"statusBar.background\":\"#fff\",\"statusBar.border\":\"#e1e4e8\",\"statusBar.debuggingBackground\":\"#f9826c\",\"statusBar.debuggingForeground\":\"#fff\",\"statusBar.foreground\":\"#586069\",\"statusBar.noFolderBackground\":\"#fff\",\"statusBarItem.prominentBackground\":\"#e8eaed\",\"statusBarItem.remoteBackground\":\"#fff\",\"statusBarItem.remoteForeground\":\"#586069\",\"tab.activeBackground\":\"#fff\",\"tab.activeBorder\":\"#fff\",\"tab.activeBorderTop\":\"#f9826c\",\"tab.activeForeground\":\"#2f363d\",\"tab.border\":\"#e1e4e8\",\"tab.hoverBackground\":\"#fff\",\"tab.inactiveBackground\":\"#f6f8fa\",\"tab.inactiveForeground\":\"#6a737d\",\"tab.unfocusedActiveBorder\":\"#fff\",\"tab.unfocusedActiveBorderTop\":\"#e1e4e8\",\"tab.unfocusedHoverBackground\":\"#fff\",\"terminal.ansiBlack\":\"#24292e\",\"terminal.ansiBlue\":\"#0366d6\",\"terminal.ansiBrightBlack\":\"#959da5\",\"terminal.ansiBrightBlue\":\"#005cc5\",\"terminal.ansiBrightCyan\":\"#3192aa\",\"terminal.ansiBrightGreen\":\"#22863a\",\"terminal.ansiBrightMagenta\":\"#5a32a3\",\"terminal.ansiBrightRed\":\"#cb2431\",\"terminal.ansiBrightWhite\":\"#d1d5da\",\"terminal.ansiBrightYellow\":\"#b08800\",\"terminal.ansiCyan\":\"#1b7c83\",\"terminal.ansiGreen\":\"#28a745\",\"terminal.ansiMagenta\":\"#5a32a3\",\"terminal.ansiRed\":\"#d73a49\",\"terminal.ansiWhite\":\"#6a737d\",\"terminal.ansiYellow\":\"#dbab09\",\"terminal.foreground\":\"#586069\",\"terminal.tab.activeBorder\":\"#f9826c\",\"terminalCursor.background\":\"#d1d5da\",\"terminalCursor.foreground\":\"#005cc5\",\"textBlockQuote.background\":\"#fafbfc\",\"textBlockQuote.border\":\"#e1e4e8\",\"textCodeBlock.background\":\"#f6f8fa\",\"textLink.activeForeground\":\"#005cc5\",\"textLink.foreground\":\"#0366d6\",\"textPreformat.foreground\":\"#586069\",\"textSeparator.foreground\":\"#d1d5da\",\"titleBar.activeBackground\":\"#fff\",\"titleBar.activeForeground\":\"#2f363d\",\"titleBar.border\":\"#e1e4e8\",\"titleBar.inactiveBackground\":\"#f6f8fa\",\"titleBar.inactiveForeground\":\"#6a737d\",\"tree.indentGuidesStroke\":\"#e1e4e8\",\"welcomePage.buttonBackground\":\"#f6f8fa\",\"welcomePage.buttonHoverBackground\":\"#e1e4e8\"},\"displayName\":\"GitHub Light\",\"name\":\"github-light\",\"semanticHighlighting\":true,\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#6a737d\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.other.constant\",\"variable.other.enummember\",\"variable.language\"],\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#6f42c1\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#24292e\"}},{\"scope\":\"entity.name.tag\",\"settings\":{\"foreground\":\"#22863a\"}},{\"scope\":\"keyword\",\"settings\":{\"foreground\":\"#d73a49\"}},{\"scope\":[\"storage\",\"storage.type\"],\"settings\":{\"foreground\":\"#d73a49\"}},{\"scope\":[\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#24292e\"}},{\"scope\":[\"string\",\"punctuation.definition.string\",\"string punctuation.section.embedded source\"],\"settings\":{\"foreground\":\"#032f62\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.property-name\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"variable\",\"settings\":{\"foreground\":\"#e36209\"}},{\"scope\":\"variable.other\",\"settings\":{\"foreground\":\"#24292e\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#d73a49\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#fafbfc\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#032f62\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#032f62\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#22863a\"}},{\"scope\":\"support.constant\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"support.variable\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#e36209\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#005cc5\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#22863a\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#24292e\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#24292e\"}},{\"scope\":[\"markup.underline\"],\"settings\":{\"fontStyle\":\"underline\"}},{\"scope\":[\"markup.strikethrough\"],\"settings\":{\"fontStyle\":\"strikethrough\"}},{\"scope\":\"markup.inline.raw\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#ffeef0\",\"foreground\":\"#b31d28\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#f0fff4\",\"foreground\":\"#22863a\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#ffebda\",\"foreground\":\"#e36209\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#005cc5\",\"foreground\":\"#f6f8fa\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#6f42c1\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#586069\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#032f62\"}}],\"type\":\"light\"}"));
|
|
4
|
-
//#endregion
|
|
5
|
-
export { github_light_default as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import javascript_default from "./javascript-b6fq9bl50fdj6813.js";
|
|
3
|
-
import typescript_default from "./typescript-pe5y016phdwbgws7.js";
|
|
4
|
-
import jsx_default from "./jsx-jp7a33937sef92sn.js";
|
|
5
|
-
import tsx_default from "./tsx-pem8x69upvmibv6l.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/@shikijs+langs@4.3.1/node_modules/@shikijs/langs/dist/graphql.mjs
|
|
7
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"GraphQL\",\"fileTypes\":[\"graphql\",\"graphqls\",\"gql\",\"graphcool\"],\"name\":\"graphql\",\"patterns\":[{\"include\":\"#graphql\"}],\"repository\":{\"graphql\":{\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-fragment-definition\"},{\"include\":\"#graphql-directive-definition\"},{\"include\":\"#graphql-type-interface\"},{\"include\":\"#graphql-enum\"},{\"include\":\"#graphql-scalar\"},{\"include\":\"#graphql-union\"},{\"include\":\"#graphql-schema\"},{\"include\":\"#graphql-operation-def\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-ampersand\":{\"captures\":{\"1\":{\"name\":\"keyword.operator.logical.graphql\"}},\"match\":\"\\\\s*(&)\"},\"graphql-arguments\":{\"begin\":\"\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"meta.brace.round.directive.graphql\"}},\"end\":\"\\\\s*(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.directive.graphql\"}},\"name\":\"meta.arguments.graphql\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"begin\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.parameter.graphql\"},\"2\":{\"name\":\"punctuation.colon.graphql\"}},\"end\":\"(?=\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)|\\\\)))|\\\\s*(,)\",\"endCaptures\":{\"3\":{\"name\":\"punctuation.comma.graphql\"}},\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-value\"},{\"include\":\"#graphql-skip-newlines\"}]},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-boolean-value\":{\"captures\":{\"1\":{\"name\":\"constant.language.boolean.graphql\"}},\"match\":\"\\\\s*\\\\b(true|false)\\\\b\"},\"graphql-colon\":{\"captures\":{\"1\":{\"name\":\"punctuation.colon.graphql\"}},\"match\":\"\\\\s*(:)\"},\"graphql-comma\":{\"captures\":{\"1\":{\"name\":\"punctuation.comma.graphql\"}},\"match\":\"\\\\s*(,)\"},\"graphql-comment\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.graphql\"}},\"match\":\"(\\\\s*)(#).*\",\"name\":\"comment.line.graphql.js\"},{\"begin\":\"(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.graphql\"}},\"end\":\"(\\\"\\\"\\\")\",\"name\":\"comment.line.graphql.js\"},{\"begin\":\"(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.graphql\"}},\"end\":\"(\\\")\",\"name\":\"comment.line.graphql.js\"}]},\"graphql-description-docstring\":{\"begin\":\"\\\"\\\"\\\"\",\"end\":\"\\\"\\\"\\\"\",\"name\":\"comment.block.graphql\"},\"graphql-description-singleline\":{\"match\":\"#(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$).*$\",\"name\":\"comment.line.number-sign.graphql\"},\"graphql-directive\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*((@)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.directive.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-arguments\"},{\"include\":\"#literal-quasi-embedded\"},{\"include\":\"#graphql-skip-newlines\"}]},\"graphql-directive-definition\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*\\\\b(directive)\\\\b\\\\s*(@[A-Z_a-z][0-9A-Z_a-z]*)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.graphql\"},\"2\":{\"name\":\"entity.name.function.directive.graphql\"},\"3\":{\"name\":\"keyword.on.graphql\"},\"4\":{\"name\":\"support.type.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"include\":\"#graphql-variable-definitions\"},{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z]*)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.on.graphql\"},\"2\":{\"name\":\"support.type.location.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"include\":\"#graphql-skip-newlines\"},{\"include\":\"#graphql-comment\"},{\"include\":\"#literal-quasi-embedded\"},{\"captures\":{\"2\":{\"name\":\"support.type.location.graphql\"}},\"match\":\"\\\\s*(\\\\|)\\\\s*([A-Z_a-z]*)\"}]},{\"include\":\"#graphql-skip-newlines\"},{\"include\":\"#graphql-comment\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-enum\":{\"begin\":\"\\\\s*+\\\\b(enum)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.enum.graphql\"},\"2\":{\"name\":\"support.type.enum.graphql\"}},\"end\":\"(?<=})\",\"name\":\"meta.enum.graphql\",\"patterns\":[{\"begin\":\"\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"end\":\"\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"name\":\"meta.type.object.graphql\",\"patterns\":[{\"include\":\"#graphql-object-type\"},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-enum-value\"},{\"include\":\"#literal-quasi-embedded\"}]},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"}]},\"graphql-enum-value\":{\"match\":\"\\\\s*(?!=\\\\b(true|false|null)\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)\",\"name\":\"constant.character.enum.graphql\"},\"graphql-field\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"string.unquoted.alias.graphql\"},\"2\":{\"name\":\"punctuation.colon.graphql\"}},\"match\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)\"},{\"captures\":{\"1\":{\"name\":\"variable.graphql\"}},\"match\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"include\":\"#graphql-arguments\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-selection-set\"},{\"include\":\"#literal-quasi-embedded\"},{\"include\":\"#graphql-skip-newlines\"}]},\"graphql-float-value\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.float.graphql\"}},\"match\":\"\\\\s*(-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?(([Ee])([-+])?[0-9]+)?)\"},\"graphql-fragment-definition\":{\"begin\":\"\\\\s*\\\\b(fragment)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\",\"captures\":{\"1\":{\"name\":\"keyword.fragment.graphql\"},\"2\":{\"name\":\"entity.name.fragment.graphql\"},\"3\":{\"name\":\"keyword.on.graphql\"},\"4\":{\"name\":\"support.type.graphql\"}},\"end\":\"(?<=})\",\"name\":\"meta.fragment.graphql\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-selection-set\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-skip-newlines\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-fragment-spread\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?!\\\\bon\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)\",\"captures\":{\"1\":{\"name\":\"keyword.operator.spread.graphql\"},\"2\":{\"name\":\"variable.fragment.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-selection-set\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#literal-quasi-embedded\"},{\"include\":\"#graphql-skip-newlines\"}]},\"graphql-ignore-spaces\":{\"match\":\"\\\\s*\"},\"graphql-inline-fragment\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?:\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))?\",\"captures\":{\"1\":{\"name\":\"keyword.operator.spread.graphql\"},\"2\":{\"name\":\"keyword.on.graphql\"},\"3\":{\"name\":\"support.type.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-selection-set\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-skip-newlines\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-input-types\":{\"patterns\":[{\"include\":\"#graphql-scalar-type\"},{\"captures\":{\"1\":{\"name\":\"support.type.graphql\"},\"2\":{\"name\":\"keyword.operator.nulltype.graphql\"}},\"match\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*(!))?\"},{\"begin\":\"\\\\s*(\\\\[)\",\"captures\":{\"1\":{\"name\":\"meta.brace.square.graphql\"},\"2\":{\"name\":\"keyword.operator.nulltype.graphql\"}},\"end\":\"\\\\s*(])(?:\\\\s*(!))?\",\"name\":\"meta.type.list.graphql\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-input-types\"},{\"include\":\"#graphql-comma\"},{\"include\":\"#literal-quasi-embedded\"}]}]},\"graphql-list-value\":{\"patterns\":[{\"begin\":\"\\\\s*+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.brace.square.graphql\"}},\"end\":\"\\\\s*(])\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.graphql\"}},\"name\":\"meta.listvalues.graphql\",\"patterns\":[{\"include\":\"#graphql-value\"}]}]},\"graphql-name\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.graphql\"}},\"match\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},\"graphql-null-value\":{\"captures\":{\"1\":{\"name\":\"constant.language.null.graphql\"}},\"match\":\"\\\\s*\\\\b(null)\\\\b\"},\"graphql-object-field\":{\"captures\":{\"1\":{\"name\":\"constant.object.key.graphql\"},\"2\":{\"name\":\"string.unquoted.graphql\"},\"3\":{\"name\":\"punctuation.graphql\"}},\"match\":\"\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*))\\\\s*(:)\"},\"graphql-object-value\":{\"patterns\":[{\"begin\":\"\\\\s*+(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.brace.curly.graphql\"}},\"end\":\"\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.curly.graphql\"}},\"name\":\"meta.objectvalues.graphql\",\"patterns\":[{\"include\":\"#graphql-object-field\"},{\"include\":\"#graphql-value\"}]}]},\"graphql-operation-def\":{\"patterns\":[{\"include\":\"#graphql-query-mutation\"},{\"include\":\"#graphql-name\"},{\"include\":\"#graphql-variable-definitions\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-selection-set\"}]},\"graphql-query-mutation\":{\"captures\":{\"1\":{\"name\":\"keyword.operation.graphql\"}},\"match\":\"\\\\s*\\\\b(query|mutation)\\\\b\"},\"graphql-scalar\":{\"captures\":{\"1\":{\"name\":\"keyword.scalar.graphql\"},\"2\":{\"name\":\"entity.scalar.graphql\"}},\"match\":\"\\\\s*\\\\b(scalar)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},\"graphql-scalar-type\":{\"captures\":{\"1\":{\"name\":\"support.type.builtin.graphql\"},\"2\":{\"name\":\"keyword.operator.nulltype.graphql\"}},\"match\":\"\\\\s*\\\\b(Int|Float|String|Boolean|ID)\\\\b(?:\\\\s*(!))?\"},\"graphql-schema\":{\"begin\":\"\\\\s*\\\\b(schema)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.schema.graphql\"}},\"end\":\"(?<=})\",\"patterns\":[{\"begin\":\"\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"end\":\"\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"patterns\":[{\"begin\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.arguments.graphql\"}},\"end\":\"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)\",\"endCaptures\":{\"5\":{\"name\":\"punctuation.comma.graphql\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.type.graphql\"}},\"match\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-colon\"},{\"include\":\"#graphql-skip-newlines\"}]},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-skip-newlines\"}]},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-skip-newlines\"}]},\"graphql-selection-set\":{\"begin\":\"\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"end\":\"\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"name\":\"meta.selectionset.graphql\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-field\"},{\"include\":\"#graphql-fragment-spread\"},{\"include\":\"#graphql-inline-fragment\"},{\"include\":\"#graphql-comma\"},{\"include\":\"#native-interpolation\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-skip-newlines\":{\"match\":\"\\\\s*\\\\n\"},\"graphql-string-content\":{\"patterns\":[{\"match\":\"\\\\\\\\[\\\"'/\\\\\\\\bfnrt]\",\"name\":\"constant.character.escape.graphql\"},{\"match\":\"\\\\\\\\u(\\\\h{4})\",\"name\":\"constant.character.escape.graphql\"}]},\"graphql-string-value\":{\"begin\":\"\\\\s*+((\\\"))\",\"beginCaptures\":{\"1\":{\"name\":\"string.quoted.double.graphql\"},\"2\":{\"name\":\"punctuation.definition.string.begin.graphql\"}},\"contentName\":\"string.quoted.double.graphql\",\"end\":\"\\\\s*+(?:((\\\"))|(\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"string.quoted.double.graphql\"},\"2\":{\"name\":\"punctuation.definition.string.end.graphql\"},\"3\":{\"name\":\"invalid.illegal.newline.graphql\"}},\"patterns\":[{\"include\":\"#graphql-string-content\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-type-definition\":{\"begin\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.graphql\"}},\"end\":\"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)\",\"endCaptures\":{\"5\":{\"name\":\"punctuation.comma.graphql\"}},\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-variable-definitions\"},{\"include\":\"#graphql-type-object\"},{\"include\":\"#graphql-colon\"},{\"include\":\"#graphql-input-types\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-type-interface\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*\\\\b(?:(extends?)?\\\\b\\\\s*\\\\b(type)|(interface)|(input))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\",\"captures\":{\"1\":{\"name\":\"keyword.type.graphql\"},\"2\":{\"name\":\"keyword.type.graphql\"},\"3\":{\"name\":\"keyword.interface.graphql\"},\"4\":{\"name\":\"keyword.input.graphql\"},\"5\":{\"name\":\"support.type.graphql\"}},\"end\":\"(?=.)\",\"name\":\"meta.type.interface.graphql\",\"patterns\":[{\"begin\":\"\\\\s*\\\\b(implements)\\\\b\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.implements.graphql\"}},\"end\":\"\\\\s*(?=\\\\{)\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.type.graphql\"}},\"match\":\"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-ampersand\"},{\"include\":\"#graphql-comma\"}]},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-type-object\"},{\"include\":\"#literal-quasi-embedded\"},{\"include\":\"#graphql-ignore-spaces\"}]},\"graphql-type-object\":{\"begin\":\"\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"end\":\"\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.operation.graphql\"}},\"name\":\"meta.type.object.graphql\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-object-type\"},{\"include\":\"#graphql-type-definition\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-union\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*\\\\b(union)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\",\"captures\":{\"1\":{\"name\":\"keyword.union.graphql\"},\"2\":{\"name\":\"support.type.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"applyEndPatternLast\":1,\"begin\":\"\\\\s*(=)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\",\"captures\":{\"1\":{\"name\":\"punctuation.assignment.graphql\"},\"2\":{\"name\":\"support.type.graphql\"}},\"end\":\"(?=.)\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-skip-newlines\"},{\"include\":\"#literal-quasi-embedded\"},{\"captures\":{\"1\":{\"name\":\"punctuation.or.graphql\"},\"2\":{\"name\":\"support.type.graphql\"}},\"match\":\"\\\\s*(\\\\|)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"}]},{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-skip-newlines\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-union-mark\":{\"captures\":{\"1\":{\"name\":\"punctuation.union.graphql\"}},\"match\":\"\\\\s*(\\\\|)\"},\"graphql-value\":{\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-variable-name\"},{\"include\":\"#graphql-float-value\"},{\"include\":\"#graphql-string-value\"},{\"include\":\"#graphql-boolean-value\"},{\"include\":\"#graphql-null-value\"},{\"include\":\"#graphql-enum-value\"},{\"include\":\"#graphql-list-value\"},{\"include\":\"#graphql-object-value\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-variable-assignment\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\s(=)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.assignment.graphql\"}},\"end\":\"(?=[\\\\n),])\",\"patterns\":[{\"include\":\"#graphql-value\"}]},\"graphql-variable-definition\":{\"begin\":\"\\\\s*(\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.parameter.graphql\"}},\"end\":\"(?=\\\\s*((\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|([)}])))|\\\\s*(,)\",\"endCaptures\":{\"5\":{\"name\":\"punctuation.comma.graphql\"}},\"name\":\"meta.variables.graphql\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-directive\"},{\"include\":\"#graphql-colon\"},{\"include\":\"#graphql-input-types\"},{\"include\":\"#graphql-variable-assignment\"},{\"include\":\"#literal-quasi-embedded\"},{\"include\":\"#graphql-skip-newlines\"}]},\"graphql-variable-definitions\":{\"begin\":\"\\\\s*(\\\\()\",\"captures\":{\"1\":{\"name\":\"meta.brace.round.graphql\"}},\"end\":\"\\\\s*(\\\\))\",\"patterns\":[{\"include\":\"#graphql-comment\"},{\"include\":\"#graphql-description-docstring\"},{\"include\":\"#graphql-description-singleline\"},{\"include\":\"#graphql-variable-definition\"},{\"include\":\"#literal-quasi-embedded\"}]},\"graphql-variable-name\":{\"captures\":{\"1\":{\"name\":\"variable.graphql\"}},\"match\":\"\\\\s*(\\\\$[A-Z_a-z][0-9A-Z_a-z]*)\"},\"native-interpolation\":{\"begin\":\"\\\\s*(\\\\$\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.substitution.begin\"}},\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"keyword.other.substitution.end\"}},\"name\":\"native.interpolation\",\"patterns\":[{\"include\":\"source.js\"},{\"include\":\"source.ts\"},{\"include\":\"source.js.jsx\"},{\"include\":\"source.tsx\"}]}},\"scopeName\":\"source.graphql\",\"embeddedLangs\":[\"javascript\",\"typescript\",\"jsx\",\"tsx\"],\"aliases\":[\"gql\"]}"));
|
|
8
|
-
var graphql_default = [
|
|
9
|
-
...javascript_default,
|
|
10
|
-
...typescript_default,
|
|
11
|
-
...jsx_default,
|
|
12
|
-
...tsx_default,
|
|
13
|
-
lang
|
|
14
|
-
];
|
|
15
|
-
//#endregion
|
|
16
|
-
export { graphql_default as default };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var hcl_default = [Object.freeze(JSON.parse("{\"displayName\":\"HashiCorp HCL\",\"fileTypes\":[\"hcl\"],\"name\":\"hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#attribute_definition\"},{\"include\":\"#block\"},{\"include\":\"#expressions\"}],\"repository\":{\"attribute_access\":{\"begin\":\"\\\\.(?!\\\\*)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.accessor.hcl\"}},\"end\":\"\\\\p{alpha}[-\\\\w]*|\\\\d*\",\"endCaptures\":{\"0\":{\"patterns\":[{\"match\":\"(?!null|false|true)\\\\p{alpha}[-\\\\w]*\",\"name\":\"variable.other.member.hcl\"},{\"match\":\"\\\\d+\",\"name\":\"constant.numeric.integer.hcl\"}]}}},\"attribute_definition\":{\"captures\":{\"1\":{\"name\":\"punctuation.section.parens.begin.hcl\"},\"2\":{\"name\":\"variable.other.readwrite.hcl\"},\"3\":{\"name\":\"punctuation.section.parens.end.hcl\"},\"4\":{\"name\":\"keyword.operator.assignment.hcl\"}},\"match\":\"(\\\\()?\\\\b((?!(?:null|false|true)\\\\b)\\\\p{alpha}[-_[:alnum:]]*)(\\\\))?\\\\s*(=(?![=>]))\\\\s*\",\"name\":\"variable.declaration.hcl\"},\"attribute_splat\":{\"begin\":\"\\\\.\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.accessor.hcl\"}},\"end\":\"\\\\*\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.splat.hcl\"}}},\"block\":{\"begin\":\"(\\\\w[-\\\\w]*)(([^\\\\n\\\\r\\\\S]+(\\\\w[-_\\\\w]*|\\\"[^\\\\n\\\\r\\\"]*\\\"))*)[^\\\\n\\\\r\\\\S]*(\\\\{)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"match\":\"\\\\b(?!null|false|true)\\\\p{alpha}[-_[:alnum:]]*\\\\b\",\"name\":\"entity.name.type.hcl\"}]},\"2\":{\"patterns\":[{\"match\":\"\\\"[^\\\\n\\\\r\\\"]*\\\"\",\"name\":\"variable.other.enummember.hcl\"},{\"match\":\"\\\\p{alpha}[-_[:alnum:]]*\",\"name\":\"variable.other.enummember.hcl\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.hcl\"}},\"name\":\"meta.block.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#attribute_definition\"},{\"include\":\"#expressions\"},{\"include\":\"#block\"}]},\"block_inline_comments\":{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"\\\\*/\",\"name\":\"comment.block.hcl\"},\"brackets\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.begin.hcl\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.hcl\"}},\"patterns\":[{\"match\":\"\\\\*\",\"name\":\"keyword.operator.splat.hcl\"},{\"include\":\"#comma\"},{\"include\":\"#comments\"},{\"include\":\"#inline_for_expression\"},{\"include\":\"#inline_if_expression\"},{\"include\":\"#expressions\"},{\"include\":\"#local_identifiers\"}]},\"char_escapes\":{\"match\":\"\\\\\\\\(?:[\\\"\\\\\\\\nrt]|u(\\\\h{8}|\\\\h{4}))\",\"name\":\"constant.character.escape.hcl\"},\"comma\":{\"match\":\",\",\"name\":\"punctuation.separator.hcl\"},\"comments\":{\"patterns\":[{\"include\":\"#hash_line_comments\"},{\"include\":\"#double_slash_line_comments\"},{\"include\":\"#block_inline_comments\"}]},\"double_slash_line_comments\":{\"begin\":\"//\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.double-slash.hcl\"},\"expressions\":{\"patterns\":[{\"include\":\"#literal_values\"},{\"include\":\"#operators\"},{\"include\":\"#tuple_for_expression\"},{\"include\":\"#object_for_expression\"},{\"include\":\"#brackets\"},{\"include\":\"#objects\"},{\"include\":\"#attribute_access\"},{\"include\":\"#attribute_splat\"},{\"include\":\"#functions\"},{\"include\":\"#parens\"}]},\"for_expression_body\":{\"patterns\":[{\"match\":\"\\\\bin\\\\b\",\"name\":\"keyword.operator.word.hcl\"},{\"match\":\"\\\\bif\\\\b\",\"name\":\"keyword.control.conditional.hcl\"},{\"match\":\":\",\"name\":\"keyword.operator.hcl\"},{\"include\":\"#expressions\"},{\"include\":\"#comments\"},{\"include\":\"#comma\"},{\"include\":\"#local_identifiers\"}]},\"functions\":{\"begin\":\"([-:\\\\w]+)(\\\\()\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"match\":\"\\\\b\\\\p{alpha}[-_\\\\w]*::(\\\\p{alpha}[-_\\\\w]*::)?\\\\p{alpha}[-_\\\\w]*\\\\b\",\"name\":\"support.function.namespaced.hcl\"},{\"match\":\"\\\\b\\\\p{alpha}[-_\\\\w]*\\\\b\",\"name\":\"support.function.builtin.hcl\"}]},\"2\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.hcl\"}},\"name\":\"meta.function-call.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expressions\"},{\"include\":\"#comma\"}]},\"hash_line_comments\":{\"begin\":\"#\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.number-sign.hcl\"},\"hcl_type_keywords\":{\"match\":\"\\\\b(any|string|number|bool|list|set|map|tuple|object)\\\\b\",\"name\":\"storage.type.hcl\"},\"heredoc\":{\"begin\":\"(<<-?)\\\\s*(\\\\w+)\\\\s*$\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.heredoc.hcl\"},\"2\":{\"name\":\"keyword.control.heredoc.hcl\"}},\"end\":\"^\\\\s*\\\\2\\\\s*$\",\"endCaptures\":{\"0\":{\"name\":\"keyword.control.heredoc.hcl\"}},\"name\":\"string.unquoted.heredoc.hcl\",\"patterns\":[{\"include\":\"#string_interpolation\"}]},\"inline_for_expression\":{\"captures\":{\"1\":{\"name\":\"keyword.control.hcl\"},\"2\":{\"patterns\":[{\"match\":\"=>\",\"name\":\"storage.type.function.hcl\"},{\"include\":\"#for_expression_body\"}]}},\"match\":\"(for)\\\\b(.*)\\\\n\"},\"inline_if_expression\":{\"begin\":\"(if)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.hcl\"}},\"end\":\"\\\\n\",\"patterns\":[{\"include\":\"#expressions\"},{\"include\":\"#comments\"},{\"include\":\"#comma\"},{\"include\":\"#local_identifiers\"}]},\"language_constants\":{\"match\":\"\\\\b(true|false|null)\\\\b\",\"name\":\"constant.language.hcl\"},\"literal_values\":{\"patterns\":[{\"include\":\"#numeric_literals\"},{\"include\":\"#language_constants\"},{\"include\":\"#string_literals\"},{\"include\":\"#heredoc\"},{\"include\":\"#hcl_type_keywords\"}]},\"local_identifiers\":{\"match\":\"\\\\b(?!null|false|true)\\\\p{alpha}[-_[:alnum:]]*\\\\b\",\"name\":\"variable.other.readwrite.hcl\"},\"numeric_literals\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.separator.exponent.hcl\"}},\"match\":\"\\\\b\\\\d+([Ee][-+]?)\\\\d+\\\\b\",\"name\":\"constant.numeric.float.hcl\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.decimal.hcl\"},\"2\":{\"name\":\"punctuation.separator.exponent.hcl\"}},\"match\":\"\\\\b\\\\d+(\\\\.)\\\\d+(?:([Ee][-+]?)\\\\d+)?\\\\b\",\"name\":\"constant.numeric.float.hcl\"},{\"match\":\"\\\\b\\\\d+\\\\b\",\"name\":\"constant.numeric.integer.hcl\"}]},\"object_for_expression\":{\"begin\":\"(\\\\{)\\\\s?(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.section.braces.begin.hcl\"},\"2\":{\"name\":\"keyword.control.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.end.hcl\"}},\"patterns\":[{\"match\":\"=>\",\"name\":\"storage.type.function.hcl\"},{\"include\":\"#for_expression_body\"}]},\"object_key_values\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#literal_values\"},{\"include\":\"#operators\"},{\"include\":\"#tuple_for_expression\"},{\"include\":\"#object_for_expression\"},{\"include\":\"#heredoc\"},{\"include\":\"#functions\"}]},\"objects\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.begin.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.end.hcl\"}},\"name\":\"meta.braces.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#objects\"},{\"include\":\"#inline_for_expression\"},{\"include\":\"#inline_if_expression\"},{\"captures\":{\"1\":{\"name\":\"meta.mapping.key.hcl variable.other.readwrite.hcl\"},\"2\":{\"name\":\"keyword.operator.assignment.hcl\"}},\"match\":\"\\\\b((?!null|false|true)\\\\p{alpha}[-_[:alnum:]]*)\\\\s*(=(?!=))\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"meta.mapping.key.hcl string.quoted.double.hcl\"},\"2\":{\"name\":\"punctuation.definition.string.begin.hcl\"},\"3\":{\"name\":\"punctuation.definition.string.end.hcl\"},\"4\":{\"name\":\"keyword.operator.hcl\"}},\"match\":\"^\\\\s*((\\\").*(\\\"))\\\\s*(=)\\\\s*\"},{\"begin\":\"^\\\\s*\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"(\\\\))\\\\s*([:=])\\\\s*\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.section.parens.end.hcl\"},\"2\":{\"name\":\"keyword.operator.hcl\"}},\"name\":\"meta.mapping.key.hcl\",\"patterns\":[{\"include\":\"#attribute_access\"},{\"include\":\"#attribute_splat\"}]},{\"include\":\"#object_key_values\"}]},\"operators\":{\"patterns\":[{\"match\":\">=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"<=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"==\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"!=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\+\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"-\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\*\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"/\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"%\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"&&\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"\\\\|\\\\|\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"!\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\">\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"<\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\?\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"keyword.operator.hcl\"},{\"match\":\":\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"=>\",\"name\":\"keyword.operator.hcl\"}]},\"parens\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.hcl\"}},\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expressions\"}]},\"string_interpolation\":{\"begin\":\"(?<![$%])([$%]\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.interpolation.begin.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.interpolation.end.hcl\"}},\"name\":\"meta.interpolation.hcl\",\"patterns\":[{\"match\":\"~\\\\s\",\"name\":\"keyword.operator.template.left.trim.hcl\"},{\"match\":\"\\\\s~\",\"name\":\"keyword.operator.template.right.trim.hcl\"},{\"match\":\"\\\\b(if|else|endif|for|in|endfor)\\\\b\",\"name\":\"keyword.control.hcl\"},{\"include\":\"#expressions\"},{\"include\":\"#local_identifiers\"}]},\"string_literals\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hcl\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.hcl\"}},\"name\":\"string.quoted.double.hcl\",\"patterns\":[{\"include\":\"#string_interpolation\"},{\"include\":\"#char_escapes\"}]},\"tuple_for_expression\":{\"begin\":\"(\\\\[)\\\\s?(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.section.brackets.begin.hcl\"},\"2\":{\"name\":\"keyword.control.hcl\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.hcl\"}},\"patterns\":[{\"include\":\"#for_expression_body\"}]}},\"scopeName\":\"source.hcl\"}"))];
|
|
3
|
-
//#endregion
|
|
4
|
-
export { hcl_default as default };
|