prettier-plugin-embed 0.4.12 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -1
- package/dist/embedded/register.d.ts +2 -2
- package/dist/index.js +304 -305
- package/dist/utils.d.ts +1 -0
- package/package.json +9 -6
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { builders as
|
|
1
|
+
import { builders as M, utils as si } from "prettier/doc";
|
|
2
2
|
import Ei from "prettier/parser-babel";
|
|
3
3
|
import bi from "prettier/parser-espree";
|
|
4
4
|
import fi from "prettier/parser-flow";
|
|
@@ -6,21 +6,20 @@ import yi from "prettier/parser-meriyah";
|
|
|
6
6
|
import _i from "prettier/parser-typescript";
|
|
7
7
|
import { printers as $i } from "prettier/plugins/estree.mjs";
|
|
8
8
|
import { resolveConfigFile as vi } from "prettier";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function ki(e, t) {
|
|
9
|
+
const { group: Di, indent: Mi, softline: qe, hardline: Ti, lineSuffixBoundary: Ai } = M, { mapDoc: Si } = si;
|
|
10
|
+
function Li(e, t) {
|
|
12
11
|
const { node: n } = e;
|
|
13
12
|
let r = t();
|
|
14
|
-
return n?.comments?.length && (r =
|
|
13
|
+
return n?.comments?.length && (r = Di([Mi([qe, r]), qe])), ["${", r, Ai, "}"];
|
|
15
14
|
}
|
|
16
15
|
function S(e, t) {
|
|
17
16
|
return e.map(
|
|
18
|
-
(n) =>
|
|
17
|
+
(n) => Li(n, t),
|
|
19
18
|
"expressions"
|
|
20
19
|
);
|
|
21
20
|
}
|
|
22
21
|
function A(e, t, n, r = !1) {
|
|
23
|
-
return
|
|
22
|
+
return Si(e, (a) => {
|
|
24
23
|
if (typeof a != "string")
|
|
25
24
|
return a;
|
|
26
25
|
const s = [], l = a.split(t);
|
|
@@ -32,7 +31,7 @@ function A(e, t, n, r = !1) {
|
|
|
32
31
|
if (E = E.replaceAll(/([\\`]|\${)/g, "\\$1"), r)
|
|
33
32
|
for (const d of E.split(/(\n)/))
|
|
34
33
|
d === `
|
|
35
|
-
` ? s.push(
|
|
34
|
+
` ? s.push(Ti) : s.push(d);
|
|
36
35
|
else
|
|
37
36
|
s.push(E);
|
|
38
37
|
} else {
|
|
@@ -53,7 +52,7 @@ function N(e, t, n) {
|
|
|
53
52
|
`Cannot format embedded language identified by "${n}", because plugin "${e}" is not loaded.`
|
|
54
53
|
);
|
|
55
54
|
}
|
|
56
|
-
function
|
|
55
|
+
function ki(e, t, n) {
|
|
57
56
|
if (t === n) {
|
|
58
57
|
e.unshift(t);
|
|
59
58
|
return;
|
|
@@ -94,19 +93,19 @@ function Pe(e) {
|
|
|
94
93
|
function v(e) {
|
|
95
94
|
return `${e}Identifiers`;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
96
|
+
function T(e) {
|
|
98
97
|
return `${e}Comments`;
|
|
99
98
|
}
|
|
100
99
|
function D(e) {
|
|
101
100
|
return `${e}Tags`;
|
|
102
101
|
}
|
|
103
|
-
function
|
|
102
|
+
function Gi(e) {
|
|
104
103
|
return `${e}Plugin`;
|
|
105
104
|
}
|
|
106
105
|
function x(e) {
|
|
107
106
|
return `${e}Parser`;
|
|
108
107
|
}
|
|
109
|
-
const { line: je, group: O, indent: Ue, softline: Re } =
|
|
108
|
+
const { line: je, group: O, indent: Ue, softline: Re } = M, Ni = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
110
109
|
const s = {
|
|
111
110
|
...r,
|
|
112
111
|
...a
|
|
@@ -134,12 +133,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
134
133
|
$,
|
|
135
134
|
"`"
|
|
136
135
|
]);
|
|
137
|
-
}, re = "embeddedCss",
|
|
138
|
-
[
|
|
136
|
+
}, re = "embeddedCss", xi = ["css"], Ii = ["css", "less", "scss"], Oi = v(re), Ce = T(re), we = D(re), Pi = x(re), Bi = {
|
|
137
|
+
[Oi]: {
|
|
139
138
|
category: "Embed",
|
|
140
139
|
type: "string",
|
|
141
140
|
array: !0,
|
|
142
|
-
default: [{ value: [...
|
|
141
|
+
default: [{ value: [...xi] }],
|
|
143
142
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded CSS language.",
|
|
144
143
|
deprecated: `Please use \`${Ce}\` or \`${we}\`.`
|
|
145
144
|
},
|
|
@@ -157,22 +156,22 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
157
156
|
default: [{ value: [] }],
|
|
158
157
|
description: "Tags that make their subsequent template literals be identified as embedded CSS language."
|
|
159
158
|
},
|
|
160
|
-
[
|
|
159
|
+
[Pi]: {
|
|
161
160
|
category: "Embed",
|
|
162
161
|
type: "choice",
|
|
163
162
|
default: "scss",
|
|
164
163
|
description: "The parser used to parse the embedded CSS language.",
|
|
165
|
-
choices:
|
|
164
|
+
choices: Ii.map((e) => ({
|
|
166
165
|
value: e,
|
|
167
166
|
description: `Use the "${e}" parser.`
|
|
168
167
|
}))
|
|
169
168
|
}
|
|
170
|
-
},
|
|
169
|
+
}, qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
171
170
|
__proto__: null,
|
|
172
|
-
embedder:
|
|
171
|
+
embedder: Ni,
|
|
173
172
|
language: re,
|
|
174
|
-
options:
|
|
175
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Fe, group: P, indent: We, softline: ze } =
|
|
173
|
+
options: Bi
|
|
174
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Fe, group: P, indent: We, softline: ze } = M, ji = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
176
175
|
const s = {
|
|
177
176
|
...r,
|
|
178
177
|
...a
|
|
@@ -200,7 +199,7 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
200
199
|
$,
|
|
201
200
|
"`"
|
|
202
201
|
]);
|
|
203
|
-
}, oe = "embeddedEs",
|
|
202
|
+
}, oe = "embeddedEs", Ui = [
|
|
204
203
|
"js",
|
|
205
204
|
"jsx",
|
|
206
205
|
"es",
|
|
@@ -209,19 +208,19 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
209
208
|
"cjs",
|
|
210
209
|
"pac",
|
|
211
210
|
"javascript"
|
|
212
|
-
],
|
|
211
|
+
], Ri = [
|
|
213
212
|
"babel",
|
|
214
213
|
"babel-flow",
|
|
215
214
|
"acorn",
|
|
216
215
|
"espree",
|
|
217
216
|
"flow",
|
|
218
217
|
"meriyah"
|
|
219
|
-
],
|
|
220
|
-
[
|
|
218
|
+
], Ci = v(oe), Ke = T(oe), Je = D(oe), wi = x(oe), Fi = {
|
|
219
|
+
[Ci]: {
|
|
221
220
|
category: "Embed",
|
|
222
221
|
type: "string",
|
|
223
222
|
array: !0,
|
|
224
|
-
default: [{ value: [...
|
|
223
|
+
default: [{ value: [...Ui] }],
|
|
225
224
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language.",
|
|
226
225
|
deprecated: `Please use \`${Ke}\` or \`${Je}\`.`
|
|
227
226
|
},
|
|
@@ -239,22 +238,22 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
239
238
|
default: [{ value: [] }],
|
|
240
239
|
description: "Tags that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language."
|
|
241
240
|
},
|
|
242
|
-
[
|
|
241
|
+
[wi]: {
|
|
243
242
|
category: "Embed",
|
|
244
243
|
type: "choice",
|
|
245
244
|
default: "babel",
|
|
246
245
|
description: "The parser used to parse the embedded ECMASCript/JavaScript language.",
|
|
247
|
-
choices:
|
|
246
|
+
choices: Ri.map((e) => ({
|
|
248
247
|
value: e,
|
|
249
248
|
description: `Use the "${e}" parser.`
|
|
250
249
|
}))
|
|
251
250
|
}
|
|
252
|
-
},
|
|
251
|
+
}, Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
253
252
|
__proto__: null,
|
|
254
|
-
embedder:
|
|
253
|
+
embedder: ji,
|
|
255
254
|
language: oe,
|
|
256
|
-
options:
|
|
257
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: He, group: B, indent: Xe, softline: Qe } =
|
|
255
|
+
options: Fi
|
|
256
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: He, group: B, indent: Xe, softline: Qe } = M, zi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
258
257
|
N("prettier-plugin-glsl", r, i);
|
|
259
258
|
const s = {
|
|
260
259
|
...r,
|
|
@@ -283,12 +282,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
283
282
|
$,
|
|
284
283
|
"`"
|
|
285
284
|
]);
|
|
286
|
-
}, be = "embeddedGlsl",
|
|
287
|
-
[
|
|
285
|
+
}, be = "embeddedGlsl", Ki = ["glsl", "shader"], Ji = v(be), Ye = T(be), Ve = D(be), Hi = {
|
|
286
|
+
[Ji]: {
|
|
288
287
|
category: "Embed",
|
|
289
288
|
type: "string",
|
|
290
289
|
array: !0,
|
|
291
|
-
default: [{ value: [...
|
|
290
|
+
default: [{ value: [...Ki] }],
|
|
292
291
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin.",
|
|
293
292
|
deprecated: `Please use \`${Ye}\` or \`${Ve}\`.`
|
|
294
293
|
},
|
|
@@ -306,12 +305,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
306
305
|
default: [{ value: [] }],
|
|
307
306
|
description: "Tags that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin."
|
|
308
307
|
}
|
|
309
|
-
},
|
|
308
|
+
}, Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
310
309
|
__proto__: null,
|
|
311
|
-
embedder:
|
|
310
|
+
embedder: zi,
|
|
312
311
|
language: be,
|
|
313
|
-
options:
|
|
314
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Ze, group: q, indent: et, softline: tt } =
|
|
312
|
+
options: Hi
|
|
313
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Ze, group: q, indent: et, softline: tt } = M, Qi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
315
314
|
const s = {
|
|
316
315
|
...r,
|
|
317
316
|
...a
|
|
@@ -339,12 +338,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
339
338
|
$,
|
|
340
339
|
"`"
|
|
341
340
|
]);
|
|
342
|
-
}, fe = "embeddedGraphql",
|
|
343
|
-
[
|
|
341
|
+
}, fe = "embeddedGraphql", Yi = ["graphql", "gql"], Vi = v(fe), nt = T(fe), it = D(fe), Zi = {
|
|
342
|
+
[Vi]: {
|
|
344
343
|
category: "Embed",
|
|
345
344
|
type: "string",
|
|
346
345
|
array: !0,
|
|
347
|
-
default: [{ value: [...
|
|
346
|
+
default: [{ value: [...Yi] }],
|
|
348
347
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded GraphQL language.",
|
|
349
348
|
deprecated: `Please use \`${nt}\` or \`${it}\`.`
|
|
350
349
|
},
|
|
@@ -362,12 +361,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
362
361
|
default: [{ value: [] }],
|
|
363
362
|
description: "Tags that make their subsequent template literals be identified as embedded GraphQL language."
|
|
364
363
|
}
|
|
365
|
-
},
|
|
364
|
+
}, es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
366
365
|
__proto__: null,
|
|
367
|
-
embedder:
|
|
366
|
+
embedder: Qi,
|
|
368
367
|
language: fe,
|
|
369
|
-
options:
|
|
370
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: st, group: j, indent: rt, softline: ot } =
|
|
368
|
+
options: Zi
|
|
369
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: st, group: j, indent: rt, softline: ot } = M, { mapDoc: ts } = si, ns = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
371
370
|
const s = {
|
|
372
371
|
...r,
|
|
373
372
|
...a
|
|
@@ -379,7 +378,7 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
379
378
|
), b = S(n, t), _ = await e(f, {
|
|
380
379
|
...s,
|
|
381
380
|
parser: s.embeddedHtmlParser ?? "html"
|
|
382
|
-
}), o =
|
|
381
|
+
}), o = ts(_, (m) => {
|
|
383
382
|
if (typeof m != "string")
|
|
384
383
|
return m;
|
|
385
384
|
const g = [], y = m.split(E);
|
|
@@ -412,12 +411,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
412
411
|
$,
|
|
413
412
|
"`"
|
|
414
413
|
]);
|
|
415
|
-
}, ae = "embeddedHtml",
|
|
416
|
-
[
|
|
414
|
+
}, ae = "embeddedHtml", is = ["html", "xhtml"], ss = ["html", "vue", "angular", "lwc"], rs = v(ae), at = T(ae), dt = D(ae), os = x(ae), as = {
|
|
415
|
+
[rs]: {
|
|
417
416
|
category: "Embed",
|
|
418
417
|
type: "string",
|
|
419
418
|
array: !0,
|
|
420
|
-
default: [{ value: [...
|
|
419
|
+
default: [{ value: [...is] }],
|
|
421
420
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded HTML language.",
|
|
422
421
|
deprecated: `Please use \`${at}\` or \`${dt}\`.`
|
|
423
422
|
},
|
|
@@ -435,22 +434,22 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
435
434
|
default: [{ value: [] }],
|
|
436
435
|
description: "Tags that make their subsequent template literals be identified as embedded HTML language."
|
|
437
436
|
},
|
|
438
|
-
[
|
|
437
|
+
[os]: {
|
|
439
438
|
category: "Embed",
|
|
440
439
|
type: "choice",
|
|
441
440
|
default: "html",
|
|
442
441
|
description: "The parser used to parse the embedded HTML language.",
|
|
443
|
-
choices:
|
|
442
|
+
choices: ss.map((e) => ({
|
|
444
443
|
value: e,
|
|
445
444
|
description: `Use the "${e}" parser.`
|
|
446
445
|
}))
|
|
447
446
|
}
|
|
448
|
-
},
|
|
447
|
+
}, ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
449
448
|
__proto__: null,
|
|
450
|
-
embedder:
|
|
449
|
+
embedder: ns,
|
|
451
450
|
language: ae,
|
|
452
|
-
options:
|
|
453
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: lt, group: U, indent: ct, softline: ut } =
|
|
451
|
+
options: as
|
|
452
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: lt, group: U, indent: ct, softline: ut } = M, ls = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
454
453
|
N("prettier-plugin-ini", r, i);
|
|
455
454
|
const s = {
|
|
456
455
|
...r,
|
|
@@ -479,12 +478,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
479
478
|
$,
|
|
480
479
|
"`"
|
|
481
480
|
]);
|
|
482
|
-
}, ye = "embeddedIni",
|
|
483
|
-
[
|
|
481
|
+
}, ye = "embeddedIni", cs = ["ini", "cfg", "pro"], us = v(ye), pt = T(ye), gt = D(ye), ps = {
|
|
482
|
+
[us]: {
|
|
484
483
|
category: "Embed",
|
|
485
484
|
type: "string",
|
|
486
485
|
array: !0,
|
|
487
|
-
default: [{ value: [...
|
|
486
|
+
default: [{ value: [...cs] }],
|
|
488
487
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin.",
|
|
489
488
|
deprecated: `Please use \`${pt}\` or \`${gt}\`.`
|
|
490
489
|
},
|
|
@@ -502,12 +501,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
502
501
|
default: [{ value: [] }],
|
|
503
502
|
description: "Tags that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin."
|
|
504
503
|
}
|
|
505
|
-
},
|
|
504
|
+
}, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
506
505
|
__proto__: null,
|
|
507
|
-
embedder:
|
|
506
|
+
embedder: ls,
|
|
508
507
|
language: ye,
|
|
509
|
-
options:
|
|
510
|
-
}, Symbol.toStringTag, { value: "Module" })), { group: R, line: mt, softline: ht, indent: Et } =
|
|
508
|
+
options: ps
|
|
509
|
+
}, Symbol.toStringTag, { value: "Module" })), { group: R, line: mt, softline: ht, indent: Et } = M, ms = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
511
510
|
N("prettier-plugin-java", r, i);
|
|
512
511
|
const s = {
|
|
513
512
|
...r,
|
|
@@ -541,12 +540,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
541
540
|
$,
|
|
542
541
|
"`"
|
|
543
542
|
]);
|
|
544
|
-
}, _e = "embeddedJava",
|
|
545
|
-
[
|
|
543
|
+
}, _e = "embeddedJava", hs = ["java"], Es = v(_e), bt = T(_e), ft = D(_e), bs = {
|
|
544
|
+
[Es]: {
|
|
546
545
|
category: "Embed",
|
|
547
546
|
type: "string",
|
|
548
547
|
array: !0,
|
|
549
|
-
default: [{ value: [...
|
|
548
|
+
default: [{ value: [...hs] }],
|
|
550
549
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin.",
|
|
551
550
|
deprecated: `Please use \`${bt}\` or \`${ft}\`.`
|
|
552
551
|
},
|
|
@@ -564,16 +563,16 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
564
563
|
default: [{ value: [] }],
|
|
565
564
|
description: "Tags that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin."
|
|
566
565
|
}
|
|
567
|
-
},
|
|
566
|
+
}, fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
568
567
|
__proto__: null,
|
|
569
|
-
embedder:
|
|
568
|
+
embedder: ms,
|
|
570
569
|
language: _e,
|
|
571
|
-
options:
|
|
572
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: yt, group: C, indent: _t, softline: $t } =
|
|
570
|
+
options: bs
|
|
571
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: yt, group: C, indent: _t, softline: $t } = M, ys = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
573
572
|
const s = {
|
|
574
573
|
...r,
|
|
575
574
|
...a
|
|
576
|
-
}, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } =
|
|
575
|
+
}, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = _s(), d = l.quasis.map(
|
|
577
576
|
(m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
|
|
578
577
|
).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
|
|
579
578
|
c.length,
|
|
@@ -598,7 +597,7 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
|
|
|
598
597
|
"`"
|
|
599
598
|
]);
|
|
600
599
|
};
|
|
601
|
-
function
|
|
600
|
+
function _s() {
|
|
602
601
|
const e = he(), t = he(), n = (i) => `'0${e}${i}${t}'`, r = new RegExp(
|
|
603
602
|
`["']?0${e}(\\d+)${t}['"]?`,
|
|
604
603
|
"ig"
|
|
@@ -608,12 +607,12 @@ function $s() {
|
|
|
608
607
|
placeholderRegex: r
|
|
609
608
|
};
|
|
610
609
|
}
|
|
611
|
-
const de = "embeddedJson",
|
|
612
|
-
[
|
|
610
|
+
const de = "embeddedJson", $s = ["json", "jsonl"], vs = ["json", "json5", "jsonc", "json-stringify"], Ds = v(de), vt = T(de), Dt = D(de), Ms = x(de), Ts = {
|
|
611
|
+
[Ds]: {
|
|
613
612
|
category: "Embed",
|
|
614
613
|
type: "string",
|
|
615
614
|
array: !0,
|
|
616
|
-
default: [{ value: [
|
|
615
|
+
default: [{ value: [...$s] }],
|
|
617
616
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSON language.",
|
|
618
617
|
deprecated: `Please use \`${vt}\` or \`${Dt}\`.`
|
|
619
618
|
},
|
|
@@ -631,22 +630,22 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
631
630
|
default: [{ value: [] }],
|
|
632
631
|
description: "Tags that make their subsequent template literals be identified as embedded JSON language."
|
|
633
632
|
},
|
|
634
|
-
[
|
|
633
|
+
[Ms]: {
|
|
635
634
|
category: "Embed",
|
|
636
635
|
type: "choice",
|
|
637
636
|
default: "json",
|
|
638
637
|
description: "The parser used to parse the embedded JSON language.",
|
|
639
|
-
choices:
|
|
638
|
+
choices: vs.map((e) => ({
|
|
640
639
|
value: e,
|
|
641
640
|
description: `Use the "${e}" parser.`
|
|
642
641
|
}))
|
|
643
642
|
}
|
|
644
|
-
},
|
|
643
|
+
}, As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
645
644
|
__proto__: null,
|
|
646
|
-
embedder:
|
|
645
|
+
embedder: ys,
|
|
647
646
|
language: de,
|
|
648
|
-
options:
|
|
649
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Mt, group: w, indent: Tt, softline: At } =
|
|
647
|
+
options: Ts
|
|
648
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Mt, group: w, indent: Tt, softline: At } = M, Ss = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
650
649
|
N(
|
|
651
650
|
"@stedi/prettier-plugin-jsonata",
|
|
652
651
|
r,
|
|
@@ -679,12 +678,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
679
678
|
$,
|
|
680
679
|
"`"
|
|
681
680
|
]);
|
|
682
|
-
}, $e = "embeddedJsonata",
|
|
683
|
-
[
|
|
681
|
+
}, $e = "embeddedJsonata", Ls = ["jsonata"], ks = v($e), St = T($e), Lt = D($e), Gs = {
|
|
682
|
+
[ks]: {
|
|
684
683
|
category: "Embed",
|
|
685
684
|
type: "string",
|
|
686
685
|
array: !0,
|
|
687
|
-
default: [{ value: [...
|
|
686
|
+
default: [{ value: [...Ls] }],
|
|
688
687
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin.",
|
|
689
688
|
deprecated: `Please use \`${St}\` or \`${Lt}\`.`
|
|
690
689
|
},
|
|
@@ -702,12 +701,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
702
701
|
default: [{ value: [] }],
|
|
703
702
|
description: "Tags that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin."
|
|
704
703
|
}
|
|
705
|
-
},
|
|
704
|
+
}, Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
706
705
|
__proto__: null,
|
|
707
|
-
embedder:
|
|
706
|
+
embedder: Ss,
|
|
708
707
|
language: $e,
|
|
709
|
-
options:
|
|
710
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: kt, group: F, indent: Gt, softline: Nt } =
|
|
708
|
+
options: Gs
|
|
709
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: kt, group: F, indent: Gt, softline: Nt } = M, xs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
711
710
|
N("prettier-plugin-latex", r, i);
|
|
712
711
|
const s = {
|
|
713
712
|
...r,
|
|
@@ -736,7 +735,7 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
736
735
|
$,
|
|
737
736
|
"`"
|
|
738
737
|
]);
|
|
739
|
-
}, ve = "embeddedLatex",
|
|
738
|
+
}, ve = "embeddedLatex", Is = [
|
|
740
739
|
"latex",
|
|
741
740
|
"tex",
|
|
742
741
|
"aux",
|
|
@@ -745,12 +744,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
745
744
|
"bib",
|
|
746
745
|
"toc",
|
|
747
746
|
"sty"
|
|
748
|
-
],
|
|
749
|
-
[
|
|
747
|
+
], Os = v(ve), xt = T(ve), It = D(ve), Ps = {
|
|
748
|
+
[Os]: {
|
|
750
749
|
category: "Embed",
|
|
751
750
|
type: "string",
|
|
752
751
|
array: !0,
|
|
753
|
-
default: [{ value: [...
|
|
752
|
+
default: [{ value: [...Is] }],
|
|
754
753
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.",
|
|
755
754
|
deprecated: `Please use \`${xt}\` or \`${It}\`.`
|
|
756
755
|
},
|
|
@@ -768,12 +767,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
768
767
|
default: [{ value: [] }],
|
|
769
768
|
description: "Tags that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin."
|
|
770
769
|
}
|
|
771
|
-
},
|
|
770
|
+
}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
772
771
|
__proto__: null,
|
|
773
|
-
embedder:
|
|
772
|
+
embedder: xs,
|
|
774
773
|
language: ve,
|
|
775
|
-
options:
|
|
776
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Ot, group: W, indent: Pt, softline: Bt } =
|
|
774
|
+
options: Ps
|
|
775
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Ot, group: W, indent: Pt, softline: Bt } = M, qs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
777
776
|
const s = {
|
|
778
777
|
...r,
|
|
779
778
|
...a
|
|
@@ -802,12 +801,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
802
801
|
$,
|
|
803
802
|
"`"
|
|
804
803
|
]);
|
|
805
|
-
}, le = "embeddedMarkdown",
|
|
806
|
-
[
|
|
804
|
+
}, le = "embeddedMarkdown", js = ["md", "markdown"], Us = ["markdown", "mdx", "remark"], Rs = v(le), qt = T(le), jt = D(le), Cs = x(le), ws = {
|
|
805
|
+
[Rs]: {
|
|
807
806
|
category: "Embed",
|
|
808
807
|
type: "string",
|
|
809
808
|
array: !0,
|
|
810
|
-
default: [{ value: [...
|
|
809
|
+
default: [{ value: [...js] }],
|
|
811
810
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Markdown language.",
|
|
812
811
|
deprecated: `Please use \`${qt}\` or \`${jt}\`.`
|
|
813
812
|
},
|
|
@@ -825,22 +824,22 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
825
824
|
default: [{ value: [] }],
|
|
826
825
|
description: "Tags that make their subsequent template literals be identified as embedded Markdown language."
|
|
827
826
|
},
|
|
828
|
-
[
|
|
827
|
+
[Cs]: {
|
|
829
828
|
category: "Embed",
|
|
830
829
|
type: "choice",
|
|
831
830
|
default: "markdown",
|
|
832
831
|
description: "The parser used to parse the embedded Markdown language.",
|
|
833
|
-
choices:
|
|
832
|
+
choices: Us.map((e) => ({
|
|
834
833
|
value: e,
|
|
835
834
|
description: `Use the "${e}" parser.`
|
|
836
835
|
}))
|
|
837
836
|
}
|
|
838
|
-
},
|
|
837
|
+
}, Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
839
838
|
__proto__: null,
|
|
840
|
-
embedder:
|
|
839
|
+
embedder: qs,
|
|
841
840
|
language: le,
|
|
842
|
-
options:
|
|
843
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Ut, group: z, indent: Rt, softline: Ct } =
|
|
841
|
+
options: ws
|
|
842
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Ut, group: z, indent: Rt, softline: Ct } = M, Ws = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
844
843
|
N("prettier-plugin-nginx", r, i);
|
|
845
844
|
const s = {
|
|
846
845
|
...r,
|
|
@@ -869,12 +868,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
869
868
|
$,
|
|
870
869
|
"`"
|
|
871
870
|
]);
|
|
872
|
-
}, De = "embeddedNginx",
|
|
873
|
-
[
|
|
871
|
+
}, De = "embeddedNginx", zs = ["nginx"], Ks = v(De), wt = T(De), Ft = D(De), Js = {
|
|
872
|
+
[Ks]: {
|
|
874
873
|
category: "Embed",
|
|
875
874
|
type: "string",
|
|
876
875
|
array: !0,
|
|
877
|
-
default: [{ value: [...
|
|
876
|
+
default: [{ value: [...zs] }],
|
|
878
877
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.",
|
|
879
878
|
deprecated: `Please use \`${wt}\` or \`${Ft}\`.`
|
|
880
879
|
},
|
|
@@ -892,13 +891,13 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
892
891
|
default: [{ value: [] }],
|
|
893
892
|
description: "Tags that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin."
|
|
894
893
|
}
|
|
895
|
-
},
|
|
894
|
+
}, Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
896
895
|
__proto__: null,
|
|
897
|
-
embedder:
|
|
896
|
+
embedder: Ws,
|
|
898
897
|
language: De,
|
|
899
|
-
options:
|
|
900
|
-
}, Symbol.toStringTag, { value: "Module" })), ce = "embeddedNoop",
|
|
901
|
-
[
|
|
898
|
+
options: Js
|
|
899
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = "embeddedNoop", Xs = v(ce), Wt = T(ce), zt = D(ce), Qs = {
|
|
900
|
+
[Xs]: {
|
|
902
901
|
category: "Embed",
|
|
903
902
|
type: "string",
|
|
904
903
|
array: !0,
|
|
@@ -920,11 +919,11 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
920
919
|
default: [{ value: [] }],
|
|
921
920
|
description: "Tags that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted."
|
|
922
921
|
}
|
|
923
|
-
},
|
|
922
|
+
}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
924
923
|
__proto__: null,
|
|
925
924
|
language: ce,
|
|
926
|
-
options:
|
|
927
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Kt, group: K, indent: Jt, softline: Ht } =
|
|
925
|
+
options: Qs
|
|
926
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Kt, group: K, indent: Jt, softline: Ht } = M, Vs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
928
927
|
N("prettier-plugin-pegjs", r, i);
|
|
929
928
|
const s = {
|
|
930
929
|
...r,
|
|
@@ -953,12 +952,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
953
952
|
$,
|
|
954
953
|
"`"
|
|
955
954
|
]);
|
|
956
|
-
}, Me = "embeddedPegjs",
|
|
957
|
-
[
|
|
955
|
+
}, Me = "embeddedPegjs", Zs = ["pegjs", "peggy", "peg"], er = v(Me), Xt = T(Me), Qt = D(Me), tr = {
|
|
956
|
+
[er]: {
|
|
958
957
|
category: "Embed",
|
|
959
958
|
type: "string",
|
|
960
959
|
array: !0,
|
|
961
|
-
default: [{ value: [...
|
|
960
|
+
default: [{ value: [...Zs] }],
|
|
962
961
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.",
|
|
963
962
|
deprecated: `Please use \`${Xt}\` or \`${Qt}\`.`
|
|
964
963
|
},
|
|
@@ -976,12 +975,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
976
975
|
default: [{ value: [] }],
|
|
977
976
|
description: "Tags that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin."
|
|
978
977
|
}
|
|
979
|
-
},
|
|
978
|
+
}, nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
980
979
|
__proto__: null,
|
|
981
|
-
embedder:
|
|
980
|
+
embedder: Vs,
|
|
982
981
|
language: Me,
|
|
983
|
-
options:
|
|
984
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Yt, group: J, indent: Vt, softline: Zt } =
|
|
982
|
+
options: tr
|
|
983
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Yt, group: J, indent: Vt, softline: Zt } = M, ir = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
985
984
|
N("@prettier/plugin-php", r, i);
|
|
986
985
|
const s = {
|
|
987
986
|
...r,
|
|
@@ -1010,12 +1009,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1010
1009
|
$,
|
|
1011
1010
|
"`"
|
|
1012
1011
|
]);
|
|
1013
|
-
}, Te = "embeddedPhp",
|
|
1014
|
-
[
|
|
1012
|
+
}, Te = "embeddedPhp", sr = ["php", "php5"], rr = v(Te), en = T(Te), tn = D(Te), or = {
|
|
1013
|
+
[rr]: {
|
|
1015
1014
|
category: "Embed",
|
|
1016
1015
|
type: "string",
|
|
1017
1016
|
array: !0,
|
|
1018
|
-
default: [{ value: [...
|
|
1017
|
+
default: [{ value: [...sr] }],
|
|
1019
1018
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.",
|
|
1020
1019
|
deprecated: `Please use \`${en}\` or \`${tn}\`.`
|
|
1021
1020
|
},
|
|
@@ -1033,12 +1032,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1033
1032
|
default: [{ value: [] }],
|
|
1034
1033
|
description: "Tags that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin."
|
|
1035
1034
|
}
|
|
1036
|
-
},
|
|
1035
|
+
}, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1037
1036
|
__proto__: null,
|
|
1038
|
-
embedder:
|
|
1037
|
+
embedder: ir,
|
|
1039
1038
|
language: Te,
|
|
1040
|
-
options:
|
|
1041
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: nn, group: H, indent: sn, softline: rn } =
|
|
1039
|
+
options: or
|
|
1040
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: nn, group: H, indent: sn, softline: rn } = M, dr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1042
1041
|
N("prettier-plugin-prisma", r, i);
|
|
1043
1042
|
const s = {
|
|
1044
1043
|
...r,
|
|
@@ -1067,12 +1066,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1067
1066
|
$,
|
|
1068
1067
|
"`"
|
|
1069
1068
|
]);
|
|
1070
|
-
}, Ae = "embeddedPrisma",
|
|
1071
|
-
[
|
|
1069
|
+
}, Ae = "embeddedPrisma", lr = ["prisma"], cr = v(Ae), on = T(Ae), an = D(Ae), ur = {
|
|
1070
|
+
[cr]: {
|
|
1072
1071
|
category: "Embed",
|
|
1073
1072
|
type: "string",
|
|
1074
1073
|
array: !0,
|
|
1075
|
-
default: [{ value: [...
|
|
1074
|
+
default: [{ value: [...lr] }],
|
|
1076
1075
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.",
|
|
1077
1076
|
deprecated: `Please use \`${on}\` or \`${an}\`.`
|
|
1078
1077
|
},
|
|
@@ -1090,12 +1089,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1090
1089
|
default: [{ value: [] }],
|
|
1091
1090
|
description: "Tags that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin."
|
|
1092
1091
|
}
|
|
1093
|
-
},
|
|
1092
|
+
}, pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1094
1093
|
__proto__: null,
|
|
1095
|
-
embedder:
|
|
1094
|
+
embedder: dr,
|
|
1096
1095
|
language: Ae,
|
|
1097
|
-
options:
|
|
1098
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: dn, group: X, indent: ln, softline: cn } =
|
|
1096
|
+
options: ur
|
|
1097
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: dn, group: X, indent: ln, softline: cn } = M, gr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1099
1098
|
N("prettier-plugin-properties", r, i);
|
|
1100
1099
|
const s = {
|
|
1101
1100
|
...r,
|
|
@@ -1124,12 +1123,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1124
1123
|
$,
|
|
1125
1124
|
"`"
|
|
1126
1125
|
]);
|
|
1127
|
-
}, Se = "embeddedProperties",
|
|
1128
|
-
[
|
|
1126
|
+
}, Se = "embeddedProperties", mr = ["properties"], hr = v(Se), un = T(Se), pn = D(Se), Er = {
|
|
1127
|
+
[hr]: {
|
|
1129
1128
|
category: "Embed",
|
|
1130
1129
|
type: "string",
|
|
1131
1130
|
array: !0,
|
|
1132
|
-
default: [{ value: [...
|
|
1131
|
+
default: [{ value: [...mr] }],
|
|
1133
1132
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.",
|
|
1134
1133
|
deprecated: `Please use \`${un}\` or \`${pn}\`.`
|
|
1135
1134
|
},
|
|
@@ -1147,12 +1146,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1147
1146
|
default: [{ value: [] }],
|
|
1148
1147
|
description: "Tags that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin."
|
|
1149
1148
|
}
|
|
1150
|
-
},
|
|
1149
|
+
}, br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1151
1150
|
__proto__: null,
|
|
1152
|
-
embedder:
|
|
1151
|
+
embedder: gr,
|
|
1153
1152
|
language: Se,
|
|
1154
|
-
options:
|
|
1155
|
-
}, Symbol.toStringTag, { value: "Module" })), { group: Q, line: gn, softline: mn, indent: hn } =
|
|
1153
|
+
options: Er
|
|
1154
|
+
}, Symbol.toStringTag, { value: "Module" })), { group: Q, line: gn, softline: mn, indent: hn } = M, fr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1156
1155
|
N("@prettier/plugin-pug", r, i);
|
|
1157
1156
|
const s = {
|
|
1158
1157
|
...r,
|
|
@@ -1186,12 +1185,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1186
1185
|
$,
|
|
1187
1186
|
"`"
|
|
1188
1187
|
]);
|
|
1189
|
-
}, Le = "embeddedPug",
|
|
1190
|
-
[
|
|
1188
|
+
}, Le = "embeddedPug", yr = ["pug", "jade"], _r = v(Le), En = T(Le), bn = D(Le), $r = {
|
|
1189
|
+
[_r]: {
|
|
1191
1190
|
category: "Embed",
|
|
1192
1191
|
type: "string",
|
|
1193
1192
|
array: !0,
|
|
1194
|
-
default: [{ value: [...
|
|
1193
|
+
default: [{ value: [...yr] }],
|
|
1195
1194
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.",
|
|
1196
1195
|
deprecated: `Please use \`${En}\` or \`${bn}\`.`
|
|
1197
1196
|
},
|
|
@@ -1209,12 +1208,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1209
1208
|
default: [{ value: [] }],
|
|
1210
1209
|
description: "Tags that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin."
|
|
1211
1210
|
}
|
|
1212
|
-
},
|
|
1211
|
+
}, vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1213
1212
|
__proto__: null,
|
|
1214
|
-
embedder:
|
|
1213
|
+
embedder: fr,
|
|
1215
1214
|
language: Le,
|
|
1216
|
-
options:
|
|
1217
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: fn, group: Y, indent: yn, softline: _n } =
|
|
1215
|
+
options: $r
|
|
1216
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: fn, group: Y, indent: yn, softline: _n } = M, Dr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1218
1217
|
N("@prettier/plugin-ruby", r, i);
|
|
1219
1218
|
const s = {
|
|
1220
1219
|
...r,
|
|
@@ -1243,12 +1242,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1243
1242
|
$,
|
|
1244
1243
|
"`"
|
|
1245
1244
|
]);
|
|
1246
|
-
}, ue = "embeddedRuby",
|
|
1247
|
-
[
|
|
1245
|
+
}, ue = "embeddedRuby", Mr = ["ruby"], Tr = ["ruby", "rbs", "haml"], Ar = v(ue), $n = T(ue), vn = D(ue), Sr = x(ue), Lr = {
|
|
1246
|
+
[Ar]: {
|
|
1248
1247
|
category: "Embed",
|
|
1249
1248
|
type: "string",
|
|
1250
1249
|
array: !0,
|
|
1251
|
-
default: [{ value: [...
|
|
1250
|
+
default: [{ value: [...Mr] }],
|
|
1252
1251
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.",
|
|
1253
1252
|
deprecated: `Please use \`${$n}\` or \`${vn}\`.`
|
|
1254
1253
|
},
|
|
@@ -1266,22 +1265,22 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1266
1265
|
default: [{ value: [] }],
|
|
1267
1266
|
description: "Tags that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin."
|
|
1268
1267
|
},
|
|
1269
|
-
[
|
|
1268
|
+
[Sr]: {
|
|
1270
1269
|
category: "Embed",
|
|
1271
1270
|
type: "choice",
|
|
1272
1271
|
default: "ruby",
|
|
1273
1272
|
description: "The parser used to parse the embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.",
|
|
1274
|
-
choices:
|
|
1273
|
+
choices: Tr.map((e) => ({
|
|
1275
1274
|
value: e,
|
|
1276
1275
|
description: `Use the "${e}" parser.`
|
|
1277
1276
|
}))
|
|
1278
1277
|
}
|
|
1279
|
-
},
|
|
1278
|
+
}, kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1280
1279
|
__proto__: null,
|
|
1281
|
-
embedder:
|
|
1280
|
+
embedder: Dr,
|
|
1282
1281
|
language: ue,
|
|
1283
|
-
options:
|
|
1284
|
-
}, Symbol.toStringTag, { value: "Module" })), { group: V, line: Dn, softline: Mn, indent: Tn } =
|
|
1282
|
+
options: Lr
|
|
1283
|
+
}, Symbol.toStringTag, { value: "Module" })), { group: V, line: Dn, softline: Mn, indent: Tn } = M, Gr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1285
1284
|
N("prettier-plugin-sh", r, i);
|
|
1286
1285
|
const s = {
|
|
1287
1286
|
...r,
|
|
@@ -1315,12 +1314,12 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1315
1314
|
$,
|
|
1316
1315
|
"`"
|
|
1317
1316
|
]);
|
|
1318
|
-
}, ke = "embeddedSh",
|
|
1319
|
-
[
|
|
1317
|
+
}, ke = "embeddedSh", Nr = ["sh"], xr = v(ke), An = T(ke), Sn = D(ke), Ir = {
|
|
1318
|
+
[xr]: {
|
|
1320
1319
|
category: "Embed",
|
|
1321
1320
|
type: "string",
|
|
1322
1321
|
array: !0,
|
|
1323
|
-
default: [{ value: [...
|
|
1322
|
+
default: [{ value: [...Nr] }],
|
|
1324
1323
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.",
|
|
1325
1324
|
deprecated: `Please use \`${An}\` or \`${Sn}\`.`
|
|
1326
1325
|
},
|
|
@@ -1338,11 +1337,11 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
|
|
|
1338
1337
|
default: [{ value: [] }],
|
|
1339
1338
|
description: "Tags that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin."
|
|
1340
1339
|
}
|
|
1341
|
-
},
|
|
1340
|
+
}, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1342
1341
|
__proto__: null,
|
|
1343
|
-
embedder:
|
|
1342
|
+
embedder: Gr,
|
|
1344
1343
|
language: ke,
|
|
1345
|
-
options:
|
|
1344
|
+
options: Ir
|
|
1346
1345
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1347
1346
|
function Ln(e, t) {
|
|
1348
1347
|
var n = Object.keys(e);
|
|
@@ -1358,21 +1357,21 @@ function kn(e) {
|
|
|
1358
1357
|
for (var t = 1; t < arguments.length; t++) {
|
|
1359
1358
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1360
1359
|
t % 2 ? Ln(Object(n), !0).forEach(function(r) {
|
|
1361
|
-
|
|
1360
|
+
Pr(e, r, n[r]);
|
|
1362
1361
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ln(Object(n)).forEach(function(r) {
|
|
1363
1362
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1364
1363
|
});
|
|
1365
1364
|
}
|
|
1366
1365
|
return e;
|
|
1367
1366
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return t =
|
|
1367
|
+
function Pr(e, t, n) {
|
|
1368
|
+
return t = Br(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1370
1369
|
}
|
|
1371
|
-
function
|
|
1372
|
-
var t =
|
|
1370
|
+
function Br(e) {
|
|
1371
|
+
var t = qr(e, "string");
|
|
1373
1372
|
return typeof t == "symbol" ? t : String(t);
|
|
1374
1373
|
}
|
|
1375
|
-
function
|
|
1374
|
+
function qr(e, t) {
|
|
1376
1375
|
if (typeof e != "object" || e === null)
|
|
1377
1376
|
return e;
|
|
1378
1377
|
var n = e[Symbol.toPrimitive];
|
|
@@ -1384,7 +1383,7 @@ function jr(e, t) {
|
|
|
1384
1383
|
}
|
|
1385
1384
|
return (t === "string" ? String : Number)(e);
|
|
1386
1385
|
}
|
|
1387
|
-
const
|
|
1386
|
+
const jr = ri({});
|
|
1388
1387
|
function ri(e) {
|
|
1389
1388
|
return t.withOptions = (n) => ri(kn(kn({}, e), n)), t;
|
|
1390
1389
|
function t(n, ...r) {
|
|
@@ -1415,7 +1414,7 @@ function ri(e) {
|
|
|
1415
1414
|
`);
|
|
1416
1415
|
}
|
|
1417
1416
|
}
|
|
1418
|
-
const { group: Z, line: Gn, softline: Nn, indent: xn } =
|
|
1417
|
+
const { group: Z, line: Gn, softline: Nn, indent: xn } = M, Ur = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1419
1418
|
const s = {
|
|
1420
1419
|
...r,
|
|
1421
1420
|
...a
|
|
@@ -1435,7 +1434,7 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1435
1434
|
});
|
|
1436
1435
|
o = A(m, d, _);
|
|
1437
1436
|
} else {
|
|
1438
|
-
const m = await e(
|
|
1437
|
+
const m = await e(jr(b), {
|
|
1439
1438
|
...s,
|
|
1440
1439
|
parser: "sql"
|
|
1441
1440
|
});
|
|
@@ -1461,18 +1460,18 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1461
1460
|
$,
|
|
1462
1461
|
"`"
|
|
1463
1462
|
]);
|
|
1464
|
-
}, se = "embeddedSql",
|
|
1463
|
+
}, se = "embeddedSql", Rr = ["sql"], Cr = ["prettier-plugin-sql", "prettier-plugin-sql-cst"], wr = [
|
|
1465
1464
|
"sqlite",
|
|
1466
1465
|
"bigquery",
|
|
1467
1466
|
"mysql",
|
|
1468
1467
|
"mariadb",
|
|
1469
1468
|
"postgresql"
|
|
1470
|
-
],
|
|
1471
|
-
[
|
|
1469
|
+
], Fr = v(se), In = T(se), On = D(se), Wr = Gi(se), zr = x(se), Kr = {
|
|
1470
|
+
[Fr]: {
|
|
1472
1471
|
category: "Embed",
|
|
1473
1472
|
type: "string",
|
|
1474
1473
|
array: !0,
|
|
1475
|
-
default: [{ value: [...
|
|
1474
|
+
default: [{ value: [...Rr] }],
|
|
1476
1475
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.",
|
|
1477
1476
|
deprecated: `Please use \`${In}\` or \`${On}\`.`
|
|
1478
1477
|
},
|
|
@@ -1490,32 +1489,32 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1490
1489
|
default: [{ value: [] }],
|
|
1491
1490
|
description: "Tags that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin."
|
|
1492
1491
|
},
|
|
1493
|
-
[
|
|
1492
|
+
[Wr]: {
|
|
1494
1493
|
category: "Embed",
|
|
1495
1494
|
type: "choice",
|
|
1496
1495
|
default: "prettier-plugin-sql",
|
|
1497
1496
|
description: "The plugin used to format the embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.",
|
|
1498
|
-
choices:
|
|
1497
|
+
choices: Cr.map((e) => ({
|
|
1499
1498
|
value: e,
|
|
1500
1499
|
description: `Use the "${e}" plugin.`
|
|
1501
1500
|
}))
|
|
1502
1501
|
},
|
|
1503
|
-
[
|
|
1502
|
+
[zr]: {
|
|
1504
1503
|
category: "Embed",
|
|
1505
1504
|
type: "choice",
|
|
1506
1505
|
default: "sqlite",
|
|
1507
1506
|
description: "Specify the embedded SQL language parser. This option is only needed with the `prettier-plugin-sql-cst` plugin.",
|
|
1508
|
-
choices:
|
|
1507
|
+
choices: wr.map((e) => ({
|
|
1509
1508
|
value: e,
|
|
1510
1509
|
description: `Use the "${e}" parser.`
|
|
1511
1510
|
}))
|
|
1512
1511
|
}
|
|
1513
|
-
},
|
|
1512
|
+
}, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1514
1513
|
__proto__: null,
|
|
1515
|
-
embedder:
|
|
1514
|
+
embedder: Ur,
|
|
1516
1515
|
language: se,
|
|
1517
|
-
options:
|
|
1518
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Pn, group: ee, indent: Bn, softline: qn } =
|
|
1516
|
+
options: Kr
|
|
1517
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Pn, group: ee, indent: Bn, softline: qn } = M, Hr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1519
1518
|
N("prettier-plugin-toml", r, i);
|
|
1520
1519
|
const s = {
|
|
1521
1520
|
...r,
|
|
@@ -1549,12 +1548,12 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1549
1548
|
$,
|
|
1550
1549
|
"`"
|
|
1551
1550
|
]);
|
|
1552
|
-
}, Ge = "embeddedToml",
|
|
1553
|
-
[
|
|
1551
|
+
}, Ge = "embeddedToml", Xr = ["toml"], Qr = v(Ge), jn = T(Ge), Un = D(Ge), Yr = {
|
|
1552
|
+
[Qr]: {
|
|
1554
1553
|
category: "Embed",
|
|
1555
1554
|
type: "string",
|
|
1556
1555
|
array: !0,
|
|
1557
|
-
default: [{ value: [...
|
|
1556
|
+
default: [{ value: [...Xr] }],
|
|
1558
1557
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin.",
|
|
1559
1558
|
deprecated: `Please use \`${jn}\` or \`${Un}\`.`
|
|
1560
1559
|
},
|
|
@@ -1572,12 +1571,12 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1572
1571
|
default: [{ value: [] }],
|
|
1573
1572
|
description: "Tags that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin."
|
|
1574
1573
|
}
|
|
1575
|
-
},
|
|
1574
|
+
}, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1576
1575
|
__proto__: null,
|
|
1577
|
-
embedder:
|
|
1576
|
+
embedder: Hr,
|
|
1578
1577
|
language: Ge,
|
|
1579
|
-
options:
|
|
1580
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Rn, group: te, indent: Cn, softline: wn } =
|
|
1578
|
+
options: Yr
|
|
1579
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Rn, group: te, indent: Cn, softline: wn } = M, Zr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1581
1580
|
const s = {
|
|
1582
1581
|
...r,
|
|
1583
1582
|
...a
|
|
@@ -1608,18 +1607,18 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1608
1607
|
$,
|
|
1609
1608
|
"`"
|
|
1610
1609
|
]);
|
|
1611
|
-
}, pe = "embeddedTs",
|
|
1610
|
+
}, pe = "embeddedTs", eo = [
|
|
1612
1611
|
"ts",
|
|
1613
1612
|
"tsx",
|
|
1614
1613
|
"cts",
|
|
1615
1614
|
"mts",
|
|
1616
1615
|
"typescript"
|
|
1617
|
-
],
|
|
1618
|
-
[
|
|
1616
|
+
], to = ["typescript", "babel-ts"], no = v(pe), Fn = T(pe), Wn = D(pe), io = x(pe), so = {
|
|
1617
|
+
[no]: {
|
|
1619
1618
|
category: "Embed",
|
|
1620
1619
|
type: "string",
|
|
1621
1620
|
array: !0,
|
|
1622
|
-
default: [{ value: [...
|
|
1621
|
+
default: [{ value: [...eo] }],
|
|
1623
1622
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TypeScript language.",
|
|
1624
1623
|
deprecated: `Please use \`${Fn}\` or \`${Wn}\`.`
|
|
1625
1624
|
},
|
|
@@ -1637,22 +1636,22 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1637
1636
|
default: [{ value: [] }],
|
|
1638
1637
|
description: "Tags that make their subsequent template literals be identified as embedded TypeScript language."
|
|
1639
1638
|
},
|
|
1640
|
-
[
|
|
1639
|
+
[io]: {
|
|
1641
1640
|
category: "Embed",
|
|
1642
1641
|
type: "choice",
|
|
1643
1642
|
default: "typescript",
|
|
1644
1643
|
description: "The parser used to parse the embedded TypeScript language.",
|
|
1645
|
-
choices:
|
|
1644
|
+
choices: to.map((e) => ({
|
|
1646
1645
|
value: e,
|
|
1647
1646
|
description: `Use the "${e}" parser.`
|
|
1648
1647
|
}))
|
|
1649
1648
|
}
|
|
1650
|
-
},
|
|
1649
|
+
}, ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1651
1650
|
__proto__: null,
|
|
1652
|
-
embedder:
|
|
1651
|
+
embedder: Zr,
|
|
1653
1652
|
language: pe,
|
|
1654
|
-
options:
|
|
1655
|
-
}, Symbol.toStringTag, { value: "Module" })), ge = "embeddedXml", { line: zn, group: ne, indent: Kn, softline: xe } =
|
|
1653
|
+
options: so
|
|
1654
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = "embeddedXml", { line: zn, group: ne, indent: Kn, softline: xe } = M, oo = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1656
1655
|
N("@prettier/plugin-xml", r, i);
|
|
1657
1656
|
const s = {
|
|
1658
1657
|
...r,
|
|
@@ -1695,12 +1694,12 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1695
1694
|
m,
|
|
1696
1695
|
"`"
|
|
1697
1696
|
]);
|
|
1698
|
-
},
|
|
1699
|
-
[
|
|
1697
|
+
}, ao = ["xml", "opml", "rss", "svg"], lo = v(ge), Jn = T(ge), Hn = D(ge), co = {
|
|
1698
|
+
[lo]: {
|
|
1700
1699
|
category: "Embed",
|
|
1701
1700
|
type: "string",
|
|
1702
1701
|
array: !0,
|
|
1703
|
-
default: [{ value: [...
|
|
1702
|
+
default: [{ value: [...ao] }],
|
|
1704
1703
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin.",
|
|
1705
1704
|
deprecated: `Please use \`${Jn}\` or \`${Hn}\`.`
|
|
1706
1705
|
},
|
|
@@ -1729,7 +1728,7 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
|
|
|
1729
1728
|
description: "This option is read only and is used internally as a workaround to support xml fragments"
|
|
1730
1729
|
}
|
|
1731
1730
|
};
|
|
1732
|
-
function
|
|
1731
|
+
function uo(e) {
|
|
1733
1732
|
const t = {
|
|
1734
1733
|
loc: {
|
|
1735
1734
|
start: {
|
|
@@ -1769,12 +1768,12 @@ function Xn(e) {
|
|
|
1769
1768
|
);
|
|
1770
1769
|
return Object.assign(n, t), n;
|
|
1771
1770
|
}
|
|
1772
|
-
const
|
|
1771
|
+
const po = {
|
|
1773
1772
|
async parse(e, t) {
|
|
1774
1773
|
const { parse: n } = await import("@xml-tools/parser"), { lexErrors: r, parseErrors: i, cst: a } = n(e);
|
|
1775
1774
|
if (r.length > 0) {
|
|
1776
1775
|
const s = r[0];
|
|
1777
|
-
throw
|
|
1776
|
+
throw uo(s);
|
|
1778
1777
|
}
|
|
1779
1778
|
if (i.length > 0) {
|
|
1780
1779
|
let s = !1;
|
|
@@ -1830,7 +1829,7 @@ function oi(e) {
|
|
|
1830
1829
|
const r = t[n] ?? [];
|
|
1831
1830
|
for (let i = r.length - 1; i >= 0; --i) {
|
|
1832
1831
|
const a = r[i];
|
|
1833
|
-
if (
|
|
1832
|
+
if (go(a)) {
|
|
1834
1833
|
if (Object.keys(a.children).length === 0) {
|
|
1835
1834
|
r.splice(i, 1), r.length === 0 && delete t[n];
|
|
1836
1835
|
continue;
|
|
@@ -1840,16 +1839,16 @@ function oi(e) {
|
|
|
1840
1839
|
}
|
|
1841
1840
|
}
|
|
1842
1841
|
}
|
|
1843
|
-
function
|
|
1842
|
+
function go(e) {
|
|
1844
1843
|
return "name" in e && "children" in e && "location" in e;
|
|
1845
1844
|
}
|
|
1846
|
-
const
|
|
1845
|
+
const mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1847
1846
|
__proto__: null,
|
|
1848
|
-
embedder:
|
|
1847
|
+
embedder: oo,
|
|
1849
1848
|
language: ge,
|
|
1850
|
-
options:
|
|
1851
|
-
parser:
|
|
1852
|
-
}, Symbol.toStringTag, { value: "Module" })), { line: Qn, group: ie, indent: Yn, softline: Vn } =
|
|
1849
|
+
options: co,
|
|
1850
|
+
parser: po
|
|
1851
|
+
}, Symbol.toStringTag, { value: "Module" })), { line: Qn, group: ie, indent: Yn, softline: Vn } = M, ho = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
|
|
1853
1852
|
const s = {
|
|
1854
1853
|
...r,
|
|
1855
1854
|
...a
|
|
@@ -1877,12 +1876,12 @@ const ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1877
1876
|
$,
|
|
1878
1877
|
"`"
|
|
1879
1878
|
]);
|
|
1880
|
-
}, Ne = "embeddedYaml",
|
|
1881
|
-
[
|
|
1879
|
+
}, Ne = "embeddedYaml", Eo = ["yaml", "yml"], bo = v(Ne), Zn = T(Ne), ei = D(Ne), fo = {
|
|
1880
|
+
[bo]: {
|
|
1882
1881
|
category: "Embed",
|
|
1883
1882
|
type: "string",
|
|
1884
1883
|
array: !0,
|
|
1885
|
-
default: [{ value: [...
|
|
1884
|
+
default: [{ value: [...Eo] }],
|
|
1886
1885
|
description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded YAML language.",
|
|
1887
1886
|
deprecated: `Please use \`${Zn}\` or \`${ei}\`.`
|
|
1888
1887
|
},
|
|
@@ -1900,46 +1899,46 @@ const ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1900
1899
|
default: [{ value: [] }],
|
|
1901
1900
|
description: "Tags that make their subsequent template literals be identified as embedded YAML language."
|
|
1902
1901
|
}
|
|
1903
|
-
},
|
|
1902
|
+
}, yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1904
1903
|
__proto__: null,
|
|
1905
|
-
embedder:
|
|
1904
|
+
embedder: ho,
|
|
1906
1905
|
language: Ne,
|
|
1907
|
-
options:
|
|
1908
|
-
}, Symbol.toStringTag, { value: "Module" })), me = [], ai = {}, di = {}, li = {},
|
|
1909
|
-
"./css/index.ts":
|
|
1910
|
-
"./es/index.ts":
|
|
1911
|
-
"./glsl/index.ts":
|
|
1912
|
-
"./graphql/index.ts":
|
|
1913
|
-
"./html/index.ts":
|
|
1914
|
-
"./ini/index.ts":
|
|
1915
|
-
"./java/index.ts":
|
|
1916
|
-
"./json/index.ts":
|
|
1917
|
-
"./jsonata/index.ts":
|
|
1918
|
-
"./latex/index.ts":
|
|
1919
|
-
"./markdown/index.ts":
|
|
1920
|
-
"./nginx/index.ts":
|
|
1921
|
-
"./noop/index.ts":
|
|
1922
|
-
"./pegjs/index.ts":
|
|
1923
|
-
"./php/index.ts":
|
|
1924
|
-
"./prisma/index.ts":
|
|
1925
|
-
"./properties/index.ts":
|
|
1926
|
-
"./pug/index.ts":
|
|
1927
|
-
"./ruby/index.ts":
|
|
1928
|
-
"./sh/index.ts":
|
|
1929
|
-
"./sql/index.ts":
|
|
1930
|
-
"./toml/index.ts":
|
|
1931
|
-
"./ts/index.ts":
|
|
1932
|
-
"./xml/index.ts":
|
|
1933
|
-
"./yaml/index.ts":
|
|
1906
|
+
options: fo
|
|
1907
|
+
}, Symbol.toStringTag, { value: "Module" })), me = [], ai = {}, di = {}, li = {}, _o = /* @__PURE__ */ Object.assign({
|
|
1908
|
+
"./css/index.ts": qi,
|
|
1909
|
+
"./es/index.ts": Wi,
|
|
1910
|
+
"./glsl/index.ts": Xi,
|
|
1911
|
+
"./graphql/index.ts": es,
|
|
1912
|
+
"./html/index.ts": ds,
|
|
1913
|
+
"./ini/index.ts": gs,
|
|
1914
|
+
"./java/index.ts": fs,
|
|
1915
|
+
"./json/index.ts": As,
|
|
1916
|
+
"./jsonata/index.ts": Ns,
|
|
1917
|
+
"./latex/index.ts": Bs,
|
|
1918
|
+
"./markdown/index.ts": Fs,
|
|
1919
|
+
"./nginx/index.ts": Hs,
|
|
1920
|
+
"./noop/index.ts": Ys,
|
|
1921
|
+
"./pegjs/index.ts": nr,
|
|
1922
|
+
"./php/index.ts": ar,
|
|
1923
|
+
"./prisma/index.ts": pr,
|
|
1924
|
+
"./properties/index.ts": br,
|
|
1925
|
+
"./pug/index.ts": vr,
|
|
1926
|
+
"./ruby/index.ts": kr,
|
|
1927
|
+
"./sh/index.ts": Or,
|
|
1928
|
+
"./sql/index.ts": Jr,
|
|
1929
|
+
"./toml/index.ts": Vr,
|
|
1930
|
+
"./ts/index.ts": ro,
|
|
1931
|
+
"./xml/index.ts": mo,
|
|
1932
|
+
"./yaml/index.ts": yo
|
|
1934
1933
|
});
|
|
1935
|
-
for (const { language: e, parser: t, embedder: n, options: r } of Object.values(
|
|
1936
|
-
|
|
1937
|
-
const
|
|
1934
|
+
for (const { language: e, parser: t, embedder: n, options: r } of Object.values(_o))
|
|
1935
|
+
ki(me, e, ce), t && (ai[e] = t), n && (di[e] = n), Object.assign(li, r);
|
|
1936
|
+
const $o = "noEmbeddedIdentificationByComment", vo = "noEmbeddedIdentificationByTag", Do = "preserveEmbeddedExteriorWhitespaces", Mo = "noEmbeddedMultiLineIndentation", To = "embeddedOverrides", ia = {
|
|
1938
1937
|
...li,
|
|
1939
1938
|
/**
|
|
1940
1939
|
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
1941
1940
|
*/
|
|
1942
|
-
[
|
|
1941
|
+
[$o]: {
|
|
1943
1942
|
category: "Embed",
|
|
1944
1943
|
type: "string",
|
|
1945
1944
|
array: !0,
|
|
@@ -1950,7 +1949,7 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
|
|
|
1950
1949
|
/**
|
|
1951
1950
|
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
1952
1951
|
*/
|
|
1953
|
-
[
|
|
1952
|
+
[vo]: {
|
|
1954
1953
|
category: "Embed",
|
|
1955
1954
|
type: "string",
|
|
1956
1955
|
array: !0,
|
|
@@ -1958,28 +1957,28 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
|
|
|
1958
1957
|
description: "Turns off `` tag`...` `` tag-based embedded language identification for the specified identifiers.",
|
|
1959
1958
|
deprecated: "Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore."
|
|
1960
1959
|
},
|
|
1961
|
-
[
|
|
1960
|
+
[Do]: {
|
|
1962
1961
|
category: "Embed",
|
|
1963
1962
|
type: "string",
|
|
1964
1963
|
array: !0,
|
|
1965
1964
|
default: [{ value: [] }],
|
|
1966
1965
|
description: "Preserves leading and trailing whitespaces in the formatting results for the specified comments or tags."
|
|
1967
1966
|
},
|
|
1968
|
-
[
|
|
1967
|
+
[Mo]: {
|
|
1969
1968
|
category: "Embed",
|
|
1970
1969
|
type: "string",
|
|
1971
1970
|
array: !0,
|
|
1972
1971
|
default: [{ value: [] }],
|
|
1973
1972
|
description: "Turns off auto indentation in the formatting results for the specified comments or tags when they are formatted to span multi lines."
|
|
1974
1973
|
},
|
|
1975
|
-
[
|
|
1974
|
+
[To]: {
|
|
1976
1975
|
category: "Embed",
|
|
1977
1976
|
type: "string",
|
|
1978
1977
|
array: !1,
|
|
1979
1978
|
default: void 0,
|
|
1980
1979
|
description: "Option overrides for the specified comments or tags. It should either be a stringified JSON or an absolute filepath to the option overrides file."
|
|
1981
1980
|
}
|
|
1982
|
-
},
|
|
1981
|
+
}, Ao = {
|
|
1983
1982
|
// parsers from internal
|
|
1984
1983
|
...Ei.parsers,
|
|
1985
1984
|
...bi.parsers,
|
|
@@ -1989,7 +1988,7 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
|
|
|
1989
1988
|
// parsers from this plugin
|
|
1990
1989
|
...ai
|
|
1991
1990
|
};
|
|
1992
|
-
var
|
|
1991
|
+
var So = {
|
|
1993
1992
|
isEqual: !0,
|
|
1994
1993
|
isMatchingKey: !0,
|
|
1995
1994
|
isPromise: !0,
|
|
@@ -1998,21 +1997,21 @@ var Lo = {
|
|
|
1998
1997
|
onCacheChange: !0,
|
|
1999
1998
|
onCacheHit: !0,
|
|
2000
1999
|
transformKey: !0
|
|
2001
|
-
},
|
|
2000
|
+
}, Lo = Array.prototype.slice;
|
|
2002
2001
|
function Ee(e) {
|
|
2003
2002
|
var t = e.length;
|
|
2004
|
-
return t ? t === 1 ? [e[0]] : t === 2 ? [e[0], e[1]] : t === 3 ? [e[0], e[1], e[2]] :
|
|
2003
|
+
return t ? t === 1 ? [e[0]] : t === 2 ? [e[0], e[1]] : t === 3 ? [e[0], e[1], e[2]] : Lo.call(e, 0) : [];
|
|
2005
2004
|
}
|
|
2006
|
-
function
|
|
2005
|
+
function ko(e) {
|
|
2007
2006
|
var t = {};
|
|
2008
2007
|
for (var n in e)
|
|
2009
|
-
|
|
2008
|
+
So[n] || (t[n] = e[n]);
|
|
2010
2009
|
return t;
|
|
2011
2010
|
}
|
|
2012
|
-
function
|
|
2011
|
+
function Go(e) {
|
|
2013
2012
|
return typeof e == "function" && e.isMemoized;
|
|
2014
2013
|
}
|
|
2015
|
-
function
|
|
2014
|
+
function No(e, t) {
|
|
2016
2015
|
return e === t || e !== e && t !== t;
|
|
2017
2016
|
}
|
|
2018
2017
|
function ti(e, t) {
|
|
@@ -2023,7 +2022,7 @@ function ti(e, t) {
|
|
|
2023
2022
|
n[r] = t[r];
|
|
2024
2023
|
return n;
|
|
2025
2024
|
}
|
|
2026
|
-
var
|
|
2025
|
+
var xo = (
|
|
2027
2026
|
/** @class */
|
|
2028
2027
|
function() {
|
|
2029
2028
|
function e(t) {
|
|
@@ -2120,11 +2119,11 @@ var Io = (
|
|
|
2120
2119
|
}()
|
|
2121
2120
|
);
|
|
2122
2121
|
function ci(e, t) {
|
|
2123
|
-
if (t === void 0 && (t = {}),
|
|
2122
|
+
if (t === void 0 && (t = {}), Go(e))
|
|
2124
2123
|
return ci(e.fn, ti(e.options, t));
|
|
2125
2124
|
if (typeof e != "function")
|
|
2126
2125
|
throw new TypeError("You must pass a function to `memoize`.");
|
|
2127
|
-
var n = t.isEqual, r = n === void 0 ?
|
|
2126
|
+
var n = t.isEqual, r = n === void 0 ? No : n, i = t.isMatchingKey, a = t.isPromise, s = a === void 0 ? !1 : a, l = t.maxSize, u = l === void 0 ? 1 : l, E = t.onCacheAdd, d = t.onCacheChange, c = t.onCacheHit, p = t.transformKey, f = ti({
|
|
2128
2127
|
isEqual: r,
|
|
2129
2128
|
isMatchingKey: i,
|
|
2130
2129
|
isPromise: s,
|
|
@@ -2133,7 +2132,7 @@ function ci(e, t) {
|
|
|
2133
2132
|
onCacheChange: d,
|
|
2134
2133
|
onCacheHit: c,
|
|
2135
2134
|
transformKey: p
|
|
2136
|
-
},
|
|
2135
|
+
}, ko(t)), b = new xo(f), _ = b.keys, o = b.values, h = b.canTransformKey, $ = b.shouldCloneArguments, m = b.shouldUpdateOnAdd, g = b.shouldUpdateOnChange, y = b.shouldUpdateOnHit, k = function() {
|
|
2137
2136
|
var G = $ ? Ee(arguments) : arguments;
|
|
2138
2137
|
h && (G = p(G));
|
|
2139
2138
|
var I = _.length ? b.getKeyIndex(G) : -1;
|
|
@@ -2147,16 +2146,16 @@ function ci(e, t) {
|
|
|
2147
2146
|
};
|
|
2148
2147
|
return k.cache = b, k.fn = e, k.isMemoized = !0, k.options = f, k;
|
|
2149
2148
|
}
|
|
2150
|
-
const
|
|
2149
|
+
const Io = /("(?:\\?[^])*?")|(\/\/.*)|(\/\*[^]*?\*\/)/g, Oo = /("(?:\\?[^])*?")|(,\s*)(?=]|})/g, Be = {
|
|
2151
2150
|
parse: (e) => {
|
|
2152
2151
|
e = String(e);
|
|
2153
2152
|
try {
|
|
2154
2153
|
return JSON.parse(e);
|
|
2155
2154
|
} catch {
|
|
2156
|
-
return JSON.parse(e.replace(
|
|
2155
|
+
return JSON.parse(e.replace(Io, "$1").replace(Oo, "$1"));
|
|
2157
2156
|
}
|
|
2158
2157
|
}
|
|
2159
|
-
}, { label:
|
|
2158
|
+
}, { label: Po } = M;
|
|
2160
2159
|
async function ni(e) {
|
|
2161
2160
|
try {
|
|
2162
2161
|
const { readFile: t } = await import("node:fs/promises"), n = await t(e, { encoding: "utf-8" });
|
|
@@ -2164,15 +2163,15 @@ async function ni(e) {
|
|
|
2164
2163
|
} catch {
|
|
2165
2164
|
}
|
|
2166
2165
|
}
|
|
2167
|
-
const
|
|
2166
|
+
const Bo = /* @__PURE__ */ new URL(
|
|
2168
2167
|
`data:text/javascript,${encodeURIComponent('import{pathToFileURL as o}from"node:url";import{parentPort as t,workerData as a}from"node:worker_threads";const s=async({absolutePath:r})=>{try{const e=await import(o(r).href);t?.postMessage(e.embeddedOverrides??e.default??void 0)}catch{t?.postMessage(void 0)}};s(a);')}`
|
|
2169
|
-
),
|
|
2168
|
+
), qo = /* @__PURE__ */ new URL(
|
|
2170
2169
|
`data:text/javascript,${encodeURIComponent('import{register as a}from"node:module";import{pathToFileURL as s}from"node:url";import{parentPort as t,workerData as i}from"node:worker_threads";const d=async({absolutePath:r,importMetaUrl:o})=>{a("tsx/esm",{parentURL:o,data:!0});try{const e=await import(s(r).href);t?.postMessage(e.embeddedOverrides??e.default??void 0)}catch{t?.postMessage(void 0)}};d(i);')}`
|
|
2171
2170
|
);
|
|
2172
|
-
async function
|
|
2171
|
+
async function jo(e) {
|
|
2173
2172
|
const { Worker: t } = await import("node:worker_threads");
|
|
2174
2173
|
return new Promise((n) => {
|
|
2175
|
-
const r = new t(
|
|
2174
|
+
const r = new t(Bo, {
|
|
2176
2175
|
workerData: {
|
|
2177
2176
|
absolutePath: e
|
|
2178
2177
|
}
|
|
@@ -2184,10 +2183,10 @@ async function Uo(e) {
|
|
|
2184
2183
|
});
|
|
2185
2184
|
});
|
|
2186
2185
|
}
|
|
2187
|
-
async function
|
|
2186
|
+
async function Uo(e) {
|
|
2188
2187
|
const { Worker: t } = await import("node:worker_threads");
|
|
2189
2188
|
return new Promise((n) => {
|
|
2190
|
-
const r = new t(
|
|
2189
|
+
const r = new t(qo, {
|
|
2191
2190
|
workerData: {
|
|
2192
2191
|
absolutePath: e,
|
|
2193
2192
|
importMetaUrl: import.meta.url
|
|
@@ -2200,7 +2199,7 @@ async function Ro(e) {
|
|
|
2200
2199
|
});
|
|
2201
2200
|
});
|
|
2202
2201
|
}
|
|
2203
|
-
const
|
|
2202
|
+
const Ro = ci(
|
|
2204
2203
|
async (e, t) => {
|
|
2205
2204
|
const { isAbsolute: n, dirname: r, resolve: i } = await import("node:path");
|
|
2206
2205
|
if (n(e))
|
|
@@ -2209,7 +2208,7 @@ const Co = ci(
|
|
|
2209
2208
|
let s;
|
|
2210
2209
|
return typeof a != "string" ? s = process.env.PWD ?? process.cwd() : s = r(a), i(s, e);
|
|
2211
2210
|
}
|
|
2212
|
-
),
|
|
2211
|
+
), Co = async (e, t) => {
|
|
2213
2212
|
let n;
|
|
2214
2213
|
try {
|
|
2215
2214
|
n = (await import("node:path")).extname(
|
|
@@ -2223,7 +2222,7 @@ const Co = ci(
|
|
|
2223
2222
|
return;
|
|
2224
2223
|
}
|
|
2225
2224
|
}
|
|
2226
|
-
const r =
|
|
2225
|
+
const r = Ro(
|
|
2227
2226
|
e,
|
|
2228
2227
|
t
|
|
2229
2228
|
);
|
|
@@ -2235,14 +2234,14 @@ const Co = ci(
|
|
|
2235
2234
|
return;
|
|
2236
2235
|
}
|
|
2237
2236
|
if (n === ".mjs" || n === ".cjs" || n === ".js") {
|
|
2238
|
-
const i = await r, a = await
|
|
2237
|
+
const i = await r, a = await jo(i);
|
|
2239
2238
|
if (a !== void 0)
|
|
2240
2239
|
return a;
|
|
2241
2240
|
console.error(`Failed to parse the js module file: ${i}`);
|
|
2242
2241
|
return;
|
|
2243
2242
|
}
|
|
2244
2243
|
if (n === ".mts" || n === ".cts" || n === ".ts") {
|
|
2245
|
-
const i = await r, a = await
|
|
2244
|
+
const i = await r, a = await Uo(i);
|
|
2246
2245
|
if (a !== void 0)
|
|
2247
2246
|
return a;
|
|
2248
2247
|
console.error(`Failed to parse the ts module file: ${i}`);
|
|
@@ -2259,14 +2258,14 @@ const Co = ci(
|
|
|
2259
2258
|
console.error("Failed to parse embeddedOverrides as a json object");
|
|
2260
2259
|
}
|
|
2261
2260
|
};
|
|
2262
|
-
async function
|
|
2261
|
+
async function wo(e, {
|
|
2263
2262
|
commentOrTag: t,
|
|
2264
2263
|
kind: n,
|
|
2265
2264
|
filepath: r
|
|
2266
2265
|
}) {
|
|
2267
2266
|
if (e === void 0)
|
|
2268
2267
|
return;
|
|
2269
|
-
const i = await
|
|
2268
|
+
const i = await Co(
|
|
2270
2269
|
e,
|
|
2271
2270
|
r
|
|
2272
2271
|
);
|
|
@@ -2281,7 +2280,7 @@ async function Fo(e, {
|
|
|
2281
2280
|
return l;
|
|
2282
2281
|
}
|
|
2283
2282
|
}
|
|
2284
|
-
const
|
|
2283
|
+
const Fo = /* @__PURE__ */ (() => {
|
|
2285
2284
|
const e = /* @__PURE__ */ new Set([
|
|
2286
2285
|
"start",
|
|
2287
2286
|
"end",
|
|
@@ -2311,7 +2310,7 @@ const Wo = /* @__PURE__ */ (() => {
|
|
|
2311
2310
|
);
|
|
2312
2311
|
};
|
|
2313
2312
|
})();
|
|
2314
|
-
function
|
|
2313
|
+
function Wo({
|
|
2315
2314
|
node: e,
|
|
2316
2315
|
parent: t
|
|
2317
2316
|
}) {
|
|
@@ -2332,19 +2331,19 @@ function zo({
|
|
|
2332
2331
|
if (i.length > 1 && i.startsWith(" ") && i.endsWith(" "))
|
|
2333
2332
|
return i.slice(1, -1);
|
|
2334
2333
|
}
|
|
2335
|
-
function
|
|
2334
|
+
function zo({
|
|
2336
2335
|
parent: e
|
|
2337
2336
|
}) {
|
|
2338
2337
|
if (e?.type === "TaggedTemplateExpression")
|
|
2339
2338
|
return e.tag.type === "Identifier" ? e.tag.name : e.tag;
|
|
2340
2339
|
}
|
|
2341
|
-
function
|
|
2340
|
+
function Ko(e, t) {
|
|
2342
2341
|
const n = /* @__PURE__ */ (() => {
|
|
2343
2342
|
let r;
|
|
2344
2343
|
return () => (r === void 0 && (r = !(e.noEmbeddedIdentificationByComment?.includes(t) ?? !1)), r);
|
|
2345
2344
|
})();
|
|
2346
2345
|
return function* (r) {
|
|
2347
|
-
const i = e[
|
|
2346
|
+
const i = e[T(r)] ?? [];
|
|
2348
2347
|
i.length === 0 && n() ? yield* e[v(r)] ?? [] : yield* i;
|
|
2349
2348
|
};
|
|
2350
2349
|
}
|
|
@@ -2375,7 +2374,7 @@ function Ie(e, t, n, r, i) {
|
|
|
2375
2374
|
return null;
|
|
2376
2375
|
if (e.quasis.length === 1 && e.quasis[0]?.value.raw.trim() === "")
|
|
2377
2376
|
return "``";
|
|
2378
|
-
const s =
|
|
2377
|
+
const s = wo(
|
|
2379
2378
|
i.embeddedOverrides,
|
|
2380
2379
|
{
|
|
2381
2380
|
commentOrTag: n,
|
|
@@ -2390,7 +2389,7 @@ function Ie(e, t, n, r, i) {
|
|
|
2390
2389
|
kind: r,
|
|
2391
2390
|
embeddedOverrideOptions: await s
|
|
2392
2391
|
});
|
|
2393
|
-
return
|
|
2392
|
+
return Po(
|
|
2394
2393
|
{
|
|
2395
2394
|
embed: !0,
|
|
2396
2395
|
...u.label
|
|
@@ -2403,9 +2402,9 @@ function Ie(e, t, n, r, i) {
|
|
|
2403
2402
|
};
|
|
2404
2403
|
}
|
|
2405
2404
|
function ui(e, t, n) {
|
|
2406
|
-
return Object.is(e, t) ? !0 : e === null || t === null ? !1 : Array.isArray(e) ?
|
|
2405
|
+
return Object.is(e, t) ? !0 : e === null || t === null ? !1 : Array.isArray(e) ? Jo(e, t, n) : typeof e == "object" ? pi(e, t, n) : !1;
|
|
2407
2406
|
}
|
|
2408
|
-
function
|
|
2407
|
+
function Jo(e, t, n) {
|
|
2409
2408
|
const r = e.length;
|
|
2410
2409
|
if (r !== t.length)
|
|
2411
2410
|
return !1;
|
|
@@ -2420,13 +2419,13 @@ function pi(e, t, n) {
|
|
|
2420
2419
|
return !1;
|
|
2421
2420
|
return !0;
|
|
2422
2421
|
}
|
|
2423
|
-
const { estree: gi } = $i, { embed: Oe } = gi,
|
|
2422
|
+
const { estree: gi } = $i, { embed: Oe } = gi, Ho = (e, t) => {
|
|
2424
2423
|
const { node: n } = e;
|
|
2425
2424
|
if (n.type !== "TemplateLiteral" || n.quasis.some(({ value: { cooked: a } }) => a === null))
|
|
2426
2425
|
return null;
|
|
2427
|
-
const r =
|
|
2426
|
+
const r = Wo(e);
|
|
2428
2427
|
if (typeof r == "string") {
|
|
2429
|
-
const a =
|
|
2428
|
+
const a = Ko(
|
|
2430
2429
|
t,
|
|
2431
2430
|
r
|
|
2432
2431
|
);
|
|
@@ -2450,7 +2449,7 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
|
|
|
2450
2449
|
}
|
|
2451
2450
|
return Oe?.(e, t) ?? null;
|
|
2452
2451
|
}
|
|
2453
|
-
const i =
|
|
2452
|
+
const i = zo(e);
|
|
2454
2453
|
if (typeof i == "string") {
|
|
2455
2454
|
const a = ii(t, i);
|
|
2456
2455
|
for (const s of me) {
|
|
@@ -2466,14 +2465,14 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
|
|
|
2466
2465
|
return Oe?.(e, t) ?? null;
|
|
2467
2466
|
}
|
|
2468
2467
|
if (i !== void 0) {
|
|
2469
|
-
const a = (l) =>
|
|
2468
|
+
const a = (l) => Ao[t.parser].parse(
|
|
2470
2469
|
l,
|
|
2471
2470
|
t
|
|
2472
2471
|
), s = ii(t);
|
|
2473
2472
|
for (const l of me) {
|
|
2474
2473
|
let u;
|
|
2475
2474
|
for (const E of s(l))
|
|
2476
|
-
if (
|
|
2475
|
+
if (Fo(i, E, a)) {
|
|
2477
2476
|
u = E;
|
|
2478
2477
|
break;
|
|
2479
2478
|
}
|
|
@@ -2488,14 +2487,14 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
|
|
|
2488
2487
|
}
|
|
2489
2488
|
}
|
|
2490
2489
|
return Oe?.(e, t) ?? null;
|
|
2491
|
-
},
|
|
2490
|
+
}, sa = {
|
|
2492
2491
|
estree: {
|
|
2493
2492
|
...gi,
|
|
2494
|
-
embed:
|
|
2493
|
+
embed: Ho
|
|
2495
2494
|
}
|
|
2496
2495
|
};
|
|
2497
2496
|
export {
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2497
|
+
ia as options,
|
|
2498
|
+
Ao as parsers,
|
|
2499
|
+
sa as printers
|
|
2501
2500
|
};
|