stepzen-graphiql 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +85 -0
  2. package/dist/GraphiQLExplorer.d.ts +10 -0
  3. package/dist/Range-CPFFy5pj.mjs +26 -0
  4. package/dist/Range-CUfOrqgY.js +1 -0
  5. package/dist/SchemaReference-94TE3IPs.mjs +146 -0
  6. package/dist/SchemaReference-DKgkDdcV.js +1 -0
  7. package/dist/brace-fold-9JQ5QTIN.mjs +122 -0
  8. package/dist/brace-fold-CUTcWTRf.js +1 -0
  9. package/dist/closebrackets-BL_z-rKi.mjs +165 -0
  10. package/dist/closebrackets-DHbhKDzk.js +2 -0
  11. package/dist/codemirror-CxfyhJc1.mjs +27 -0
  12. package/dist/codemirror-DMBo1i5w.js +24 -0
  13. package/dist/codemirror-DgPcZxSc.mjs +6121 -0
  14. package/dist/codemirror-Kv5dN_jU.js +1 -0
  15. package/dist/comment-CAsllqoy.js +2 -0
  16. package/dist/comment-DscvXuhU.mjs +150 -0
  17. package/dist/components/ExplorerPage/ExplorerHeader.d.ts +3 -0
  18. package/dist/components/ExplorerPage/ExplorerPage.d.ts +8 -0
  19. package/dist/components/ExplorerPage/GraphiQLInterface.d.ts +60 -0
  20. package/dist/components/ExplorerPage/Snippets.d.ts +17 -0
  21. package/dist/components/ExplorerPage/clearTooltip.d.ts +1 -0
  22. package/dist/components/exporterPlugin/CodeExporter.d.ts +93 -0
  23. package/dist/components/exporterPlugin/index.d.ts +7 -0
  24. package/dist/components/exporterPlugin/snippets/__helpers__/getOptionCombinations.d.ts +2 -0
  25. package/dist/components/exporterPlugin/snippets/index.d.ts +2 -0
  26. package/dist/components/exporterPlugin/snippets/javascript/fetch.d.ts +3 -0
  27. package/dist/components/exporterPlugin/snippets/javascript/reactApollo.d.ts +3 -0
  28. package/dist/components/exporterPlugin/toposort.d.ts +2 -0
  29. package/dist/components/exporterPlugin/useExporterPlugin.d.ts +19 -0
  30. package/dist/components/exporterPlugin/utils/capitalizeFirstLetter.d.ts +1 -0
  31. package/dist/components/exporterPlugin/utils/index.d.ts +7 -0
  32. package/dist/components/exporterPlugin/utils/jsCommentsFactory.d.ts +1 -0
  33. package/dist/contexts/EnvironmentContext.d.ts +37 -0
  34. package/dist/contexts/endpoint.d.ts +39 -0
  35. package/dist/dialog-BF69fCJO.js +1 -0
  36. package/dist/dialog-Ci1bnuc2.mjs +74 -0
  37. package/dist/dialog-Dh2DOTOu.js +1 -0
  38. package/dist/dialog-nXZjpybF.mjs +26 -0
  39. package/dist/foldgutter-DiGsqcNo.mjs +238 -0
  40. package/dist/foldgutter-Do6XNu8o.js +1 -0
  41. package/dist/forEachState-DA54msa8.mjs +11 -0
  42. package/dist/forEachState-DY_pA9Bd.js +1 -0
  43. package/dist/hint-BNpE1H1l.js +1 -0
  44. package/dist/hint-BQ9WwQj_.mjs +123 -0
  45. package/dist/hint-dA98kXsJ.js +1 -0
  46. package/dist/hint-ptEpgPx0.mjs +24 -0
  47. package/dist/index-BeOZF5ut.js +650 -0
  48. package/dist/index-GG9J9CZE.js +1 -0
  49. package/dist/index-Iqk59VQ1.mjs +89463 -0
  50. package/dist/index-_X52-Rov.mjs +11 -0
  51. package/dist/index.cjs.js +1 -0
  52. package/dist/index.d.ts +3 -0
  53. package/dist/index.es.js +4 -0
  54. package/dist/info-BhA0aX7P.js +1 -0
  55. package/dist/info-DavOVk27.mjs +99 -0
  56. package/dist/info-addon-BppfpWGs.js +1 -0
  57. package/dist/info-addon-jclzOzZb.mjs +66 -0
  58. package/dist/javascript-Bk78gZXV.js +1 -0
  59. package/dist/javascript-HLYdFIhF.mjs +26 -0
  60. package/dist/javascript-RO_jaPiE.mjs +707 -0
  61. package/dist/javascript-poxRzxcy.js +1 -0
  62. package/dist/jsx-C8WdRUVV.mjs +414 -0
  63. package/dist/jsx-LzpFIybc.js +1 -0
  64. package/dist/jump-BR4c9I5u.mjs +85 -0
  65. package/dist/jump-C3iGjDkY.js +1 -0
  66. package/dist/jump-to-line-BZOuAkwy.js +1 -0
  67. package/dist/jump-to-line-pXiAP2DT.mjs +61 -0
  68. package/dist/lib/constants.d.ts +6 -0
  69. package/dist/lib/graphiql-helpers.d.ts +86 -0
  70. package/dist/lib/helpers.d.ts +53 -0
  71. package/dist/lint-Aw1wLmnw.mjs +112 -0
  72. package/dist/lint-Bf0wS1Ab.js +1 -0
  73. package/dist/lint-DL7I1P7I.mjs +272 -0
  74. package/dist/lint-GZ9x3Nii.js +6 -0
  75. package/dist/lint-L3DNAS-R.mjs +216 -0
  76. package/dist/lint-azLq6zoS.js +1 -0
  77. package/dist/matchbrackets-BB4g2Y6d.mjs +87 -0
  78. package/dist/matchbrackets-DJZ2jVlm.js +1 -0
  79. package/dist/matchbrackets-DNVziiaa.mjs +26 -0
  80. package/dist/matchbrackets-DPv_MB7c.js +1 -0
  81. package/dist/mode-Bad_JbYc.js +1 -0
  82. package/dist/mode-BuM4vqHx.js +1 -0
  83. package/dist/mode-C9FNlffS.js +1 -0
  84. package/dist/mode-CtmJdiWw.mjs +73 -0
  85. package/dist/mode-CxFmwOoU.mjs +25 -0
  86. package/dist/mode-DQHzanY6.mjs +64 -0
  87. package/dist/mode-indent-9VnFlqY-.mjs +8 -0
  88. package/dist/mode-indent-m3TP74Ia.js +1 -0
  89. package/dist/search-BUZtJ7Zg.mjs +268 -0
  90. package/dist/search-DxgAMk6j.js +2 -0
  91. package/dist/searchcursor-BrHSjZde.mjs +26 -0
  92. package/dist/searchcursor-Cf1_qqgl.js +1 -0
  93. package/dist/searchcursor-DHtNMOPb.mjs +239 -0
  94. package/dist/searchcursor-eGwb3e2h.js +7 -0
  95. package/dist/show-hint-CYURLLrO.js +1 -0
  96. package/dist/show-hint-CmHZP7k_.mjs +357 -0
  97. package/dist/style.css +9 -0
  98. package/dist/sublime-BKhMEkpg.js +6 -0
  99. package/dist/sublime-Dmy11GSm.mjs +563 -0
  100. package/dist/types/config.d.ts +7 -0
  101. package/package.json +111 -0
@@ -0,0 +1,707 @@
1
+ import { r as we } from "./codemirror-DgPcZxSc.mjs";
2
+ var Nr = { exports: {} }, Br;
3
+ function ge() {
4
+ return Br || (Br = 1, function(xe, he) {
5
+ (function(x) {
6
+ x(we());
7
+ })(function(x) {
8
+ x.defineMode("javascript", function(Jr, g) {
9
+ var N = Jr.indentUnit, br = g.statementIndent, X = g.jsonld, z = g.json || X, wr = g.trackScope !== !1, p = g.typescript, Y = g.wordCharacters || /[\w$\xa1-\uffff]/, xr = function() {
10
+ function r(v) {
11
+ return { type: v, style: "keyword" };
12
+ }
13
+ var e = r("keyword a"), t = r("keyword b"), f = r("keyword c"), u = r("keyword d"), l = r("operator"), m = { type: "atom", style: "atom" };
14
+ return {
15
+ if: r("if"),
16
+ while: e,
17
+ with: e,
18
+ else: t,
19
+ do: t,
20
+ try: t,
21
+ finally: t,
22
+ return: u,
23
+ break: u,
24
+ continue: u,
25
+ new: r("new"),
26
+ delete: f,
27
+ void: f,
28
+ throw: f,
29
+ debugger: r("debugger"),
30
+ var: r("var"),
31
+ const: r("var"),
32
+ let: r("var"),
33
+ function: r("function"),
34
+ catch: r("catch"),
35
+ for: r("for"),
36
+ switch: r("switch"),
37
+ case: r("case"),
38
+ default: r("default"),
39
+ in: l,
40
+ typeof: l,
41
+ instanceof: l,
42
+ true: m,
43
+ false: m,
44
+ null: m,
45
+ undefined: m,
46
+ NaN: m,
47
+ Infinity: m,
48
+ this: r("this"),
49
+ class: r("class"),
50
+ super: r("atom"),
51
+ yield: f,
52
+ export: r("export"),
53
+ import: r("import"),
54
+ extends: f,
55
+ await: f
56
+ };
57
+ }(), hr = /[+\-*&%=<>!?|~^@]/, Fr = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
58
+ function Pr(r) {
59
+ for (var e = !1, t, f = !1; (t = r.next()) != null; ) {
60
+ if (!e) {
61
+ if (t == "/" && !f) return;
62
+ t == "[" ? f = !0 : f && t == "]" && (f = !1);
63
+ }
64
+ e = !e && t == "\\";
65
+ }
66
+ }
67
+ var Q, Z;
68
+ function b(r, e, t) {
69
+ return Q = r, Z = t, e;
70
+ }
71
+ function _(r, e) {
72
+ var t = r.next();
73
+ if (t == '"' || t == "'")
74
+ return e.tokenize = Rr(t), e.tokenize(r, e);
75
+ if (t == "." && r.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))
76
+ return b("number", "number");
77
+ if (t == "." && r.match(".."))
78
+ return b("spread", "meta");
79
+ if (/[\[\]{}\(\),;\:\.]/.test(t))
80
+ return b(t);
81
+ if (t == "=" && r.eat(">"))
82
+ return b("=>", "operator");
83
+ if (t == "0" && r.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))
84
+ return b("number", "number");
85
+ if (/\d/.test(t))
86
+ return r.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), b("number", "number");
87
+ if (t == "/")
88
+ return r.eat("*") ? (e.tokenize = C, C(r, e)) : r.eat("/") ? (r.skipToEnd(), b("comment", "comment")) : Or(r, e, 1) ? (Pr(r), r.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), b("regexp", "string-2")) : (r.eat("="), b("operator", "operator", r.current()));
89
+ if (t == "`")
90
+ return e.tokenize = U, U(r, e);
91
+ if (t == "#" && r.peek() == "!")
92
+ return r.skipToEnd(), b("meta", "meta");
93
+ if (t == "#" && r.eatWhile(Y))
94
+ return b("variable", "property");
95
+ if (t == "<" && r.match("!--") || t == "-" && r.match("->") && !/\S/.test(r.string.slice(0, r.start)))
96
+ return r.skipToEnd(), b("comment", "comment");
97
+ if (hr.test(t))
98
+ return (t != ">" || !e.lexical || e.lexical.type != ">") && (r.eat("=") ? (t == "!" || t == "=") && r.eat("=") : /[<>*+\-|&?]/.test(t) && (r.eat(t), t == ">" && r.eat(t))), t == "?" && r.eat(".") ? b(".") : b("operator", "operator", r.current());
99
+ if (Y.test(t)) {
100
+ r.eatWhile(Y);
101
+ var f = r.current();
102
+ if (e.lastType != ".") {
103
+ if (xr.propertyIsEnumerable(f)) {
104
+ var u = xr[f];
105
+ return b(u.type, u.style, f);
106
+ }
107
+ if (f == "async" && r.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1))
108
+ return b("async", "keyword", f);
109
+ }
110
+ return b("variable", "variable", f);
111
+ }
112
+ }
113
+ function Rr(r) {
114
+ return function(e, t) {
115
+ var f = !1, u;
116
+ if (X && e.peek() == "@" && e.match(Fr))
117
+ return t.tokenize = _, b("jsonld-keyword", "meta");
118
+ for (; (u = e.next()) != null && !(u == r && !f); )
119
+ f = !f && u == "\\";
120
+ return f || (t.tokenize = _), b("string", "string");
121
+ };
122
+ }
123
+ function C(r, e) {
124
+ for (var t = !1, f; f = r.next(); ) {
125
+ if (f == "/" && t) {
126
+ e.tokenize = _;
127
+ break;
128
+ }
129
+ t = f == "*";
130
+ }
131
+ return b("comment", "comment");
132
+ }
133
+ function U(r, e) {
134
+ for (var t = !1, f; (f = r.next()) != null; ) {
135
+ if (!t && (f == "`" || f == "$" && r.eat("{"))) {
136
+ e.tokenize = _;
137
+ break;
138
+ }
139
+ t = !t && f == "\\";
140
+ }
141
+ return b("quasi", "string-2", r.current());
142
+ }
143
+ var Lr = "([{}])";
144
+ function or(r, e) {
145
+ e.fatArrowAt && (e.fatArrowAt = null);
146
+ var t = r.string.indexOf("=>", r.start);
147
+ if (!(t < 0)) {
148
+ if (p) {
149
+ var f = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(r.string.slice(r.start, t));
150
+ f && (t = f.index);
151
+ }
152
+ for (var u = 0, l = !1, m = t - 1; m >= 0; --m) {
153
+ var v = r.string.charAt(m), T = Lr.indexOf(v);
154
+ if (T >= 0 && T < 3) {
155
+ if (!u) {
156
+ ++m;
157
+ break;
158
+ }
159
+ if (--u == 0) {
160
+ v == "(" && (l = !0);
161
+ break;
162
+ }
163
+ } else if (T >= 3 && T < 6)
164
+ ++u;
165
+ else if (Y.test(v))
166
+ l = !0;
167
+ else if (/["'\/`]/.test(v))
168
+ for (; ; --m) {
169
+ if (m == 0) return;
170
+ var be = r.string.charAt(m - 1);
171
+ if (be == v && r.string.charAt(m - 2) != "\\") {
172
+ m--;
173
+ break;
174
+ }
175
+ }
176
+ else if (l && !u) {
177
+ ++m;
178
+ break;
179
+ }
180
+ }
181
+ l && !u && (e.fatArrowAt = m);
182
+ }
183
+ }
184
+ var Qr = {
185
+ atom: !0,
186
+ number: !0,
187
+ variable: !0,
188
+ string: !0,
189
+ regexp: !0,
190
+ this: !0,
191
+ import: !0,
192
+ "jsonld-keyword": !0
193
+ };
194
+ function vr(r, e, t, f, u, l) {
195
+ this.indented = r, this.column = e, this.type = t, this.prev = u, this.info = l, f != null && (this.align = f);
196
+ }
197
+ function Ur(r, e) {
198
+ if (!wr) return !1;
199
+ for (var t = r.localVars; t; t = t.next)
200
+ if (t.name == e) return !0;
201
+ for (var f = r.context; f; f = f.prev)
202
+ for (var t = f.vars; t; t = t.next)
203
+ if (t.name == e) return !0;
204
+ }
205
+ function gr(r, e, t, f, u) {
206
+ var l = r.cc;
207
+ for (i.state = r, i.stream = u, i.marked = null, i.cc = l, i.style = e, r.lexical.hasOwnProperty("align") || (r.lexical.align = !0); ; ) {
208
+ var m = l.length ? l.pop() : z ? k : w;
209
+ if (m(t, f)) {
210
+ for (; l.length && l[l.length - 1].lex; )
211
+ l.pop()();
212
+ return i.marked ? i.marked : t == "variable" && Ur(r, f) ? "variable-2" : e;
213
+ }
214
+ }
215
+ }
216
+ var i = { state: null, marked: null, cc: null };
217
+ function o() {
218
+ for (var r = arguments.length - 1; r >= 0; r--) i.cc.push(arguments[r]);
219
+ }
220
+ function n() {
221
+ return o.apply(null, arguments), !0;
222
+ }
223
+ function sr(r, e) {
224
+ for (var t = e; t; t = t.next) if (t.name == r) return !0;
225
+ return !1;
226
+ }
227
+ function B(r) {
228
+ var e = i.state;
229
+ if (i.marked = "def", !!wr) {
230
+ if (e.context) {
231
+ if (e.lexical.info == "var" && e.context && e.context.block) {
232
+ var t = yr(r, e.context);
233
+ if (t != null) {
234
+ e.context = t;
235
+ return;
236
+ }
237
+ } else if (!sr(r, e.localVars)) {
238
+ e.localVars = new D(r, e.localVars);
239
+ return;
240
+ }
241
+ }
242
+ g.globalVars && !sr(r, e.globalVars) && (e.globalVars = new D(r, e.globalVars));
243
+ }
244
+ }
245
+ function yr(r, e) {
246
+ if (e)
247
+ if (e.block) {
248
+ var t = yr(r, e.prev);
249
+ return t ? t == e.prev ? e : new W(t, e.vars, !0) : null;
250
+ } else return sr(r, e.vars) ? e : new W(e.prev, new D(r, e.vars), !1);
251
+ else return null;
252
+ }
253
+ function rr(r) {
254
+ return r == "public" || r == "private" || r == "protected" || r == "abstract" || r == "readonly";
255
+ }
256
+ function W(r, e, t) {
257
+ this.prev = r, this.vars = e, this.block = t;
258
+ }
259
+ function D(r, e) {
260
+ this.name = r, this.next = e;
261
+ }
262
+ var Wr = new D("this", new D("arguments", null));
263
+ function M() {
264
+ i.state.context = new W(i.state.context, i.state.localVars, !1), i.state.localVars = Wr;
265
+ }
266
+ function er() {
267
+ i.state.context = new W(i.state.context, i.state.localVars, !0), i.state.localVars = null;
268
+ }
269
+ M.lex = er.lex = !0;
270
+ function j() {
271
+ i.state.localVars = i.state.context.vars, i.state.context = i.state.context.prev;
272
+ }
273
+ j.lex = !0;
274
+ function s(r, e) {
275
+ var t = function() {
276
+ var f = i.state, u = f.indented;
277
+ if (f.lexical.type == "stat") u = f.lexical.indented;
278
+ else for (var l = f.lexical; l && l.type == ")" && l.align; l = l.prev)
279
+ u = l.indented;
280
+ f.lexical = new vr(u, i.stream.column(), r, null, f.lexical, e);
281
+ };
282
+ return t.lex = !0, t;
283
+ }
284
+ function a() {
285
+ var r = i.state;
286
+ r.lexical.prev && (r.lexical.type == ")" && (r.indented = r.lexical.indented), r.lexical = r.lexical.prev);
287
+ }
288
+ a.lex = !0;
289
+ function c(r) {
290
+ function e(t) {
291
+ return t == r ? n() : r == ";" || t == "}" || t == ")" || t == "]" ? o() : n(e);
292
+ }
293
+ return e;
294
+ }
295
+ function w(r, e) {
296
+ return r == "var" ? n(s("vardef", e), pr, c(";"), a) : r == "keyword a" ? n(s("form"), cr, w, a) : r == "keyword b" ? n(s("form"), w, a) : r == "keyword d" ? i.stream.match(/^\s*$/, !1) ? n() : n(s("stat"), J, c(";"), a) : r == "debugger" ? n(c(";")) : r == "{" ? n(s("}"), er, ir, a, j) : r == ";" ? n() : r == "if" ? (i.state.lexical.info == "else" && i.state.cc[i.state.cc.length - 1] == a && i.state.cc.pop()(), n(s("form"), cr, w, a, Ar)) : r == "function" ? n(S) : r == "for" ? n(s("form"), er, Sr, w, j, a) : r == "class" || p && e == "interface" ? (i.marked = "keyword", n(s("form", r == "class" ? r : e), _r, a)) : r == "variable" ? p && e == "declare" ? (i.marked = "keyword", n(w)) : p && (e == "module" || e == "enum" || e == "type") && i.stream.match(/^\s*\w/, !1) ? (i.marked = "keyword", e == "enum" ? n($r) : e == "type" ? n(zr, c("operator"), d, c(";")) : n(s("form"), E, c("{"), s("}"), ir, a, a)) : p && e == "namespace" ? (i.marked = "keyword", n(s("form"), k, w, a)) : p && e == "abstract" ? (i.marked = "keyword", n(w)) : n(s("stat"), Yr) : r == "switch" ? n(
297
+ s("form"),
298
+ cr,
299
+ c("{"),
300
+ s("}", "switch"),
301
+ er,
302
+ ir,
303
+ a,
304
+ a,
305
+ j
306
+ ) : r == "case" ? n(k, c(":")) : r == "default" ? n(c(":")) : r == "catch" ? n(s("form"), M, Dr, w, a, j) : r == "export" ? n(s("stat"), ce, a) : r == "import" ? n(s("stat"), le, a) : r == "async" ? n(w) : e == "@" ? n(k, w) : o(s("stat"), k, c(";"), a);
307
+ }
308
+ function Dr(r) {
309
+ if (r == "(") return n(O, c(")"));
310
+ }
311
+ function k(r, e) {
312
+ return jr(r, e, !1);
313
+ }
314
+ function y(r, e) {
315
+ return jr(r, e, !0);
316
+ }
317
+ function cr(r) {
318
+ return r != "(" ? o() : n(s(")"), J, c(")"), a);
319
+ }
320
+ function jr(r, e, t) {
321
+ if (i.state.fatArrowAt == i.stream.start) {
322
+ var f = t ? Tr : Er;
323
+ if (r == "(") return n(M, s(")"), h(O, ")"), a, c("=>"), f, j);
324
+ if (r == "variable") return o(M, E, c("=>"), f, j);
325
+ }
326
+ var u = t ? F : q;
327
+ return Qr.hasOwnProperty(r) ? n(u) : r == "function" ? n(S, u) : r == "class" || p && e == "interface" ? (i.marked = "keyword", n(s("form"), se, a)) : r == "keyword c" || r == "async" ? n(t ? y : k) : r == "(" ? n(s(")"), J, c(")"), a, u) : r == "operator" || r == "spread" ? n(t ? y : k) : r == "[" ? n(s("]"), me, a, u) : r == "{" ? K(tr, "}", null, u) : r == "quasi" ? o(nr, u) : r == "new" ? n(Hr(t)) : n();
328
+ }
329
+ function J(r) {
330
+ return r.match(/[;\}\)\],]/) ? o() : o(k);
331
+ }
332
+ function q(r, e) {
333
+ return r == "," ? n(J) : F(r, e, !1);
334
+ }
335
+ function F(r, e, t) {
336
+ var f = t == !1 ? q : F, u = t == !1 ? k : y;
337
+ if (r == "=>") return n(M, t ? Tr : Er, j);
338
+ if (r == "operator")
339
+ return /\+\+|--/.test(e) || p && e == "!" ? n(f) : p && e == "<" && i.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? n(s(">"), h(d, ">"), a, f) : e == "?" ? n(k, c(":"), u) : n(u);
340
+ if (r == "quasi")
341
+ return o(nr, f);
342
+ if (r != ";") {
343
+ if (r == "(") return K(y, ")", "call", f);
344
+ if (r == ".") return n(Zr, f);
345
+ if (r == "[") return n(s("]"), J, c("]"), a, f);
346
+ if (p && e == "as")
347
+ return i.marked = "keyword", n(d, f);
348
+ if (r == "regexp")
349
+ return i.state.lastType = i.marked = "operator", i.stream.backUp(i.stream.pos - i.stream.start - 1), n(u);
350
+ }
351
+ }
352
+ function nr(r, e) {
353
+ return r != "quasi" ? o() : e.slice(e.length - 2) != "${" ? n(nr) : n(J, Kr);
354
+ }
355
+ function Kr(r) {
356
+ if (r == "}")
357
+ return i.marked = "string-2", i.state.tokenize = U, n(nr);
358
+ }
359
+ function Er(r) {
360
+ return or(i.stream, i.state), o(r == "{" ? w : k);
361
+ }
362
+ function Tr(r) {
363
+ return or(i.stream, i.state), o(r == "{" ? w : y);
364
+ }
365
+ function Hr(r) {
366
+ return function(e) {
367
+ return e == "." ? n(r ? Xr : Gr) : e == "variable" && p ? n(ie, r ? F : q) : o(r ? y : k);
368
+ };
369
+ }
370
+ function Gr(r, e) {
371
+ if (e == "target")
372
+ return i.marked = "keyword", n(q);
373
+ }
374
+ function Xr(r, e) {
375
+ if (e == "target")
376
+ return i.marked = "keyword", n(F);
377
+ }
378
+ function Yr(r) {
379
+ return r == ":" ? n(a, w) : o(q, c(";"), a);
380
+ }
381
+ function Zr(r) {
382
+ if (r == "variable")
383
+ return i.marked = "property", n();
384
+ }
385
+ function tr(r, e) {
386
+ if (r == "async")
387
+ return i.marked = "property", n(tr);
388
+ if (r == "variable" || i.style == "keyword") {
389
+ if (i.marked = "property", e == "get" || e == "set") return n(Cr);
390
+ var t;
391
+ return p && i.state.fatArrowAt == i.stream.start && (t = i.stream.match(/^\s*:\s*/, !1)) && (i.state.fatArrowAt = i.stream.pos + t[0].length), n($);
392
+ } else {
393
+ if (r == "number" || r == "string")
394
+ return i.marked = X ? "property" : i.style + " property", n($);
395
+ if (r == "jsonld-keyword")
396
+ return n($);
397
+ if (p && rr(e))
398
+ return i.marked = "keyword", n(tr);
399
+ if (r == "[")
400
+ return n(k, P, c("]"), $);
401
+ if (r == "spread")
402
+ return n(y, $);
403
+ if (e == "*")
404
+ return i.marked = "keyword", n(tr);
405
+ if (r == ":")
406
+ return o($);
407
+ }
408
+ }
409
+ function Cr(r) {
410
+ return r != "variable" ? o($) : (i.marked = "property", n(S));
411
+ }
412
+ function $(r) {
413
+ if (r == ":") return n(y);
414
+ if (r == "(") return o(S);
415
+ }
416
+ function h(r, e, t) {
417
+ function f(u, l) {
418
+ if (t ? t.indexOf(u) > -1 : u == ",") {
419
+ var m = i.state.lexical;
420
+ return m.info == "call" && (m.pos = (m.pos || 0) + 1), n(function(v, T) {
421
+ return v == e || T == e ? o() : o(r);
422
+ }, f);
423
+ }
424
+ return u == e || l == e ? n() : t && t.indexOf(";") > -1 ? o(r) : n(c(e));
425
+ }
426
+ return function(u, l) {
427
+ return u == e || l == e ? n() : o(r, f);
428
+ };
429
+ }
430
+ function K(r, e, t) {
431
+ for (var f = 3; f < arguments.length; f++)
432
+ i.cc.push(arguments[f]);
433
+ return n(s(e, t), h(r, e), a);
434
+ }
435
+ function ir(r) {
436
+ return r == "}" ? n() : o(w, ir);
437
+ }
438
+ function P(r, e) {
439
+ if (p) {
440
+ if (r == ":") return n(d);
441
+ if (e == "?") return n(P);
442
+ }
443
+ }
444
+ function re(r, e) {
445
+ if (p && (r == ":" || e == "in")) return n(d);
446
+ }
447
+ function Vr(r) {
448
+ if (p && r == ":")
449
+ return i.stream.match(/^\s*\w+\s+is\b/, !1) ? n(k, ee, d) : n(d);
450
+ }
451
+ function ee(r, e) {
452
+ if (e == "is")
453
+ return i.marked = "keyword", n();
454
+ }
455
+ function d(r, e) {
456
+ if (e == "keyof" || e == "typeof" || e == "infer" || e == "readonly")
457
+ return i.marked = "keyword", n(e == "typeof" ? y : d);
458
+ if (r == "variable" || e == "void")
459
+ return i.marked = "type", n(V);
460
+ if (e == "|" || e == "&") return n(d);
461
+ if (r == "string" || r == "number" || r == "atom") return n(V);
462
+ if (r == "[") return n(s("]"), h(d, "]", ","), a, V);
463
+ if (r == "{") return n(s("}"), lr, a, V);
464
+ if (r == "(") return n(h(mr, ")"), ne, V);
465
+ if (r == "<") return n(h(d, ">"), d);
466
+ if (r == "quasi")
467
+ return o(dr, V);
468
+ }
469
+ function ne(r) {
470
+ if (r == "=>") return n(d);
471
+ }
472
+ function lr(r) {
473
+ return r.match(/[\}\)\]]/) ? n() : r == "," || r == ";" ? n(lr) : o(H, lr);
474
+ }
475
+ function H(r, e) {
476
+ if (r == "variable" || i.style == "keyword")
477
+ return i.marked = "property", n(H);
478
+ if (e == "?" || r == "number" || r == "string")
479
+ return n(H);
480
+ if (r == ":")
481
+ return n(d);
482
+ if (r == "[")
483
+ return n(c("variable"), re, c("]"), H);
484
+ if (r == "(")
485
+ return o(L, H);
486
+ if (!r.match(/[;\}\)\],]/))
487
+ return n();
488
+ }
489
+ function dr(r, e) {
490
+ return r != "quasi" ? o() : e.slice(e.length - 2) != "${" ? n(dr) : n(d, te);
491
+ }
492
+ function te(r) {
493
+ if (r == "}")
494
+ return i.marked = "string-2", i.state.tokenize = U, n(dr);
495
+ }
496
+ function mr(r, e) {
497
+ return r == "variable" && i.stream.match(/^\s*[?:]/, !1) || e == "?" ? n(mr) : r == ":" ? n(d) : r == "spread" ? n(mr) : o(d);
498
+ }
499
+ function V(r, e) {
500
+ if (e == "<") return n(s(">"), h(d, ">"), a, V);
501
+ if (e == "|" || r == "." || e == "&") return n(d);
502
+ if (r == "[") return n(d, c("]"), V);
503
+ if (e == "extends" || e == "implements")
504
+ return i.marked = "keyword", n(d);
505
+ if (e == "?") return n(d, c(":"), d);
506
+ }
507
+ function ie(r, e) {
508
+ if (e == "<") return n(s(">"), h(d, ">"), a, V);
509
+ }
510
+ function fr() {
511
+ return o(d, fe);
512
+ }
513
+ function fe(r, e) {
514
+ if (e == "=") return n(d);
515
+ }
516
+ function pr(r, e) {
517
+ return e == "enum" ? (i.marked = "keyword", n($r)) : o(E, P, A, ue);
518
+ }
519
+ function E(r, e) {
520
+ if (p && rr(e))
521
+ return i.marked = "keyword", n(E);
522
+ if (r == "variable")
523
+ return B(e), n();
524
+ if (r == "spread") return n(E);
525
+ if (r == "[") return K(ae, "]");
526
+ if (r == "{") return K(Ir, "}");
527
+ }
528
+ function Ir(r, e) {
529
+ return r == "variable" && !i.stream.match(/^\s*:/, !1) ? (B(e), n(A)) : (r == "variable" && (i.marked = "property"), r == "spread" ? n(E) : r == "}" ? o() : r == "[" ? n(k, c("]"), c(":"), Ir) : n(c(":"), E, A));
530
+ }
531
+ function ae() {
532
+ return o(E, A);
533
+ }
534
+ function A(r, e) {
535
+ if (e == "=") return n(y);
536
+ }
537
+ function ue(r) {
538
+ if (r == ",") return n(pr);
539
+ }
540
+ function Ar(r, e) {
541
+ if (r == "keyword b" && e == "else") return n(s("form", "else"), w, a);
542
+ }
543
+ function Sr(r, e) {
544
+ if (e == "await") return n(Sr);
545
+ if (r == "(") return n(s(")"), oe, a);
546
+ }
547
+ function oe(r) {
548
+ return r == "var" ? n(pr, R) : r == "variable" ? n(R) : o(R);
549
+ }
550
+ function R(r, e) {
551
+ return r == ")" ? n() : r == ";" ? n(R) : e == "in" || e == "of" ? (i.marked = "keyword", n(k, R)) : o(k, R);
552
+ }
553
+ function S(r, e) {
554
+ if (e == "*")
555
+ return i.marked = "keyword", n(S);
556
+ if (r == "variable")
557
+ return B(e), n(S);
558
+ if (r == "(") return n(M, s(")"), h(O, ")"), a, Vr, w, j);
559
+ if (p && e == "<") return n(s(">"), h(fr, ">"), a, S);
560
+ }
561
+ function L(r, e) {
562
+ if (e == "*")
563
+ return i.marked = "keyword", n(L);
564
+ if (r == "variable")
565
+ return B(e), n(L);
566
+ if (r == "(") return n(M, s(")"), h(O, ")"), a, Vr, j);
567
+ if (p && e == "<") return n(s(">"), h(fr, ">"), a, L);
568
+ }
569
+ function zr(r, e) {
570
+ if (r == "keyword" || r == "variable")
571
+ return i.marked = "type", n(zr);
572
+ if (e == "<")
573
+ return n(s(">"), h(fr, ">"), a);
574
+ }
575
+ function O(r, e) {
576
+ return e == "@" && n(k, O), r == "spread" ? n(O) : p && rr(e) ? (i.marked = "keyword", n(O)) : p && r == "this" ? n(P, A) : o(E, P, A);
577
+ }
578
+ function se(r, e) {
579
+ return r == "variable" ? _r(r, e) : ar(r, e);
580
+ }
581
+ function _r(r, e) {
582
+ if (r == "variable")
583
+ return B(e), n(ar);
584
+ }
585
+ function ar(r, e) {
586
+ if (e == "<") return n(s(">"), h(fr, ">"), a, ar);
587
+ if (e == "extends" || e == "implements" || p && r == ",")
588
+ return e == "implements" && (i.marked = "keyword"), n(p ? d : k, ar);
589
+ if (r == "{") return n(s("}"), I, a);
590
+ }
591
+ function I(r, e) {
592
+ if (r == "async" || r == "variable" && (e == "static" || e == "get" || e == "set" || p && rr(e)) && i.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
593
+ return i.marked = "keyword", n(I);
594
+ if (r == "variable" || i.style == "keyword")
595
+ return i.marked = "property", n(G, I);
596
+ if (r == "number" || r == "string") return n(G, I);
597
+ if (r == "[")
598
+ return n(k, P, c("]"), G, I);
599
+ if (e == "*")
600
+ return i.marked = "keyword", n(I);
601
+ if (p && r == "(") return o(L, I);
602
+ if (r == ";" || r == ",") return n(I);
603
+ if (r == "}") return n();
604
+ if (e == "@") return n(k, I);
605
+ }
606
+ function G(r, e) {
607
+ if (e == "!" || e == "?") return n(G);
608
+ if (r == ":") return n(d, A);
609
+ if (e == "=") return n(y);
610
+ var t = i.state.lexical.prev, f = t && t.info == "interface";
611
+ return o(f ? L : S);
612
+ }
613
+ function ce(r, e) {
614
+ return e == "*" ? (i.marked = "keyword", n(kr, c(";"))) : e == "default" ? (i.marked = "keyword", n(k, c(";"))) : r == "{" ? n(h(Mr, "}"), kr, c(";")) : o(w);
615
+ }
616
+ function Mr(r, e) {
617
+ if (e == "as")
618
+ return i.marked = "keyword", n(c("variable"));
619
+ if (r == "variable") return o(y, Mr);
620
+ }
621
+ function le(r) {
622
+ return r == "string" ? n() : r == "(" ? o(k) : r == "." ? o(q) : o(ur, qr, kr);
623
+ }
624
+ function ur(r, e) {
625
+ return r == "{" ? K(ur, "}") : (r == "variable" && B(e), e == "*" && (i.marked = "keyword"), n(de));
626
+ }
627
+ function qr(r) {
628
+ if (r == ",") return n(ur, qr);
629
+ }
630
+ function de(r, e) {
631
+ if (e == "as")
632
+ return i.marked = "keyword", n(ur);
633
+ }
634
+ function kr(r, e) {
635
+ if (e == "from")
636
+ return i.marked = "keyword", n(k);
637
+ }
638
+ function me(r) {
639
+ return r == "]" ? n() : o(h(y, "]"));
640
+ }
641
+ function $r() {
642
+ return o(s("form"), E, c("{"), s("}"), h(pe, "}"), a, a);
643
+ }
644
+ function pe() {
645
+ return o(E, A);
646
+ }
647
+ function ke(r, e) {
648
+ return r.lastType == "operator" || r.lastType == "," || hr.test(e.charAt(0)) || /[,.]/.test(e.charAt(0));
649
+ }
650
+ function Or(r, e, t) {
651
+ return e.tokenize == _ && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType) || e.lastType == "quasi" && /\{\s*$/.test(r.string.slice(0, r.pos - (t || 0)));
652
+ }
653
+ return {
654
+ startState: function(r) {
655
+ var e = {
656
+ tokenize: _,
657
+ lastType: "sof",
658
+ cc: [],
659
+ lexical: new vr((r || 0) - N, 0, "block", !1),
660
+ localVars: g.localVars,
661
+ context: g.localVars && new W(null, null, !1),
662
+ indented: r || 0
663
+ };
664
+ return g.globalVars && typeof g.globalVars == "object" && (e.globalVars = g.globalVars), e;
665
+ },
666
+ token: function(r, e) {
667
+ if (r.sol() && (e.lexical.hasOwnProperty("align") || (e.lexical.align = !1), e.indented = r.indentation(), or(r, e)), e.tokenize != C && r.eatSpace()) return null;
668
+ var t = e.tokenize(r, e);
669
+ return Q == "comment" ? t : (e.lastType = Q == "operator" && (Z == "++" || Z == "--") ? "incdec" : Q, gr(e, t, Q, Z, r));
670
+ },
671
+ indent: function(r, e) {
672
+ if (r.tokenize == C || r.tokenize == U) return x.Pass;
673
+ if (r.tokenize != _) return 0;
674
+ var t = e && e.charAt(0), f = r.lexical, u;
675
+ if (!/^\s*else\b/.test(e)) for (var l = r.cc.length - 1; l >= 0; --l) {
676
+ var m = r.cc[l];
677
+ if (m == a) f = f.prev;
678
+ else if (m != Ar && m != j) break;
679
+ }
680
+ for (; (f.type == "stat" || f.type == "form") && (t == "}" || (u = r.cc[r.cc.length - 1]) && (u == q || u == F) && !/^[,\.=+\-*:?[\(]/.test(e)); )
681
+ f = f.prev;
682
+ br && f.type == ")" && f.prev.type == "stat" && (f = f.prev);
683
+ var v = f.type, T = t == v;
684
+ return v == "vardef" ? f.indented + (r.lastType == "operator" || r.lastType == "," ? f.info.length + 1 : 0) : v == "form" && t == "{" ? f.indented : v == "form" ? f.indented + N : v == "stat" ? f.indented + (ke(r, e) ? br || N : 0) : f.info == "switch" && !T && g.doubleIndentSwitch != !1 ? f.indented + (/^(?:case|default)\b/.test(e) ? N : 2 * N) : f.align ? f.column + (T ? 0 : 1) : f.indented + (T ? 0 : N);
685
+ },
686
+ electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
687
+ blockCommentStart: z ? null : "/*",
688
+ blockCommentEnd: z ? null : "*/",
689
+ blockCommentContinue: z ? null : " * ",
690
+ lineComment: z ? null : "//",
691
+ fold: "brace",
692
+ closeBrackets: "()[]{}''\"\"``",
693
+ helperType: z ? "json" : "javascript",
694
+ jsonldMode: X,
695
+ jsonMode: z,
696
+ expressionAllowed: Or,
697
+ skipExpression: function(r) {
698
+ gr(r, "atom", "atom", "true", new x.StringStream("", 2, null));
699
+ }
700
+ };
701
+ }), x.registerHelper("wordChars", "javascript", /[\w$]/), x.defineMIME("text/javascript", "javascript"), x.defineMIME("text/ecmascript", "javascript"), x.defineMIME("application/javascript", "javascript"), x.defineMIME("application/x-javascript", "javascript"), x.defineMIME("application/ecmascript", "javascript"), x.defineMIME("application/json", { name: "javascript", json: !0 }), x.defineMIME("application/x-json", { name: "javascript", json: !0 }), x.defineMIME("application/manifest+json", { name: "javascript", json: !0 }), x.defineMIME("application/ld+json", { name: "javascript", jsonld: !0 }), x.defineMIME("text/typescript", { name: "javascript", typescript: !0 }), x.defineMIME("application/typescript", { name: "javascript", typescript: !0 });
702
+ });
703
+ }()), Nr.exports;
704
+ }
705
+ export {
706
+ ge as r
707
+ };