prettier-plugin-embed 0.4.11 → 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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { builders as T, utils as si } from "prettier/doc";
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,81 +6,80 @@ 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
- import { builders as Di } from "prettier/doc.js";
10
- const { group: Mi, indent: Ti, softline: qe, hardline: Ai, lineSuffixBoundary: Si } = T, { mapDoc: Li } = si;
11
- function ki(e, t) {
12
- const { node: i } = e;
9
+ const { group: Di, indent: Mi, softline: qe, hardline: Ti, lineSuffixBoundary: Ai } = M, { mapDoc: Si } = si;
10
+ function Li(e, t) {
11
+ const { node: n } = e;
13
12
  let r = t();
14
- return i?.comments?.length && (r = Mi([Ti([qe, r]), qe])), ["${", r, Si, "}"];
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
- (i) => ki(i, t),
17
+ (n) => Li(n, t),
19
18
  "expressions"
20
19
  );
21
20
  }
22
- function A(e, t, i, r = !1) {
23
- return Li(e, (a) => {
21
+ function A(e, t, n, r = !1) {
22
+ return Si(e, (a) => {
24
23
  if (typeof a != "string")
25
24
  return a;
26
25
  const s = [], l = a.split(t);
27
- for (let p = 0; p < l.length; p++) {
28
- let E = l[p];
29
- if (p % 2 === 0) {
26
+ for (let u = 0; u < l.length; u++) {
27
+ let E = l[u];
28
+ if (u % 2 === 0) {
30
29
  if (!E)
31
30
  continue;
32
31
  if (E = E.replaceAll(/([\\`]|\${)/g, "\\$1"), r)
33
32
  for (const d of E.split(/(\n)/))
34
33
  d === `
35
- ` ? s.push(Ai) : s.push(d);
34
+ ` ? s.push(Ti) : s.push(d);
36
35
  else
37
36
  s.push(E);
38
37
  } else {
39
38
  const d = Number(E);
40
- s.push(i[d]);
39
+ s.push(n[d]);
41
40
  }
42
41
  }
43
42
  return s;
44
43
  });
45
44
  }
46
- function N(e, t, i) {
45
+ function N(e, t, n) {
47
46
  if (!(t.plugins?.some(
48
47
  (r) => r.name?.match(
49
48
  new RegExp(`(^|/)${Pe(e)}($|/)`)
50
49
  ) ?? !1
51
50
  ) ?? !1))
52
51
  throw new Error(
53
- `Cannot format embedded language identified by "${i}", because plugin "${e}" is not loaded.`
52
+ `Cannot format embedded language identified by "${n}", because plugin "${e}" is not loaded.`
54
53
  );
55
54
  }
56
- function Gi(e, t, i) {
57
- if (t === i) {
55
+ function ki(e, t, n) {
56
+ if (t === n) {
58
57
  e.unshift(t);
59
58
  return;
60
59
  }
61
- let r = 0, n = e.length;
62
- for (; r < n; ) {
63
- const a = r + n >>> 1;
64
- if (e[a] === i) {
60
+ let r = 0, i = e.length;
61
+ for (; r < i; ) {
62
+ const a = r + i >>> 1;
63
+ if (e[a] === n) {
65
64
  e.push(t);
66
65
  return;
67
66
  }
68
- e[a] < t ? r = a + 1 : n = a;
67
+ e[a] < t ? r = a + 1 : i = a;
69
68
  }
70
69
  e.splice(r, 0, t);
71
70
  }
72
71
  const he = (() => {
73
72
  const e = [...Array(26).keys()].map((t) => String.fromCharCode(t + 97)).concat([...Array(10).keys()].map((t) => `${t}`));
74
73
  return () => {
75
- let i = "";
74
+ let n = "";
76
75
  for (let r = 0; r < 16; ++r)
77
- i += e[parseInt((Math.random() * e.length).toFixed(0), 10) % e.length];
78
- return i;
76
+ n += e[parseInt((Math.random() * e.length).toFixed(0), 10) % e.length];
77
+ return n;
79
78
  };
80
79
  })();
81
80
  function L(e = "p", t = "") {
82
- const i = he(), r = he(), n = Pe(e), a = Pe(t), s = (p) => `${e}${i}${p}${r}${t}`, l = new RegExp(
83
- `${n}${i}(\\d+)${r}${a}`,
81
+ const n = he(), r = he(), i = Pe(e), a = Pe(t), s = (u) => `${e}${n}${u}${r}${t}`, l = new RegExp(
82
+ `${i}${n}(\\d+)${r}${a}`,
84
83
  "ig"
85
84
  );
86
85
  return {
@@ -94,52 +93,52 @@ function Pe(e) {
94
93
  function v(e) {
95
94
  return `${e}Identifiers`;
96
95
  }
97
- function M(e) {
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 Ni(e) {
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 } = T, xi = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
113
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L("@p"), d = l.quasis.map(
114
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
115
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
112
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L("@p"), d = l.quasis.map(
113
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
114
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
116
115
  c.length,
117
- -u.length || void 0
118
- ), b = S(i, t), _ = await e(f, {
116
+ -p.length || void 0
117
+ ), b = S(n, t), _ = await e(f, {
119
118
  ...s,
120
119
  parser: s.embeddedCssParser ?? "scss"
121
120
  }), o = A(_, E, b);
122
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
121
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
123
122
  return O([
124
123
  "`",
125
124
  c,
126
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [O(o)] : Ue([O(o)]),
127
- u,
125
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [O(o)] : Ue([O(o)]),
126
+ p,
128
127
  "`"
129
128
  ]);
130
- const h = c.length ? je : Re, $ = u.length ? je : Re;
129
+ const h = c.length ? je : Re, $ = p.length ? je : Re;
131
130
  return O([
132
131
  "`",
133
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, O(o)] : Ue([h, O(o)]),
132
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, O(o)] : Ue([h, O(o)]),
134
133
  $,
135
134
  "`"
136
135
  ]);
137
- }, re = "embeddedCss", Ii = ["css"], Oi = ["css", "less", "scss"], Pi = v(re), Ce = M(re), we = D(re), Bi = x(re), qi = {
138
- [Pi]: {
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: [...Ii] }],
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,50 +156,50 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
157
156
  default: [{ value: [] }],
158
157
  description: "Tags that make their subsequent template literals be identified as embedded CSS language."
159
158
  },
160
- [Bi]: {
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: Oi.map((e) => ({
164
+ choices: Ii.map((e) => ({
166
165
  value: e,
167
166
  description: `Use the "${e}" parser.`
168
167
  }))
169
168
  }
170
- }, ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
169
+ }, qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
171
170
  __proto__: null,
172
- embedder: xi,
171
+ embedder: Ni,
173
172
  language: re,
174
- options: qi
175
- }, Symbol.toStringTag, { value: "Module" })), { line: Fe, group: P, indent: We, softline: ze } = T, Ui = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
179
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
180
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
181
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
178
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
179
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
180
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
182
181
  c.length,
183
- -u.length || void 0
184
- ), b = S(i, t), _ = await e(f, {
182
+ -p.length || void 0
183
+ ), b = S(n, t), _ = await e(f, {
185
184
  ...s,
186
185
  parser: s.embeddedEsParser ?? "babel"
187
186
  }), o = A(_, E, b);
188
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
187
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
189
188
  return P([
190
189
  "`",
191
190
  c,
192
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [P(o)] : We([P(o)]),
193
- u,
191
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [P(o)] : We([P(o)]),
192
+ p,
194
193
  "`"
195
194
  ]);
196
- const h = c.length ? Fe : ze, $ = u.length ? Fe : ze;
195
+ const h = c.length ? Fe : ze, $ = p.length ? Fe : ze;
197
196
  return P([
198
197
  "`",
199
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, P(o)] : We([h, P(o)]),
198
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, P(o)] : We([h, P(o)]),
200
199
  $,
201
200
  "`"
202
201
  ]);
203
- }, oe = "embeddedEs", Ri = [
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, i,
209
208
  "cjs",
210
209
  "pac",
211
210
  "javascript"
212
- ], Ci = [
211
+ ], Ri = [
213
212
  "babel",
214
213
  "babel-flow",
215
214
  "acorn",
216
215
  "espree",
217
216
  "flow",
218
217
  "meriyah"
219
- ], wi = v(oe), Ke = M(oe), Je = D(oe), Fi = x(oe), Wi = {
220
- [wi]: {
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: [...Ri] }],
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,56 +238,56 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
239
238
  default: [{ value: [] }],
240
239
  description: "Tags that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language."
241
240
  },
242
- [Fi]: {
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: Ci.map((e) => ({
246
+ choices: Ri.map((e) => ({
248
247
  value: e,
249
248
  description: `Use the "${e}" parser.`
250
249
  }))
251
250
  }
252
- }, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
251
+ }, Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
253
252
  __proto__: null,
254
- embedder: Ui,
253
+ embedder: ji,
255
254
  language: oe,
256
- options: Wi
257
- }, Symbol.toStringTag, { value: "Module" })), { line: He, group: B, indent: Xe, softline: Qe } = T, Ki = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
258
- N("prettier-plugin-glsl", r, n);
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 }) => {
257
+ N("prettier-plugin-glsl", r, i);
259
258
  const s = {
260
259
  ...r,
261
260
  ...a
262
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
263
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
264
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
261
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
262
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
263
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
265
264
  c.length,
266
- -u.length || void 0
267
- ), b = S(i, t), _ = await e(f, {
265
+ -p.length || void 0
266
+ ), b = S(n, t), _ = await e(f, {
268
267
  ...s,
269
268
  parser: "glsl-parser"
270
269
  }), o = A(_, E, b);
271
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
270
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
272
271
  return B([
273
272
  "`",
274
273
  c,
275
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [B(o)] : Xe([B(o)]),
276
- u,
274
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [B(o)] : Xe([B(o)]),
275
+ p,
277
276
  "`"
278
277
  ]);
279
- const h = c.length ? He : Qe, $ = u.length ? He : Qe;
278
+ const h = c.length ? He : Qe, $ = p.length ? He : Qe;
280
279
  return B([
281
280
  "`",
282
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, B(o)] : Xe([h, B(o)]),
281
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, B(o)] : Xe([h, B(o)]),
283
282
  $,
284
283
  "`"
285
284
  ]);
286
- }, be = "embeddedGlsl", Ji = ["glsl", "shader"], Hi = v(be), Ye = M(be), Ve = D(be), Xi = {
287
- [Hi]: {
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: [...Ji] }],
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,45 +305,45 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
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
- }, Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
308
+ }, Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
310
309
  __proto__: null,
311
- embedder: Ki,
310
+ embedder: zi,
312
311
  language: be,
313
- options: Xi
314
- }, Symbol.toStringTag, { value: "Module" })), { line: Ze, group: q, indent: et, softline: tt } = T, Yi = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
318
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
319
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
320
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
317
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
318
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
319
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
321
320
  c.length,
322
- -u.length || void 0
323
- ), b = S(i, t), _ = await e(f, {
321
+ -p.length || void 0
322
+ ), b = S(n, t), _ = await e(f, {
324
323
  ...s,
325
324
  parser: "graphql"
326
325
  }), o = A(_, E, b);
327
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
326
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
328
327
  return q([
329
328
  "`",
330
329
  c,
331
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [q(o)] : et([q(o)]),
332
- u,
330
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [q(o)] : et([q(o)]),
331
+ p,
333
332
  "`"
334
333
  ]);
335
- const h = c.length ? Ze : tt, $ = u.length ? Ze : tt;
334
+ const h = c.length ? Ze : tt, $ = p.length ? Ze : tt;
336
335
  return q([
337
336
  "`",
338
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, q(o)] : et([h, q(o)]),
337
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, q(o)] : et([h, q(o)]),
339
338
  $,
340
339
  "`"
341
340
  ]);
342
- }, fe = "embeddedGraphql", Vi = ["graphql", "gql"], Zi = v(fe), nt = M(fe), it = D(fe), es = {
343
- [Zi]: {
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: [...Vi] }],
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,24 +361,24 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
362
361
  default: [{ value: [] }],
363
362
  description: "Tags that make their subsequent template literals be identified as embedded GraphQL language."
364
363
  }
365
- }, ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
364
+ }, es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
366
365
  __proto__: null,
367
- embedder: Yi,
366
+ embedder: Qi,
368
367
  language: fe,
369
- options: es
370
- }, Symbol.toStringTag, { value: "Module" })), { line: st, group: j, indent: rt, softline: ot } = T, { mapDoc: ns } = si, is = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
374
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
375
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
376
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
373
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
374
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
375
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
377
376
  c.length,
378
- -u.length || void 0
379
- ), b = S(i, t), _ = await e(f, {
377
+ -p.length || void 0
378
+ ), b = S(n, t), _ = await e(f, {
380
379
  ...s,
381
380
  parser: s.embeddedHtmlParser ?? "html"
382
- }), o = ns(_, (m) => {
381
+ }), o = ts(_, (m) => {
383
382
  if (typeof m != "string")
384
383
  return m;
385
384
  const g = [], y = m.split(E);
@@ -397,27 +396,27 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
397
396
  return g;
398
397
  });
399
398
  if (s.htmlWhitespaceSensitivity === "strict" || // TODO: is css mode should be included here?
400
- s.htmlWhitespaceSensitivity === "css" || s.preserveEmbeddedExteriorWhitespaces?.includes(n))
399
+ s.htmlWhitespaceSensitivity === "css" || s.preserveEmbeddedExteriorWhitespaces?.includes(i))
401
400
  return j([
402
401
  "`",
403
402
  c,
404
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [j(o)] : rt([j(o)]),
405
- u,
403
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [j(o)] : rt([j(o)]),
404
+ p,
406
405
  "`"
407
406
  ]);
408
- const h = c.length ? st : ot, $ = u.length ? st : ot;
407
+ const h = c.length ? st : ot, $ = p.length ? st : ot;
409
408
  return j([
410
409
  "`",
411
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, j(o)] : rt([h, j(o)]),
410
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, j(o)] : rt([h, j(o)]),
412
411
  $,
413
412
  "`"
414
413
  ]);
415
- }, ae = "embeddedHtml", ss = ["html", "xhtml"], rs = ["html", "vue", "angular", "lwc"], os = v(ae), at = M(ae), dt = D(ae), as = x(ae), ds = {
416
- [os]: {
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: [...ss] }],
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,56 +434,56 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
435
434
  default: [{ value: [] }],
436
435
  description: "Tags that make their subsequent template literals be identified as embedded HTML language."
437
436
  },
438
- [as]: {
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: rs.map((e) => ({
442
+ choices: ss.map((e) => ({
444
443
  value: e,
445
444
  description: `Use the "${e}" parser.`
446
445
  }))
447
446
  }
448
- }, ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
447
+ }, ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
449
448
  __proto__: null,
450
- embedder: is,
449
+ embedder: ns,
451
450
  language: ae,
452
- options: ds
453
- }, Symbol.toStringTag, { value: "Module" })), { line: lt, group: U, indent: ct, softline: ut } = T, cs = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
454
- N("prettier-plugin-ini", r, n);
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 }) => {
453
+ N("prettier-plugin-ini", r, i);
455
454
  const s = {
456
455
  ...r,
457
456
  ...a
458
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
459
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
460
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
457
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
458
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
459
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
461
460
  c.length,
462
- -u.length || void 0
463
- ), b = S(i, t), _ = await e(f, {
461
+ -p.length || void 0
462
+ ), b = S(n, t), _ = await e(f, {
464
463
  ...s,
465
464
  parser: "ini"
466
465
  }), o = A(_, E, b);
467
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
466
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
468
467
  return U([
469
468
  "`",
470
469
  c,
471
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [U(o)] : ct([U(o)]),
472
- u,
470
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [U(o)] : ct([U(o)]),
471
+ p,
473
472
  "`"
474
473
  ]);
475
- const h = c.length ? lt : ut, $ = u.length ? lt : ut;
474
+ const h = c.length ? lt : ut, $ = p.length ? lt : ut;
476
475
  return U([
477
476
  "`",
478
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, U(o)] : ct([h, U(o)]),
477
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, U(o)] : ct([h, U(o)]),
479
478
  $,
480
479
  "`"
481
480
  ]);
482
- }, ye = "embeddedIni", us = ["ini", "cfg", "pro"], ps = v(ye), pt = M(ye), gt = D(ye), gs = {
483
- [ps]: {
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: [...us] }],
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,22 +501,22 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
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
- }, ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
504
+ }, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
506
505
  __proto__: null,
507
- embedder: cs,
506
+ embedder: ls,
508
507
  language: ye,
509
- options: gs
510
- }, Symbol.toStringTag, { value: "Module" })), { group: R, line: mt, softline: ht, indent: Et } = T, hs = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
511
- N("prettier-plugin-java", r, n);
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 }) => {
510
+ N("prettier-plugin-java", r, i);
512
511
  const s = {
513
512
  ...r,
514
513
  ...a
515
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
516
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
517
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
514
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
515
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
516
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
518
517
  c.length,
519
- -u.length || void 0
520
- ), b = S(i, t), _ = await e(f, {
518
+ -p.length || void 0
519
+ ), b = S(n, t), _ = await e(f, {
521
520
  ...s,
522
521
  parser: "java"
523
522
  }), o = A(
@@ -526,27 +525,27 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
526
525
  b,
527
526
  !0
528
527
  );
529
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
528
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
530
529
  return R([
531
530
  "`",
532
531
  c,
533
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [R(o)] : Et([R(o)]),
534
- u,
532
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [R(o)] : Et([R(o)]),
533
+ p,
535
534
  "`"
536
535
  ]);
537
- const h = c.length ? mt : ht, $ = u.length ? mt : ht;
536
+ const h = c.length ? mt : ht, $ = p.length ? mt : ht;
538
537
  return R([
539
538
  "`",
540
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, R(o)] : Et([h, R(o)]),
539
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, R(o)] : Et([h, R(o)]),
541
540
  $,
542
541
  "`"
543
542
  ]);
544
- }, _e = "embeddedJava", Es = ["java"], bs = v(_e), bt = M(_e), ft = D(_e), fs = {
545
- [bs]: {
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: [...Es] }],
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,56 +563,56 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, i,
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
- }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
566
+ }, fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
568
567
  __proto__: null,
569
- embedder: hs,
568
+ embedder: ms,
570
569
  language: _e,
571
- options: fs
572
- }, Symbol.toStringTag, { value: "Module" })), { line: yt, group: C, indent: _t, softline: $t } = T, _s = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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 } = i, { createPlaceholder: p, placeholderRegex: E } = $s(), d = l.quasis.map(
577
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
578
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
575
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = _s(), d = l.quasis.map(
576
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
577
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
579
578
  c.length,
580
- -u.length || void 0
581
- ), b = S(i, t), _ = await e(f, {
579
+ -p.length || void 0
580
+ ), b = S(n, t), _ = await e(f, {
582
581
  ...s,
583
582
  parser: s.embeddedJsonParser ?? "json"
584
583
  }), o = A(_, E, b);
585
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
584
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
586
585
  return C([
587
586
  "`",
588
587
  c,
589
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [C(o)] : _t([C(o)]),
590
- u,
588
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [C(o)] : _t([C(o)]),
589
+ p,
591
590
  "`"
592
591
  ]);
593
- const h = c.length ? yt : $t, $ = u.length ? yt : $t;
592
+ const h = c.length ? yt : $t, $ = p.length ? yt : $t;
594
593
  return C([
595
594
  "`",
596
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, C(o)] : _t([h, C(o)]),
595
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, C(o)] : _t([h, C(o)]),
597
596
  $,
598
597
  "`"
599
598
  ]);
600
599
  };
601
- function $s() {
602
- const e = he(), t = he(), i = (n) => `'0${e}${n}${t}'`, r = new RegExp(
600
+ function _s() {
601
+ const e = he(), t = he(), n = (i) => `'0${e}${i}${t}'`, r = new RegExp(
603
602
  `["']?0${e}(\\d+)${t}['"]?`,
604
603
  "ig"
605
604
  );
606
605
  return {
607
- createPlaceholder: i,
606
+ createPlaceholder: n,
608
607
  placeholderRegex: r
609
608
  };
610
609
  }
611
- const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc", "json-stringify"], Ms = v(de), vt = M(de), Dt = D(de), Ts = x(de), As = {
612
- [Ms]: {
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: [...vs] }],
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,60 +630,60 @@ 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
- [Ts]: {
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: Ds.map((e) => ({
638
+ choices: vs.map((e) => ({
640
639
  value: e,
641
640
  description: `Use the "${e}" parser.`
642
641
  }))
643
642
  }
644
- }, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
643
+ }, As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
645
644
  __proto__: null,
646
- embedder: _s,
645
+ embedder: ys,
647
646
  language: de,
648
- options: As
649
- }, Symbol.toStringTag, { value: "Module" })), { line: Mt, group: w, indent: Tt, softline: At } = T, Ls = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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,
653
- n
652
+ i
654
653
  );
655
654
  const s = {
656
655
  ...r,
657
656
  ...a
658
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L("$p"), d = l.quasis.map(
659
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
660
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
657
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L("$p"), d = l.quasis.map(
658
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
659
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
661
660
  c.length,
662
- -u.length || void 0
663
- ), b = S(i, t), _ = await e(f, {
661
+ -p.length || void 0
662
+ ), b = S(n, t), _ = await e(f, {
664
663
  ...s,
665
664
  parser: "JSONata"
666
665
  }), o = A(_, E, b);
667
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
666
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
668
667
  return w([
669
668
  "`",
670
669
  c,
671
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [w(o)] : Tt([w(o)]),
672
- u,
670
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [w(o)] : Tt([w(o)]),
671
+ p,
673
672
  "`"
674
673
  ]);
675
- const h = c.length ? Mt : At, $ = u.length ? Mt : At;
674
+ const h = c.length ? Mt : At, $ = p.length ? Mt : At;
676
675
  return w([
677
676
  "`",
678
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, w(o)] : Tt([h, w(o)]),
677
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, w(o)] : Tt([h, w(o)]),
679
678
  $,
680
679
  "`"
681
680
  ]);
682
- }, $e = "embeddedJsonata", ks = ["jsonata"], Gs = v($e), St = M($e), Lt = D($e), Ns = {
683
- [Gs]: {
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: [...ks] }],
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,41 +701,41 @@ 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
- }, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
704
+ }, Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
706
705
  __proto__: null,
707
- embedder: Ls,
706
+ embedder: Ss,
708
707
  language: $e,
709
- options: Ns
710
- }, Symbol.toStringTag, { value: "Module" })), { line: kt, group: F, indent: Gt, softline: Nt } = T, Is = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
711
- N("prettier-plugin-latex", r, n);
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 }) => {
710
+ N("prettier-plugin-latex", r, i);
712
711
  const s = {
713
712
  ...r,
714
713
  ...a
715
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
716
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
717
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
714
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
715
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
716
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
718
717
  c.length,
719
- -u.length || void 0
720
- ), b = S(i, t), _ = await e(f, {
718
+ -p.length || void 0
719
+ ), b = S(n, t), _ = await e(f, {
721
720
  ...s,
722
721
  parser: "latex-parser"
723
722
  }), o = A(_, E, b);
724
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
723
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
725
724
  return F([
726
725
  "`",
727
726
  c,
728
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [F(o)] : Gt([F(o)]),
729
- u,
727
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [F(o)] : Gt([F(o)]),
728
+ p,
730
729
  "`"
731
730
  ]);
732
- const h = c.length ? kt : Nt, $ = u.length ? kt : Nt;
731
+ const h = c.length ? kt : Nt, $ = p.length ? kt : Nt;
733
732
  return F([
734
733
  "`",
735
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, F(o)] : Gt([h, F(o)]),
734
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, F(o)] : Gt([h, F(o)]),
736
735
  $,
737
736
  "`"
738
737
  ]);
739
- }, ve = "embeddedLatex", Os = [
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
- ], Ps = v(ve), xt = M(ve), It = D(ve), Bs = {
749
- [Ps]: {
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: [...Os] }],
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,46 +767,46 @@ 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
- }, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
770
+ }, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
772
771
  __proto__: null,
773
- embedder: Is,
772
+ embedder: xs,
774
773
  language: ve,
775
- options: Bs
776
- }, Symbol.toStringTag, { value: "Module" })), { line: Ot, group: W, indent: Pt, softline: Bt } = T, js = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
780
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
781
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
782
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
779
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
780
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
781
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
783
782
  c.length,
784
- -u.length || void 0
785
- ), b = S(i, t), _ = await e(f, {
783
+ -p.length || void 0
784
+ ), b = S(n, t), _ = await e(f, {
786
785
  ...s,
787
786
  parser: s.embeddedMarkdownParser ?? "markdown",
788
787
  __inJsTemplate: !0
789
788
  }), o = A(_, E, b);
790
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
789
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
791
790
  return W([
792
791
  "`",
793
792
  c,
794
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [W(o)] : Pt([W(o)]),
795
- u,
793
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [W(o)] : Pt([W(o)]),
794
+ p,
796
795
  "`"
797
796
  ]);
798
- const h = c.length ? Ot : Bt, $ = u.length ? Ot : Bt;
797
+ const h = c.length ? Ot : Bt, $ = p.length ? Ot : Bt;
799
798
  return W([
800
799
  "`",
801
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, W(o)] : Pt([h, W(o)]),
800
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, W(o)] : Pt([h, W(o)]),
802
801
  $,
803
802
  "`"
804
803
  ]);
805
- }, le = "embeddedMarkdown", Us = ["md", "markdown"], Rs = ["markdown", "mdx", "remark"], Cs = v(le), qt = M(le), jt = D(le), ws = x(le), Fs = {
806
- [Cs]: {
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: [...Us] }],
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,56 +824,56 @@ 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
- [ws]: {
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: Rs.map((e) => ({
832
+ choices: Us.map((e) => ({
834
833
  value: e,
835
834
  description: `Use the "${e}" parser.`
836
835
  }))
837
836
  }
838
- }, Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
837
+ }, Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
839
838
  __proto__: null,
840
- embedder: js,
839
+ embedder: qs,
841
840
  language: le,
842
- options: Fs
843
- }, Symbol.toStringTag, { value: "Module" })), { line: Ut, group: z, indent: Rt, softline: Ct } = T, zs = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
844
- N("prettier-plugin-nginx", r, n);
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 }) => {
843
+ N("prettier-plugin-nginx", r, i);
845
844
  const s = {
846
845
  ...r,
847
846
  ...a
848
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
849
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
850
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
847
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
848
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
849
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
851
850
  c.length,
852
- -u.length || void 0
853
- ), b = S(i, t), _ = await e(f, {
851
+ -p.length || void 0
852
+ ), b = S(n, t), _ = await e(f, {
854
853
  ...s,
855
854
  parser: "nginx"
856
855
  }), o = A(_, E, b);
857
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
856
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
858
857
  return z([
859
858
  "`",
860
859
  c,
861
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [z(o)] : Rt([z(o)]),
862
- u,
860
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [z(o)] : Rt([z(o)]),
861
+ p,
863
862
  "`"
864
863
  ]);
865
- const h = c.length ? Ut : Ct, $ = u.length ? Ut : Ct;
864
+ const h = c.length ? Ut : Ct, $ = p.length ? Ut : Ct;
866
865
  return z([
867
866
  "`",
868
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, z(o)] : Rt([h, z(o)]),
867
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, z(o)] : Rt([h, z(o)]),
869
868
  $,
870
869
  "`"
871
870
  ]);
872
- }, De = "embeddedNginx", Ks = ["nginx"], Js = v(De), wt = M(De), Ft = D(De), Hs = {
873
- [Js]: {
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: [...Ks] }],
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
- }, Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
894
+ }, Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
896
895
  __proto__: null,
897
- embedder: zs,
896
+ embedder: Ws,
898
897
  language: De,
899
- options: Hs
900
- }, Symbol.toStringTag, { value: "Module" })), ce = "embeddedNoop", Qs = v(ce), Wt = M(ce), zt = D(ce), Ys = {
901
- [Qs]: {
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,45 +919,45 @@ 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
- }, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
922
+ }, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
924
923
  __proto__: null,
925
924
  language: ce,
926
- options: Ys
927
- }, Symbol.toStringTag, { value: "Module" })), { line: Kt, group: K, indent: Jt, softline: Ht } = T, Zs = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
928
- N("prettier-plugin-pegjs", r, n);
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 }) => {
927
+ N("prettier-plugin-pegjs", r, i);
929
928
  const s = {
930
929
  ...r,
931
930
  ...a
932
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
933
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
934
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
931
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
932
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
933
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
935
934
  c.length,
936
- -u.length || void 0
937
- ), b = S(i, t), _ = await e(f, {
935
+ -p.length || void 0
936
+ ), b = S(n, t), _ = await e(f, {
938
937
  ...s,
939
938
  parser: "pegjs-parser"
940
939
  }), o = A(_, E, b);
941
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
940
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
942
941
  return K([
943
942
  "`",
944
943
  c,
945
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [K(o)] : Jt([K(o)]),
946
- u,
944
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [K(o)] : Jt([K(o)]),
945
+ p,
947
946
  "`"
948
947
  ]);
949
- const h = c.length ? Kt : Ht, $ = u.length ? Kt : Ht;
948
+ const h = c.length ? Kt : Ht, $ = p.length ? Kt : Ht;
950
949
  return K([
951
950
  "`",
952
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, K(o)] : Jt([h, K(o)]),
951
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, K(o)] : Jt([h, K(o)]),
953
952
  $,
954
953
  "`"
955
954
  ]);
956
- }, Me = "embeddedPegjs", er = ["pegjs", "peggy", "peg"], tr = v(Me), Xt = M(Me), Qt = D(Me), nr = {
957
- [tr]: {
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: [...er] }],
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,46 +975,46 @@ 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
- }, ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
978
+ }, nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
980
979
  __proto__: null,
981
- embedder: Zs,
980
+ embedder: Vs,
982
981
  language: Me,
983
- options: nr
984
- }, Symbol.toStringTag, { value: "Module" })), { line: Yt, group: J, indent: Vt, softline: Zt } = T, sr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
985
- N("@prettier/plugin-php", r, n);
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 }) => {
984
+ N("@prettier/plugin-php", r, i);
986
985
  const s = {
987
986
  ...r,
988
987
  ...a
989
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L("$p"), d = l.quasis.map(
990
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
991
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
988
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L("$p"), d = l.quasis.map(
989
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
990
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
992
991
  c.length,
993
- -u.length || void 0
994
- ), b = S(i, t), _ = await e(f, {
992
+ -p.length || void 0
993
+ ), b = S(n, t), _ = await e(f, {
995
994
  ...s,
996
995
  parser: "php"
997
996
  }), o = A(_, E, b);
998
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
997
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
999
998
  return J([
1000
999
  "`",
1001
1000
  c,
1002
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [J(o)] : Vt([J(o)]),
1003
- u,
1001
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [J(o)] : Vt([J(o)]),
1002
+ p,
1004
1003
  "`"
1005
1004
  ]);
1006
- const h = c.length ? Yt : Zt, $ = u.length ? Yt : Zt;
1005
+ const h = c.length ? Yt : Zt, $ = p.length ? Yt : Zt;
1007
1006
  return J([
1008
1007
  "`",
1009
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, J(o)] : Vt([h, J(o)]),
1008
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, J(o)] : Vt([h, J(o)]),
1010
1009
  $,
1011
1010
  "`"
1012
1011
  ]);
1013
- }, Te = "embeddedPhp", rr = ["php", "php5"], or = v(Te), en = M(Te), tn = D(Te), ar = {
1014
- [or]: {
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: [...rr] }],
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,46 +1032,46 @@ 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
- }, dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1035
+ }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1037
1036
  __proto__: null,
1038
- embedder: sr,
1037
+ embedder: ir,
1039
1038
  language: Te,
1040
- options: ar
1041
- }, Symbol.toStringTag, { value: "Module" })), { line: nn, group: H, indent: sn, softline: rn } = T, lr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1042
- N("prettier-plugin-prisma", r, n);
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 }) => {
1041
+ N("prettier-plugin-prisma", r, i);
1043
1042
  const s = {
1044
1043
  ...r,
1045
1044
  ...a
1046
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1047
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1048
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1045
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1046
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1047
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1049
1048
  c.length,
1050
- -u.length || void 0
1051
- ), b = S(i, t), _ = await e(f, {
1049
+ -p.length || void 0
1050
+ ), b = S(n, t), _ = await e(f, {
1052
1051
  ...s,
1053
1052
  parser: "prisma-parse"
1054
1053
  }), o = A(_, E, b);
1055
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1054
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1056
1055
  return H([
1057
1056
  "`",
1058
1057
  c,
1059
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [H(o)] : sn([H(o)]),
1060
- u,
1058
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [H(o)] : sn([H(o)]),
1059
+ p,
1061
1060
  "`"
1062
1061
  ]);
1063
- const h = c.length ? nn : rn, $ = u.length ? nn : rn;
1062
+ const h = c.length ? nn : rn, $ = p.length ? nn : rn;
1064
1063
  return H([
1065
1064
  "`",
1066
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, H(o)] : sn([h, H(o)]),
1065
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, H(o)] : sn([h, H(o)]),
1067
1066
  $,
1068
1067
  "`"
1069
1068
  ]);
1070
- }, Ae = "embeddedPrisma", cr = ["prisma"], ur = v(Ae), on = M(Ae), an = D(Ae), pr = {
1071
- [ur]: {
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: [...cr] }],
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,46 +1089,46 @@ 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
- }, gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1092
+ }, pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1094
1093
  __proto__: null,
1095
- embedder: lr,
1094
+ embedder: dr,
1096
1095
  language: Ae,
1097
- options: pr
1098
- }, Symbol.toStringTag, { value: "Module" })), { line: dn, group: X, indent: ln, softline: cn } = T, mr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1099
- N("prettier-plugin-properties", r, n);
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 }) => {
1098
+ N("prettier-plugin-properties", r, i);
1100
1099
  const s = {
1101
1100
  ...r,
1102
1101
  ...a
1103
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1104
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1105
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1102
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1103
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1104
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1106
1105
  c.length,
1107
- -u.length || void 0
1108
- ), b = S(i, t), _ = await e(f, {
1106
+ -p.length || void 0
1107
+ ), b = S(n, t), _ = await e(f, {
1109
1108
  ...s,
1110
1109
  parser: "dot-properties"
1111
1110
  }), o = A(_, E, b);
1112
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1111
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1113
1112
  return X([
1114
1113
  "`",
1115
1114
  c,
1116
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [X(o)] : ln([X(o)]),
1117
- u,
1115
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [X(o)] : ln([X(o)]),
1116
+ p,
1118
1117
  "`"
1119
1118
  ]);
1120
- const h = c.length ? dn : cn, $ = u.length ? dn : cn;
1119
+ const h = c.length ? dn : cn, $ = p.length ? dn : cn;
1121
1120
  return X([
1122
1121
  "`",
1123
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, X(o)] : ln([h, X(o)]),
1122
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, X(o)] : ln([h, X(o)]),
1124
1123
  $,
1125
1124
  "`"
1126
1125
  ]);
1127
- }, Se = "embeddedProperties", hr = ["properties"], Er = v(Se), un = M(Se), pn = D(Se), br = {
1128
- [Er]: {
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: [...hr] }],
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,22 +1146,22 @@ 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
- }, fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1149
+ }, br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1151
1150
  __proto__: null,
1152
- embedder: mr,
1151
+ embedder: gr,
1153
1152
  language: Se,
1154
- options: br
1155
- }, Symbol.toStringTag, { value: "Module" })), { group: Q, line: gn, softline: mn, indent: hn } = T, yr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1156
- N("@prettier/plugin-pug", r, n);
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 }) => {
1155
+ N("@prettier/plugin-pug", r, i);
1157
1156
  const s = {
1158
1157
  ...r,
1159
1158
  ...a
1160
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1161
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1162
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1159
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1160
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1161
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1163
1162
  c.length,
1164
- -u.length || void 0
1165
- ), b = S(i, t), _ = await e(f, {
1163
+ -p.length || void 0
1164
+ ), b = S(n, t), _ = await e(f, {
1166
1165
  ...s,
1167
1166
  parser: "pug"
1168
1167
  }), o = A(
@@ -1171,27 +1170,27 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1171
1170
  b,
1172
1171
  !0
1173
1172
  );
1174
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1173
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1175
1174
  return Q([
1176
1175
  "`",
1177
1176
  c,
1178
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [Q(o)] : hn([Q(o)]),
1179
- u,
1177
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [Q(o)] : hn([Q(o)]),
1178
+ p,
1180
1179
  "`"
1181
1180
  ]);
1182
- const h = c.length ? gn : mn, $ = u.length ? gn : mn;
1181
+ const h = c.length ? gn : mn, $ = p.length ? gn : mn;
1183
1182
  return Q([
1184
1183
  "`",
1185
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, Q(o)] : hn([h, Q(o)]),
1184
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Q(o)] : hn([h, Q(o)]),
1186
1185
  $,
1187
1186
  "`"
1188
1187
  ]);
1189
- }, Le = "embeddedPug", _r = ["pug", "jade"], $r = v(Le), En = M(Le), bn = D(Le), vr = {
1190
- [$r]: {
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: [..._r] }],
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,46 +1208,46 @@ 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
- }, Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1211
+ }, vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1213
1212
  __proto__: null,
1214
- embedder: yr,
1213
+ embedder: fr,
1215
1214
  language: Le,
1216
- options: vr
1217
- }, Symbol.toStringTag, { value: "Module" })), { line: fn, group: Y, indent: yn, softline: _n } = T, Mr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1218
- N("@prettier/plugin-ruby", r, 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 }) => {
1217
+ N("@prettier/plugin-ruby", r, i);
1219
1218
  const s = {
1220
1219
  ...r,
1221
1220
  ...a
1222
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1223
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1224
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1221
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1222
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1223
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1225
1224
  c.length,
1226
- -u.length || void 0
1227
- ), b = S(i, t), _ = await e(f, {
1225
+ -p.length || void 0
1226
+ ), b = S(n, t), _ = await e(f, {
1228
1227
  ...s,
1229
1228
  parser: s.embeddedRubyParser ?? "ruby"
1230
1229
  }), o = A(_, E, b);
1231
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1230
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1232
1231
  return Y([
1233
1232
  "`",
1234
1233
  c,
1235
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [Y(o)] : yn([Y(o)]),
1236
- u,
1234
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [Y(o)] : yn([Y(o)]),
1235
+ p,
1237
1236
  "`"
1238
1237
  ]);
1239
- const h = c.length ? fn : _n, $ = u.length ? fn : _n;
1238
+ const h = c.length ? fn : _n, $ = p.length ? fn : _n;
1240
1239
  return Y([
1241
1240
  "`",
1242
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, Y(o)] : yn([h, Y(o)]),
1241
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Y(o)] : yn([h, Y(o)]),
1243
1242
  $,
1244
1243
  "`"
1245
1244
  ]);
1246
- }, ue = "embeddedRuby", Tr = ["ruby"], Ar = ["ruby", "rbs", "haml"], Sr = v(ue), $n = M(ue), vn = D(ue), Lr = x(ue), kr = {
1247
- [Sr]: {
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: [...Tr] }],
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,32 +1265,32 @@ 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
- [Lr]: {
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: Ar.map((e) => ({
1273
+ choices: Tr.map((e) => ({
1275
1274
  value: e,
1276
1275
  description: `Use the "${e}" parser.`
1277
1276
  }))
1278
1277
  }
1279
- }, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1278
+ }, kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1280
1279
  __proto__: null,
1281
- embedder: Mr,
1280
+ embedder: Dr,
1282
1281
  language: ue,
1283
- options: kr
1284
- }, Symbol.toStringTag, { value: "Module" })), { group: V, line: Dn, softline: Mn, indent: Tn } = T, Nr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1285
- N("prettier-plugin-sh", r, n);
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 }) => {
1284
+ N("prettier-plugin-sh", r, i);
1286
1285
  const s = {
1287
1286
  ...r,
1288
1287
  ...a
1289
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1290
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1291
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1288
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1289
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1290
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1292
1291
  c.length,
1293
- -u.length || void 0
1294
- ), b = S(i, t), _ = await e(f, {
1292
+ -p.length || void 0
1293
+ ), b = S(n, t), _ = await e(f, {
1295
1294
  ...s,
1296
1295
  parser: "sh"
1297
1296
  }), o = A(
@@ -1300,27 +1299,27 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1300
1299
  b,
1301
1300
  !0
1302
1301
  );
1303
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1302
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1304
1303
  return V([
1305
1304
  "`",
1306
1305
  c,
1307
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [V(o)] : Tn([V(o)]),
1308
- u,
1306
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [V(o)] : Tn([V(o)]),
1307
+ p,
1309
1308
  "`"
1310
1309
  ]);
1311
- const h = c.length ? Dn : Mn, $ = u.length ? Dn : Mn;
1310
+ const h = c.length ? Dn : Mn, $ = p.length ? Dn : Mn;
1312
1311
  return V([
1313
1312
  "`",
1314
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, V(o)] : Tn([h, V(o)]),
1313
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, V(o)] : Tn([h, V(o)]),
1315
1314
  $,
1316
1315
  "`"
1317
1316
  ]);
1318
- }, ke = "embeddedSh", xr = ["sh"], Ir = v(ke), An = M(ke), Sn = D(ke), Or = {
1319
- [Ir]: {
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: [...xr] }],
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,76 +1337,76 @@ 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
- }, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1340
+ }, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1342
1341
  __proto__: null,
1343
- embedder: Nr,
1342
+ embedder: Gr,
1344
1343
  language: ke,
1345
- options: Or
1344
+ options: Ir
1346
1345
  }, Symbol.toStringTag, { value: "Module" }));
1347
1346
  function Ln(e, t) {
1348
- var i = Object.keys(e);
1347
+ var n = Object.keys(e);
1349
1348
  if (Object.getOwnPropertySymbols) {
1350
1349
  var r = Object.getOwnPropertySymbols(e);
1351
- t && (r = r.filter(function(n) {
1352
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
1353
- })), i.push.apply(i, r);
1350
+ t && (r = r.filter(function(i) {
1351
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
1352
+ })), n.push.apply(n, r);
1354
1353
  }
1355
- return i;
1354
+ return n;
1356
1355
  }
1357
1356
  function kn(e) {
1358
1357
  for (var t = 1; t < arguments.length; t++) {
1359
- var i = arguments[t] != null ? arguments[t] : {};
1360
- t % 2 ? Ln(Object(i), !0).forEach(function(r) {
1361
- Br(e, r, i[r]);
1362
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Ln(Object(i)).forEach(function(r) {
1363
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(i, r));
1358
+ var n = arguments[t] != null ? arguments[t] : {};
1359
+ t % 2 ? Ln(Object(n), !0).forEach(function(r) {
1360
+ Pr(e, r, n[r]);
1361
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ln(Object(n)).forEach(function(r) {
1362
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1364
1363
  });
1365
1364
  }
1366
1365
  return e;
1367
1366
  }
1368
- function Br(e, t, i) {
1369
- return t = qr(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
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 qr(e) {
1372
- var t = jr(e, "string");
1370
+ function Br(e) {
1371
+ var t = qr(e, "string");
1373
1372
  return typeof t == "symbol" ? t : String(t);
1374
1373
  }
1375
- function jr(e, t) {
1374
+ function qr(e, t) {
1376
1375
  if (typeof e != "object" || e === null)
1377
1376
  return e;
1378
- var i = e[Symbol.toPrimitive];
1379
- if (i !== void 0) {
1380
- var r = i.call(e, t || "default");
1377
+ var n = e[Symbol.toPrimitive];
1378
+ if (n !== void 0) {
1379
+ var r = n.call(e, t || "default");
1381
1380
  if (typeof r != "object")
1382
1381
  return r;
1383
1382
  throw new TypeError("@@toPrimitive must return a primitive value.");
1384
1383
  }
1385
1384
  return (t === "string" ? String : Number)(e);
1386
1385
  }
1387
- const Ur = ri({});
1386
+ const jr = ri({});
1388
1387
  function ri(e) {
1389
- return t.withOptions = (i) => ri(kn(kn({}, e), i)), t;
1390
- function t(i, ...r) {
1391
- const n = typeof i == "string" ? [i] : i.raw, {
1392
- escapeSpecialCharacters: a = Array.isArray(i)
1388
+ return t.withOptions = (n) => ri(kn(kn({}, e), n)), t;
1389
+ function t(n, ...r) {
1390
+ const i = typeof n == "string" ? [n] : n.raw, {
1391
+ escapeSpecialCharacters: a = Array.isArray(n)
1393
1392
  } = e;
1394
1393
  let s = "";
1395
- for (let E = 0; E < n.length; E++) {
1396
- let d = n[E];
1394
+ for (let E = 0; E < i.length; E++) {
1395
+ let d = i[E];
1397
1396
  a && (d = d.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\{/g, "{")), s += d, E < r.length && (s += r[E]);
1398
1397
  }
1399
1398
  const l = s.split(`
1400
1399
  `);
1401
- let p = null;
1400
+ let u = null;
1402
1401
  for (const E of l) {
1403
1402
  const d = E.match(/^(\s+)\S+/);
1404
1403
  if (d) {
1405
1404
  const c = d[1].length;
1406
- p ? p = Math.min(p, c) : p = c;
1405
+ u ? u = Math.min(u, c) : u = c;
1407
1406
  }
1408
1407
  }
1409
- if (p !== null) {
1410
- const E = p;
1408
+ if (u !== null) {
1409
+ const E = u;
1411
1410
  s = l.map((d) => d[0] === " " || d[0] === " " ? d.slice(E) : d).join(`
1412
1411
  `);
1413
1412
  }
@@ -1415,18 +1414,18 @@ function ri(e) {
1415
1414
  `);
1416
1415
  }
1417
1416
  }
1418
- const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
1422
1421
  }, l = s.embeddedSqlPlugin ?? "prettier-plugin-sql";
1423
- N(l, s, n);
1424
- const { node: p } = i, { createPlaceholder: E, placeholderRegex: d } = L(), c = p.quasis.map(
1422
+ N(l, s, i);
1423
+ const { node: u } = n, { createPlaceholder: E, placeholderRegex: d } = L(), c = u.quasis.map(
1425
1424
  (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + E(g)
1426
- ).join(""), u = c.match(/^\s+/)?.[0] ?? "", f = c.match(/\s+$/)?.[0] ?? "", b = c.slice(
1427
- u.length,
1425
+ ).join(""), p = c.match(/^\s+/)?.[0] ?? "", f = c.match(/\s+$/)?.[0] ?? "", b = c.slice(
1426
+ p.length,
1428
1427
  -f.length || void 0
1429
- ), _ = S(i, t);
1428
+ ), _ = S(n, t);
1430
1429
  let o;
1431
1430
  if (l === "prettier-plugin-sql-cst") {
1432
1431
  const m = await e(b, {
@@ -1435,7 +1434,7 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
1435
1434
  });
1436
1435
  o = A(m, d, _);
1437
1436
  } else {
1438
- const m = await e(Ur(b), {
1437
+ const m = await e(jr(b), {
1439
1438
  ...s,
1440
1439
  parser: "sql"
1441
1440
  });
@@ -1446,33 +1445,33 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
1446
1445
  !0
1447
1446
  );
1448
1447
  }
1449
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1448
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1450
1449
  return Z([
1451
1450
  "`",
1452
- u,
1453
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [Z(o)] : xn([Z(o)]),
1451
+ p,
1452
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [Z(o)] : xn([Z(o)]),
1454
1453
  f,
1455
1454
  "`"
1456
1455
  ]);
1457
- const h = u.length ? Gn : Nn, $ = f.length ? Gn : Nn;
1456
+ const h = p.length ? Gn : Nn, $ = f.length ? Gn : Nn;
1458
1457
  return Z([
1459
1458
  "`",
1460
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, Z(o)] : xn([h, Z(o)]),
1459
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Z(o)] : xn([h, Z(o)]),
1461
1460
  $,
1462
1461
  "`"
1463
1462
  ]);
1464
- }, se = "embeddedSql", Cr = ["sql"], wr = ["prettier-plugin-sql", "prettier-plugin-sql-cst"], Fr = [
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
- ], Wr = v(se), In = M(se), On = D(se), zr = Ni(se), Kr = x(se), Jr = {
1471
- [Wr]: {
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: [...Cr] }],
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,42 +1489,42 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
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
- [zr]: {
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: wr.map((e) => ({
1497
+ choices: Cr.map((e) => ({
1499
1498
  value: e,
1500
1499
  description: `Use the "${e}" plugin.`
1501
1500
  }))
1502
1501
  },
1503
- [Kr]: {
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: Fr.map((e) => ({
1507
+ choices: wr.map((e) => ({
1509
1508
  value: e,
1510
1509
  description: `Use the "${e}" parser.`
1511
1510
  }))
1512
1511
  }
1513
- }, Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1512
+ }, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1514
1513
  __proto__: null,
1515
- embedder: Rr,
1514
+ embedder: Ur,
1516
1515
  language: se,
1517
- options: Jr
1518
- }, Symbol.toStringTag, { value: "Module" })), { line: Pn, group: ee, indent: Bn, softline: qn } = T, Xr = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1519
- N("prettier-plugin-toml", r, n);
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 }) => {
1518
+ N("prettier-plugin-toml", r, i);
1520
1519
  const s = {
1521
1520
  ...r,
1522
1521
  ...a
1523
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1524
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1525
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1522
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1523
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1524
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1526
1525
  c.length,
1527
- -u.length || void 0
1528
- ), b = S(i, t), _ = await e(f, {
1526
+ -p.length || void 0
1527
+ ), b = S(n, t), _ = await e(f, {
1529
1528
  ...s,
1530
1529
  parser: "toml"
1531
1530
  }), o = A(
@@ -1534,27 +1533,27 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
1534
1533
  b,
1535
1534
  !0
1536
1535
  );
1537
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1536
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1538
1537
  return ee([
1539
1538
  "`",
1540
1539
  c,
1541
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [ee(o)] : Bn([ee(o)]),
1542
- u,
1540
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [ee(o)] : Bn([ee(o)]),
1541
+ p,
1543
1542
  "`"
1544
1543
  ]);
1545
- const h = c.length ? Pn : qn, $ = u.length ? Pn : qn;
1544
+ const h = c.length ? Pn : qn, $ = p.length ? Pn : qn;
1546
1545
  return ee([
1547
1546
  "`",
1548
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, ee(o)] : Bn([h, ee(o)]),
1547
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, ee(o)] : Bn([h, ee(o)]),
1549
1548
  $,
1550
1549
  "`"
1551
1550
  ]);
1552
- }, Ge = "embeddedToml", Qr = ["toml"], Yr = v(Ge), jn = M(Ge), Un = D(Ge), Vr = {
1553
- [Yr]: {
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: [...Qr] }],
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,54 +1571,54 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
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
- }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1574
+ }, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1576
1575
  __proto__: null,
1577
- embedder: Xr,
1576
+ embedder: Hr,
1578
1577
  language: Ge,
1579
- options: Vr
1580
- }, Symbol.toStringTag, { value: "Module" })), { line: Rn, group: te, indent: Cn, softline: wn } = T, eo = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
1584
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1585
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1586
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1583
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1584
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1585
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1587
1586
  c.length,
1588
- -u.length || void 0
1589
- ), b = S(i, t), _ = await e(f, {
1587
+ -p.length || void 0
1588
+ ), b = S(n, t), _ = await e(f, {
1590
1589
  ...s,
1591
1590
  parser: s.embeddedTsParser ?? "typescript",
1592
1591
  // set filepath to undefined to enable jsx auto detection:
1593
1592
  // https://github.com/prettier/prettier/blob/427a84d24203e2d54160cde153a1e6a6390fe65a/src/language-js/parse/typescript.js#L49-L53
1594
1593
  filepath: void 0
1595
1594
  }), o = A(_, E, b);
1596
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1595
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1597
1596
  return te([
1598
1597
  "`",
1599
1598
  c,
1600
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [te(o)] : Cn([te(o)]),
1601
- u,
1599
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [te(o)] : Cn([te(o)]),
1600
+ p,
1602
1601
  "`"
1603
1602
  ]);
1604
- const h = c.length ? Rn : wn, $ = u.length ? Rn : wn;
1603
+ const h = c.length ? Rn : wn, $ = p.length ? Rn : wn;
1605
1604
  return te([
1606
1605
  "`",
1607
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, te(o)] : Cn([h, te(o)]),
1606
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, te(o)] : Cn([h, te(o)]),
1608
1607
  $,
1609
1608
  "`"
1610
1609
  ]);
1611
- }, pe = "embeddedTs", to = [
1610
+ }, pe = "embeddedTs", eo = [
1612
1611
  "ts",
1613
1612
  "tsx",
1614
1613
  "cts",
1615
1614
  "mts",
1616
1615
  "typescript"
1617
- ], no = ["typescript", "babel-ts"], io = v(pe), Fn = M(pe), Wn = D(pe), so = x(pe), ro = {
1618
- [io]: {
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: [...to] }],
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,32 +1636,32 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
1637
1636
  default: [{ value: [] }],
1638
1637
  description: "Tags that make their subsequent template literals be identified as embedded TypeScript language."
1639
1638
  },
1640
- [so]: {
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: no.map((e) => ({
1644
+ choices: to.map((e) => ({
1646
1645
  value: e,
1647
1646
  description: `Use the "${e}" parser.`
1648
1647
  }))
1649
1648
  }
1650
- }, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1649
+ }, ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1651
1650
  __proto__: null,
1652
- embedder: eo,
1651
+ embedder: Zr,
1653
1652
  language: pe,
1654
- options: ro
1655
- }, Symbol.toStringTag, { value: "Module" })), ge = "embeddedXml", { line: zn, group: ne, indent: Kn, softline: xe } = T, ao = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
1656
- N("@prettier/plugin-xml", r, n);
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 }) => {
1655
+ N("@prettier/plugin-xml", r, i);
1657
1656
  const s = {
1658
1657
  ...r,
1659
1658
  ...a
1660
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1661
- (g, y, { length: k }) => y === k - 1 ? g.value.cooked : g.value.cooked + p(y)
1662
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1659
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1660
+ (g, y, { length: k }) => y === k - 1 ? g.value.cooked : g.value.cooked + u(y)
1661
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1663
1662
  c.length,
1664
- -u.length || void 0
1665
- ), b = S(i, t), _ = [];
1663
+ -p.length || void 0
1664
+ ), b = S(n, t), _ = [];
1666
1665
  let o = 0;
1667
1666
  for (; o !== void 0; ) {
1668
1667
  const g = f.slice(o);
@@ -1680,27 +1679,27 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, i,
1680
1679
  k === void 0 ? o = void 0 : G === void 0 ? o += k : (y = g.slice(k, G + 1), o += G + 1), _.push(y);
1681
1680
  }
1682
1681
  const h = A(_, E, b);
1683
- if (s.xmlWhitespaceSensitivity === "strict" || s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1682
+ if (s.xmlWhitespaceSensitivity === "strict" || s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1684
1683
  return ne([
1685
1684
  "`",
1686
1685
  c,
1687
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [ne(h)] : Kn([ne(h)]),
1688
- u,
1686
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [ne(h)] : Kn([ne(h)]),
1687
+ p,
1689
1688
  "`"
1690
1689
  ]);
1691
- const $ = c.length ? zn : xe, m = u.length ? zn : xe;
1690
+ const $ = c.length ? zn : xe, m = p.length ? zn : xe;
1692
1691
  return ne([
1693
1692
  "`",
1694
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [$, ne(h)] : Kn([$, ne(h)]),
1693
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [$, ne(h)] : Kn([$, ne(h)]),
1695
1694
  m,
1696
1695
  "`"
1697
1696
  ]);
1698
- }, lo = ["xml", "opml", "rss", "svg"], co = v(ge), Jn = M(ge), Hn = D(ge), uo = {
1699
- [co]: {
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: [...lo] }],
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, i,
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 po(e) {
1731
+ function uo(e) {
1733
1732
  const t = {
1734
1733
  loc: {
1735
1734
  start: {
@@ -1741,13 +1740,13 @@ function po(e) {
1741
1740
  column: e.column + e.length
1742
1741
  }
1743
1742
  }
1744
- }, i = new SyntaxError(
1743
+ }, n = new SyntaxError(
1745
1744
  `${e.message} (${t.loc.start.line}:${t.loc.start.column})`,
1746
1745
  {
1747
1746
  cause: e
1748
1747
  }
1749
1748
  );
1750
- return Object.assign(i, t), i;
1749
+ return Object.assign(n, t), n;
1751
1750
  }
1752
1751
  function Xn(e) {
1753
1752
  const t = {
@@ -1761,24 +1760,24 @@ function Xn(e) {
1761
1760
  column: e.token.endColumn ?? NaN
1762
1761
  }
1763
1762
  }
1764
- }, i = new SyntaxError(
1763
+ }, n = new SyntaxError(
1765
1764
  `${e.message} (${t.loc.start.line}:${t.loc.start.column})`,
1766
1765
  {
1767
1766
  cause: e
1768
1767
  }
1769
1768
  );
1770
- return Object.assign(i, t), i;
1769
+ return Object.assign(n, t), n;
1771
1770
  }
1772
- const go = {
1771
+ const po = {
1773
1772
  async parse(e, t) {
1774
- const { parse: i } = await import("@xml-tools/parser"), { lexErrors: r, parseErrors: n, cst: a } = i(e);
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 po(s);
1776
+ throw uo(s);
1778
1777
  }
1779
- if (n.length > 0) {
1778
+ if (i.length > 0) {
1780
1779
  let s = !1;
1781
- for (const l of n) {
1780
+ for (const l of i) {
1782
1781
  if (!["MismatchedTokenException", "NotAllInputParsedException"].includes(
1783
1782
  l.name
1784
1783
  ))
@@ -1826,13 +1825,13 @@ const go = {
1826
1825
  };
1827
1826
  function oi(e) {
1828
1827
  const t = e.children;
1829
- for (const i in t) {
1830
- const r = t[i] ?? [];
1831
- for (let n = r.length - 1; n >= 0; --n) {
1832
- const a = r[n];
1833
- if (mo(a)) {
1828
+ for (const n in t) {
1829
+ const r = t[n] ?? [];
1830
+ for (let i = r.length - 1; i >= 0; --i) {
1831
+ const a = r[i];
1832
+ if (go(a)) {
1834
1833
  if (Object.keys(a.children).length === 0) {
1835
- r.splice(n, 1), r.length === 0 && delete t[i];
1834
+ r.splice(i, 1), r.length === 0 && delete t[n];
1836
1835
  continue;
1837
1836
  }
1838
1837
  oi(a);
@@ -1840,49 +1839,49 @@ function oi(e) {
1840
1839
  }
1841
1840
  }
1842
1841
  }
1843
- function mo(e) {
1842
+ function go(e) {
1844
1843
  return "name" in e && "children" in e && "location" in e;
1845
1844
  }
1846
- const ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1845
+ const mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1847
1846
  __proto__: null,
1848
- embedder: ao,
1847
+ embedder: oo,
1849
1848
  language: ge,
1850
- options: uo,
1851
- parser: go
1852
- }, Symbol.toStringTag, { value: "Module" })), { line: Qn, group: ie, indent: Yn, softline: Vn } = T, Eo = async (e, t, i, r, { commentOrTag: n, embeddedOverrideOptions: a }) => {
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
1856
- }, { node: l } = i, { createPlaceholder: p, placeholderRegex: E } = L(), d = l.quasis.map(
1857
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + p(g)
1858
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", u = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1855
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1856
+ (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1857
+ ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1859
1858
  c.length,
1860
- -u.length || void 0
1861
- ), b = S(i, t), _ = await e(f, {
1859
+ -p.length || void 0
1860
+ ), b = S(n, t), _ = await e(f, {
1862
1861
  ...s,
1863
1862
  parser: "yaml"
1864
1863
  }), o = A(_, E, b);
1865
- if (s.preserveEmbeddedExteriorWhitespaces?.includes(n))
1864
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1866
1865
  return ie([
1867
1866
  "`",
1868
1867
  c,
1869
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [ie(o)] : Yn([ie(o)]),
1870
- u,
1868
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [ie(o)] : Yn([ie(o)]),
1869
+ p,
1871
1870
  "`"
1872
1871
  ]);
1873
- const h = c.length ? Qn : Vn, $ = u.length ? Qn : Vn;
1872
+ const h = c.length ? Qn : Vn, $ = p.length ? Qn : Vn;
1874
1873
  return ie([
1875
1874
  "`",
1876
- s.noEmbeddedMultiLineIndentation?.includes(n) ? [h, ie(o)] : Yn([h, ie(o)]),
1875
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, ie(o)] : Yn([h, ie(o)]),
1877
1876
  $,
1878
1877
  "`"
1879
1878
  ]);
1880
- }, Ne = "embeddedYaml", bo = ["yaml", "yml"], fo = v(Ne), Zn = M(Ne), ei = D(Ne), yo = {
1881
- [fo]: {
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: [...bo] }],
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
- }, _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1902
+ }, yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1904
1903
  __proto__: null,
1905
- embedder: Eo,
1904
+ embedder: ho,
1906
1905
  language: Ne,
1907
- options: yo
1908
- }, Symbol.toStringTag, { value: "Module" })), me = [], ai = {}, di = {}, li = {}, $o = /* @__PURE__ */ Object.assign({
1909
- "./css/index.ts": ji,
1910
- "./es/index.ts": zi,
1911
- "./glsl/index.ts": Qi,
1912
- "./graphql/index.ts": ts,
1913
- "./html/index.ts": ls,
1914
- "./ini/index.ts": ms,
1915
- "./java/index.ts": ys,
1916
- "./json/index.ts": Ss,
1917
- "./jsonata/index.ts": xs,
1918
- "./latex/index.ts": qs,
1919
- "./markdown/index.ts": Ws,
1920
- "./nginx/index.ts": Xs,
1921
- "./noop/index.ts": Vs,
1922
- "./pegjs/index.ts": ir,
1923
- "./php/index.ts": dr,
1924
- "./prisma/index.ts": gr,
1925
- "./properties/index.ts": fr,
1926
- "./pug/index.ts": Dr,
1927
- "./ruby/index.ts": Gr,
1928
- "./sh/index.ts": Pr,
1929
- "./sql/index.ts": Hr,
1930
- "./toml/index.ts": Zr,
1931
- "./ts/index.ts": oo,
1932
- "./xml/index.ts": ho,
1933
- "./yaml/index.ts": _o
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: i, options: r } of Object.values($o))
1936
- Gi(me, e, ce), t && (ai[e] = t), i && (di[e] = i), Object.assign(li, r);
1937
- const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationByTag", Mo = "preserveEmbeddedExteriorWhitespaces", To = "noEmbeddedMultiLineIndentation", Ao = "embeddedOverrides", ra = {
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
- [vo]: {
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
- [Do]: {
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
- [Mo]: {
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
- [To]: {
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
- [Ao]: {
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
- }, So = {
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 Lo = {
1991
+ var So = {
1993
1992
  isEqual: !0,
1994
1993
  isMatchingKey: !0,
1995
1994
  isPromise: !0,
@@ -1998,38 +1997,38 @@ var Lo = {
1998
1997
  onCacheChange: !0,
1999
1998
  onCacheHit: !0,
2000
1999
  transformKey: !0
2001
- }, ko = Array.prototype.slice;
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]] : ko.call(e, 0) : [];
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 Go(e) {
2005
+ function ko(e) {
2007
2006
  var t = {};
2008
- for (var i in e)
2009
- Lo[i] || (t[i] = e[i]);
2007
+ for (var n in e)
2008
+ So[n] || (t[n] = e[n]);
2010
2009
  return t;
2011
2010
  }
2012
- function No(e) {
2011
+ function Go(e) {
2013
2012
  return typeof e == "function" && e.isMemoized;
2014
2013
  }
2015
- function xo(e, t) {
2014
+ function No(e, t) {
2016
2015
  return e === t || e !== e && t !== t;
2017
2016
  }
2018
2017
  function ti(e, t) {
2019
- var i = {};
2018
+ var n = {};
2020
2019
  for (var r in e)
2021
- i[r] = e[r];
2020
+ n[r] = e[r];
2022
2021
  for (var r in t)
2023
- i[r] = t[r];
2024
- return i;
2022
+ n[r] = t[r];
2023
+ return n;
2025
2024
  }
2026
- var Io = (
2025
+ var xo = (
2027
2026
  /** @class */
2028
2027
  function() {
2029
2028
  function e(t) {
2030
2029
  this.keys = [], this.values = [], this.options = t;
2031
- var i = typeof t.isMatchingKey == "function";
2032
- i ? this.getKeyIndex = this._getKeyIndexFromMatchingKey : t.maxSize > 1 ? this.getKeyIndex = this._getKeyIndexForMany : this.getKeyIndex = this._getKeyIndexForSingle, this.canTransformKey = typeof t.transformKey == "function", this.shouldCloneArguments = this.canTransformKey || i, this.shouldUpdateOnAdd = typeof t.onCacheAdd == "function", this.shouldUpdateOnChange = typeof t.onCacheChange == "function", this.shouldUpdateOnHit = typeof t.onCacheHit == "function";
2030
+ var n = typeof t.isMatchingKey == "function";
2031
+ n ? this.getKeyIndex = this._getKeyIndexFromMatchingKey : t.maxSize > 1 ? this.getKeyIndex = this._getKeyIndexForMany : this.getKeyIndex = this._getKeyIndexForSingle, this.canTransformKey = typeof t.transformKey == "function", this.shouldCloneArguments = this.canTransformKey || n, this.shouldUpdateOnAdd = typeof t.onCacheAdd == "function", this.shouldUpdateOnChange = typeof t.onCacheChange == "function", this.shouldUpdateOnHit = typeof t.onCacheHit == "function";
2033
2032
  }
2034
2033
  return Object.defineProperty(e.prototype, "size", {
2035
2034
  /**
@@ -2056,86 +2055,86 @@ var Io = (
2056
2055
  enumerable: !1,
2057
2056
  configurable: !0
2058
2057
  }), e.prototype._getKeyIndexFromMatchingKey = function(t) {
2059
- var i = this.options, r = i.isMatchingKey, n = i.maxSize, a = this.keys, s = a.length;
2058
+ var n = this.options, r = n.isMatchingKey, i = n.maxSize, a = this.keys, s = a.length;
2060
2059
  if (!s)
2061
2060
  return -1;
2062
2061
  if (r(a[0], t))
2063
2062
  return 0;
2064
- if (n > 1) {
2063
+ if (i > 1) {
2065
2064
  for (var l = 1; l < s; l++)
2066
2065
  if (r(a[l], t))
2067
2066
  return l;
2068
2067
  }
2069
2068
  return -1;
2070
2069
  }, e.prototype._getKeyIndexForMany = function(t) {
2071
- var i = this.options.isEqual, r = this.keys, n = r.length;
2072
- if (!n)
2070
+ var n = this.options.isEqual, r = this.keys, i = r.length;
2071
+ if (!i)
2073
2072
  return -1;
2074
- if (n === 1)
2073
+ if (i === 1)
2075
2074
  return this._getKeyIndexForSingle(t);
2076
2075
  var a = t.length, s, l;
2077
2076
  if (a > 1) {
2078
- for (var p = 0; p < n; p++)
2079
- if (s = r[p], s.length === a) {
2080
- for (l = 0; l < a && i(s[l], t[l]); l++)
2077
+ for (var u = 0; u < i; u++)
2078
+ if (s = r[u], s.length === a) {
2079
+ for (l = 0; l < a && n(s[l], t[l]); l++)
2081
2080
  ;
2082
2081
  if (l === a)
2083
- return p;
2082
+ return u;
2084
2083
  }
2085
2084
  } else
2086
- for (var p = 0; p < n; p++)
2087
- if (s = r[p], s.length === a && i(s[0], t[0]))
2088
- return p;
2085
+ for (var u = 0; u < i; u++)
2086
+ if (s = r[u], s.length === a && n(s[0], t[0]))
2087
+ return u;
2089
2088
  return -1;
2090
2089
  }, e.prototype._getKeyIndexForSingle = function(t) {
2091
- var i = this.keys;
2092
- if (!i.length)
2090
+ var n = this.keys;
2091
+ if (!n.length)
2093
2092
  return -1;
2094
- var r = i[0], n = r.length;
2095
- if (t.length !== n)
2093
+ var r = n[0], i = r.length;
2094
+ if (t.length !== i)
2096
2095
  return -1;
2097
2096
  var a = this.options.isEqual;
2098
- if (n > 1) {
2099
- for (var s = 0; s < n; s++)
2097
+ if (i > 1) {
2098
+ for (var s = 0; s < i; s++)
2100
2099
  if (!a(r[s], t[s]))
2101
2100
  return -1;
2102
2101
  return 0;
2103
2102
  }
2104
2103
  return a(r[0], t[0]) ? 0 : -1;
2105
- }, e.prototype.orderByLru = function(t, i, r) {
2106
- for (var n = this.keys, a = this.values, s = n.length, l = r; l--; )
2107
- n[l + 1] = n[l], a[l + 1] = a[l];
2108
- n[0] = t, a[0] = i;
2109
- var p = this.options.maxSize;
2110
- s === p && r === s ? (n.pop(), a.pop()) : r >= p && (n.length = a.length = p);
2104
+ }, e.prototype.orderByLru = function(t, n, r) {
2105
+ for (var i = this.keys, a = this.values, s = i.length, l = r; l--; )
2106
+ i[l + 1] = i[l], a[l + 1] = a[l];
2107
+ i[0] = t, a[0] = n;
2108
+ var u = this.options.maxSize;
2109
+ s === u && r === s ? (i.pop(), a.pop()) : r >= u && (i.length = a.length = u);
2111
2110
  }, e.prototype.updateAsyncCache = function(t) {
2112
- var i = this, r = this.options, n = r.onCacheChange, a = r.onCacheHit, s = this.keys[0], l = this.values[0];
2113
- this.values[0] = l.then(function(p) {
2114
- return i.shouldUpdateOnHit && a(i, i.options, t), i.shouldUpdateOnChange && n(i, i.options, t), p;
2115
- }, function(p) {
2116
- var E = i.getKeyIndex(s);
2117
- throw E !== -1 && (i.keys.splice(E, 1), i.values.splice(E, 1)), p;
2111
+ var n = this, r = this.options, i = r.onCacheChange, a = r.onCacheHit, s = this.keys[0], l = this.values[0];
2112
+ this.values[0] = l.then(function(u) {
2113
+ return n.shouldUpdateOnHit && a(n, n.options, t), n.shouldUpdateOnChange && i(n, n.options, t), u;
2114
+ }, function(u) {
2115
+ var E = n.getKeyIndex(s);
2116
+ throw E !== -1 && (n.keys.splice(E, 1), n.values.splice(E, 1)), u;
2118
2117
  });
2119
2118
  }, e;
2120
2119
  }()
2121
2120
  );
2122
2121
  function ci(e, t) {
2123
- if (t === void 0 && (t = {}), No(e))
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 i = t.isEqual, r = i === void 0 ? xo : i, n = t.isMatchingKey, a = t.isPromise, s = a === void 0 ? !1 : a, l = t.maxSize, p = l === void 0 ? 1 : l, E = t.onCacheAdd, d = t.onCacheChange, c = t.onCacheHit, u = t.transformKey, f = ti({
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
- isMatchingKey: n,
2128
+ isMatchingKey: i,
2130
2129
  isPromise: s,
2131
- maxSize: p,
2130
+ maxSize: u,
2132
2131
  onCacheAdd: E,
2133
2132
  onCacheChange: d,
2134
2133
  onCacheHit: c,
2135
- transformKey: u
2136
- }, Go(t)), b = new Io(f), _ = b.keys, o = b.values, h = b.canTransformKey, $ = b.shouldCloneArguments, m = b.shouldUpdateOnAdd, g = b.shouldUpdateOnChange, y = b.shouldUpdateOnHit, k = function() {
2134
+ transformKey: p
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
- h && (G = u(G));
2137
+ h && (G = p(G));
2139
2138
  var I = _.length ? b.getKeyIndex(G) : -1;
2140
2139
  if (I !== -1)
2141
2140
  y && c(b, f, k), I && (b.orderByLru(_[I], o[I], I), g && d(b, f, k));
@@ -2147,72 +2146,72 @@ 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 Oo = /("(?:\\?[^])*?")|(\/\/.*)|(\/\*[^]*?\*\/)/g, Po = /("(?:\\?[^])*?")|(,\s*)(?=]|})/g, Be = {
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(Oo, "$1").replace(Po, "$1"));
2155
+ return JSON.parse(e.replace(Io, "$1").replace(Oo, "$1"));
2157
2156
  }
2158
2157
  }
2159
- }, { label: Bo } = Di;
2158
+ }, { label: Po } = M;
2160
2159
  async function ni(e) {
2161
2160
  try {
2162
- const { readFile: t } = await import("node:fs/promises"), i = await t(e, { encoding: "utf-8" });
2163
- return Be.parse(i);
2161
+ const { readFile: t } = await import("node:fs/promises"), n = await t(e, { encoding: "utf-8" });
2162
+ return Be.parse(n);
2164
2163
  } catch {
2165
2164
  }
2166
2165
  }
2167
- const qo = /* @__PURE__ */ new URL(
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
- ), jo = /* @__PURE__ */ new URL(
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 Uo(e) {
2171
+ async function jo(e) {
2173
2172
  const { Worker: t } = await import("node:worker_threads");
2174
- return new Promise((i) => {
2175
- const r = new t(qo, {
2173
+ return new Promise((n) => {
2174
+ const r = new t(Bo, {
2176
2175
  workerData: {
2177
2176
  absolutePath: e
2178
2177
  }
2179
2178
  });
2180
- r.once("message", (n) => {
2181
- i(n);
2182
- }), r.once("error", (n) => {
2183
- console.error(n), i(void 0);
2179
+ r.once("message", (i) => {
2180
+ n(i);
2181
+ }), r.once("error", (i) => {
2182
+ console.error(i), n(void 0);
2184
2183
  });
2185
2184
  });
2186
2185
  }
2187
- async function Ro(e) {
2186
+ async function Uo(e) {
2188
2187
  const { Worker: t } = await import("node:worker_threads");
2189
- return new Promise((i) => {
2190
- const r = new t(jo, {
2188
+ return new Promise((n) => {
2189
+ const r = new t(qo, {
2191
2190
  workerData: {
2192
2191
  absolutePath: e,
2193
2192
  importMetaUrl: import.meta.url
2194
2193
  }
2195
2194
  });
2196
- r.once("message", (n) => {
2197
- i(n);
2198
- }), r.once("error", (n) => {
2199
- console.error(n), i(void 0);
2195
+ r.once("message", (i) => {
2196
+ n(i);
2197
+ }), r.once("error", (i) => {
2198
+ console.error(i), n(void 0);
2200
2199
  });
2201
2200
  });
2202
2201
  }
2203
- const Co = ci(
2202
+ const Ro = ci(
2204
2203
  async (e, t) => {
2205
- const { isAbsolute: i, dirname: r, resolve: n } = await import("node:path");
2206
- if (i(e))
2204
+ const { isAbsolute: n, dirname: r, resolve: i } = await import("node:path");
2205
+ if (n(e))
2207
2206
  return e;
2208
2207
  const a = await vi(t);
2209
2208
  let s;
2210
- return typeof a != "string" ? s = process.env.PWD ?? process.cwd() : s = r(a), n(s, e);
2209
+ return typeof a != "string" ? s = process.env.PWD ?? process.cwd() : s = r(a), i(s, e);
2211
2210
  }
2212
- ), wo = async (e, t) => {
2213
- let i;
2211
+ ), Co = async (e, t) => {
2212
+ let n;
2214
2213
  try {
2215
- i = (await import("node:path")).extname(
2214
+ n = (await import("node:path")).extname(
2216
2215
  e
2217
2216
  );
2218
2217
  } catch {
@@ -2223,33 +2222,33 @@ const Co = ci(
2223
2222
  return;
2224
2223
  }
2225
2224
  }
2226
- const r = Co(
2225
+ const r = Ro(
2227
2226
  e,
2228
2227
  t
2229
2228
  );
2230
- if (i === ".json" || i === ".jsonc") {
2231
- const n = await r, a = await ni(n);
2229
+ if (n === ".json" || n === ".jsonc") {
2230
+ const i = await r, a = await ni(i);
2232
2231
  if (a !== void 0)
2233
2232
  return a;
2234
- console.error(`Failed to parse the json file: ${n}`);
2233
+ console.error(`Failed to parse the json file: ${i}`);
2235
2234
  return;
2236
2235
  }
2237
- if (i === ".mjs" || i === ".cjs" || i === ".js") {
2238
- const n = await r, a = await Uo(n);
2236
+ if (n === ".mjs" || n === ".cjs" || n === ".js") {
2237
+ const i = await r, a = await jo(i);
2239
2238
  if (a !== void 0)
2240
2239
  return a;
2241
- console.error(`Failed to parse the js module file: ${n}`);
2240
+ console.error(`Failed to parse the js module file: ${i}`);
2242
2241
  return;
2243
2242
  }
2244
- if (i === ".mts" || i === ".cts" || i === ".ts") {
2245
- const n = await r, a = await Ro(n);
2243
+ if (n === ".mts" || n === ".cts" || n === ".ts") {
2244
+ const i = await r, a = await Uo(i);
2246
2245
  if (a !== void 0)
2247
2246
  return a;
2248
- console.error(`Failed to parse the ts module file: ${n}`);
2247
+ console.error(`Failed to parse the ts module file: ${i}`);
2249
2248
  return;
2250
2249
  }
2251
- if (i === "") {
2252
- const n = await r, a = await ni(n);
2250
+ if (n === "") {
2251
+ const i = await r, a = await ni(i);
2253
2252
  if (a !== void 0)
2254
2253
  return a;
2255
2254
  }
@@ -2259,29 +2258,29 @@ const Co = ci(
2259
2258
  console.error("Failed to parse embeddedOverrides as a json object");
2260
2259
  }
2261
2260
  };
2262
- async function Fo(e, {
2261
+ async function wo(e, {
2263
2262
  commentOrTag: t,
2264
- kind: i,
2263
+ kind: n,
2265
2264
  filepath: r
2266
2265
  }) {
2267
2266
  if (e === void 0)
2268
2267
  return;
2269
- const n = await wo(
2268
+ const i = await Co(
2270
2269
  e,
2271
2270
  r
2272
2271
  );
2273
- if (n !== void 0)
2272
+ if (i !== void 0)
2274
2273
  for (const {
2275
- [`${i}s`]: a,
2274
+ [`${n}s`]: a,
2276
2275
  identifiers: s,
2277
2276
  options: l
2278
- } of n) {
2279
- const p = a ?? [];
2280
- if (p.length === 0 && s?.includes(t) || p.includes(t))
2277
+ } of i) {
2278
+ const u = a ?? [];
2279
+ if (u.length === 0 && s?.includes(t) || u.includes(t))
2281
2280
  return l;
2282
2281
  }
2283
2282
  }
2284
- const Wo = /* @__PURE__ */ (() => {
2283
+ const Fo = /* @__PURE__ */ (() => {
2285
2284
  const e = /* @__PURE__ */ new Set([
2286
2285
  "start",
2287
2286
  "end",
@@ -2291,19 +2290,19 @@ const Wo = /* @__PURE__ */ (() => {
2291
2290
  "typeAnnotation",
2292
2291
  "decorators"
2293
2292
  ]);
2294
- return (t, i, r) => {
2295
- let n;
2293
+ return (t, n, r) => {
2294
+ let i;
2296
2295
  try {
2297
- const s = r(`${i}\`\``);
2296
+ const s = r(`${n}\`\``);
2298
2297
  if (s instanceof Promise)
2299
2298
  throw new TypeError("Async parse function hasn't been supported yet.");
2300
- n = s;
2299
+ i = s;
2301
2300
  } catch {
2302
2301
  return !1;
2303
2302
  }
2304
- if (n.type === "File" && (n = n.program), !(n.type === "Program" && n.body[0]?.type === "ExpressionStatement"))
2303
+ if (i.type === "File" && (i = i.program), !(i.type === "Program" && i.body[0]?.type === "ExpressionStatement"))
2305
2304
  return !1;
2306
- const a = n.body[0]?.expression;
2305
+ const a = i.body[0]?.expression;
2307
2306
  return a?.type !== "TaggedTemplateExpression" ? !1 : !!pi(
2308
2307
  t,
2309
2308
  a.tag,
@@ -2311,14 +2310,14 @@ const Wo = /* @__PURE__ */ (() => {
2311
2310
  );
2312
2311
  };
2313
2312
  })();
2314
- function zo({
2313
+ function Wo({
2315
2314
  node: e,
2316
2315
  parent: t
2317
2316
  }) {
2318
- const i = e.comments ?? t?.comments;
2319
- if (!i)
2317
+ const n = e.comments ?? t?.comments;
2318
+ if (!n)
2320
2319
  return;
2321
- const r = i[i.length - 1];
2320
+ const r = n[n.length - 1];
2322
2321
  if (![
2323
2322
  "MultiLine",
2324
2323
  // meriyah
@@ -2328,160 +2327,174 @@ function zo({
2328
2327
  // babel, babel-flow, babel-ts
2329
2328
  ].includes(r.type) || !r.leading)
2330
2329
  return;
2331
- const n = r.value;
2332
- if (n.length > 1 && n.startsWith(" ") && n.endsWith(" "))
2333
- return n.slice(1, -1);
2330
+ const i = r.value;
2331
+ if (i.length > 1 && i.startsWith(" ") && i.endsWith(" "))
2332
+ return i.slice(1, -1);
2334
2333
  }
2335
- function Ko({
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 Jo(e, t) {
2342
- const i = /* @__PURE__ */ (() => {
2340
+ function Ko(e, t) {
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 n = e[M(r)] ?? [];
2348
- n.length === 0 && i() ? yield* e[v(r)] ?? [] : yield* n;
2346
+ const i = e[T(r)] ?? [];
2347
+ i.length === 0 && n() ? yield* e[v(r)] ?? [] : yield* i;
2349
2348
  };
2350
2349
  }
2351
2350
  function ii(e, t) {
2352
2351
  if (typeof t == "string") {
2353
- const i = /* @__PURE__ */ (() => {
2352
+ const n = /* @__PURE__ */ (() => {
2354
2353
  let r;
2355
2354
  return () => (r === void 0 && (r = !(e.noEmbeddedIdentificationByTag?.includes(t) ?? !1)), r);
2356
2355
  })();
2357
2356
  return function* (r) {
2358
- const n = e[D(r)] ?? [];
2359
- n.length === 0 && i() ? yield* e[v(r)] ?? [] : yield* n;
2357
+ const i = e[D(r)] ?? [];
2358
+ i.length === 0 && n() ? yield* e[v(r)] ?? [] : yield* i;
2360
2359
  };
2361
2360
  }
2362
- return function* (i) {
2363
- const r = e[D(i)] ?? [];
2361
+ return function* (n) {
2362
+ const r = e[D(n)] ?? [];
2364
2363
  if (r.length === 0) {
2365
- const { noEmbeddedIdentificationByTag: n } = e;
2366
- for (const a of e[v(i)] ?? [])
2367
- n?.includes(a) || (yield a);
2364
+ const { noEmbeddedIdentificationByTag: i } = e;
2365
+ for (const a of e[v(n)] ?? [])
2366
+ i?.includes(a) || (yield a);
2368
2367
  } else
2369
2368
  yield* r;
2370
2369
  };
2371
2370
  }
2372
- function Ie(e, t, i, r) {
2373
- const n = di[e];
2374
- if (!n)
2371
+ function Ie(e, t, n, r, i) {
2372
+ const a = di[t];
2373
+ if (!a)
2375
2374
  return null;
2376
- const a = Fo(
2377
- r.embeddedOverrides,
2375
+ if (e.quasis.length === 1 && e.quasis[0]?.value.raw.trim() === "")
2376
+ return "``";
2377
+ const s = wo(
2378
+ i.embeddedOverrides,
2378
2379
  {
2379
- commentOrTag: t,
2380
- kind: i,
2381
- filepath: r.filepath
2380
+ commentOrTag: n,
2381
+ kind: r,
2382
+ filepath: i.filepath
2382
2383
  }
2383
2384
  );
2384
- return async (...s) => {
2385
+ return async (...l) => {
2385
2386
  try {
2386
- const l = await n(...s, {
2387
- commentOrTag: t,
2388
- kind: i,
2389
- embeddedOverrideOptions: await a
2387
+ const u = await a(...l, {
2388
+ commentOrTag: n,
2389
+ kind: r,
2390
+ embeddedOverrideOptions: await s
2390
2391
  });
2391
- return Bo(
2392
+ return Po(
2392
2393
  {
2393
2394
  embed: !0,
2394
- ...l.label
2395
+ ...u.label
2395
2396
  },
2396
- l
2397
+ u
2397
2398
  );
2398
- } catch (l) {
2399
- throw console.error(l), l;
2399
+ } catch (u) {
2400
+ throw console.error(u), u;
2400
2401
  }
2401
2402
  };
2402
2403
  }
2403
- function ui(e, t, i) {
2404
- return Object.is(e, t) ? !0 : e === null || t === null ? !1 : Array.isArray(e) ? Ho(e, t, i) : typeof e == "object" ? pi(e, t, i) : !1;
2404
+ function ui(e, t, n) {
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;
2405
2406
  }
2406
- function Ho(e, t, i) {
2407
+ function Jo(e, t, n) {
2407
2408
  const r = e.length;
2408
2409
  if (r !== t.length)
2409
2410
  return !1;
2410
- for (let n = 0; n < r; n++)
2411
- if (!ui(e[n], t[n], i))
2411
+ for (let i = 0; i < r; i++)
2412
+ if (!ui(e[i], t[i], n))
2412
2413
  return !1;
2413
2414
  return !0;
2414
2415
  }
2415
- function pi(e, t, i) {
2416
+ function pi(e, t, n) {
2416
2417
  for (const r of Object.keys(e))
2417
- if (!i?.has(r) && !(Object.prototype.hasOwnProperty.call(t, r) && ui(e[r], t[r], i)))
2418
+ if (!n?.has(r) && !(Object.prototype.hasOwnProperty.call(t, r) && ui(e[r], t[r], n)))
2418
2419
  return !1;
2419
2420
  return !0;
2420
2421
  }
2421
- const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
2422
- const { node: i } = e;
2423
- if (i.type !== "TemplateLiteral" || i.quasis.some(({ value: { cooked: a } }) => a === null))
2422
+ const { estree: gi } = $i, { embed: Oe } = gi, Ho = (e, t) => {
2423
+ const { node: n } = e;
2424
+ if (n.type !== "TemplateLiteral" || n.quasis.some(({ value: { cooked: a } }) => a === null))
2424
2425
  return null;
2425
- const r = zo(e);
2426
+ const r = Wo(e);
2426
2427
  if (typeof r == "string") {
2427
- const a = Jo(
2428
+ const a = Ko(
2428
2429
  t,
2429
2430
  r
2430
2431
  );
2431
2432
  for (const s of me) {
2432
2433
  let l = !1;
2433
- for (const p of a(
2434
+ for (const u of a(
2434
2435
  s
2435
2436
  ))
2436
- if (r === p) {
2437
+ if (r === u) {
2437
2438
  l = !0;
2438
2439
  break;
2439
2440
  }
2440
2441
  if (l)
2441
- return Ie(s, r, "comment", t);
2442
+ return Ie(
2443
+ n,
2444
+ s,
2445
+ r,
2446
+ "comment",
2447
+ t
2448
+ );
2442
2449
  }
2443
2450
  return Oe?.(e, t) ?? null;
2444
2451
  }
2445
- const n = Ko(e);
2446
- if (typeof n == "string") {
2447
- const a = ii(t, n);
2452
+ const i = zo(e);
2453
+ if (typeof i == "string") {
2454
+ const a = ii(t, i);
2448
2455
  for (const s of me) {
2449
2456
  let l = !1;
2450
- for (const p of a(s))
2451
- if (n === p) {
2457
+ for (const u of a(s))
2458
+ if (i === u) {
2452
2459
  l = !0;
2453
2460
  break;
2454
2461
  }
2455
2462
  if (l)
2456
- return Ie(s, n, "tag", t);
2463
+ return Ie(n, s, i, "tag", t);
2457
2464
  }
2458
2465
  return Oe?.(e, t) ?? null;
2459
2466
  }
2460
- if (n !== void 0) {
2461
- const a = (l) => So[t.parser].parse(
2467
+ if (i !== void 0) {
2468
+ const a = (l) => Ao[t.parser].parse(
2462
2469
  l,
2463
2470
  t
2464
2471
  ), s = ii(t);
2465
2472
  for (const l of me) {
2466
- let p;
2473
+ let u;
2467
2474
  for (const E of s(l))
2468
- if (Wo(n, E, a)) {
2469
- p = E;
2475
+ if (Fo(i, E, a)) {
2476
+ u = E;
2470
2477
  break;
2471
2478
  }
2472
- if (p !== void 0)
2473
- return Ie(l, p, "tag", t);
2479
+ if (u !== void 0)
2480
+ return Ie(
2481
+ n,
2482
+ l,
2483
+ u,
2484
+ "tag",
2485
+ t
2486
+ );
2474
2487
  }
2475
2488
  }
2476
2489
  return Oe?.(e, t) ?? null;
2477
- }, oa = {
2490
+ }, sa = {
2478
2491
  estree: {
2479
2492
  ...gi,
2480
- embed: Xo
2493
+ embed: Ho
2481
2494
  }
2482
2495
  };
2483
2496
  export {
2484
- ra as options,
2485
- So as parsers,
2486
- oa as printers
2497
+ ia as options,
2498
+ Ao as parsers,
2499
+ sa as printers
2487
2500
  };