@kubb/core 3.0.0-alpha.16 → 3.0.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +0 -4
  2. package/dist/{chunk-IS3U2E4B.js → chunk-7PAEMBYT.js} +2 -2
  3. package/dist/{chunk-IS3U2E4B.js.map → chunk-7PAEMBYT.js.map} +1 -1
  4. package/dist/{chunk-UEIL3SRH.cjs → chunk-E43AVT66.cjs} +4 -4
  5. package/dist/{chunk-UEIL3SRH.cjs.map → chunk-E43AVT66.cjs.map} +1 -1
  6. package/dist/{chunk-JSL2IBGJ.js → chunk-E6CN2CZC.js} +3 -3
  7. package/dist/{chunk-JSL2IBGJ.js.map → chunk-E6CN2CZC.js.map} +1 -1
  8. package/dist/{chunk-Q7NER2U2.cjs → chunk-EUAXE6GO.cjs} +6 -6
  9. package/dist/{chunk-Q7NER2U2.cjs.map → chunk-EUAXE6GO.cjs.map} +1 -1
  10. package/dist/{chunk-ZEL4DI72.js → chunk-HBQM723K.js} +3 -3
  11. package/dist/{chunk-ZEL4DI72.js.map → chunk-HBQM723K.js.map} +1 -1
  12. package/dist/{chunk-CLBBHMA3.cjs → chunk-JADTPS46.cjs} +8 -8
  13. package/dist/{chunk-CLBBHMA3.cjs.map → chunk-JADTPS46.cjs.map} +1 -1
  14. package/dist/{chunk-HRFBE6CG.cjs → chunk-JQBK4O73.cjs} +10 -10
  15. package/dist/{chunk-HRFBE6CG.cjs.map → chunk-JQBK4O73.cjs.map} +1 -1
  16. package/dist/{chunk-KQAXIDXD.cjs → chunk-PRMNQKHD.cjs} +33 -33
  17. package/dist/{chunk-KQAXIDXD.cjs.map → chunk-PRMNQKHD.cjs.map} +1 -1
  18. package/dist/{chunk-J23TXIBZ.cjs → chunk-SUJDHIMI.cjs} +4 -12
  19. package/dist/chunk-SUJDHIMI.cjs.map +1 -0
  20. package/dist/index.cjs +34 -34
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.js +4 -5
  23. package/dist/index.js.map +1 -1
  24. package/dist/logger.cjs +7 -7
  25. package/dist/logger.js +2 -3
  26. package/dist/mocks.cjs +14 -23336
  27. package/dist/mocks.cjs.map +1 -1
  28. package/dist/mocks.js +6 -23297
  29. package/dist/mocks.js.map +1 -1
  30. package/dist/{prompt-FDRFKJA5.cjs → prompt-644XZMFU.cjs} +62 -62
  31. package/dist/{prompt-FDRFKJA5.cjs.map → prompt-644XZMFU.cjs.map} +1 -1
  32. package/dist/{prompt-EWVFJSYF.js → prompt-WQQUN22Z.js} +3 -4
  33. package/dist/prompt-WQQUN22Z.js.map +1 -0
  34. package/dist/transformers.cjs +23 -23
  35. package/dist/transformers.cjs.map +1 -1
  36. package/dist/transformers.js +0 -1
  37. package/dist/transformers.js.map +1 -1
  38. package/dist/utils.cjs +17 -17
  39. package/dist/utils.js +1 -2
  40. package/package.json +6 -9
  41. package/src/BarrelManager.ts +1 -1
  42. package/src/FileManager.ts +1 -1
  43. package/src/PromiseManager.ts +1 -1
  44. package/src/transformers/escape.ts +0 -10
  45. package/src/utils/executeStrategies.ts +2 -2
  46. package/src/utils/parser.ts +2 -2
  47. package/dist/acorn-75VVZH4M.cjs +0 -3015
  48. package/dist/acorn-75VVZH4M.cjs.map +0 -1
  49. package/dist/acorn-BDQRFTH5.js +0 -3009
  50. package/dist/acorn-BDQRFTH5.js.map +0 -1
  51. package/dist/angular-7QLNOURG.js +0 -1537
  52. package/dist/angular-7QLNOURG.js.map +0 -1
  53. package/dist/angular-G25ZDZ3P.cjs +0 -1543
  54. package/dist/angular-G25ZDZ3P.cjs.map +0 -1
  55. package/dist/babel-CZJUWSVJ.cjs +0 -6905
  56. package/dist/babel-CZJUWSVJ.cjs.map +0 -1
  57. package/dist/babel-GWHGORSH.js +0 -6899
  58. package/dist/babel-GWHGORSH.js.map +0 -1
  59. package/dist/chunk-J23TXIBZ.cjs.map +0 -1
  60. package/dist/chunk-OSWGRZMH.js +0 -12927
  61. package/dist/chunk-OSWGRZMH.js.map +0 -1
  62. package/dist/chunk-PXLB77EH.cjs +0 -12933
  63. package/dist/chunk-PXLB77EH.cjs.map +0 -1
  64. package/dist/chunk-PZ5AY32C.js +0 -9
  65. package/dist/chunk-PZ5AY32C.js.map +0 -1
  66. package/dist/estree-4BFMOGHF.js +0 -4367
  67. package/dist/estree-4BFMOGHF.js.map +0 -1
  68. package/dist/estree-TXDUNIHF.cjs +0 -4375
  69. package/dist/estree-TXDUNIHF.cjs.map +0 -1
  70. package/dist/flow-VXQDDICF.js +0 -26262
  71. package/dist/flow-VXQDDICF.js.map +0 -1
  72. package/dist/flow-XCGHVA4N.cjs +0 -26268
  73. package/dist/flow-XCGHVA4N.cjs.map +0 -1
  74. package/dist/glimmer-FBL5UTXI.js +0 -2844
  75. package/dist/glimmer-FBL5UTXI.js.map +0 -1
  76. package/dist/glimmer-SRXJA5DC.cjs +0 -2852
  77. package/dist/glimmer-SRXJA5DC.cjs.map +0 -1
  78. package/dist/graphql-FUGWBNAY.cjs +0 -1250
  79. package/dist/graphql-FUGWBNAY.cjs.map +0 -1
  80. package/dist/graphql-VWUEBAX7.js +0 -1241
  81. package/dist/graphql-VWUEBAX7.js.map +0 -1
  82. package/dist/html-PE4V7PIZ.cjs +0 -2754
  83. package/dist/html-PE4V7PIZ.cjs.map +0 -1
  84. package/dist/html-SRQHPYU4.js +0 -2745
  85. package/dist/html-SRQHPYU4.js.map +0 -1
  86. package/dist/markdown-7H53GZRF.js +0 -3319
  87. package/dist/markdown-7H53GZRF.js.map +0 -1
  88. package/dist/markdown-MR7POCQ6.cjs +0 -3328
  89. package/dist/markdown-MR7POCQ6.cjs.map +0 -1
  90. package/dist/meriyah-GDT4GDJH.cjs +0 -2356
  91. package/dist/meriyah-GDT4GDJH.cjs.map +0 -1
  92. package/dist/meriyah-MBZURH4I.js +0 -2350
  93. package/dist/meriyah-MBZURH4I.js.map +0 -1
  94. package/dist/postcss-4NLPAMPV.cjs +0 -4945
  95. package/dist/postcss-4NLPAMPV.cjs.map +0 -1
  96. package/dist/postcss-TPQQRMEX.js +0 -4936
  97. package/dist/postcss-TPQQRMEX.js.map +0 -1
  98. package/dist/prompt-EWVFJSYF.js.map +0 -1
  99. package/dist/typescript-FX5DO2QH.cjs +0 -19
  100. package/dist/typescript-FX5DO2QH.cjs.map +0 -1
  101. package/dist/typescript-IRGFXOHK.js +0 -4
  102. package/dist/typescript-IRGFXOHK.js.map +0 -1
  103. package/dist/yaml-KXYJMJO6.cjs +0 -4216
  104. package/dist/yaml-KXYJMJO6.cjs.map +0 -1
  105. package/dist/yaml-Q6KMUOXF.js +0 -4207
  106. package/dist/yaml-Q6KMUOXF.js.map +0 -1
@@ -1,2745 +0,0 @@
1
- import './chunk-PZ5AY32C.js';
2
-
3
- // ../../node_modules/.pnpm/prettier@3.3.3/node_modules/prettier/plugins/html.mjs
4
- var ni = Object.defineProperty;
5
- var Xr = (t8) => {
6
- throw TypeError(t8);
7
- };
8
- var Jr = (t8, e) => {
9
- for (var r in e) ni(t8, r, { get: e[r], enumerable: true });
10
- };
11
- var Zr = (t8, e, r) => e.has(t8) || Xr("Cannot " + r);
12
- var Q = (t8, e, r) => (Zr(t8, e, "read from private field"), e.get(t8));
13
- var en = (t8, e, r) => e.has(t8) ? Xr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t8) : e.set(t8, r);
14
- var tn = (t8, e, r, n) => (Zr(t8, e, "write to private field"), e.set(t8, r), r);
15
- var Yr = {};
16
- Jr(Yr, { languages: () => Ds, options: () => ys, parsers: () => Gr, printers: () => $o });
17
- var si = (t8, e, r, n) => {
18
- if (!(t8 && e == null)) return e.replaceAll ? e.replaceAll(r, n) : r.global ? e.replace(r, n) : e.split(r).join(n);
19
- };
20
- var w = si;
21
- var ke = "string";
22
- var Be = "array";
23
- var Le = "cursor";
24
- var ce = "indent";
25
- var pe = "align";
26
- var Fe = "trim";
27
- var te = "group";
28
- var he = "fill";
29
- var me = "if-break";
30
- var fe = "indent-if-break";
31
- var Ne = "line-suffix";
32
- var Pe = "line-suffix-boundary";
33
- var Y = "line";
34
- var Ie = "label";
35
- var de = "break-parent";
36
- var St = /* @__PURE__ */ new Set([Le, ce, pe, Fe, te, he, me, fe, Ne, Pe, Y, Ie, de]);
37
- function ii(t8) {
38
- if (typeof t8 == "string") return ke;
39
- if (Array.isArray(t8)) return Be;
40
- if (!t8) return;
41
- let { type: e } = t8;
42
- if (St.has(e)) return e;
43
- }
44
- var Re = ii;
45
- var ai = (t8) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(t8);
46
- function oi(t8) {
47
- let e = t8 === null ? "null" : typeof t8;
48
- if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
49
- Expected it to be 'string' or 'object'.`;
50
- if (Re(t8)) throw new Error("doc is valid.");
51
- let r = Object.prototype.toString.call(t8);
52
- if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
53
- let n = ai([...St].map((s) => `'${s}'`));
54
- return `Unexpected doc.type '${t8.type}'.
55
- Expected it to be ${n}.`;
56
- }
57
- var lr = class extends Error {
58
- name = "InvalidDocError";
59
- constructor(e) {
60
- super(oi(e)), this.doc = e;
61
- }
62
- };
63
- var _t = lr;
64
- var rn = () => {
65
- };
66
- var Et = rn;
67
- function k(t8) {
68
- return { type: ce, contents: t8 };
69
- }
70
- function nn(t8, e) {
71
- return { type: pe, contents: e, n: t8 };
72
- }
73
- function _(t8, e = {}) {
74
- return Et(e.expandedStates), { type: te, id: e.id, contents: t8, break: !!e.shouldBreak, expandedStates: e.expandedStates };
75
- }
76
- function sn(t8) {
77
- return nn(Number.NEGATIVE_INFINITY, t8);
78
- }
79
- function an(t8) {
80
- return nn({ type: "root" }, t8);
81
- }
82
- function At(t8) {
83
- return { type: he, parts: t8 };
84
- }
85
- function ge(t8, e = "", r = {}) {
86
- return { type: me, breakContents: t8, flatContents: e, groupId: r.groupId };
87
- }
88
- function on(t8, e) {
89
- return { type: fe, contents: t8, groupId: e.groupId, negate: e.negate };
90
- }
91
- var ne = { type: de };
92
- var ui = { type: Y, hard: true };
93
- var li = { type: Y, hard: true, literal: true };
94
- var E = { type: Y };
95
- var v = { type: Y, soft: true };
96
- var S = [ui, ne];
97
- var un = [li, ne];
98
- function q(t8, e) {
99
- let r = [];
100
- for (let n = 0; n < e.length; n++) n !== 0 && r.push(t8), r.push(e[n]);
101
- return r;
102
- }
103
- var ci = (t8, e, r) => {
104
- if (!(t8 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[r < 0 ? e.length + r : r] : e.at(r);
105
- };
106
- var X = ci;
107
- function Dt(t8, e) {
108
- if (typeof t8 == "string") return e(t8);
109
- let r = /* @__PURE__ */ new Map();
110
- return n(t8);
111
- function n(i) {
112
- if (r.has(i)) return r.get(i);
113
- let a = s(i);
114
- return r.set(i, a), a;
115
- }
116
- function s(i) {
117
- switch (Re(i)) {
118
- case Be:
119
- return e(i.map(n));
120
- case he:
121
- return e({ ...i, parts: i.parts.map(n) });
122
- case me:
123
- return e({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
124
- case te: {
125
- let { expandedStates: a, contents: o } = i;
126
- return a ? (a = a.map(n), o = a[0]) : o = n(o), e({ ...i, contents: o, expandedStates: a });
127
- }
128
- case pe:
129
- case ce:
130
- case fe:
131
- case Ie:
132
- case Ne:
133
- return e({ ...i, contents: n(i.contents) });
134
- case ke:
135
- case Le:
136
- case Fe:
137
- case Pe:
138
- case Y:
139
- case de:
140
- return e(i);
141
- default:
142
- throw new _t(i);
143
- }
144
- }
145
- }
146
- function pi(t8) {
147
- switch (Re(t8)) {
148
- case he:
149
- if (t8.parts.every((e) => e === "")) return "";
150
- break;
151
- case te:
152
- if (!t8.contents && !t8.id && !t8.break && !t8.expandedStates) return "";
153
- if (t8.contents.type === te && t8.contents.id === t8.id && t8.contents.break === t8.break && t8.contents.expandedStates === t8.expandedStates) return t8.contents;
154
- break;
155
- case pe:
156
- case ce:
157
- case fe:
158
- case Ne:
159
- if (!t8.contents) return "";
160
- break;
161
- case me:
162
- if (!t8.flatContents && !t8.breakContents) return "";
163
- break;
164
- case Be: {
165
- let e = [];
166
- for (let r of t8) {
167
- if (!r) continue;
168
- let [n, ...s] = Array.isArray(r) ? r : [r];
169
- typeof n == "string" && typeof X(false, e, -1) == "string" ? e[e.length - 1] += n : e.push(n), e.push(...s);
170
- }
171
- return e.length === 0 ? "" : e.length === 1 ? e[0] : e;
172
- }
173
- case ke:
174
- case Le:
175
- case Fe:
176
- case Pe:
177
- case Y:
178
- case Ie:
179
- case de:
180
- break;
181
- default:
182
- throw new _t(t8);
183
- }
184
- return t8;
185
- }
186
- function ln(t8) {
187
- return Dt(t8, (e) => pi(e));
188
- }
189
- function B(t8, e = un) {
190
- return Dt(t8, (r) => typeof r == "string" ? q(e, r.split(`
191
- `)) : r);
192
- }
193
- var vt = "'";
194
- var cn = '"';
195
- function hi(t8, e) {
196
- let r = e === true || e === vt ? vt : cn, n = r === vt ? cn : vt, s = 0, i = 0;
197
- for (let a of t8) a === r ? s++ : a === n && i++;
198
- return s > i ? n : r;
199
- }
200
- var pn = hi;
201
- function cr(t8) {
202
- if (typeof t8 != "string") throw new TypeError("Expected a string");
203
- return t8.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
204
- }
205
- var H;
206
- var pr = class {
207
- constructor(e) {
208
- en(this, H);
209
- tn(this, H, new Set(e));
210
- }
211
- getLeadingWhitespaceCount(e) {
212
- let r = Q(this, H), n = 0;
213
- for (let s = 0; s < e.length && r.has(e.charAt(s)); s++) n++;
214
- return n;
215
- }
216
- getTrailingWhitespaceCount(e) {
217
- let r = Q(this, H), n = 0;
218
- for (let s = e.length - 1; s >= 0 && r.has(e.charAt(s)); s--) n++;
219
- return n;
220
- }
221
- getLeadingWhitespace(e) {
222
- let r = this.getLeadingWhitespaceCount(e);
223
- return e.slice(0, r);
224
- }
225
- getTrailingWhitespace(e) {
226
- let r = this.getTrailingWhitespaceCount(e);
227
- return e.slice(e.length - r);
228
- }
229
- hasLeadingWhitespace(e) {
230
- return Q(this, H).has(e.charAt(0));
231
- }
232
- hasTrailingWhitespace(e) {
233
- return Q(this, H).has(X(false, e, -1));
234
- }
235
- trimStart(e) {
236
- let r = this.getLeadingWhitespaceCount(e);
237
- return e.slice(r);
238
- }
239
- trimEnd(e) {
240
- let r = this.getTrailingWhitespaceCount(e);
241
- return e.slice(0, e.length - r);
242
- }
243
- trim(e) {
244
- return this.trimEnd(this.trimStart(e));
245
- }
246
- split(e, r = false) {
247
- let n = `[${cr([...Q(this, H)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
248
- return e.split(s);
249
- }
250
- hasWhitespaceCharacter(e) {
251
- let r = Q(this, H);
252
- return Array.prototype.some.call(e, (n) => r.has(n));
253
- }
254
- hasNonWhitespaceCharacter(e) {
255
- let r = Q(this, H);
256
- return Array.prototype.some.call(e, (n) => !r.has(n));
257
- }
258
- isWhitespaceOnly(e) {
259
- let r = Q(this, H);
260
- return Array.prototype.every.call(e, (n) => r.has(n));
261
- }
262
- };
263
- H = /* @__PURE__ */ new WeakMap();
264
- var hn = pr;
265
- var mi = [" ", `
266
- `, "\f", "\r", " "];
267
- var fi = new hn(mi);
268
- var N = fi;
269
- var hr = class extends Error {
270
- name = "UnexpectedNodeError";
271
- constructor(e, r, n = "type") {
272
- super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`), this.node = e;
273
- }
274
- };
275
- var mn = hr;
276
- function di(t8) {
277
- return (t8 == null ? void 0 : t8.type) === "front-matter";
278
- }
279
- var $e = di;
280
- var gi = /* @__PURE__ */ new Set(["sourceSpan", "startSourceSpan", "endSourceSpan", "nameSpan", "valueSpan", "keySpan", "tagDefinition", "tokens", "valueTokens", "switchValueSourceSpan", "expSourceSpan", "valueSourceSpan"]);
281
- var Ci = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
282
- function fn(t8, e) {
283
- var r;
284
- if (t8.type === "text" || t8.type === "comment" || $e(t8) || t8.type === "yaml" || t8.type === "toml") return null;
285
- if (t8.type === "attribute" && delete e.value, t8.type === "docType" && delete e.value, t8.type === "angularControlFlowBlock" && ((r = t8.parameters) != null && r.children)) for (let n of e.parameters.children) Ci.has(t8.name) ? delete n.expression : n.expression = n.expression.trim();
286
- t8.type === "angularIcuExpression" && (e.switchValue = t8.switchValue.trim()), t8.type === "angularLetDeclarationInitializer" && delete e.value;
287
- }
288
- fn.ignoredProperties = gi;
289
- var dn = fn;
290
- async function Si(t8, e) {
291
- if (t8.language === "yaml") {
292
- let r = t8.value.trim(), n = r ? await e(r, { parser: "yaml" }) : "";
293
- return an([t8.startDelimiter, t8.explicitLanguage, S, n, n ? S : "", t8.endDelimiter]);
294
- }
295
- }
296
- var gn = Si;
297
- function Ce(t8, e = true) {
298
- return [k([v, t8]), e ? v : ""];
299
- }
300
- function j(t8, e) {
301
- let r = t8.type === "NGRoot" ? t8.node.type === "NGMicrosyntax" && t8.node.body.length === 1 && t8.node.body[0].type === "NGMicrosyntaxExpression" ? t8.node.body[0].expression : t8.node : t8.type === "JsExpressionRoot" ? t8.node : t8;
302
- return r && (r.type === "ObjectExpression" || r.type === "ArrayExpression" || (e.parser === "__vue_expression" || e.parser === "__vue_ts_expression") && (r.type === "TemplateLiteral" || r.type === "StringLiteral"));
303
- }
304
- async function T(t8, e, r, n) {
305
- r = { __isInHtmlAttribute: true, __embeddedInHtml: true, ...r };
306
- let s = true;
307
- n && (r.__onHtmlBindingRoot = (a, o) => {
308
- s = n(a, o);
309
- });
310
- let i = await e(t8, r, e);
311
- return s ? _(i) : Ce(i);
312
- }
313
- function _i(t8, e, r, n) {
314
- let { node: s } = r, i = n.originalText.slice(s.sourceSpan.start.offset, s.sourceSpan.end.offset);
315
- return /^\s*$/u.test(i) ? "" : T(i, t8, { parser: "__ng_directive", __isInHtmlAttribute: false }, j);
316
- }
317
- var Cn = _i;
318
- var Ei = (t8) => String(t8).split(/[/\\]/u).pop();
319
- function Sn(t8, e) {
320
- if (!e) return;
321
- let r = Ei(e).toLowerCase();
322
- return t8.find(({ filenames: n }) => n == null ? void 0 : n.some((s) => s.toLowerCase() === r)) ?? t8.find(({ extensions: n }) => n == null ? void 0 : n.some((s) => r.endsWith(s)));
323
- }
324
- function Ai(t8, e) {
325
- if (e) return t8.find(({ name: r }) => r.toLowerCase() === e) ?? t8.find(({ aliases: r }) => r == null ? void 0 : r.includes(e)) ?? t8.find(({ extensions: r }) => r == null ? void 0 : r.includes(`.${e}`));
326
- }
327
- function Di(t8, e) {
328
- let r = t8.plugins.flatMap((s) => s.languages ?? []), n = Ai(r, e.language) ?? Sn(r, e.physicalFile) ?? Sn(r, e.file) ?? (e.physicalFile, void 0);
329
- return n == null ? void 0 : n.parsers[0];
330
- }
331
- var Oe = Di;
332
- var _n = "inline";
333
- var En = { area: "none", base: "none", basefont: "none", datalist: "none", head: "none", link: "none", meta: "none", noembed: "none", noframes: "none", param: "block", rp: "none", script: "block", style: "none", template: "inline", title: "none", html: "block", body: "block", address: "block", blockquote: "block", center: "block", dialog: "block", div: "block", figure: "block", figcaption: "block", footer: "block", form: "block", header: "block", hr: "block", legend: "block", listing: "block", main: "block", p: "block", plaintext: "block", pre: "block", search: "block", xmp: "block", slot: "contents", ruby: "ruby", rt: "ruby-text", article: "block", aside: "block", h1: "block", h2: "block", h3: "block", h4: "block", h5: "block", h6: "block", hgroup: "block", nav: "block", section: "block", dir: "block", dd: "block", dl: "block", dt: "block", menu: "block", ol: "block", ul: "block", li: "list-item", table: "table", caption: "table-caption", colgroup: "table-column-group", col: "table-column", thead: "table-header-group", tbody: "table-row-group", tfoot: "table-footer-group", tr: "table-row", td: "table-cell", th: "table-cell", input: "inline-block", button: "inline-block", fieldset: "block", marquee: "inline-block", source: "block", track: "block", details: "block", summary: "block", meter: "inline-block", progress: "inline-block", object: "inline-block", video: "inline-block", audio: "inline-block", select: "inline-block", option: "block", optgroup: "block" };
334
- var An = "normal";
335
- var Dn = { listing: "pre", plaintext: "pre", pre: "pre", xmp: "pre", nobr: "nowrap", table: "initial", textarea: "pre-wrap" };
336
- function vi(t8) {
337
- return t8.type === "element" && !t8.hasExplicitNamespace && !["html", "svg"].includes(t8.namespace);
338
- }
339
- var Se = vi;
340
- var yi = (t8) => w(false, t8, /^[\t\f\r ]*\n/gu, "");
341
- var mr = (t8) => yi(N.trimEnd(t8));
342
- var vn = (t8) => {
343
- let e = t8, r = N.getLeadingWhitespace(e);
344
- r && (e = e.slice(r.length));
345
- let n = N.getTrailingWhitespace(e);
346
- return n && (e = e.slice(0, -n.length)), { leadingWhitespace: r, trailingWhitespace: n, text: e };
347
- };
348
- function yt(t8, e) {
349
- return !!(t8.type === "ieConditionalComment" && t8.lastChild && !t8.lastChild.isSelfClosing && !t8.lastChild.endSourceSpan || t8.type === "ieConditionalComment" && !t8.complete || _e(t8) && t8.children.some((r) => r.type !== "text" && r.type !== "interpolation") || Tt(t8, e) && !U(t8) && t8.type !== "interpolation");
350
- }
351
- function Ee(t8) {
352
- return t8.type === "attribute" || !t8.parent || !t8.prev ? false : wi(t8.prev);
353
- }
354
- function wi(t8) {
355
- return t8.type === "comment" && t8.value.trim() === "prettier-ignore";
356
- }
357
- function $(t8) {
358
- return t8.type === "text" || t8.type === "comment";
359
- }
360
- function U(t8) {
361
- return t8.type === "element" && (t8.fullName === "script" || t8.fullName === "style" || t8.fullName === "svg:style" || t8.fullName === "svg:script" || Se(t8) && (t8.name === "script" || t8.name === "style"));
362
- }
363
- function yn(t8) {
364
- return t8.children && !U(t8);
365
- }
366
- function wn(t8) {
367
- return U(t8) || t8.type === "interpolation" || fr(t8);
368
- }
369
- function fr(t8) {
370
- return Rn(t8).startsWith("pre");
371
- }
372
- function bn(t8, e) {
373
- var s, i;
374
- let r = n();
375
- if (r && !t8.prev && ((i = (s = t8.parent) == null ? void 0 : s.tagDefinition) != null && i.ignoreFirstLf)) return t8.type === "interpolation";
376
- return r;
377
- function n() {
378
- return $e(t8) || t8.type === "angularControlFlowBlock" ? false : (t8.type === "text" || t8.type === "interpolation") && t8.prev && (t8.prev.type === "text" || t8.prev.type === "interpolation") ? true : !t8.parent || t8.parent.cssDisplay === "none" ? false : _e(t8.parent) ? true : !(!t8.prev && (t8.parent.type === "root" || _e(t8) && t8.parent || U(t8.parent) || Je(t8.parent, e) || !Li(t8.parent.cssDisplay)) || t8.prev && !Pi(t8.prev.cssDisplay));
379
- }
380
- }
381
- function Tn(t8, e) {
382
- return $e(t8) || t8.type === "angularControlFlowBlock" ? false : (t8.type === "text" || t8.type === "interpolation") && t8.next && (t8.next.type === "text" || t8.next.type === "interpolation") ? true : !t8.parent || t8.parent.cssDisplay === "none" ? false : _e(t8.parent) ? true : !(!t8.next && (t8.parent.type === "root" || _e(t8) && t8.parent || U(t8.parent) || Je(t8.parent, e) || !Fi(t8.parent.cssDisplay)) || t8.next && !Ni(t8.next.cssDisplay));
383
- }
384
- function xn(t8) {
385
- return Ii(t8.cssDisplay) && !U(t8);
386
- }
387
- function Qe(t8) {
388
- return $e(t8) || t8.next && t8.sourceSpan.end && t8.sourceSpan.end.line + 1 < t8.next.sourceSpan.start.line;
389
- }
390
- function kn(t8) {
391
- return dr(t8) || t8.type === "element" && t8.children.length > 0 && (["body", "script", "style"].includes(t8.name) || t8.children.some((e) => Ti(e))) || t8.firstChild && t8.firstChild === t8.lastChild && t8.firstChild.type !== "text" && Ln(t8.firstChild) && (!t8.lastChild.isTrailingSpaceSensitive || Fn(t8.lastChild));
392
- }
393
- function dr(t8) {
394
- return t8.type === "element" && t8.children.length > 0 && (["html", "head", "ul", "ol", "select"].includes(t8.name) || t8.cssDisplay.startsWith("table") && t8.cssDisplay !== "table-cell");
395
- }
396
- function wt(t8) {
397
- return Nn(t8) || t8.prev && bi(t8.prev) || Bn(t8);
398
- }
399
- function bi(t8) {
400
- return Nn(t8) || t8.type === "element" && t8.fullName === "br" || Bn(t8);
401
- }
402
- function Bn(t8) {
403
- return Ln(t8) && Fn(t8);
404
- }
405
- function Ln(t8) {
406
- return t8.hasLeadingSpaces && (t8.prev ? t8.prev.sourceSpan.end.line < t8.sourceSpan.start.line : t8.parent.type === "root" || t8.parent.startSourceSpan.end.line < t8.sourceSpan.start.line);
407
- }
408
- function Fn(t8) {
409
- return t8.hasTrailingSpaces && (t8.next ? t8.next.sourceSpan.start.line > t8.sourceSpan.end.line : t8.parent.type === "root" || t8.parent.endSourceSpan && t8.parent.endSourceSpan.start.line > t8.sourceSpan.end.line);
410
- }
411
- function Nn(t8) {
412
- switch (t8.type) {
413
- case "ieConditionalComment":
414
- case "comment":
415
- case "directive":
416
- return true;
417
- case "element":
418
- return ["script", "select"].includes(t8.name);
419
- }
420
- return false;
421
- }
422
- function bt(t8) {
423
- return t8.lastChild ? bt(t8.lastChild) : t8;
424
- }
425
- function Ti(t8) {
426
- var e;
427
- return (e = t8.children) == null ? void 0 : e.some((r) => r.type !== "text");
428
- }
429
- function Pn(t8) {
430
- if (t8) switch (t8) {
431
- case "module":
432
- case "text/javascript":
433
- case "text/babel":
434
- case "application/javascript":
435
- return "babel";
436
- case "application/x-typescript":
437
- return "typescript";
438
- case "text/markdown":
439
- return "markdown";
440
- case "text/html":
441
- return "html";
442
- case "text/x-handlebars-template":
443
- return "glimmer";
444
- default:
445
- if (t8.endsWith("json") || t8.endsWith("importmap") || t8 === "speculationrules") return "json";
446
- }
447
- }
448
- function xi(t8, e) {
449
- let { name: r, attrMap: n } = t8;
450
- if (r !== "script" || Object.prototype.hasOwnProperty.call(n, "src")) return;
451
- let { type: s, lang: i } = t8.attrMap;
452
- return !i && !s ? "babel" : Oe(e, { language: i }) ?? Pn(s);
453
- }
454
- function ki(t8, e) {
455
- if (!Tt(t8, e)) return;
456
- let { attrMap: r } = t8;
457
- if (Object.prototype.hasOwnProperty.call(r, "src")) return;
458
- let { type: n, lang: s } = r;
459
- return Oe(e, { language: s }) ?? Pn(n);
460
- }
461
- function Bi(t8, e) {
462
- if (t8.name !== "style") return;
463
- let { lang: r } = t8.attrMap;
464
- return r ? Oe(e, { language: r }) : "css";
465
- }
466
- function gr(t8, e) {
467
- return xi(t8, e) ?? Bi(t8, e) ?? ki(t8, e);
468
- }
469
- function Xe(t8) {
470
- return t8 === "block" || t8 === "list-item" || t8.startsWith("table");
471
- }
472
- function Li(t8) {
473
- return !Xe(t8) && t8 !== "inline-block";
474
- }
475
- function Fi(t8) {
476
- return !Xe(t8) && t8 !== "inline-block";
477
- }
478
- function Ni(t8) {
479
- return !Xe(t8);
480
- }
481
- function Pi(t8) {
482
- return !Xe(t8);
483
- }
484
- function Ii(t8) {
485
- return !Xe(t8) && t8 !== "inline-block";
486
- }
487
- function _e(t8) {
488
- return Rn(t8).startsWith("pre");
489
- }
490
- function Ri(t8, e) {
491
- let r = t8;
492
- for (; r; ) {
493
- if (e(r)) return true;
494
- r = r.parent;
495
- }
496
- return false;
497
- }
498
- function In(t8, e) {
499
- var n;
500
- if (Ae(t8, e)) return "block";
501
- if (((n = t8.prev) == null ? void 0 : n.type) === "comment") {
502
- let s = t8.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);
503
- if (s) return s[1];
504
- }
505
- let r = false;
506
- if (t8.type === "element" && t8.namespace === "svg") if (Ri(t8, (s) => s.fullName === "svg:foreignObject")) r = true;
507
- else return t8.name === "svg" ? "inline-block" : "block";
508
- switch (e.htmlWhitespaceSensitivity) {
509
- case "strict":
510
- return "inline";
511
- case "ignore":
512
- return "block";
513
- default:
514
- return t8.type === "element" && (!t8.namespace || r || Se(t8)) && En[t8.name] || _n;
515
- }
516
- }
517
- function Rn(t8) {
518
- return t8.type === "element" && (!t8.namespace || Se(t8)) && Dn[t8.name] || An;
519
- }
520
- function $i(t8) {
521
- let e = Number.POSITIVE_INFINITY;
522
- for (let r of t8.split(`
523
- `)) {
524
- if (r.length === 0) continue;
525
- let n = N.getLeadingWhitespaceCount(r);
526
- if (n === 0) return 0;
527
- r.length !== n && n < e && (e = n);
528
- }
529
- return e === Number.POSITIVE_INFINITY ? 0 : e;
530
- }
531
- function Cr(t8, e = $i(t8)) {
532
- return e === 0 ? t8 : t8.split(`
533
- `).map((r) => r.slice(e)).join(`
534
- `);
535
- }
536
- function Sr(t8) {
537
- return w(false, w(false, t8, "&apos;", "'"), "&quot;", '"');
538
- }
539
- function P(t8) {
540
- return Sr(t8.value);
541
- }
542
- var Oi = /* @__PURE__ */ new Set(["template", "style", "script"]);
543
- function Je(t8, e) {
544
- return Ae(t8, e) && !Oi.has(t8.fullName);
545
- }
546
- function Ae(t8, e) {
547
- return e.parser === "vue" && t8.type === "element" && t8.parent.type === "root" && t8.fullName.toLowerCase() !== "html";
548
- }
549
- function Tt(t8, e) {
550
- return Ae(t8, e) && (Je(t8, e) || t8.attrMap.lang && t8.attrMap.lang !== "html");
551
- }
552
- function $n(t8) {
553
- let e = t8.fullName;
554
- return e.charAt(0) === "#" || e === "slot-scope" || e === "v-slot" || e.startsWith("v-slot:");
555
- }
556
- function On(t8, e) {
557
- let r = t8.parent;
558
- if (!Ae(r, e)) return false;
559
- let n = r.fullName, s = t8.fullName;
560
- return n === "script" && s === "setup" || n === "style" && s === "vars";
561
- }
562
- function xt(t8, e = t8.value) {
563
- return t8.parent.isWhitespaceSensitive ? t8.parent.isIndentationSensitive ? B(e) : B(Cr(mr(e)), S) : q(E, N.split(e));
564
- }
565
- function kt(t8, e) {
566
- return Ae(t8, e) && t8.name === "script";
567
- }
568
- var _r = /\{\{(.+?)\}\}/su;
569
- async function Mn(t8, e) {
570
- let r = [];
571
- for (let [n, s] of t8.split(_r).entries()) if (n % 2 === 0) r.push(B(s));
572
- else try {
573
- r.push(_(["{{", k([E, await T(s, e, { parser: "__ng_interpolation", __isInHtmlInterpolation: true })]), E, "}}"]));
574
- } catch {
575
- r.push("{{", B(s), "}}");
576
- }
577
- return r;
578
- }
579
- function Er({ parser: t8 }) {
580
- return (e, r, n) => T(P(n.node), e, { parser: t8 }, j);
581
- }
582
- var Mi = Er({ parser: "__ng_action" });
583
- var qi = Er({ parser: "__ng_binding" });
584
- var Hi = Er({ parser: "__ng_directive" });
585
- function Vi(t8, e) {
586
- if (e.parser !== "angular") return;
587
- let { node: r } = t8, n = r.fullName;
588
- if (n.startsWith("(") && n.endsWith(")") || n.startsWith("on-")) return Mi;
589
- if (n.startsWith("[") && n.endsWith("]") || /^bind(?:on)?-/u.test(n) || /^ng-(?:if|show|hide|class|style)$/u.test(n)) return qi;
590
- if (n.startsWith("*")) return Hi;
591
- let s = P(r);
592
- if (/^i18n(?:-.+)?$/u.test(n)) return () => Ce(At(xt(r, s.trim())), !s.includes("@@"));
593
- if (_r.test(s)) return (i) => Mn(s, i);
594
- }
595
- var qn = Vi;
596
- function Ui(t8, e) {
597
- let { node: r } = t8, n = P(r);
598
- if (r.fullName === "class" && !e.parentParser && !n.includes("{{")) return () => n.trim().split(/\s+/u).join(" ");
599
- }
600
- var Hn = Ui;
601
- function Vn(t8) {
602
- return t8 === " " || t8 === `
603
- ` || t8 === "\f" || t8 === "\r" || t8 === " ";
604
- }
605
- var Wi = /^[ \t\n\r\u000c]+/;
606
- var zi = /^[, \t\n\r\u000c]+/;
607
- var Gi = /^[^ \t\n\r\u000c]+/;
608
- var Yi = /[,]+$/;
609
- var Un = /^\d+$/;
610
- var ji = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
611
- function Ki(t8) {
612
- let e = t8.length, r, n, s, i, a, o = 0, u;
613
- function p(C) {
614
- let A, D = C.exec(t8.substring(o));
615
- if (D) return [A] = D, o += A.length, A;
616
- }
617
- let l = [];
618
- for (; ; ) {
619
- if (p(zi), o >= e) {
620
- if (l.length === 0) throw new Error("Must contain one or more image candidate strings.");
621
- return l;
622
- }
623
- u = o, r = p(Gi), n = [], r.slice(-1) === "," ? (r = r.replace(Yi, ""), d()) : f();
624
- }
625
- function f() {
626
- for (p(Wi), s = "", i = "in descriptor"; ; ) {
627
- if (a = t8.charAt(o), i === "in descriptor") if (Vn(a)) s && (n.push(s), s = "", i = "after descriptor");
628
- else if (a === ",") {
629
- o += 1, s && n.push(s), d();
630
- return;
631
- } else if (a === "(") s += a, i = "in parens";
632
- else if (a === "") {
633
- s && n.push(s), d();
634
- return;
635
- } else s += a;
636
- else if (i === "in parens") if (a === ")") s += a, i = "in descriptor";
637
- else if (a === "") {
638
- n.push(s), d();
639
- return;
640
- } else s += a;
641
- else if (i === "after descriptor" && !Vn(a)) if (a === "") {
642
- d();
643
- return;
644
- } else i = "in descriptor", o -= 1;
645
- o += 1;
646
- }
647
- }
648
- function d() {
649
- let C = false, A, D, R, F, c = {}, g, y, M, x, V;
650
- for (F = 0; F < n.length; F++) g = n[F], y = g[g.length - 1], M = g.substring(0, g.length - 1), x = parseInt(M, 10), V = parseFloat(M), Un.test(M) && y === "w" ? ((A || D) && (C = true), x === 0 ? C = true : A = x) : ji.test(M) && y === "x" ? ((A || D || R) && (C = true), V < 0 ? C = true : D = V) : Un.test(M) && y === "h" ? ((R || D) && (C = true), x === 0 ? C = true : R = x) : C = true;
651
- if (!C) c.source = { value: r, startOffset: u }, A && (c.width = { value: A }), D && (c.density = { value: D }), R && (c.height = { value: R }), l.push(c);
652
- else throw new Error(`Invalid srcset descriptor found in "${t8}" at "${g}".`);
653
- }
654
- }
655
- var Wn = Ki;
656
- function Qi(t8) {
657
- if (t8.node.fullName === "srcset" && (t8.parent.fullName === "img" || t8.parent.fullName === "source")) return () => Ji(P(t8.node));
658
- }
659
- var zn = { width: "w", height: "h", density: "x" };
660
- var Xi = Object.keys(zn);
661
- function Ji(t8) {
662
- let e = Wn(t8), r = Xi.filter((l) => e.some((f) => Object.prototype.hasOwnProperty.call(f, l)));
663
- if (r.length > 1) throw new Error("Mixed descriptor in srcset is not supported");
664
- let [n] = r, s = zn[n], i = e.map((l) => l.source.value), a = Math.max(...i.map((l) => l.length)), o = e.map((l) => l[n] ? String(l[n].value) : ""), u = o.map((l) => {
665
- let f = l.indexOf(".");
666
- return f === -1 ? l.length : f;
667
- }), p = Math.max(...u);
668
- return Ce(q([",", E], i.map((l, f) => {
669
- let d = [l], C = o[f];
670
- if (C) {
671
- let A = a - l.length + 1, D = p - u[f], R = " ".repeat(A + D);
672
- d.push(ge(R, " "), C + s);
673
- }
674
- return d;
675
- })));
676
- }
677
- var Gn = Qi;
678
- function Yn(t8, e) {
679
- let { node: r } = t8, n = P(t8.node).trim();
680
- if (r.fullName === "style" && !e.parentParser && !n.includes("{{")) return async (s) => Ce(await s(n, { parser: "css", __isHTMLStyleAttribute: true }));
681
- }
682
- var Ar = /* @__PURE__ */ new WeakMap();
683
- function Zi(t8, e) {
684
- let { root: r } = t8;
685
- return Ar.has(r) || Ar.set(r, r.children.some((n) => kt(n, e) && ["ts", "typescript"].includes(n.attrMap.lang))), Ar.get(r);
686
- }
687
- var Me = Zi;
688
- function jn(t8, e, r) {
689
- let { node: n } = r, s = P(n);
690
- return T(`type T<${s}> = any`, t8, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: true }, j);
691
- }
692
- function Kn(t8, e, { parseWithTs: r }) {
693
- return T(`function _(${t8}) {}`, e, { parser: r ? "babel-ts" : "babel", __isVueBindings: true });
694
- }
695
- function Qn(t8) {
696
- let e = /^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u, r = /^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu, n = t8.trim();
697
- return e.test(n) || r.test(n);
698
- }
699
- async function Xn(t8, e, r, n) {
700
- let s = P(r.node), { left: i, operator: a, right: o } = ea(s), u = Me(r, n);
701
- return [_(await T(`function _(${i}) {}`, t8, { parser: u ? "babel-ts" : "babel", __isVueForBindingLeft: true })), " ", a, " ", await T(o, t8, { parser: u ? "__ts_expression" : "__js_expression" })];
702
- }
703
- function ea(t8) {
704
- let e = /(.*?)\s+(in|of)\s+(.*)/su, r = /,([^,\]}]*)(?:,([^,\]}]*))?$/u, n = /^\(|\)$/gu, s = t8.match(e);
705
- if (!s) return;
706
- let i = {};
707
- if (i.for = s[3].trim(), !i.for) return;
708
- let a = w(false, s[1].trim(), n, ""), o = a.match(r);
709
- o ? (i.alias = a.replace(r, ""), i.iterator1 = o[1].trim(), o[2] && (i.iterator2 = o[2].trim())) : i.alias = a;
710
- let u = [i.alias, i.iterator1, i.iterator2];
711
- if (!u.some((p, l) => !p && (l === 0 || u.slice(l + 1).some(Boolean)))) return { left: u.filter(Boolean).join(","), operator: s[2], right: i.for };
712
- }
713
- function ta(t8, e) {
714
- if (e.parser !== "vue") return;
715
- let { node: r } = t8, n = r.fullName;
716
- if (n === "v-for") return Xn;
717
- if (n === "generic" && kt(r.parent, e)) return jn;
718
- let s = P(r), i = Me(t8, e);
719
- if ($n(r) || On(r, e)) return (a) => Kn(s, a, { parseWithTs: i });
720
- if (n.startsWith("@") || n.startsWith("v-on:")) return (a) => ra(s, a, { parseWithTs: i });
721
- if (n.startsWith(":") || n.startsWith("v-bind:")) return (a) => na(s, a, { parseWithTs: i });
722
- if (n.startsWith("v-")) return (a) => Jn(s, a, { parseWithTs: i });
723
- }
724
- function ra(t8, e, { parseWithTs: r }) {
725
- return Qn(t8) ? Jn(t8, e, { parseWithTs: r }) : T(t8, e, { parser: r ? "__vue_ts_event_binding" : "__vue_event_binding" }, j);
726
- }
727
- function na(t8, e, { parseWithTs: r }) {
728
- return T(t8, e, { parser: r ? "__vue_ts_expression" : "__vue_expression" }, j);
729
- }
730
- function Jn(t8, e, { parseWithTs: r }) {
731
- return T(t8, e, { parser: r ? "__ts_expression" : "__js_expression" }, j);
732
- }
733
- var Zn = ta;
734
- function sa(t8, e) {
735
- let { node: r } = t8;
736
- if (r.value) {
737
- if (/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset, r.valueSpan.end.offset)) || e.parser === "lwc" && r.value.startsWith("{") && r.value.endsWith("}")) return [r.rawName, "=", r.value];
738
- for (let n of [Gn, Yn, Hn, Zn, qn]) {
739
- let s = n(t8, e);
740
- if (s) return ia(s);
741
- }
742
- }
743
- }
744
- function ia(t8) {
745
- return async (e, r, n, s) => {
746
- let i = await t8(e, r, n, s);
747
- if (i) return i = Dt(i, (a) => typeof a == "string" ? w(false, a, '"', "&quot;") : a), [n.node.rawName, '="', _(i), '"'];
748
- };
749
- }
750
- var es = sa;
751
- var ts = new Proxy(() => {
752
- }, { get: () => ts });
753
- var Dr = ts;
754
- function aa(t8) {
755
- return Array.isArray(t8) && t8.length > 0;
756
- }
757
- var qe = aa;
758
- function se(t8) {
759
- return t8.sourceSpan.start.offset;
760
- }
761
- function ie(t8) {
762
- return t8.sourceSpan.end.offset;
763
- }
764
- function Ze(t8, e) {
765
- return [t8.isSelfClosing ? "" : oa(t8, e), De(t8, e)];
766
- }
767
- function oa(t8, e) {
768
- return t8.lastChild && we(t8.lastChild) ? "" : [ua(t8, e), Bt(t8, e)];
769
- }
770
- function De(t8, e) {
771
- return (t8.next ? K(t8.next) : ye(t8.parent)) ? "" : [ve(t8, e), W(t8, e)];
772
- }
773
- function ua(t8, e) {
774
- return ye(t8) ? ve(t8.lastChild, e) : "";
775
- }
776
- function W(t8, e) {
777
- return we(t8) ? Bt(t8.parent, e) : et(t8) ? Lt(t8.next) : "";
778
- }
779
- function Bt(t8, e) {
780
- if (Dr(!t8.isSelfClosing), rs(t8, e)) return "";
781
- switch (t8.type) {
782
- case "ieConditionalComment":
783
- return "<!";
784
- case "element":
785
- if (t8.hasHtmComponentClosingTag) return "<//";
786
- default:
787
- return `</${t8.rawName}`;
788
- }
789
- }
790
- function ve(t8, e) {
791
- if (rs(t8, e)) return "";
792
- switch (t8.type) {
793
- case "ieConditionalComment":
794
- case "ieConditionalEndComment":
795
- return "[endif]-->";
796
- case "ieConditionalStartComment":
797
- return "]><!-->";
798
- case "interpolation":
799
- return "}}";
800
- case "angularIcuExpression":
801
- return "}";
802
- case "element":
803
- if (t8.isSelfClosing) return "/>";
804
- default:
805
- return ">";
806
- }
807
- }
808
- function rs(t8, e) {
809
- return !t8.isSelfClosing && !t8.endSourceSpan && (Ee(t8) || yt(t8.parent, e));
810
- }
811
- function K(t8) {
812
- return t8.prev && t8.prev.type !== "docType" && t8.type !== "angularControlFlowBlock" && !$(t8.prev) && t8.isLeadingSpaceSensitive && !t8.hasLeadingSpaces;
813
- }
814
- function ye(t8) {
815
- var e;
816
- return ((e = t8.lastChild) == null ? void 0 : e.isTrailingSpaceSensitive) && !t8.lastChild.hasTrailingSpaces && !$(bt(t8.lastChild)) && !_e(t8);
817
- }
818
- function we(t8) {
819
- return !t8.next && !t8.hasTrailingSpaces && t8.isTrailingSpaceSensitive && $(bt(t8));
820
- }
821
- function et(t8) {
822
- return t8.next && !$(t8.next) && $(t8) && t8.isTrailingSpaceSensitive && !t8.hasTrailingSpaces;
823
- }
824
- function la(t8) {
825
- let e = t8.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);
826
- return e ? e[1] ? e[1].split(/\s+/u) : true : false;
827
- }
828
- function tt(t8) {
829
- return !t8.prev && t8.isLeadingSpaceSensitive && !t8.hasLeadingSpaces;
830
- }
831
- function ca(t8, e, r) {
832
- var f;
833
- let { node: n } = t8;
834
- if (!qe(n.attrs)) return n.isSelfClosing ? " " : "";
835
- let s = ((f = n.prev) == null ? void 0 : f.type) === "comment" && la(n.prev.value), i = typeof s == "boolean" ? () => s : Array.isArray(s) ? (d) => s.includes(d.rawName) : () => false, a = t8.map(({ node: d }) => i(d) ? B(e.originalText.slice(se(d), ie(d))) : r(), "attrs"), o = n.type === "element" && n.fullName === "script" && n.attrs.length === 1 && n.attrs[0].fullName === "src" && n.children.length === 0, p = e.singleAttributePerLine && n.attrs.length > 1 && !Ae(n, e) ? S : E, l = [k([o ? " " : E, q(p, a)])];
836
- return n.firstChild && tt(n.firstChild) || n.isSelfClosing && ye(n.parent) || o ? l.push(n.isSelfClosing ? " " : "") : l.push(e.bracketSameLine ? n.isSelfClosing ? " " : "" : n.isSelfClosing ? E : v), l;
837
- }
838
- function pa(t8) {
839
- return t8.firstChild && tt(t8.firstChild) ? "" : Ft(t8);
840
- }
841
- function rt(t8, e, r) {
842
- let { node: n } = t8;
843
- return [be(n, e), ca(t8, e, r), n.isSelfClosing ? "" : pa(n)];
844
- }
845
- function be(t8, e) {
846
- return t8.prev && et(t8.prev) ? "" : [z(t8, e), Lt(t8)];
847
- }
848
- function z(t8, e) {
849
- return tt(t8) ? Ft(t8.parent) : K(t8) ? ve(t8.prev, e) : "";
850
- }
851
- function Lt(t8) {
852
- switch (t8.type) {
853
- case "ieConditionalComment":
854
- case "ieConditionalStartComment":
855
- return `<!--[if ${t8.condition}`;
856
- case "ieConditionalEndComment":
857
- return "<!--<!";
858
- case "interpolation":
859
- return "{{";
860
- case "docType":
861
- return t8.value === "html" ? "<!doctype" : "<!DOCTYPE";
862
- case "angularIcuExpression":
863
- return "{";
864
- case "element":
865
- if (t8.condition) return `<!--[if ${t8.condition}]><!--><${t8.rawName}`;
866
- default:
867
- return `<${t8.rawName}`;
868
- }
869
- }
870
- function Ft(t8) {
871
- switch (Dr(!t8.isSelfClosing), t8.type) {
872
- case "ieConditionalComment":
873
- return "]>";
874
- case "element":
875
- if (t8.condition) return "><!--<![endif]-->";
876
- default:
877
- return ">";
878
- }
879
- }
880
- function ha(t8, e) {
881
- if (!t8.endSourceSpan) return "";
882
- let r = t8.startSourceSpan.end.offset;
883
- t8.firstChild && tt(t8.firstChild) && (r -= Ft(t8).length);
884
- let n = t8.endSourceSpan.start.offset;
885
- return t8.lastChild && we(t8.lastChild) ? n += Bt(t8, e).length : ye(t8) && (n -= ve(t8.lastChild, e).length), e.originalText.slice(r, n);
886
- }
887
- var Nt = ha;
888
- var ma = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
889
- function fa(t8, e) {
890
- let { node: r } = t8;
891
- switch (r.type) {
892
- case "element":
893
- if (U(r) || r.type === "interpolation") return;
894
- if (!r.isSelfClosing && Tt(r, e)) {
895
- let n = gr(r, e);
896
- return n ? async (s, i) => {
897
- let a = Nt(r, e), o = /^\s*$/u.test(a), u = "";
898
- return o || (u = await s(mr(a), { parser: n, __embeddedInHtml: true }), o = u === ""), [z(r, e), _(rt(t8, e, i)), o ? "" : S, u, o ? "" : S, Ze(r, e), W(r, e)];
899
- } : void 0;
900
- }
901
- break;
902
- case "text":
903
- if (U(r.parent)) {
904
- let n = gr(r.parent, e);
905
- if (n) return async (s) => {
906
- let i = n === "markdown" ? Cr(r.value.replace(/^[^\S\n]*\n/u, "")) : r.value, a = { parser: n, __embeddedInHtml: true };
907
- if (e.parser === "html" && n === "babel") {
908
- let o = "script", { attrMap: u } = r.parent;
909
- u && (u.type === "module" || u.type === "text/babel" && u["data-type"] === "module") && (o = "module"), a.__babelSourceType = o;
910
- }
911
- return [ne, z(r, e), await s(i, a), W(r, e)];
912
- };
913
- } else if (r.parent.type === "interpolation") return async (n) => {
914
- let s = { __isInHtmlInterpolation: true, __embeddedInHtml: true };
915
- return e.parser === "angular" ? s.parser = "__ng_interpolation" : e.parser === "vue" ? s.parser = Me(t8, e) ? "__vue_ts_expression" : "__vue_expression" : s.parser = "__js_expression", [k([E, await n(r.value, s)]), r.parent.next && K(r.parent.next) ? " " : E];
916
- };
917
- break;
918
- case "attribute":
919
- return es(t8, e);
920
- case "front-matter":
921
- return (n) => gn(r, n);
922
- case "angularControlFlowBlockParameters":
923
- return ma.has(t8.parent.name) ? Cn : void 0;
924
- case "angularLetDeclarationInitializer":
925
- return (n) => T(r.value, n, { parser: "__ng_binding", __isInHtmlAttribute: false });
926
- }
927
- }
928
- var ns = fa;
929
- var nt = null;
930
- function st(t8) {
931
- if (nt !== null && typeof nt.property) {
932
- let e = nt;
933
- return nt = st.prototype = null, e;
934
- }
935
- return nt = st.prototype = t8 ?? /* @__PURE__ */ Object.create(null), new st();
936
- }
937
- var da = 10;
938
- for (let t8 = 0; t8 <= da; t8++) st();
939
- function vr(t8) {
940
- return st(t8);
941
- }
942
- function ga(t8, e = "type") {
943
- vr(t8);
944
- function r(n) {
945
- let s = n[e], i = t8[s];
946
- if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
947
- return i;
948
- }
949
- return r;
950
- }
951
- var ss = ga;
952
- var Ca = { "front-matter": [], root: ["children"], element: ["attrs", "children"], ieConditionalComment: ["children"], ieConditionalStartComment: [], ieConditionalEndComment: [], interpolation: ["children"], text: ["children"], docType: [], comment: [], attribute: [], cdata: [], angularControlFlowBlock: ["children", "parameters"], angularControlFlowBlockParameters: ["children"], angularControlFlowBlockParameter: [], angularLetDeclaration: ["init"], angularLetDeclarationInitializer: [], angularIcuExpression: ["cases"], angularIcuCase: ["expression"] };
953
- var is = Ca;
954
- var Sa = ss(is);
955
- var as = Sa;
956
- function os(t8) {
957
- return /^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(t8);
958
- }
959
- function us(t8) {
960
- return `<!-- @format -->
961
-
962
- ` + t8;
963
- }
964
- var ls = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if", "else"])], ["else if", /* @__PURE__ */ new Set(["else if", "else"])], ["for", /* @__PURE__ */ new Set(["empty"])], ["defer", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["placeholder", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["error", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["loading", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])]]);
965
- function cs(t8) {
966
- let e = ie(t8);
967
- return t8.type === "element" && !t8.endSourceSpan && qe(t8.children) ? Math.max(e, cs(X(false, t8.children, -1))) : e;
968
- }
969
- function it(t8, e, r) {
970
- let n = t8.node;
971
- if (Ee(n)) {
972
- let s = cs(n);
973
- return [z(n, e), B(N.trimEnd(e.originalText.slice(se(n) + (n.prev && et(n.prev) ? Lt(n).length : 0), s - (n.next && K(n.next) ? ve(n, e).length : 0)))), W(n, e)];
974
- }
975
- return r();
976
- }
977
- function Pt(t8, e) {
978
- return $(t8) && $(e) ? t8.isTrailingSpaceSensitive ? t8.hasTrailingSpaces ? wt(e) ? S : E : "" : wt(e) ? S : v : et(t8) && (Ee(e) || e.firstChild || e.isSelfClosing || e.type === "element" && e.attrs.length > 0) || t8.type === "element" && t8.isSelfClosing && K(e) ? "" : !e.isLeadingSpaceSensitive || wt(e) || K(e) && t8.lastChild && we(t8.lastChild) && t8.lastChild.lastChild && we(t8.lastChild.lastChild) ? S : e.hasLeadingSpaces ? E : v;
979
- }
980
- function He(t8, e, r) {
981
- let { node: n } = t8;
982
- if (dr(n)) return [ne, ...t8.map((i) => {
983
- let a = i.node, o = a.prev ? Pt(a.prev, a) : "";
984
- return [o ? [o, Qe(a.prev) ? S : ""] : "", it(i, e, r)];
985
- }, "children")];
986
- let s = n.children.map(() => Symbol(""));
987
- return t8.map((i, a) => {
988
- let o = i.node;
989
- if ($(o)) {
990
- if (o.prev && $(o.prev)) {
991
- let A = Pt(o.prev, o);
992
- if (A) return Qe(o.prev) ? [S, S, it(i, e, r)] : [A, it(i, e, r)];
993
- }
994
- return it(i, e, r);
995
- }
996
- let u = [], p = [], l = [], f = [], d = o.prev ? Pt(o.prev, o) : "", C = o.next ? Pt(o, o.next) : "";
997
- return d && (Qe(o.prev) ? u.push(S, S) : d === S ? u.push(S) : $(o.prev) ? p.push(d) : p.push(ge("", v, { groupId: s[a - 1] }))), C && (Qe(o) ? $(o.next) && f.push(S, S) : C === S ? $(o.next) && f.push(S) : l.push(C)), [...u, _([...p, _([it(i, e, r), ...l], { id: s[a] })]), ...f];
998
- }, "children");
999
- }
1000
- function ps(t8, e, r) {
1001
- let { node: n } = t8, s = [];
1002
- _a(t8) && s.push("} "), s.push("@", n.name), n.parameters && s.push(" (", _(r("parameters")), ")"), s.push(" {");
1003
- let i = hs(n);
1004
- return n.children.length > 0 ? (n.firstChild.hasLeadingSpaces = true, n.lastChild.hasTrailingSpaces = true, s.push(k([S, He(t8, e, r)])), i && s.push(S, "}")) : i && s.push("}"), _(s, { shouldBreak: true });
1005
- }
1006
- function hs(t8) {
1007
- var e, r;
1008
- return !(((e = t8.next) == null ? void 0 : e.type) === "angularControlFlowBlock" && ((r = ls.get(t8.name)) != null && r.has(t8.next.name)));
1009
- }
1010
- function _a(t8) {
1011
- let { previous: e } = t8;
1012
- return (e == null ? void 0 : e.type) === "angularControlFlowBlock" && !Ee(e) && !hs(e);
1013
- }
1014
- function ms(t8, e, r) {
1015
- return [k([v, q([";", E], t8.map(r, "children"))]), v];
1016
- }
1017
- function fs(t8, e, r) {
1018
- let { node: n } = t8;
1019
- return [be(n, e), _([n.switchValue.trim(), ", ", n.clause, n.cases.length > 0 ? [",", k([E, q(E, t8.map(r, "cases"))])] : "", v]), De(n, e)];
1020
- }
1021
- function ds(t8, e, r) {
1022
- let { node: n } = t8;
1023
- return [n.value, " {", _([k([v, t8.map(({ node: s }) => s.type === "text" && !N.trim(s.value) ? "" : r(), "expression")]), v]), "}"];
1024
- }
1025
- function gs(t8, e, r) {
1026
- let { node: n } = t8;
1027
- if (yt(n, e)) return [z(n, e), _(rt(t8, e, r)), B(Nt(n, e)), ...Ze(n, e), W(n, e)];
1028
- let s = n.children.length === 1 && (n.firstChild.type === "interpolation" || n.firstChild.type === "angularIcuExpression") && n.firstChild.isLeadingSpaceSensitive && !n.firstChild.hasLeadingSpaces && n.lastChild.isTrailingSpaceSensitive && !n.lastChild.hasTrailingSpaces, i = Symbol("element-attr-group-id"), a = (l) => _([_(rt(t8, e, r), { id: i }), l, Ze(n, e)]), o = (l) => s ? on(l, { groupId: i }) : (U(n) || Je(n, e)) && n.parent.type === "root" && e.parser === "vue" && !e.vueIndentScriptAndStyle ? l : k(l), u = () => s ? ge(v, "", { groupId: i }) : n.firstChild.hasLeadingSpaces && n.firstChild.isLeadingSpaceSensitive ? E : n.firstChild.type === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive ? sn(v) : v, p = () => (n.next ? K(n.next) : ye(n.parent)) ? n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? " " : "" : s ? ge(v, "", { groupId: i }) : n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? E : (n.lastChild.type === "comment" || n.lastChild.type === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${e.tabWidth * (t8.ancestors.length - 1)}}$`, "u").test(n.lastChild.value) ? "" : v;
1029
- return n.children.length === 0 ? a(n.hasDanglingSpaces && n.isDanglingSpaceSensitive ? E : "") : a([kn(n) ? ne : "", o([u(), He(t8, e, r)]), p()]);
1030
- }
1031
- function at(t8) {
1032
- return t8 >= 9 && t8 <= 32 || t8 == 160;
1033
- }
1034
- function It(t8) {
1035
- return 48 <= t8 && t8 <= 57;
1036
- }
1037
- function ot(t8) {
1038
- return t8 >= 97 && t8 <= 122 || t8 >= 65 && t8 <= 90;
1039
- }
1040
- function Cs(t8) {
1041
- return t8 >= 97 && t8 <= 102 || t8 >= 65 && t8 <= 70 || It(t8);
1042
- }
1043
- function Rt(t8) {
1044
- return t8 === 10 || t8 === 13;
1045
- }
1046
- function yr(t8) {
1047
- return 48 <= t8 && t8 <= 55;
1048
- }
1049
- function $t(t8) {
1050
- return t8 === 39 || t8 === 34 || t8 === 96;
1051
- }
1052
- var Ea = /-+([a-z0-9])/g;
1053
- function _s(t8) {
1054
- return t8.replace(Ea, (...e) => e[1].toUpperCase());
1055
- }
1056
- var ae = class t {
1057
- constructor(e, r, n, s) {
1058
- this.file = e, this.offset = r, this.line = n, this.col = s;
1059
- }
1060
- toString() {
1061
- return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;
1062
- }
1063
- moveBy(e) {
1064
- let r = this.file.content, n = r.length, s = this.offset, i = this.line, a = this.col;
1065
- for (; s > 0 && e < 0; ) if (s--, e++, r.charCodeAt(s) == 10) {
1066
- i--;
1067
- let u = r.substring(0, s - 1).lastIndexOf(String.fromCharCode(10));
1068
- a = u > 0 ? s - u : s;
1069
- } else a--;
1070
- for (; s < n && e > 0; ) {
1071
- let o = r.charCodeAt(s);
1072
- s++, e--, o == 10 ? (i++, a = 0) : a++;
1073
- }
1074
- return new t(this.file, s, i, a);
1075
- }
1076
- getContext(e, r) {
1077
- let n = this.file.content, s = this.offset;
1078
- if (s != null) {
1079
- s > n.length - 1 && (s = n.length - 1);
1080
- let i = s, a = 0, o = 0;
1081
- for (; a < e && s > 0 && (s--, a++, !(n[s] == `
1082
- ` && ++o == r)); ) ;
1083
- for (a = 0, o = 0; a < e && i < n.length - 1 && (i++, a++, !(n[i] == `
1084
- ` && ++o == r)); ) ;
1085
- return { before: n.substring(s, this.offset), after: n.substring(this.offset, i + 1) };
1086
- }
1087
- return null;
1088
- }
1089
- };
1090
- var Te = class {
1091
- constructor(e, r) {
1092
- this.content = e, this.url = r;
1093
- }
1094
- };
1095
- var h = class {
1096
- constructor(e, r, n = e, s = null) {
1097
- this.start = e, this.end = r, this.fullStart = n, this.details = s;
1098
- }
1099
- toString() {
1100
- return this.start.file.content.substring(this.start.offset, this.end.offset);
1101
- }
1102
- };
1103
- var Ot;
1104
- (function(t8) {
1105
- t8[t8.WARNING = 0] = "WARNING", t8[t8.ERROR = 1] = "ERROR";
1106
- })(Ot || (Ot = {}));
1107
- var Ue = class {
1108
- constructor(e, r, n = Ot.ERROR) {
1109
- this.span = e, this.msg = r, this.level = n;
1110
- }
1111
- contextualMessage() {
1112
- let e = this.span.start.getContext(100, 3);
1113
- return e ? `${this.msg} ("${e.before}[${Ot[this.level]} ->]${e.after}")` : this.msg;
1114
- }
1115
- toString() {
1116
- let e = this.span.details ? `, ${this.span.details}` : "";
1117
- return `${this.contextualMessage()}: ${this.span.start}${e}`;
1118
- }
1119
- };
1120
- var Aa = [va, ya, ba, xa, ka, Fa, Ba, La, Na, Ta];
1121
- function Da(t8, e) {
1122
- for (let r of Aa) r(t8, e);
1123
- return t8;
1124
- }
1125
- function va(t8) {
1126
- t8.walk((e) => {
1127
- if (e.type === "element" && e.tagDefinition.ignoreFirstLf && e.children.length > 0 && e.children[0].type === "text" && e.children[0].value[0] === `
1128
- `) {
1129
- let r = e.children[0];
1130
- r.value.length === 1 ? e.removeChild(r) : r.value = r.value.slice(1);
1131
- }
1132
- });
1133
- }
1134
- function ya(t8) {
1135
- let e = (r) => {
1136
- var n, s;
1137
- return r.type === "element" && ((n = r.prev) == null ? void 0 : n.type) === "ieConditionalStartComment" && r.prev.sourceSpan.end.offset === r.startSourceSpan.start.offset && ((s = r.firstChild) == null ? void 0 : s.type) === "ieConditionalEndComment" && r.firstChild.sourceSpan.start.offset === r.startSourceSpan.end.offset;
1138
- };
1139
- t8.walk((r) => {
1140
- if (r.children) for (let n = 0; n < r.children.length; n++) {
1141
- let s = r.children[n];
1142
- if (!e(s)) continue;
1143
- let i = s.prev, a = s.firstChild;
1144
- r.removeChild(i), n--;
1145
- let o = new h(i.sourceSpan.start, a.sourceSpan.end), u = new h(o.start, s.sourceSpan.end);
1146
- s.condition = i.condition, s.sourceSpan = u, s.startSourceSpan = o, s.removeChild(a);
1147
- }
1148
- });
1149
- }
1150
- function wa(t8, e, r) {
1151
- t8.walk((n) => {
1152
- if (n.children) for (let s = 0; s < n.children.length; s++) {
1153
- let i = n.children[s];
1154
- if (i.type !== "text" && !e(i)) continue;
1155
- i.type !== "text" && (i.type = "text", i.value = r(i));
1156
- let a = i.prev;
1157
- !a || a.type !== "text" || (a.value += i.value, a.sourceSpan = new h(a.sourceSpan.start, i.sourceSpan.end), n.removeChild(i), s--);
1158
- }
1159
- });
1160
- }
1161
- function ba(t8) {
1162
- return wa(t8, (e) => e.type === "cdata", (e) => `<![CDATA[${e.value}]]>`);
1163
- }
1164
- function Ta(t8) {
1165
- let e = (r) => {
1166
- var n, s;
1167
- return r.type === "element" && r.attrs.length === 0 && r.children.length === 1 && r.firstChild.type === "text" && !N.hasWhitespaceCharacter(r.children[0].value) && !r.firstChild.hasLeadingSpaces && !r.firstChild.hasTrailingSpaces && r.isLeadingSpaceSensitive && !r.hasLeadingSpaces && r.isTrailingSpaceSensitive && !r.hasTrailingSpaces && ((n = r.prev) == null ? void 0 : n.type) === "text" && ((s = r.next) == null ? void 0 : s.type) === "text";
1168
- };
1169
- t8.walk((r) => {
1170
- if (r.children) for (let n = 0; n < r.children.length; n++) {
1171
- let s = r.children[n];
1172
- if (!e(s)) continue;
1173
- let i = s.prev, a = s.next;
1174
- i.value += `<${s.rawName}>` + s.firstChild.value + `</${s.rawName}>` + a.value, i.sourceSpan = new h(i.sourceSpan.start, a.sourceSpan.end), i.isTrailingSpaceSensitive = a.isTrailingSpaceSensitive, i.hasTrailingSpaces = a.hasTrailingSpaces, r.removeChild(s), n--, r.removeChild(a);
1175
- }
1176
- });
1177
- }
1178
- function xa(t8, e) {
1179
- if (e.parser === "html") return;
1180
- let r = /\{\{(.+?)\}\}/su;
1181
- t8.walk((n) => {
1182
- if (yn(n)) for (let s of n.children) {
1183
- if (s.type !== "text") continue;
1184
- let i = s.sourceSpan.start, a = null, o = s.value.split(r);
1185
- for (let u = 0; u < o.length; u++, i = a) {
1186
- let p = o[u];
1187
- if (u % 2 === 0) {
1188
- a = i.moveBy(p.length), p.length > 0 && n.insertChildBefore(s, { type: "text", value: p, sourceSpan: new h(i, a) });
1189
- continue;
1190
- }
1191
- a = i.moveBy(p.length + 4), n.insertChildBefore(s, { type: "interpolation", sourceSpan: new h(i, a), children: p.length === 0 ? [] : [{ type: "text", value: p, sourceSpan: new h(i.moveBy(2), a.moveBy(-2)) }] });
1192
- }
1193
- n.removeChild(s);
1194
- }
1195
- });
1196
- }
1197
- function ka(t8) {
1198
- t8.walk((e) => {
1199
- if (!e.children) return;
1200
- if (e.children.length === 0 || e.children.length === 1 && e.children[0].type === "text" && N.trim(e.children[0].value).length === 0) {
1201
- e.hasDanglingSpaces = e.children.length > 0, e.children = [];
1202
- return;
1203
- }
1204
- let r = wn(e), n = fr(e);
1205
- if (!r) for (let s = 0; s < e.children.length; s++) {
1206
- let i = e.children[s];
1207
- if (i.type !== "text") continue;
1208
- let { leadingWhitespace: a, text: o, trailingWhitespace: u } = vn(i.value), p = i.prev, l = i.next;
1209
- o ? (i.value = o, i.sourceSpan = new h(i.sourceSpan.start.moveBy(a.length), i.sourceSpan.end.moveBy(-u.length)), a && (p && (p.hasTrailingSpaces = true), i.hasLeadingSpaces = true), u && (i.hasTrailingSpaces = true, l && (l.hasLeadingSpaces = true))) : (e.removeChild(i), s--, (a || u) && (p && (p.hasTrailingSpaces = true), l && (l.hasLeadingSpaces = true)));
1210
- }
1211
- e.isWhitespaceSensitive = r, e.isIndentationSensitive = n;
1212
- });
1213
- }
1214
- function Ba(t8) {
1215
- t8.walk((e) => {
1216
- e.isSelfClosing = !e.children || e.type === "element" && (e.tagDefinition.isVoid || e.endSourceSpan && e.startSourceSpan.start === e.endSourceSpan.start && e.startSourceSpan.end === e.endSourceSpan.end);
1217
- });
1218
- }
1219
- function La(t8, e) {
1220
- t8.walk((r) => {
1221
- r.type === "element" && (r.hasHtmComponentClosingTag = r.endSourceSpan && /^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset, r.endSourceSpan.end.offset)));
1222
- });
1223
- }
1224
- function Fa(t8, e) {
1225
- t8.walk((r) => {
1226
- r.cssDisplay = In(r, e);
1227
- });
1228
- }
1229
- function Na(t8, e) {
1230
- t8.walk((r) => {
1231
- let { children: n } = r;
1232
- if (n) {
1233
- if (n.length === 0) {
1234
- r.isDanglingSpaceSensitive = xn(r);
1235
- return;
1236
- }
1237
- for (let s of n) s.isLeadingSpaceSensitive = bn(s, e), s.isTrailingSpaceSensitive = Tn(s, e);
1238
- for (let s = 0; s < n.length; s++) {
1239
- let i = n[s];
1240
- i.isLeadingSpaceSensitive = (s === 0 || i.prev.isTrailingSpaceSensitive) && i.isLeadingSpaceSensitive, i.isTrailingSpaceSensitive = (s === n.length - 1 || i.next.isLeadingSpaceSensitive) && i.isTrailingSpaceSensitive;
1241
- }
1242
- }
1243
- });
1244
- }
1245
- var Es = Da;
1246
- function Pa(t8, e, r) {
1247
- let { node: n } = t8;
1248
- switch (n.type) {
1249
- case "front-matter":
1250
- return B(n.raw);
1251
- case "root":
1252
- return e.__onHtmlRoot && e.__onHtmlRoot(n), [_(He(t8, e, r)), S];
1253
- case "element":
1254
- case "ieConditionalComment":
1255
- return gs(t8, e, r);
1256
- case "angularControlFlowBlock":
1257
- return ps(t8, e, r);
1258
- case "angularControlFlowBlockParameters":
1259
- return ms(t8, e, r);
1260
- case "angularControlFlowBlockParameter":
1261
- return N.trim(n.expression);
1262
- case "angularLetDeclaration":
1263
- return _(["@let ", _([n.id, " =", _(k([E, r("init")]))]), ";"]);
1264
- case "angularLetDeclarationInitializer":
1265
- return n.value;
1266
- case "angularIcuExpression":
1267
- return fs(t8, e, r);
1268
- case "angularIcuCase":
1269
- return ds(t8, e, r);
1270
- case "ieConditionalStartComment":
1271
- case "ieConditionalEndComment":
1272
- return [be(n), De(n)];
1273
- case "interpolation":
1274
- return [be(n, e), ...t8.map(r, "children"), De(n, e)];
1275
- case "text": {
1276
- if (n.parent.type === "interpolation") {
1277
- let i = /\n[^\S\n]*$/u, a = i.test(n.value), o = a ? n.value.replace(i, "") : n.value;
1278
- return [B(o), a ? S : ""];
1279
- }
1280
- let s = ln([z(n, e), ...xt(n), W(n, e)]);
1281
- return Array.isArray(s) ? At(s) : s;
1282
- }
1283
- case "docType":
1284
- return [_([be(n, e), " ", w(false, n.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), De(n, e)];
1285
- case "comment":
1286
- return [z(n, e), B(e.originalText.slice(se(n), ie(n))), W(n, e)];
1287
- case "attribute": {
1288
- if (n.value === null) return n.rawName;
1289
- let s = Sr(n.value), i = pn(s, '"');
1290
- return [n.rawName, "=", i, B(i === '"' ? w(false, s, '"', "&quot;") : w(false, s, "'", "&apos;")), i];
1291
- }
1292
- case "cdata":
1293
- default:
1294
- throw new mn(n, "HTML");
1295
- }
1296
- }
1297
- var Ia = { preprocess: Es, print: Pa, insertPragma: us, massageAstNode: dn, embed: ns, getVisitorKeys: as };
1298
- var As = Ia;
1299
- var Ds = [{ linguistLanguageId: 146, name: "Angular", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [".component.html"], parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [] }, { linguistLanguageId: 146, name: "HTML", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml", ".mjml"], parsers: ["html"], vscodeLanguageIds: ["html"] }, { linguistLanguageId: 146, name: "Lightning Web Components", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [], parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [] }, { linguistLanguageId: 391, name: "Vue", type: "markup", color: "#41b883", extensions: [".vue"], tmScope: "text.html.vue", aceMode: "html", parsers: ["vue"], vscodeLanguageIds: ["vue"] }];
1300
- var wr = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
1301
- var vs = "HTML";
1302
- var Ra = { bracketSameLine: wr.bracketSameLine, htmlWhitespaceSensitivity: { category: vs, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: wr.singleAttributePerLine, vueIndentScriptAndStyle: { category: vs, type: "boolean", default: false, description: "Indent script and style tags in Vue files." } };
1303
- var ys = Ra;
1304
- var Gr = {};
1305
- Jr(Gr, { angular: () => Po, html: () => No, lwc: () => Ro, vue: () => Io });
1306
- var ws;
1307
- (function(t8) {
1308
- t8[t8.Emulated = 0] = "Emulated", t8[t8.None = 2] = "None", t8[t8.ShadowDom = 3] = "ShadowDom";
1309
- })(ws || (ws = {}));
1310
- var bs;
1311
- (function(t8) {
1312
- t8[t8.OnPush = 0] = "OnPush", t8[t8.Default = 1] = "Default";
1313
- })(bs || (bs = {}));
1314
- var Ts;
1315
- (function(t8) {
1316
- t8[t8.None = 0] = "None", t8[t8.SignalBased = 1] = "SignalBased", t8[t8.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
1317
- })(Ts || (Ts = {}));
1318
- var br = { name: "custom-elements" };
1319
- var Tr = { name: "no-errors-schema" };
1320
- var J;
1321
- (function(t8) {
1322
- t8[t8.NONE = 0] = "NONE", t8[t8.HTML = 1] = "HTML", t8[t8.STYLE = 2] = "STYLE", t8[t8.SCRIPT = 3] = "SCRIPT", t8[t8.URL = 4] = "URL", t8[t8.RESOURCE_URL = 5] = "RESOURCE_URL";
1323
- })(J || (J = {}));
1324
- var xs;
1325
- (function(t8) {
1326
- t8[t8.Error = 0] = "Error", t8[t8.Warning = 1] = "Warning", t8[t8.Ignore = 2] = "Ignore";
1327
- })(xs || (xs = {}));
1328
- var I;
1329
- (function(t8) {
1330
- t8[t8.RAW_TEXT = 0] = "RAW_TEXT", t8[t8.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t8[t8.PARSABLE_DATA = 2] = "PARSABLE_DATA";
1331
- })(I || (I = {}));
1332
- function ut(t8, e = true) {
1333
- if (t8[0] != ":") return [null, t8];
1334
- let r = t8.indexOf(":", 1);
1335
- if (r === -1) {
1336
- if (e) throw new Error(`Unsupported format "${t8}" expecting ":namespace:name"`);
1337
- return [null, t8];
1338
- }
1339
- return [t8.slice(1, r), t8.slice(r + 1)];
1340
- }
1341
- function xr(t8) {
1342
- return ut(t8)[1] === "ng-container";
1343
- }
1344
- function kr(t8) {
1345
- return ut(t8)[1] === "ng-content";
1346
- }
1347
- function We(t8) {
1348
- return t8 === null ? null : ut(t8)[0];
1349
- }
1350
- function ze(t8, e) {
1351
- return t8 ? `:${t8}:${e}` : e;
1352
- }
1353
- var qt;
1354
- function Br() {
1355
- return qt || (qt = {}, Mt(J.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]), Mt(J.STYLE, ["*|style"]), Mt(J.URL, ["*|formAction", "area|href", "area|ping", "audio|src", "a|href", "a|ping", "blockquote|cite", "body|background", "del|cite", "form|action", "img|src", "input|src", "ins|cite", "q|cite", "source|src", "track|src", "video|poster", "video|src"]), Mt(J.RESOURCE_URL, ["applet|code", "applet|codebase", "base|href", "embed|src", "frame|src", "head|profile", "html|manifest", "iframe|src", "link|href", "media|src", "object|codebase", "object|data", "script|src"])), qt;
1356
- }
1357
- function Mt(t8, e) {
1358
- for (let r of e) qt[r.toLowerCase()] = t8;
1359
- }
1360
- var Ht = class {
1361
- };
1362
- var $a = "boolean";
1363
- var Oa = "number";
1364
- var Ma = "string";
1365
- var qa = "object";
1366
- var Ha = ["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored", "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume", ":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":svg:graphics^:svg:|", ":svg:animation^:svg:|*begin,*end,*repeat", ":svg:geometry^:svg:|", ":svg:componentTransferFunction^:svg:|", ":svg:gradient^:svg:|", ":svg:textContent^:svg:graphics|", ":svg:textPositioning^:svg:textContent|", "a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username", "area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username", "audio^media|", "br^[HTMLElement]|clear", "base^[HTMLElement]|href,target", "body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink", "button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value", "canvas^[HTMLElement]|#height,#width", "content^[HTMLElement]|select", "dl^[HTMLElement]|!compact", "data^[HTMLElement]|value", "datalist^[HTMLElement]|", "details^[HTMLElement]|!open", "dialog^[HTMLElement]|!open,returnValue", "dir^[HTMLElement]|!compact", "div^[HTMLElement]|align", "embed^[HTMLElement]|align,height,name,src,type,width", "fieldset^[HTMLElement]|!disabled,name", "font^[HTMLElement]|color,face,size", "form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target", "frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src", "frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows", "hr^[HTMLElement]|align,color,!noShade,size,width", "head^[HTMLElement]|", "h1,h2,h3,h4,h5,h6^[HTMLElement]|align", "html^[HTMLElement]|version", "iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width", "img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width", "input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width", "li^[HTMLElement]|type,#value", "label^[HTMLElement]|htmlFor", "legend^[HTMLElement]|align", "link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type", "map^[HTMLElement]|name", "marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width", "menu^[HTMLElement]|!compact", "meta^[HTMLElement]|content,httpEquiv,media,name,scheme", "meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value", "ins,del^[HTMLElement]|cite,dateTime", "ol^[HTMLElement]|!compact,!reversed,#start,type", "object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width", "optgroup^[HTMLElement]|!disabled,label", "option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value", "output^[HTMLElement]|defaultValue,%htmlFor,name,value", "p^[HTMLElement]|align", "param^[HTMLElement]|name,type,value,valueType", "picture^[HTMLElement]|", "pre^[HTMLElement]|#width", "progress^[HTMLElement]|#max,#value", "q,blockquote,cite^[HTMLElement]|", "script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type", "select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value", "slot^[HTMLElement]|name", "source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width", "span^[HTMLElement]|", "style^[HTMLElement]|!disabled,media,type", "caption^[HTMLElement]|align", "th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width", "col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width", "table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width", "tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign", "tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign", "template^[HTMLElement]|", "textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap", "time^[HTMLElement]|dateTime", "title^[HTMLElement]|text", "track^[HTMLElement]|!default,kind,label,src,srclang", "ul^[HTMLElement]|!compact,type", "unknown^[HTMLElement]|", "video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width", ":svg:a^:svg:graphics|", ":svg:animate^:svg:animation|", ":svg:animateMotion^:svg:animation|", ":svg:animateTransform^:svg:animation|", ":svg:circle^:svg:geometry|", ":svg:clipPath^:svg:graphics|", ":svg:defs^:svg:graphics|", ":svg:desc^:svg:|", ":svg:discard^:svg:|", ":svg:ellipse^:svg:geometry|", ":svg:feBlend^:svg:|", ":svg:feColorMatrix^:svg:|", ":svg:feComponentTransfer^:svg:|", ":svg:feComposite^:svg:|", ":svg:feConvolveMatrix^:svg:|", ":svg:feDiffuseLighting^:svg:|", ":svg:feDisplacementMap^:svg:|", ":svg:feDistantLight^:svg:|", ":svg:feDropShadow^:svg:|", ":svg:feFlood^:svg:|", ":svg:feFuncA^:svg:componentTransferFunction|", ":svg:feFuncB^:svg:componentTransferFunction|", ":svg:feFuncG^:svg:componentTransferFunction|", ":svg:feFuncR^:svg:componentTransferFunction|", ":svg:feGaussianBlur^:svg:|", ":svg:feImage^:svg:|", ":svg:feMerge^:svg:|", ":svg:feMergeNode^:svg:|", ":svg:feMorphology^:svg:|", ":svg:feOffset^:svg:|", ":svg:fePointLight^:svg:|", ":svg:feSpecularLighting^:svg:|", ":svg:feSpotLight^:svg:|", ":svg:feTile^:svg:|", ":svg:feTurbulence^:svg:|", ":svg:filter^:svg:|", ":svg:foreignObject^:svg:graphics|", ":svg:g^:svg:graphics|", ":svg:image^:svg:graphics|decoding", ":svg:line^:svg:geometry|", ":svg:linearGradient^:svg:gradient|", ":svg:mpath^:svg:|", ":svg:marker^:svg:|", ":svg:mask^:svg:|", ":svg:metadata^:svg:|", ":svg:path^:svg:geometry|", ":svg:pattern^:svg:|", ":svg:polygon^:svg:geometry|", ":svg:polyline^:svg:geometry|", ":svg:radialGradient^:svg:gradient|", ":svg:rect^:svg:geometry|", ":svg:svg^:svg:graphics|#currentScale,#zoomAndPan", ":svg:script^:svg:|type", ":svg:set^:svg:animation|", ":svg:stop^:svg:|", ":svg:style^:svg:|!disabled,media,title,type", ":svg:switch^:svg:graphics|", ":svg:symbol^:svg:|", ":svg:tspan^:svg:textPositioning|", ":svg:text^:svg:textPositioning|", ":svg:textPath^:svg:textContent|", ":svg:title^:svg:|", ":svg:use^:svg:graphics|", ":svg:view^:svg:|#zoomAndPan", "data^[HTMLElement]|value", "keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name", "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default", "summary^[HTMLElement]|", "time^[HTMLElement]|dateTime", ":svg:cursor^:svg:|", ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":math:math^:math:|", ":math:maction^:math:|", ":math:menclose^:math:|", ":math:merror^:math:|", ":math:mfenced^:math:|", ":math:mfrac^:math:|", ":math:mi^:math:|", ":math:mmultiscripts^:math:|", ":math:mn^:math:|", ":math:mo^:math:|", ":math:mover^:math:|", ":math:mpadded^:math:|", ":math:mphantom^:math:|", ":math:mroot^:math:|", ":math:mrow^:math:|", ":math:ms^:math:|", ":math:mspace^:math:|", ":math:msqrt^:math:|", ":math:mstyle^:math:|", ":math:msub^:math:|", ":math:msubsup^:math:|", ":math:msup^:math:|", ":math:mtable^:math:|", ":math:mtd^:math:|", ":math:mtext^:math:|", ":math:mtr^:math:|", ":math:munder^:math:|", ":math:munderover^:math:|", ":math:semantics^:math:|"];
1367
- var ks = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex" }));
1368
- var Va = Array.from(ks).reduce((t8, [e, r]) => (t8.set(e, r), t8), /* @__PURE__ */ new Map());
1369
- var Vt = class extends Ht {
1370
- constructor() {
1371
- super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(), Ha.forEach((e) => {
1372
- let r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), [s, i] = e.split("|"), a = i.split(","), [o, u] = s.split("^");
1373
- o.split(",").forEach((l) => {
1374
- this._schema.set(l.toLowerCase(), r), this._eventSchema.set(l.toLowerCase(), n);
1375
- });
1376
- let p = u && this._schema.get(u.toLowerCase());
1377
- if (p) {
1378
- for (let [l, f] of p) r.set(l, f);
1379
- for (let l of this._eventSchema.get(u.toLowerCase())) n.add(l);
1380
- }
1381
- a.forEach((l) => {
1382
- if (l.length > 0) switch (l[0]) {
1383
- case "*":
1384
- n.add(l.substring(1));
1385
- break;
1386
- case "!":
1387
- r.set(l.substring(1), $a);
1388
- break;
1389
- case "#":
1390
- r.set(l.substring(1), Oa);
1391
- break;
1392
- case "%":
1393
- r.set(l.substring(1), qa);
1394
- break;
1395
- default:
1396
- r.set(l, Ma);
1397
- }
1398
- });
1399
- });
1400
- }
1401
- hasProperty(e, r, n) {
1402
- if (n.some((i) => i.name === Tr.name)) return true;
1403
- if (e.indexOf("-") > -1) {
1404
- if (xr(e) || kr(e)) return false;
1405
- if (n.some((i) => i.name === br.name)) return true;
1406
- }
1407
- return (this._schema.get(e.toLowerCase()) || this._schema.get("unknown")).has(r);
1408
- }
1409
- hasElement(e, r) {
1410
- return r.some((n) => n.name === Tr.name) || e.indexOf("-") > -1 && (xr(e) || kr(e) || r.some((n) => n.name === br.name)) ? true : this._schema.has(e.toLowerCase());
1411
- }
1412
- securityContext(e, r, n) {
1413
- n && (r = this.getMappedPropName(r)), e = e.toLowerCase(), r = r.toLowerCase();
1414
- let s = Br()[e + "|" + r];
1415
- return s || (s = Br()["*|" + r], s || J.NONE);
1416
- }
1417
- getMappedPropName(e) {
1418
- return ks.get(e) ?? e;
1419
- }
1420
- getDefaultComponentElementName() {
1421
- return "ng-component";
1422
- }
1423
- validateProperty(e) {
1424
- return e.toLowerCase().startsWith("on") ? { error: true, msg: `Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
1425
- If '${e}' is a directive input, make sure the directive is imported by the current module.` } : { error: false };
1426
- }
1427
- validateAttribute(e) {
1428
- return e.toLowerCase().startsWith("on") ? { error: true, msg: `Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...` } : { error: false };
1429
- }
1430
- allKnownElementNames() {
1431
- return Array.from(this._schema.keys());
1432
- }
1433
- allKnownAttributesOfElement(e) {
1434
- let r = this._schema.get(e.toLowerCase()) || this._schema.get("unknown");
1435
- return Array.from(r.keys()).map((n) => Va.get(n) ?? n);
1436
- }
1437
- allKnownEventsOfElement(e) {
1438
- return Array.from(this._eventSchema.get(e.toLowerCase()) ?? []);
1439
- }
1440
- normalizeAnimationStyleProperty(e) {
1441
- return _s(e);
1442
- }
1443
- normalizeAnimationStyleValue(e, r, n) {
1444
- let s = "", i = n.toString().trim(), a = null;
1445
- if (Ua(e) && n !== 0 && n !== "0") if (typeof n == "number") s = "px";
1446
- else {
1447
- let o = n.match(/^[+-]?[\d\.]+([a-z]*)$/);
1448
- o && o[1].length == 0 && (a = `Please provide a CSS unit value for ${r}:${n}`);
1449
- }
1450
- return { error: a, value: i + s };
1451
- }
1452
- };
1453
- function Ua(t8) {
1454
- switch (t8) {
1455
- case "width":
1456
- case "height":
1457
- case "minWidth":
1458
- case "minHeight":
1459
- case "maxWidth":
1460
- case "maxHeight":
1461
- case "left":
1462
- case "top":
1463
- case "bottom":
1464
- case "right":
1465
- case "fontSize":
1466
- case "outlineWidth":
1467
- case "outlineOffset":
1468
- case "paddingTop":
1469
- case "paddingLeft":
1470
- case "paddingBottom":
1471
- case "paddingRight":
1472
- case "marginTop":
1473
- case "marginLeft":
1474
- case "marginBottom":
1475
- case "marginRight":
1476
- case "borderRadius":
1477
- case "borderWidth":
1478
- case "borderTopWidth":
1479
- case "borderLeftWidth":
1480
- case "borderRightWidth":
1481
- case "borderBottomWidth":
1482
- case "textIndent":
1483
- return true;
1484
- default:
1485
- return false;
1486
- }
1487
- }
1488
- var m = class {
1489
- constructor({ closedByChildren: e, implicitNamespacePrefix: r, contentType: n = I.PARSABLE_DATA, closedByParent: s = false, isVoid: i = false, ignoreFirstLf: a = false, preventNamespaceInheritance: o = false, canSelfClose: u = false } = {}) {
1490
- this.closedByChildren = {}, this.closedByParent = false, e && e.length > 0 && e.forEach((p) => this.closedByChildren[p] = true), this.isVoid = i, this.closedByParent = s || i, this.implicitNamespacePrefix = r || null, this.contentType = n, this.ignoreFirstLf = a, this.preventNamespaceInheritance = o, this.canSelfClose = u ?? i;
1491
- }
1492
- isClosedByChild(e) {
1493
- return this.isVoid || e.toLowerCase() in this.closedByChildren;
1494
- }
1495
- getContentType(e) {
1496
- return typeof this.contentType == "object" ? (e === void 0 ? void 0 : this.contentType[e]) ?? this.contentType.default : this.contentType;
1497
- }
1498
- };
1499
- var Bs;
1500
- var lt;
1501
- function Ge(t8) {
1502
- return lt || (Bs = new m({ canSelfClose: true }), lt = Object.assign(/* @__PURE__ */ Object.create(null), { base: new m({ isVoid: true }), meta: new m({ isVoid: true }), area: new m({ isVoid: true }), embed: new m({ isVoid: true }), link: new m({ isVoid: true }), img: new m({ isVoid: true }), input: new m({ isVoid: true }), param: new m({ isVoid: true }), hr: new m({ isVoid: true }), br: new m({ isVoid: true }), source: new m({ isVoid: true }), track: new m({ isVoid: true }), wbr: new m({ isVoid: true }), p: new m({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: true }), thead: new m({ closedByChildren: ["tbody", "tfoot"] }), tbody: new m({ closedByChildren: ["tbody", "tfoot"], closedByParent: true }), tfoot: new m({ closedByChildren: ["tbody"], closedByParent: true }), tr: new m({ closedByChildren: ["tr"], closedByParent: true }), td: new m({ closedByChildren: ["td", "th"], closedByParent: true }), th: new m({ closedByChildren: ["td", "th"], closedByParent: true }), col: new m({ isVoid: true }), svg: new m({ implicitNamespacePrefix: "svg" }), foreignObject: new m({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: true }), math: new m({ implicitNamespacePrefix: "math" }), li: new m({ closedByChildren: ["li"], closedByParent: true }), dt: new m({ closedByChildren: ["dt", "dd"] }), dd: new m({ closedByChildren: ["dt", "dd"], closedByParent: true }), rb: new m({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: true }), rt: new m({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: true }), rtc: new m({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: true }), rp: new m({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: true }), optgroup: new m({ closedByChildren: ["optgroup"], closedByParent: true }), option: new m({ closedByChildren: ["option", "optgroup"], closedByParent: true }), pre: new m({ ignoreFirstLf: true }), listing: new m({ ignoreFirstLf: true }), style: new m({ contentType: I.RAW_TEXT }), script: new m({ contentType: I.RAW_TEXT }), title: new m({ contentType: { default: I.ESCAPABLE_RAW_TEXT, svg: I.PARSABLE_DATA } }), textarea: new m({ contentType: I.ESCAPABLE_RAW_TEXT, ignoreFirstLf: true }) }), new Vt().allKnownElementNames().forEach((e) => {
1503
- !lt[e] && We(e) === null && (lt[e] = new m({ canSelfClose: false }));
1504
- })), lt[t8] ?? Bs;
1505
- }
1506
- var oe = class {
1507
- constructor(e, r) {
1508
- this.sourceSpan = e, this.i18n = r;
1509
- }
1510
- };
1511
- var Ut = class extends oe {
1512
- constructor(e, r, n, s) {
1513
- super(r, s), this.value = e, this.tokens = n, this.type = "text";
1514
- }
1515
- visit(e, r) {
1516
- return e.visitText(this, r);
1517
- }
1518
- };
1519
- var Wt = class extends oe {
1520
- constructor(e, r, n, s) {
1521
- super(r, s), this.value = e, this.tokens = n, this.type = "cdata";
1522
- }
1523
- visit(e, r) {
1524
- return e.visitCdata(this, r);
1525
- }
1526
- };
1527
- var zt = class extends oe {
1528
- constructor(e, r, n, s, i, a) {
1529
- super(s, a), this.switchValue = e, this.type = r, this.cases = n, this.switchValueSourceSpan = i;
1530
- }
1531
- visit(e, r) {
1532
- return e.visitExpansion(this, r);
1533
- }
1534
- };
1535
- var Gt = class {
1536
- constructor(e, r, n, s, i) {
1537
- this.value = e, this.expression = r, this.sourceSpan = n, this.valueSourceSpan = s, this.expSourceSpan = i, this.type = "expansionCase";
1538
- }
1539
- visit(e, r) {
1540
- return e.visitExpansionCase(this, r);
1541
- }
1542
- };
1543
- var Yt = class extends oe {
1544
- constructor(e, r, n, s, i, a, o) {
1545
- super(n, o), this.name = e, this.value = r, this.keySpan = s, this.valueSpan = i, this.valueTokens = a, this.type = "attribute";
1546
- }
1547
- visit(e, r) {
1548
- return e.visitAttribute(this, r);
1549
- }
1550
- get nameSpan() {
1551
- return this.keySpan;
1552
- }
1553
- };
1554
- var G = class extends oe {
1555
- constructor(e, r, n, s, i, a = null, o = null, u) {
1556
- super(s, u), this.name = e, this.attrs = r, this.children = n, this.startSourceSpan = i, this.endSourceSpan = a, this.nameSpan = o, this.type = "element";
1557
- }
1558
- visit(e, r) {
1559
- return e.visitElement(this, r);
1560
- }
1561
- };
1562
- var jt = class {
1563
- constructor(e, r) {
1564
- this.value = e, this.sourceSpan = r, this.type = "comment";
1565
- }
1566
- visit(e, r) {
1567
- return e.visitComment(this, r);
1568
- }
1569
- };
1570
- var Kt = class {
1571
- constructor(e, r) {
1572
- this.value = e, this.sourceSpan = r, this.type = "docType";
1573
- }
1574
- visit(e, r) {
1575
- return e.visitDocType(this, r);
1576
- }
1577
- };
1578
- var Z = class extends oe {
1579
- constructor(e, r, n, s, i, a, o = null, u) {
1580
- super(s, u), this.name = e, this.parameters = r, this.children = n, this.nameSpan = i, this.startSourceSpan = a, this.endSourceSpan = o, this.type = "block";
1581
- }
1582
- visit(e, r) {
1583
- return e.visitBlock(this, r);
1584
- }
1585
- };
1586
- var ct = class {
1587
- constructor(e, r) {
1588
- this.expression = e, this.sourceSpan = r, this.type = "blockParameter", this.startSourceSpan = null, this.endSourceSpan = null;
1589
- }
1590
- visit(e, r) {
1591
- return e.visitBlockParameter(this, r);
1592
- }
1593
- };
1594
- var pt = class {
1595
- constructor(e, r, n, s, i) {
1596
- this.name = e, this.value = r, this.sourceSpan = n, this.nameSpan = s, this.valueSpan = i, this.type = "letDeclaration", this.startSourceSpan = null, this.endSourceSpan = null;
1597
- }
1598
- visit(e, r) {
1599
- return e.visitLetDeclaration(this, r);
1600
- }
1601
- };
1602
- function Qt(t8, e, r = null) {
1603
- let n = [], s = t8.visit ? (i) => t8.visit(i, r) || i.visit(t8, r) : (i) => i.visit(t8, r);
1604
- return e.forEach((i) => {
1605
- let a = s(i);
1606
- a && n.push(a);
1607
- }), n;
1608
- }
1609
- var ht = class {
1610
- constructor() {
1611
- }
1612
- visitElement(e, r) {
1613
- this.visitChildren(r, (n) => {
1614
- n(e.attrs), n(e.children);
1615
- });
1616
- }
1617
- visitAttribute(e, r) {
1618
- }
1619
- visitText(e, r) {
1620
- }
1621
- visitCdata(e, r) {
1622
- }
1623
- visitComment(e, r) {
1624
- }
1625
- visitDocType(e, r) {
1626
- }
1627
- visitExpansion(e, r) {
1628
- return this.visitChildren(r, (n) => {
1629
- n(e.cases);
1630
- });
1631
- }
1632
- visitExpansionCase(e, r) {
1633
- }
1634
- visitBlock(e, r) {
1635
- this.visitChildren(r, (n) => {
1636
- n(e.parameters), n(e.children);
1637
- });
1638
- }
1639
- visitBlockParameter(e, r) {
1640
- }
1641
- visitLetDeclaration(e, r) {
1642
- }
1643
- visitChildren(e, r) {
1644
- let n = [], s = this;
1645
- function i(a) {
1646
- a && n.push(Qt(s, a, e));
1647
- }
1648
- return r(i), Array.prototype.concat.apply([], n);
1649
- }
1650
- };
1651
- var Ye = { AElig: "\xC6", AMP: "&", amp: "&", Aacute: "\xC1", Abreve: "\u0102", Acirc: "\xC2", Acy: "\u0410", Afr: "\u{1D504}", Agrave: "\xC0", Alpha: "\u0391", Amacr: "\u0100", And: "\u2A53", Aogon: "\u0104", Aopf: "\u{1D538}", ApplyFunction: "\u2061", af: "\u2061", Aring: "\xC5", angst: "\xC5", Ascr: "\u{1D49C}", Assign: "\u2254", colone: "\u2254", coloneq: "\u2254", Atilde: "\xC3", Auml: "\xC4", Backslash: "\u2216", setminus: "\u2216", setmn: "\u2216", smallsetminus: "\u2216", ssetmn: "\u2216", Barv: "\u2AE7", Barwed: "\u2306", doublebarwedge: "\u2306", Bcy: "\u0411", Because: "\u2235", becaus: "\u2235", because: "\u2235", Bernoullis: "\u212C", Bscr: "\u212C", bernou: "\u212C", Beta: "\u0392", Bfr: "\u{1D505}", Bopf: "\u{1D539}", Breve: "\u02D8", breve: "\u02D8", Bumpeq: "\u224E", HumpDownHump: "\u224E", bump: "\u224E", CHcy: "\u0427", COPY: "\xA9", copy: "\xA9", Cacute: "\u0106", Cap: "\u22D2", CapitalDifferentialD: "\u2145", DD: "\u2145", Cayleys: "\u212D", Cfr: "\u212D", Ccaron: "\u010C", Ccedil: "\xC7", Ccirc: "\u0108", Cconint: "\u2230", Cdot: "\u010A", Cedilla: "\xB8", cedil: "\xB8", CenterDot: "\xB7", centerdot: "\xB7", middot: "\xB7", Chi: "\u03A7", CircleDot: "\u2299", odot: "\u2299", CircleMinus: "\u2296", ominus: "\u2296", CirclePlus: "\u2295", oplus: "\u2295", CircleTimes: "\u2297", otimes: "\u2297", ClockwiseContourIntegral: "\u2232", cwconint: "\u2232", CloseCurlyDoubleQuote: "\u201D", rdquo: "\u201D", rdquor: "\u201D", CloseCurlyQuote: "\u2019", rsquo: "\u2019", rsquor: "\u2019", Colon: "\u2237", Proportion: "\u2237", Colone: "\u2A74", Congruent: "\u2261", equiv: "\u2261", Conint: "\u222F", DoubleContourIntegral: "\u222F", ContourIntegral: "\u222E", conint: "\u222E", oint: "\u222E", Copf: "\u2102", complexes: "\u2102", Coproduct: "\u2210", coprod: "\u2210", CounterClockwiseContourIntegral: "\u2233", awconint: "\u2233", Cross: "\u2A2F", Cscr: "\u{1D49E}", Cup: "\u22D3", CupCap: "\u224D", asympeq: "\u224D", DDotrahd: "\u2911", DJcy: "\u0402", DScy: "\u0405", DZcy: "\u040F", Dagger: "\u2021", ddagger: "\u2021", Darr: "\u21A1", Dashv: "\u2AE4", DoubleLeftTee: "\u2AE4", Dcaron: "\u010E", Dcy: "\u0414", Del: "\u2207", nabla: "\u2207", Delta: "\u0394", Dfr: "\u{1D507}", DiacriticalAcute: "\xB4", acute: "\xB4", DiacriticalDot: "\u02D9", dot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", dblac: "\u02DD", DiacriticalGrave: "`", grave: "`", DiacriticalTilde: "\u02DC", tilde: "\u02DC", Diamond: "\u22C4", diam: "\u22C4", diamond: "\u22C4", DifferentialD: "\u2146", dd: "\u2146", Dopf: "\u{1D53B}", Dot: "\xA8", DoubleDot: "\xA8", die: "\xA8", uml: "\xA8", DotDot: "\u20DC", DotEqual: "\u2250", doteq: "\u2250", esdot: "\u2250", DoubleDownArrow: "\u21D3", Downarrow: "\u21D3", dArr: "\u21D3", DoubleLeftArrow: "\u21D0", Leftarrow: "\u21D0", lArr: "\u21D0", DoubleLeftRightArrow: "\u21D4", Leftrightarrow: "\u21D4", hArr: "\u21D4", iff: "\u21D4", DoubleLongLeftArrow: "\u27F8", Longleftarrow: "\u27F8", xlArr: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", Longleftrightarrow: "\u27FA", xhArr: "\u27FA", DoubleLongRightArrow: "\u27F9", Longrightarrow: "\u27F9", xrArr: "\u27F9", DoubleRightArrow: "\u21D2", Implies: "\u21D2", Rightarrow: "\u21D2", rArr: "\u21D2", DoubleRightTee: "\u22A8", vDash: "\u22A8", DoubleUpArrow: "\u21D1", Uparrow: "\u21D1", uArr: "\u21D1", DoubleUpDownArrow: "\u21D5", Updownarrow: "\u21D5", vArr: "\u21D5", DoubleVerticalBar: "\u2225", par: "\u2225", parallel: "\u2225", shortparallel: "\u2225", spar: "\u2225", DownArrow: "\u2193", ShortDownArrow: "\u2193", darr: "\u2193", downarrow: "\u2193", DownArrowBar: "\u2913", DownArrowUpArrow: "\u21F5", duarr: "\u21F5", DownBreve: "\u0311", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVector: "\u21BD", leftharpoondown: "\u21BD", lhard: "\u21BD", DownLeftVectorBar: "\u2956", DownRightTeeVector: "\u295F", DownRightVector: "\u21C1", rhard: "\u21C1", rightharpoondown: "\u21C1", DownRightVectorBar: "\u2957", DownTee: "\u22A4", top: "\u22A4", DownTeeArrow: "\u21A7", mapstodown: "\u21A7", Dscr: "\u{1D49F}", Dstrok: "\u0110", ENG: "\u014A", ETH: "\xD0", Eacute: "\xC9", Ecaron: "\u011A", Ecirc: "\xCA", Ecy: "\u042D", Edot: "\u0116", Efr: "\u{1D508}", Egrave: "\xC8", Element: "\u2208", in: "\u2208", isin: "\u2208", isinv: "\u2208", Emacr: "\u0112", EmptySmallSquare: "\u25FB", EmptyVerySmallSquare: "\u25AB", Eogon: "\u0118", Eopf: "\u{1D53C}", Epsilon: "\u0395", Equal: "\u2A75", EqualTilde: "\u2242", eqsim: "\u2242", esim: "\u2242", Equilibrium: "\u21CC", rightleftharpoons: "\u21CC", rlhar: "\u21CC", Escr: "\u2130", expectation: "\u2130", Esim: "\u2A73", Eta: "\u0397", Euml: "\xCB", Exists: "\u2203", exist: "\u2203", ExponentialE: "\u2147", ee: "\u2147", exponentiale: "\u2147", Fcy: "\u0424", Ffr: "\u{1D509}", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", blacksquare: "\u25AA", squarf: "\u25AA", squf: "\u25AA", Fopf: "\u{1D53D}", ForAll: "\u2200", forall: "\u2200", Fouriertrf: "\u2131", Fscr: "\u2131", GJcy: "\u0403", GT: ">", gt: ">", Gamma: "\u0393", Gammad: "\u03DC", Gbreve: "\u011E", Gcedil: "\u0122", Gcirc: "\u011C", Gcy: "\u0413", Gdot: "\u0120", Gfr: "\u{1D50A}", Gg: "\u22D9", ggg: "\u22D9", Gopf: "\u{1D53E}", GreaterEqual: "\u2265", ge: "\u2265", geq: "\u2265", GreaterEqualLess: "\u22DB", gel: "\u22DB", gtreqless: "\u22DB", GreaterFullEqual: "\u2267", gE: "\u2267", geqq: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", gl: "\u2277", gtrless: "\u2277", GreaterSlantEqual: "\u2A7E", geqslant: "\u2A7E", ges: "\u2A7E", GreaterTilde: "\u2273", gsim: "\u2273", gtrsim: "\u2273", Gscr: "\u{1D4A2}", Gt: "\u226B", NestedGreaterGreater: "\u226B", gg: "\u226B", HARDcy: "\u042A", Hacek: "\u02C7", caron: "\u02C7", Hat: "^", Hcirc: "\u0124", Hfr: "\u210C", Poincareplane: "\u210C", HilbertSpace: "\u210B", Hscr: "\u210B", hamilt: "\u210B", Hopf: "\u210D", quaternions: "\u210D", HorizontalLine: "\u2500", boxh: "\u2500", Hstrok: "\u0126", HumpEqual: "\u224F", bumpe: "\u224F", bumpeq: "\u224F", IEcy: "\u0415", IJlig: "\u0132", IOcy: "\u0401", Iacute: "\xCD", Icirc: "\xCE", Icy: "\u0418", Idot: "\u0130", Ifr: "\u2111", Im: "\u2111", image: "\u2111", imagpart: "\u2111", Igrave: "\xCC", Imacr: "\u012A", ImaginaryI: "\u2148", ii: "\u2148", Int: "\u222C", Integral: "\u222B", int: "\u222B", Intersection: "\u22C2", bigcap: "\u22C2", xcap: "\u22C2", InvisibleComma: "\u2063", ic: "\u2063", InvisibleTimes: "\u2062", it: "\u2062", Iogon: "\u012E", Iopf: "\u{1D540}", Iota: "\u0399", Iscr: "\u2110", imagline: "\u2110", Itilde: "\u0128", Iukcy: "\u0406", Iuml: "\xCF", Jcirc: "\u0134", Jcy: "\u0419", Jfr: "\u{1D50D}", Jopf: "\u{1D541}", Jscr: "\u{1D4A5}", Jsercy: "\u0408", Jukcy: "\u0404", KHcy: "\u0425", KJcy: "\u040C", Kappa: "\u039A", Kcedil: "\u0136", Kcy: "\u041A", Kfr: "\u{1D50E}", Kopf: "\u{1D542}", Kscr: "\u{1D4A6}", LJcy: "\u0409", LT: "<", lt: "<", Lacute: "\u0139", Lambda: "\u039B", Lang: "\u27EA", Laplacetrf: "\u2112", Lscr: "\u2112", lagran: "\u2112", Larr: "\u219E", twoheadleftarrow: "\u219E", Lcaron: "\u013D", Lcedil: "\u013B", Lcy: "\u041B", LeftAngleBracket: "\u27E8", lang: "\u27E8", langle: "\u27E8", LeftArrow: "\u2190", ShortLeftArrow: "\u2190", larr: "\u2190", leftarrow: "\u2190", slarr: "\u2190", LeftArrowBar: "\u21E4", larrb: "\u21E4", LeftArrowRightArrow: "\u21C6", leftrightarrows: "\u21C6", lrarr: "\u21C6", LeftCeiling: "\u2308", lceil: "\u2308", LeftDoubleBracket: "\u27E6", lobrk: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVector: "\u21C3", dharl: "\u21C3", downharpoonleft: "\u21C3", LeftDownVectorBar: "\u2959", LeftFloor: "\u230A", lfloor: "\u230A", LeftRightArrow: "\u2194", harr: "\u2194", leftrightarrow: "\u2194", LeftRightVector: "\u294E", LeftTee: "\u22A3", dashv: "\u22A3", LeftTeeArrow: "\u21A4", mapstoleft: "\u21A4", LeftTeeVector: "\u295A", LeftTriangle: "\u22B2", vartriangleleft: "\u22B2", vltri: "\u22B2", LeftTriangleBar: "\u29CF", LeftTriangleEqual: "\u22B4", ltrie: "\u22B4", trianglelefteq: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVector: "\u21BF", uharl: "\u21BF", upharpoonleft: "\u21BF", LeftUpVectorBar: "\u2958", LeftVector: "\u21BC", leftharpoonup: "\u21BC", lharu: "\u21BC", LeftVectorBar: "\u2952", LessEqualGreater: "\u22DA", leg: "\u22DA", lesseqgtr: "\u22DA", LessFullEqual: "\u2266", lE: "\u2266", leqq: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", lg: "\u2276", LessLess: "\u2AA1", LessSlantEqual: "\u2A7D", leqslant: "\u2A7D", les: "\u2A7D", LessTilde: "\u2272", lesssim: "\u2272", lsim: "\u2272", Lfr: "\u{1D50F}", Ll: "\u22D8", Lleftarrow: "\u21DA", lAarr: "\u21DA", Lmidot: "\u013F", LongLeftArrow: "\u27F5", longleftarrow: "\u27F5", xlarr: "\u27F5", LongLeftRightArrow: "\u27F7", longleftrightarrow: "\u27F7", xharr: "\u27F7", LongRightArrow: "\u27F6", longrightarrow: "\u27F6", xrarr: "\u27F6", Lopf: "\u{1D543}", LowerLeftArrow: "\u2199", swarr: "\u2199", swarrow: "\u2199", LowerRightArrow: "\u2198", searr: "\u2198", searrow: "\u2198", Lsh: "\u21B0", lsh: "\u21B0", Lstrok: "\u0141", Lt: "\u226A", NestedLessLess: "\u226A", ll: "\u226A", Map: "\u2905", Mcy: "\u041C", MediumSpace: "\u205F", Mellintrf: "\u2133", Mscr: "\u2133", phmmat: "\u2133", Mfr: "\u{1D510}", MinusPlus: "\u2213", mnplus: "\u2213", mp: "\u2213", Mopf: "\u{1D544}", Mu: "\u039C", NJcy: "\u040A", Nacute: "\u0143", Ncaron: "\u0147", Ncedil: "\u0145", Ncy: "\u041D", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", ZeroWidthSpace: "\u200B", NewLine: `
1652
- `, Nfr: "\u{1D511}", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nbsp: "\xA0", Nopf: "\u2115", naturals: "\u2115", Not: "\u2AEC", NotCongruent: "\u2262", nequiv: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", npar: "\u2226", nparallel: "\u2226", nshortparallel: "\u2226", nspar: "\u2226", NotElement: "\u2209", notin: "\u2209", notinva: "\u2209", NotEqual: "\u2260", ne: "\u2260", NotEqualTilde: "\u2242\u0338", nesim: "\u2242\u0338", NotExists: "\u2204", nexist: "\u2204", nexists: "\u2204", NotGreater: "\u226F", ngt: "\u226F", ngtr: "\u226F", NotGreaterEqual: "\u2271", nge: "\u2271", ngeq: "\u2271", NotGreaterFullEqual: "\u2267\u0338", ngE: "\u2267\u0338", ngeqq: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", nGtv: "\u226B\u0338", NotGreaterLess: "\u2279", ntgl: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", NotGreaterTilde: "\u2275", ngsim: "\u2275", NotHumpDownHump: "\u224E\u0338", nbump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", nbumpe: "\u224F\u0338", NotLeftTriangle: "\u22EA", nltri: "\u22EA", ntriangleleft: "\u22EA", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangleEqual: "\u22EC", nltrie: "\u22EC", ntrianglelefteq: "\u22EC", NotLess: "\u226E", nless: "\u226E", nlt: "\u226E", NotLessEqual: "\u2270", nle: "\u2270", nleq: "\u2270", NotLessGreater: "\u2278", ntlg: "\u2278", NotLessLess: "\u226A\u0338", nLtv: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", NotLessTilde: "\u2274", nlsim: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", NotPrecedes: "\u2280", npr: "\u2280", nprec: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", npre: "\u2AAF\u0338", npreceq: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", nprcue: "\u22E0", NotReverseElement: "\u220C", notni: "\u220C", notniva: "\u220C", NotRightTriangle: "\u22EB", nrtri: "\u22EB", ntriangleright: "\u22EB", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangleEqual: "\u22ED", nrtrie: "\u22ED", ntrianglerighteq: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", nsqsube: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", nsqsupe: "\u22E3", NotSubset: "\u2282\u20D2", nsubset: "\u2282\u20D2", vnsub: "\u2282\u20D2", NotSubsetEqual: "\u2288", nsube: "\u2288", nsubseteq: "\u2288", NotSucceeds: "\u2281", nsc: "\u2281", nsucc: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", nsce: "\u2AB0\u0338", nsucceq: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", nsccue: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", nsupset: "\u2283\u20D2", vnsup: "\u2283\u20D2", NotSupersetEqual: "\u2289", nsupe: "\u2289", nsupseteq: "\u2289", NotTilde: "\u2241", nsim: "\u2241", NotTildeEqual: "\u2244", nsime: "\u2244", nsimeq: "\u2244", NotTildeFullEqual: "\u2247", ncong: "\u2247", NotTildeTilde: "\u2249", nap: "\u2249", napprox: "\u2249", NotVerticalBar: "\u2224", nmid: "\u2224", nshortmid: "\u2224", nsmid: "\u2224", Nscr: "\u{1D4A9}", Ntilde: "\xD1", Nu: "\u039D", OElig: "\u0152", Oacute: "\xD3", Ocirc: "\xD4", Ocy: "\u041E", Odblac: "\u0150", Ofr: "\u{1D512}", Ograve: "\xD2", Omacr: "\u014C", Omega: "\u03A9", ohm: "\u03A9", Omicron: "\u039F", Oopf: "\u{1D546}", OpenCurlyDoubleQuote: "\u201C", ldquo: "\u201C", OpenCurlyQuote: "\u2018", lsquo: "\u2018", Or: "\u2A54", Oscr: "\u{1D4AA}", Oslash: "\xD8", Otilde: "\xD5", Otimes: "\u2A37", Ouml: "\xD6", OverBar: "\u203E", oline: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", tbrk: "\u23B4", OverParenthesis: "\u23DC", PartialD: "\u2202", part: "\u2202", Pcy: "\u041F", Pfr: "\u{1D513}", Phi: "\u03A6", Pi: "\u03A0", PlusMinus: "\xB1", plusmn: "\xB1", pm: "\xB1", Popf: "\u2119", primes: "\u2119", Pr: "\u2ABB", Precedes: "\u227A", pr: "\u227A", prec: "\u227A", PrecedesEqual: "\u2AAF", pre: "\u2AAF", preceq: "\u2AAF", PrecedesSlantEqual: "\u227C", prcue: "\u227C", preccurlyeq: "\u227C", PrecedesTilde: "\u227E", precsim: "\u227E", prsim: "\u227E", Prime: "\u2033", Product: "\u220F", prod: "\u220F", Proportional: "\u221D", prop: "\u221D", propto: "\u221D", varpropto: "\u221D", vprop: "\u221D", Pscr: "\u{1D4AB}", Psi: "\u03A8", QUOT: '"', quot: '"', Qfr: "\u{1D514}", Qopf: "\u211A", rationals: "\u211A", Qscr: "\u{1D4AC}", RBarr: "\u2910", drbkarow: "\u2910", REG: "\xAE", circledR: "\xAE", reg: "\xAE", Racute: "\u0154", Rang: "\u27EB", Rarr: "\u21A0", twoheadrightarrow: "\u21A0", Rarrtl: "\u2916", Rcaron: "\u0158", Rcedil: "\u0156", Rcy: "\u0420", Re: "\u211C", Rfr: "\u211C", real: "\u211C", realpart: "\u211C", ReverseElement: "\u220B", SuchThat: "\u220B", ni: "\u220B", niv: "\u220B", ReverseEquilibrium: "\u21CB", leftrightharpoons: "\u21CB", lrhar: "\u21CB", ReverseUpEquilibrium: "\u296F", duhar: "\u296F", Rho: "\u03A1", RightAngleBracket: "\u27E9", rang: "\u27E9", rangle: "\u27E9", RightArrow: "\u2192", ShortRightArrow: "\u2192", rarr: "\u2192", rightarrow: "\u2192", srarr: "\u2192", RightArrowBar: "\u21E5", rarrb: "\u21E5", RightArrowLeftArrow: "\u21C4", rightleftarrows: "\u21C4", rlarr: "\u21C4", RightCeiling: "\u2309", rceil: "\u2309", RightDoubleBracket: "\u27E7", robrk: "\u27E7", RightDownTeeVector: "\u295D", RightDownVector: "\u21C2", dharr: "\u21C2", downharpoonright: "\u21C2", RightDownVectorBar: "\u2955", RightFloor: "\u230B", rfloor: "\u230B", RightTee: "\u22A2", vdash: "\u22A2", RightTeeArrow: "\u21A6", map: "\u21A6", mapsto: "\u21A6", RightTeeVector: "\u295B", RightTriangle: "\u22B3", vartriangleright: "\u22B3", vrtri: "\u22B3", RightTriangleBar: "\u29D0", RightTriangleEqual: "\u22B5", rtrie: "\u22B5", trianglerighteq: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVector: "\u21BE", uharr: "\u21BE", upharpoonright: "\u21BE", RightUpVectorBar: "\u2954", RightVector: "\u21C0", rharu: "\u21C0", rightharpoonup: "\u21C0", RightVectorBar: "\u2953", Ropf: "\u211D", reals: "\u211D", RoundImplies: "\u2970", Rrightarrow: "\u21DB", rAarr: "\u21DB", Rscr: "\u211B", realine: "\u211B", Rsh: "\u21B1", rsh: "\u21B1", RuleDelayed: "\u29F4", SHCHcy: "\u0429", SHcy: "\u0428", SOFTcy: "\u042C", Sacute: "\u015A", Sc: "\u2ABC", Scaron: "\u0160", Scedil: "\u015E", Scirc: "\u015C", Scy: "\u0421", Sfr: "\u{1D516}", ShortUpArrow: "\u2191", UpArrow: "\u2191", uarr: "\u2191", uparrow: "\u2191", Sigma: "\u03A3", SmallCircle: "\u2218", compfn: "\u2218", Sopf: "\u{1D54A}", Sqrt: "\u221A", radic: "\u221A", Square: "\u25A1", squ: "\u25A1", square: "\u25A1", SquareIntersection: "\u2293", sqcap: "\u2293", SquareSubset: "\u228F", sqsub: "\u228F", sqsubset: "\u228F", SquareSubsetEqual: "\u2291", sqsube: "\u2291", sqsubseteq: "\u2291", SquareSuperset: "\u2290", sqsup: "\u2290", sqsupset: "\u2290", SquareSupersetEqual: "\u2292", sqsupe: "\u2292", sqsupseteq: "\u2292", SquareUnion: "\u2294", sqcup: "\u2294", Sscr: "\u{1D4AE}", Star: "\u22C6", sstarf: "\u22C6", Sub: "\u22D0", Subset: "\u22D0", SubsetEqual: "\u2286", sube: "\u2286", subseteq: "\u2286", Succeeds: "\u227B", sc: "\u227B", succ: "\u227B", SucceedsEqual: "\u2AB0", sce: "\u2AB0", succeq: "\u2AB0", SucceedsSlantEqual: "\u227D", sccue: "\u227D", succcurlyeq: "\u227D", SucceedsTilde: "\u227F", scsim: "\u227F", succsim: "\u227F", Sum: "\u2211", sum: "\u2211", Sup: "\u22D1", Supset: "\u22D1", Superset: "\u2283", sup: "\u2283", supset: "\u2283", SupersetEqual: "\u2287", supe: "\u2287", supseteq: "\u2287", THORN: "\xDE", TRADE: "\u2122", trade: "\u2122", TSHcy: "\u040B", TScy: "\u0426", Tab: " ", Tau: "\u03A4", Tcaron: "\u0164", Tcedil: "\u0162", Tcy: "\u0422", Tfr: "\u{1D517}", Therefore: "\u2234", there4: "\u2234", therefore: "\u2234", Theta: "\u0398", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", Tilde: "\u223C", sim: "\u223C", thicksim: "\u223C", thksim: "\u223C", TildeEqual: "\u2243", sime: "\u2243", simeq: "\u2243", TildeFullEqual: "\u2245", cong: "\u2245", TildeTilde: "\u2248", ap: "\u2248", approx: "\u2248", asymp: "\u2248", thickapprox: "\u2248", thkap: "\u2248", Topf: "\u{1D54B}", TripleDot: "\u20DB", tdot: "\u20DB", Tscr: "\u{1D4AF}", Tstrok: "\u0166", Uacute: "\xDA", Uarr: "\u219F", Uarrocir: "\u2949", Ubrcy: "\u040E", Ubreve: "\u016C", Ucirc: "\xDB", Ucy: "\u0423", Udblac: "\u0170", Ufr: "\u{1D518}", Ugrave: "\xD9", Umacr: "\u016A", UnderBar: "_", lowbar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", bbrk: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", bigcup: "\u22C3", xcup: "\u22C3", UnionPlus: "\u228E", uplus: "\u228E", Uogon: "\u0172", Uopf: "\u{1D54C}", UpArrowBar: "\u2912", UpArrowDownArrow: "\u21C5", udarr: "\u21C5", UpDownArrow: "\u2195", updownarrow: "\u2195", varr: "\u2195", UpEquilibrium: "\u296E", udhar: "\u296E", UpTee: "\u22A5", bot: "\u22A5", bottom: "\u22A5", perp: "\u22A5", UpTeeArrow: "\u21A5", mapstoup: "\u21A5", UpperLeftArrow: "\u2196", nwarr: "\u2196", nwarrow: "\u2196", UpperRightArrow: "\u2197", nearr: "\u2197", nearrow: "\u2197", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", Uring: "\u016E", Uscr: "\u{1D4B0}", Utilde: "\u0168", Uuml: "\xDC", VDash: "\u22AB", Vbar: "\u2AEB", Vcy: "\u0412", Vdash: "\u22A9", Vdashl: "\u2AE6", Vee: "\u22C1", bigvee: "\u22C1", xvee: "\u22C1", Verbar: "\u2016", Vert: "\u2016", VerticalBar: "\u2223", mid: "\u2223", shortmid: "\u2223", smid: "\u2223", VerticalLine: "|", verbar: "|", vert: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", wr: "\u2240", wreath: "\u2240", VeryThinSpace: "\u200A", hairsp: "\u200A", Vfr: "\u{1D519}", Vopf: "\u{1D54D}", Vscr: "\u{1D4B1}", Vvdash: "\u22AA", Wcirc: "\u0174", Wedge: "\u22C0", bigwedge: "\u22C0", xwedge: "\u22C0", Wfr: "\u{1D51A}", Wopf: "\u{1D54E}", Wscr: "\u{1D4B2}", Xfr: "\u{1D51B}", Xi: "\u039E", Xopf: "\u{1D54F}", Xscr: "\u{1D4B3}", YAcy: "\u042F", YIcy: "\u0407", YUcy: "\u042E", Yacute: "\xDD", Ycirc: "\u0176", Ycy: "\u042B", Yfr: "\u{1D51C}", Yopf: "\u{1D550}", Yscr: "\u{1D4B4}", Yuml: "\u0178", ZHcy: "\u0416", Zacute: "\u0179", Zcaron: "\u017D", Zcy: "\u0417", Zdot: "\u017B", Zeta: "\u0396", Zfr: "\u2128", zeetrf: "\u2128", Zopf: "\u2124", integers: "\u2124", Zscr: "\u{1D4B5}", aacute: "\xE1", abreve: "\u0103", ac: "\u223E", mstpos: "\u223E", acE: "\u223E\u0333", acd: "\u223F", acirc: "\xE2", acy: "\u0430", aelig: "\xE6", afr: "\u{1D51E}", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", alpha: "\u03B1", amacr: "\u0101", amalg: "\u2A3F", and: "\u2227", wedge: "\u2227", andand: "\u2A55", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", angle: "\u2220", ange: "\u29A4", angmsd: "\u2221", measuredangle: "\u2221", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angzarr: "\u237C", aogon: "\u0105", aopf: "\u{1D552}", apE: "\u2A70", apacir: "\u2A6F", ape: "\u224A", approxeq: "\u224A", apid: "\u224B", apos: "'", aring: "\xE5", ascr: "\u{1D4B6}", ast: "*", midast: "*", atilde: "\xE3", auml: "\xE4", awint: "\u2A11", bNot: "\u2AED", backcong: "\u224C", bcong: "\u224C", backepsilon: "\u03F6", bepsi: "\u03F6", backprime: "\u2035", bprime: "\u2035", backsim: "\u223D", bsim: "\u223D", backsimeq: "\u22CD", bsime: "\u22CD", barvee: "\u22BD", barwed: "\u2305", barwedge: "\u2305", bbrktbrk: "\u23B6", bcy: "\u0431", bdquo: "\u201E", ldquor: "\u201E", bemptyv: "\u29B0", beta: "\u03B2", beth: "\u2136", between: "\u226C", twixt: "\u226C", bfr: "\u{1D51F}", bigcirc: "\u25EF", xcirc: "\u25EF", bigodot: "\u2A00", xodot: "\u2A00", bigoplus: "\u2A01", xoplus: "\u2A01", bigotimes: "\u2A02", xotime: "\u2A02", bigsqcup: "\u2A06", xsqcup: "\u2A06", bigstar: "\u2605", starf: "\u2605", bigtriangledown: "\u25BD", xdtri: "\u25BD", bigtriangleup: "\u25B3", xutri: "\u25B3", biguplus: "\u2A04", xuplus: "\u2A04", bkarow: "\u290D", rbarr: "\u290D", blacklozenge: "\u29EB", lozf: "\u29EB", blacktriangle: "\u25B4", utrif: "\u25B4", blacktriangledown: "\u25BE", dtrif: "\u25BE", blacktriangleleft: "\u25C2", ltrif: "\u25C2", blacktriangleright: "\u25B8", rtrif: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bnot: "\u2310", bopf: "\u{1D553}", bowtie: "\u22C8", boxDL: "\u2557", boxDR: "\u2554", boxDl: "\u2556", boxDr: "\u2553", boxH: "\u2550", boxHD: "\u2566", boxHU: "\u2569", boxHd: "\u2564", boxHu: "\u2567", boxUL: "\u255D", boxUR: "\u255A", boxUl: "\u255C", boxUr: "\u2559", boxV: "\u2551", boxVH: "\u256C", boxVL: "\u2563", boxVR: "\u2560", boxVh: "\u256B", boxVl: "\u2562", boxVr: "\u255F", boxbox: "\u29C9", boxdL: "\u2555", boxdR: "\u2552", boxdl: "\u2510", boxdr: "\u250C", boxhD: "\u2565", boxhU: "\u2568", boxhd: "\u252C", boxhu: "\u2534", boxminus: "\u229F", minusb: "\u229F", boxplus: "\u229E", plusb: "\u229E", boxtimes: "\u22A0", timesb: "\u22A0", boxuL: "\u255B", boxuR: "\u2558", boxul: "\u2518", boxur: "\u2514", boxv: "\u2502", boxvH: "\u256A", boxvL: "\u2561", boxvR: "\u255E", boxvh: "\u253C", boxvl: "\u2524", boxvr: "\u251C", brvbar: "\xA6", bscr: "\u{1D4B7}", bsemi: "\u204F", bsol: "\\", bsolb: "\u29C5", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bumpE: "\u2AAE", cacute: "\u0107", cap: "\u2229", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", capcup: "\u2A47", capdot: "\u2A40", caps: "\u2229\uFE00", caret: "\u2041", ccaps: "\u2A4D", ccaron: "\u010D", ccedil: "\xE7", ccirc: "\u0109", ccups: "\u2A4C", ccupssm: "\u2A50", cdot: "\u010B", cemptyv: "\u29B2", cent: "\xA2", cfr: "\u{1D520}", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", chi: "\u03C7", cir: "\u25CB", cirE: "\u29C3", circ: "\u02C6", circeq: "\u2257", cire: "\u2257", circlearrowleft: "\u21BA", olarr: "\u21BA", circlearrowright: "\u21BB", orarr: "\u21BB", circledS: "\u24C8", oS: "\u24C8", circledast: "\u229B", oast: "\u229B", circledcirc: "\u229A", ocir: "\u229A", circleddash: "\u229D", odash: "\u229D", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", clubs: "\u2663", clubsuit: "\u2663", colon: ":", comma: ",", commat: "@", comp: "\u2201", complement: "\u2201", congdot: "\u2A6D", copf: "\u{1D554}", copysr: "\u2117", crarr: "\u21B5", cross: "\u2717", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", curlyeqprec: "\u22DE", cuesc: "\u22DF", curlyeqsucc: "\u22DF", cularr: "\u21B6", curvearrowleft: "\u21B6", cularrp: "\u293D", cup: "\u222A", cupbrcap: "\u2A48", cupcap: "\u2A46", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curvearrowright: "\u21B7", curarrm: "\u293C", curlyvee: "\u22CE", cuvee: "\u22CE", curlywedge: "\u22CF", cuwed: "\u22CF", curren: "\xA4", cwint: "\u2231", cylcty: "\u232D", dHar: "\u2965", dagger: "\u2020", daleth: "\u2138", dash: "\u2010", hyphen: "\u2010", dbkarow: "\u290F", rBarr: "\u290F", dcaron: "\u010F", dcy: "\u0434", ddarr: "\u21CA", downdownarrows: "\u21CA", ddotseq: "\u2A77", eDDot: "\u2A77", deg: "\xB0", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", dfr: "\u{1D521}", diamondsuit: "\u2666", diams: "\u2666", digamma: "\u03DD", gammad: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", djcy: "\u0452", dlcorn: "\u231E", llcorner: "\u231E", dlcrop: "\u230D", dollar: "$", dopf: "\u{1D555}", doteqdot: "\u2251", eDot: "\u2251", dotminus: "\u2238", minusd: "\u2238", dotplus: "\u2214", plusdo: "\u2214", dotsquare: "\u22A1", sdotb: "\u22A1", drcorn: "\u231F", lrcorner: "\u231F", drcrop: "\u230C", dscr: "\u{1D4B9}", dscy: "\u0455", dsol: "\u29F6", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", triangledown: "\u25BF", dwangle: "\u29A6", dzcy: "\u045F", dzigrarr: "\u27FF", eacute: "\xE9", easter: "\u2A6E", ecaron: "\u011B", ecir: "\u2256", eqcirc: "\u2256", ecirc: "\xEA", ecolon: "\u2255", eqcolon: "\u2255", ecy: "\u044D", edot: "\u0117", efDot: "\u2252", fallingdotseq: "\u2252", efr: "\u{1D522}", eg: "\u2A9A", egrave: "\xE8", egs: "\u2A96", eqslantgtr: "\u2A96", egsdot: "\u2A98", el: "\u2A99", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", eqslantless: "\u2A95", elsdot: "\u2A97", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", emptyv: "\u2205", varnothing: "\u2205", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", eng: "\u014B", ensp: "\u2002", eogon: "\u0119", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", epsilon: "\u03B5", epsiv: "\u03F5", straightepsilon: "\u03F5", varepsilon: "\u03F5", equals: "=", equest: "\u225F", questeq: "\u225F", equivDD: "\u2A78", eqvparsl: "\u29E5", erDot: "\u2253", risingdotseq: "\u2253", erarr: "\u2971", escr: "\u212F", eta: "\u03B7", eth: "\xF0", euml: "\xEB", euro: "\u20AC", excl: "!", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", ffr: "\u{1D523}", filig: "\uFB01", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", fopf: "\u{1D557}", fork: "\u22D4", pitchfork: "\u22D4", forkv: "\u2AD9", fpartint: "\u2A0D", frac12: "\xBD", half: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", sfrown: "\u2322", fscr: "\u{1D4BB}", gEl: "\u2A8C", gtreqqless: "\u2A8C", gacute: "\u01F5", gamma: "\u03B3", gap: "\u2A86", gtrapprox: "\u2A86", gbreve: "\u011F", gcirc: "\u011D", gcy: "\u0433", gdot: "\u0121", gescc: "\u2AA9", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", gfr: "\u{1D524}", gimel: "\u2137", gjcy: "\u0453", glE: "\u2A92", gla: "\u2AA5", glj: "\u2AA4", gnE: "\u2269", gneqq: "\u2269", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gneq: "\u2A88", gnsim: "\u22E7", gopf: "\u{1D558}", gscr: "\u210A", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gtdot: "\u22D7", gtrdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrarr: "\u2978", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", hardcy: "\u044A", harrcir: "\u2948", harrw: "\u21AD", leftrightsquigarrow: "\u21AD", hbar: "\u210F", hslash: "\u210F", planck: "\u210F", plankv: "\u210F", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", mldr: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", hksearow: "\u2925", searhk: "\u2925", hkswarow: "\u2926", swarhk: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", larrhk: "\u21A9", hookrightarrow: "\u21AA", rarrhk: "\u21AA", hopf: "\u{1D559}", horbar: "\u2015", hscr: "\u{1D4BD}", hstrok: "\u0127", hybull: "\u2043", iacute: "\xED", icirc: "\xEE", icy: "\u0438", iecy: "\u0435", iexcl: "\xA1", ifr: "\u{1D526}", igrave: "\xEC", iiiint: "\u2A0C", qint: "\u2A0C", iiint: "\u222D", tint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", ijlig: "\u0133", imacr: "\u012B", imath: "\u0131", inodot: "\u0131", imof: "\u22B7", imped: "\u01B5", incare: "\u2105", infin: "\u221E", infintie: "\u29DD", intcal: "\u22BA", intercal: "\u22BA", intlarhk: "\u2A17", intprod: "\u2A3C", iprod: "\u2A3C", iocy: "\u0451", iogon: "\u012F", iopf: "\u{1D55A}", iota: "\u03B9", iquest: "\xBF", iscr: "\u{1D4BE}", isinE: "\u22F9", isindot: "\u22F5", isins: "\u22F4", isinsv: "\u22F3", itilde: "\u0129", iukcy: "\u0456", iuml: "\xEF", jcirc: "\u0135", jcy: "\u0439", jfr: "\u{1D527}", jmath: "\u0237", jopf: "\u{1D55B}", jscr: "\u{1D4BF}", jsercy: "\u0458", jukcy: "\u0454", kappa: "\u03BA", kappav: "\u03F0", varkappa: "\u03F0", kcedil: "\u0137", kcy: "\u043A", kfr: "\u{1D528}", kgreen: "\u0138", khcy: "\u0445", kjcy: "\u045C", kopf: "\u{1D55C}", kscr: "\u{1D4C0}", lAtail: "\u291B", lBarr: "\u290E", lEg: "\u2A8B", lesseqqgtr: "\u2A8B", lHar: "\u2962", lacute: "\u013A", laemptyv: "\u29B4", lambda: "\u03BB", langd: "\u2991", lap: "\u2A85", lessapprox: "\u2A85", laquo: "\xAB", larrbfs: "\u291F", larrfs: "\u291D", larrlp: "\u21AB", looparrowleft: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", leftarrowtail: "\u21A2", lat: "\u2AAB", latail: "\u2919", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lbbrk: "\u2772", lbrace: "{", lcub: "{", lbrack: "[", lsqb: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", lcaron: "\u013E", lcedil: "\u013C", lcy: "\u043B", ldca: "\u2936", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", leq: "\u2264", leftleftarrows: "\u21C7", llarr: "\u21C7", leftthreetimes: "\u22CB", lthree: "\u22CB", lescc: "\u2AA8", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessdot: "\u22D6", ltdot: "\u22D6", lfisht: "\u297C", lfr: "\u{1D529}", lgE: "\u2A91", lharul: "\u296A", lhblk: "\u2584", ljcy: "\u0459", llhard: "\u296B", lltri: "\u25FA", lmidot: "\u0140", lmoust: "\u23B0", lmoustache: "\u23B0", lnE: "\u2268", lneqq: "\u2268", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lneq: "\u2A87", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", longmapsto: "\u27FC", xmap: "\u27FC", looparrowright: "\u21AC", rarrlp: "\u21AC", lopar: "\u2985", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", loz: "\u25CA", lozenge: "\u25CA", lpar: "(", lparlt: "\u2993", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", lsime: "\u2A8D", lsimg: "\u2A8F", lsquor: "\u201A", sbquo: "\u201A", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltrPar: "\u2996", ltri: "\u25C3", triangleleft: "\u25C3", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", mDDot: "\u223A", macr: "\xAF", strns: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", marker: "\u25AE", mcomma: "\u2A29", mcy: "\u043C", mdash: "\u2014", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midcir: "\u2AF0", minus: "\u2212", minusdu: "\u2A2A", mlcp: "\u2ADB", models: "\u22A7", mopf: "\u{1D55E}", mscr: "\u{1D4C2}", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nGg: "\u22D9\u0338", nGt: "\u226B\u20D2", nLeftarrow: "\u21CD", nlArr: "\u21CD", nLeftrightarrow: "\u21CE", nhArr: "\u21CE", nLl: "\u22D8\u0338", nLt: "\u226A\u20D2", nRightarrow: "\u21CF", nrArr: "\u21CF", nVDash: "\u22AF", nVdash: "\u22AE", nacute: "\u0144", nang: "\u2220\u20D2", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", natur: "\u266E", natural: "\u266E", ncap: "\u2A43", ncaron: "\u0148", ncedil: "\u0146", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", ncy: "\u043D", ndash: "\u2013", neArr: "\u21D7", nearhk: "\u2924", nedot: "\u2250\u0338", nesear: "\u2928", toea: "\u2928", nfr: "\u{1D52B}", nharr: "\u21AE", nleftrightarrow: "\u21AE", nhpar: "\u2AF2", nis: "\u22FC", nisd: "\u22FA", njcy: "\u045A", nlE: "\u2266\u0338", nleqq: "\u2266\u0338", nlarr: "\u219A", nleftarrow: "\u219A", nldr: "\u2025", nopf: "\u{1D55F}", not: "\xAC", notinE: "\u22F9\u0338", notindot: "\u22F5\u0338", notinvb: "\u22F7", notinvc: "\u22F6", notnivb: "\u22FE", notnivc: "\u22FD", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", nrarr: "\u219B", nrightarrow: "\u219B", nrarrc: "\u2933\u0338", nrarrw: "\u219D\u0338", nscr: "\u{1D4C3}", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsubseteqq: "\u2AC5\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupseteqq: "\u2AC6\u0338", ntilde: "\xF1", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvDash: "\u22AD", nvHarr: "\u2904", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwArr: "\u21D6", nwarhk: "\u2923", nwnear: "\u2927", oacute: "\xF3", ocirc: "\xF4", ocy: "\u043E", odblac: "\u0151", odiv: "\u2A38", odsold: "\u29BC", oelig: "\u0153", ofcir: "\u29BF", ofr: "\u{1D52C}", ogon: "\u02DB", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", olcir: "\u29BE", olcross: "\u29BB", olt: "\u29C0", omacr: "\u014D", omega: "\u03C9", omicron: "\u03BF", omid: "\u29B6", oopf: "\u{1D560}", opar: "\u29B7", operp: "\u29B9", or: "\u2228", vee: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", oscr: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oslash: "\xF8", osol: "\u2298", otilde: "\xF5", otimesas: "\u2A36", ouml: "\xF6", ovbar: "\u233D", para: "\xB6", parsim: "\u2AF3", parsl: "\u2AFD", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", pertenk: "\u2031", pfr: "\u{1D52D}", phi: "\u03C6", phiv: "\u03D5", straightphi: "\u03D5", varphi: "\u03D5", phone: "\u260E", pi: "\u03C0", piv: "\u03D6", varpi: "\u03D6", planckh: "\u210E", plus: "+", plusacir: "\u2A23", pluscir: "\u2A22", plusdu: "\u2A25", pluse: "\u2A72", plussim: "\u2A26", plustwo: "\u2A27", pointint: "\u2A15", popf: "\u{1D561}", pound: "\xA3", prE: "\u2AB3", prap: "\u2AB7", precapprox: "\u2AB7", precnapprox: "\u2AB9", prnap: "\u2AB9", precneqq: "\u2AB5", prnE: "\u2AB5", precnsim: "\u22E8", prnsim: "\u22E8", prime: "\u2032", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prurel: "\u22B0", pscr: "\u{1D4C5}", psi: "\u03C8", puncsp: "\u2008", qfr: "\u{1D52E}", qopf: "\u{1D562}", qprime: "\u2057", qscr: "\u{1D4C6}", quatint: "\u2A16", quest: "?", rAtail: "\u291C", rHar: "\u2964", race: "\u223D\u0331", racute: "\u0155", raemptyv: "\u29B3", rangd: "\u2992", range: "\u29A5", raquo: "\xBB", rarrap: "\u2975", rarrbfs: "\u2920", rarrc: "\u2933", rarrfs: "\u291E", rarrpl: "\u2945", rarrsim: "\u2974", rarrtl: "\u21A3", rightarrowtail: "\u21A3", rarrw: "\u219D", rightsquigarrow: "\u219D", ratail: "\u291A", ratio: "\u2236", rbbrk: "\u2773", rbrace: "}", rcub: "}", rbrack: "]", rsqb: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", rcaron: "\u0159", rcedil: "\u0157", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdsh: "\u21B3", rect: "\u25AD", rfisht: "\u297D", rfr: "\u{1D52F}", rharul: "\u296C", rho: "\u03C1", rhov: "\u03F1", varrho: "\u03F1", rightrightarrows: "\u21C9", rrarr: "\u21C9", rightthreetimes: "\u22CC", rthree: "\u22CC", ring: "\u02DA", rlm: "\u200F", rmoust: "\u23B1", rmoustache: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", ropar: "\u2986", ropf: "\u{1D563}", roplus: "\u2A2E", rotimes: "\u2A35", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rsaquo: "\u203A", rscr: "\u{1D4C7}", rtimes: "\u22CA", rtri: "\u25B9", triangleright: "\u25B9", rtriltri: "\u29CE", ruluhar: "\u2968", rx: "\u211E", sacute: "\u015B", scE: "\u2AB4", scap: "\u2AB8", succapprox: "\u2AB8", scaron: "\u0161", scedil: "\u015F", scirc: "\u015D", scnE: "\u2AB6", succneqq: "\u2AB6", scnap: "\u2ABA", succnapprox: "\u2ABA", scnsim: "\u22E9", succnsim: "\u22E9", scpolint: "\u2A13", scy: "\u0441", sdot: "\u22C5", sdote: "\u2A66", seArr: "\u21D8", sect: "\xA7", semi: ";", seswar: "\u2929", tosa: "\u2929", sext: "\u2736", sfr: "\u{1D530}", sharp: "\u266F", shchcy: "\u0449", shcy: "\u0448", shy: "\xAD", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", varsigma: "\u03C2", simdot: "\u2A6A", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", smashp: "\u2A33", smeparsl: "\u29E4", smile: "\u2323", ssmile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", softcy: "\u044C", sol: "/", solb: "\u29C4", solbar: "\u233F", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", sqcaps: "\u2293\uFE00", sqcups: "\u2294\uFE00", sscr: "\u{1D4C8}", star: "\u2606", sub: "\u2282", subset: "\u2282", subE: "\u2AC5", subseteqq: "\u2AC5", subdot: "\u2ABD", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subsetneqq: "\u2ACB", subne: "\u228A", subsetneq: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", supE: "\u2AC6", supseteqq: "\u2AC6", supdot: "\u2ABE", supdsub: "\u2AD8", supedot: "\u2AC4", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supsetneqq: "\u2ACC", supne: "\u228B", supsetneq: "\u228B", supplus: "\u2AC0", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swArr: "\u21D9", swnwar: "\u292A", szlig: "\xDF", target: "\u2316", tau: "\u03C4", tcaron: "\u0165", tcedil: "\u0163", tcy: "\u0442", telrec: "\u2315", tfr: "\u{1D531}", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", vartheta: "\u03D1", thorn: "\xFE", times: "\xD7", timesbar: "\u2A31", timesd: "\u2A30", topbot: "\u2336", topcir: "\u2AF1", topf: "\u{1D565}", topfork: "\u2ADA", tprime: "\u2034", triangle: "\u25B5", utri: "\u25B5", triangleq: "\u225C", trie: "\u225C", tridot: "\u25EC", triminus: "\u2A3A", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", tscr: "\u{1D4C9}", tscy: "\u0446", tshcy: "\u045B", tstrok: "\u0167", uHar: "\u2963", uacute: "\xFA", ubrcy: "\u045E", ubreve: "\u016D", ucirc: "\xFB", ucy: "\u0443", udblac: "\u0171", ufisht: "\u297E", ufr: "\u{1D532}", ugrave: "\xF9", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", umacr: "\u016B", uogon: "\u0173", uopf: "\u{1D566}", upsi: "\u03C5", upsilon: "\u03C5", upuparrows: "\u21C8", uuarr: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", uring: "\u016F", urtri: "\u25F9", uscr: "\u{1D4CA}", utdot: "\u22F0", utilde: "\u0169", uuml: "\xFC", uwangle: "\u29A7", vBar: "\u2AE8", vBarv: "\u2AE9", vangrt: "\u299C", varsubsetneq: "\u228A\uFE00", vsubne: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", vsubnE: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", vsupne: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vsupnE: "\u2ACC\uFE00", vcy: "\u0432", veebar: "\u22BB", veeeq: "\u225A", vellip: "\u22EE", vfr: "\u{1D533}", vopf: "\u{1D567}", vscr: "\u{1D4CB}", vzigzag: "\u299A", wcirc: "\u0175", wedbar: "\u2A5F", wedgeq: "\u2259", weierp: "\u2118", wp: "\u2118", wfr: "\u{1D534}", wopf: "\u{1D568}", wscr: "\u{1D4CC}", xfr: "\u{1D535}", xi: "\u03BE", xnis: "\u22FB", xopf: "\u{1D569}", xscr: "\u{1D4CD}", yacute: "\xFD", yacy: "\u044F", ycirc: "\u0177", ycy: "\u044B", yen: "\xA5", yfr: "\u{1D536}", yicy: "\u0457", yopf: "\u{1D56A}", yscr: "\u{1D4CE}", yucy: "\u044E", yuml: "\xFF", zacute: "\u017A", zcaron: "\u017E", zcy: "\u0437", zdot: "\u017C", zeta: "\u03B6", zfr: "\u{1D537}", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
1653
- var za = "\uE500";
1654
- Ye.ngsp = za;
1655
- var Ga = [/@/, /^\s*$/, /[<>]/, /^[{}]$/, /&(#|[a-z])/i, /^\/\//];
1656
- function Ls(t8, e) {
1657
- if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${t8}' to be an array, [start, end].`);
1658
- if (e != null) {
1659
- let r = e[0], n = e[1];
1660
- Ga.forEach((s) => {
1661
- if (s.test(r) || s.test(n)) throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`);
1662
- });
1663
- }
1664
- }
1665
- var Lr = class t2 {
1666
- static fromArray(e) {
1667
- return e ? (Ls("interpolation", e), new t2(e[0], e[1])) : Fr;
1668
- }
1669
- constructor(e, r) {
1670
- this.start = e, this.end = r;
1671
- }
1672
- };
1673
- var Fr = new Lr("{{", "}}");
1674
- var ft = class extends Ue {
1675
- constructor(e, r, n) {
1676
- super(n, e), this.tokenType = r;
1677
- }
1678
- };
1679
- var $r = class {
1680
- constructor(e, r, n) {
1681
- this.tokens = e, this.errors = r, this.nonNormalizedIcuExpressions = n;
1682
- }
1683
- };
1684
- function Ws(t8, e, r, n = {}) {
1685
- let s = new Or(new Te(t8, e), r, n);
1686
- return s.tokenize(), new $r(_o(s.tokens), s.errors, s.nonNormalizedIcuExpressions);
1687
- }
1688
- var po = /\r\n?/g;
1689
- function je(t8) {
1690
- return `Unexpected character "${t8 === 0 ? "EOF" : String.fromCharCode(t8)}"`;
1691
- }
1692
- function Rs(t8) {
1693
- return `Unknown entity "${t8}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`;
1694
- }
1695
- function ho(t8, e) {
1696
- return `Unable to parse entity "${e}" - ${t8} character reference entities must end with ";"`;
1697
- }
1698
- var tr;
1699
- (function(t8) {
1700
- t8.HEX = "hexadecimal", t8.DEC = "decimal";
1701
- })(tr || (tr = {}));
1702
- var dt = class {
1703
- constructor(e) {
1704
- this.error = e;
1705
- }
1706
- };
1707
- var Or = class {
1708
- constructor(e, r, n) {
1709
- this._getTagContentType = r, this._currentTokenStart = null, this._currentTokenType = null, this._expansionCaseStack = [], this._inInterpolation = false, this._fullNameStack = [], this.tokens = [], this.errors = [], this.nonNormalizedIcuExpressions = [], this._tokenizeIcu = n.tokenizeExpansionForms || false, this._interpolationConfig = n.interpolationConfig || Fr, this._leadingTriviaCodePoints = n.leadingTriviaChars && n.leadingTriviaChars.map((i) => i.codePointAt(0) || 0), this._canSelfClose = n.canSelfClose || false, this._allowHtmComponentClosingTags = n.allowHtmComponentClosingTags || false;
1710
- let s = n.range || { endPos: e.content.length, startPos: 0, startLine: 0, startCol: 0 };
1711
- this._cursor = n.escapedString ? new Mr(e, s) : new rr(e, s), this._preserveLineEndings = n.preserveLineEndings || false, this._i18nNormalizeLineEndingsInICUs = n.i18nNormalizeLineEndingsInICUs || false, this._tokenizeBlocks = n.tokenizeBlocks ?? true, this._tokenizeLet = n.tokenizeLet ?? true;
1712
- try {
1713
- this._cursor.init();
1714
- } catch (i) {
1715
- this.handleError(i);
1716
- }
1717
- }
1718
- _processCarriageReturns(e) {
1719
- return this._preserveLineEndings ? e : e.replace(po, `
1720
- `);
1721
- }
1722
- tokenize() {
1723
- for (; this._cursor.peek() !== 0; ) {
1724
- let e = this._cursor.clone();
1725
- try {
1726
- if (this._attemptCharCode(60)) if (this._attemptCharCode(33)) this._attemptStr("[CDATA[") ? this._consumeCdata(e) : this._attemptStr("--") ? this._consumeComment(e) : this._attemptStrCaseInsensitive("doctype") ? this._consumeDocType(e) : this._consumeBogusComment(e);
1727
- else if (this._attemptCharCode(47)) this._consumeTagClose(e);
1728
- else {
1729
- let r = this._cursor.clone();
1730
- this._attemptCharCode(63) ? (this._cursor = r, this._consumeBogusComment(e)) : this._consumeTagOpen(e);
1731
- }
1732
- else this._tokenizeLet && this._cursor.peek() === 64 && !this._inInterpolation && this._attemptStr("@let") ? this._consumeLetDeclaration(e) : this._tokenizeBlocks && this._attemptCharCode(64) ? this._consumeBlockStart(e) : this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansionCase() && !this._isInExpansionForm() && this._attemptCharCode(125) ? this._consumeBlockEnd(e) : this._tokenizeIcu && this._tokenizeExpansionForm() || this._consumeWithInterpolation(5, 8, () => this._isTextEnd(), () => this._isTagStart());
1733
- } catch (r) {
1734
- this.handleError(r);
1735
- }
1736
- }
1737
- this._beginToken(34), this._endToken([]);
1738
- }
1739
- _getBlockName() {
1740
- let e = false, r = this._cursor.clone();
1741
- return this._attemptCharCodeUntilFn((n) => at(n) ? !e : Ms(n) ? (e = true, false) : true), this._cursor.getChars(r).trim();
1742
- }
1743
- _consumeBlockStart(e) {
1744
- this._beginToken(25, e);
1745
- let r = this._endToken([this._getBlockName()]);
1746
- if (this._cursor.peek() === 40) if (this._cursor.advance(), this._consumeBlockParameters(), this._attemptCharCodeUntilFn(b), this._attemptCharCode(41)) this._attemptCharCodeUntilFn(b);
1747
- else {
1748
- r.type = 29;
1749
- return;
1750
- }
1751
- this._attemptCharCode(123) ? (this._beginToken(26), this._endToken([])) : r.type = 29;
1752
- }
1753
- _consumeBlockEnd(e) {
1754
- this._beginToken(27, e), this._endToken([]);
1755
- }
1756
- _consumeBlockParameters() {
1757
- for (this._attemptCharCodeUntilFn(qs); this._cursor.peek() !== 41 && this._cursor.peek() !== 0; ) {
1758
- this._beginToken(28);
1759
- let e = this._cursor.clone(), r = null, n = 0;
1760
- for (; this._cursor.peek() !== 59 && this._cursor.peek() !== 0 || r !== null; ) {
1761
- let s = this._cursor.peek();
1762
- if (s === 92) this._cursor.advance();
1763
- else if (s === r) r = null;
1764
- else if (r === null && $t(s)) r = s;
1765
- else if (s === 40 && r === null) n++;
1766
- else if (s === 41 && r === null) {
1767
- if (n === 0) break;
1768
- n > 0 && n--;
1769
- }
1770
- this._cursor.advance();
1771
- }
1772
- this._endToken([this._cursor.getChars(e)]), this._attemptCharCodeUntilFn(qs);
1773
- }
1774
- }
1775
- _consumeLetDeclaration(e) {
1776
- if (this._beginToken(30, e), at(this._cursor.peek())) this._attemptCharCodeUntilFn(b);
1777
- else {
1778
- let s = this._endToken([this._cursor.getChars(e)]);
1779
- s.type = 33;
1780
- return;
1781
- }
1782
- let r = this._endToken([this._getLetDeclarationName()]);
1783
- if (this._attemptCharCodeUntilFn(b), !this._attemptCharCode(61)) {
1784
- r.type = 33;
1785
- return;
1786
- }
1787
- this._attemptCharCodeUntilFn((s) => b(s) && !Rt(s)), this._consumeLetDeclarationValue(), this._cursor.peek() === 59 ? (this._beginToken(32), this._endToken([]), this._cursor.advance()) : (r.type = 33, r.sourceSpan = this._cursor.getSpan(e));
1788
- }
1789
- _getLetDeclarationName() {
1790
- let e = this._cursor.clone(), r = false;
1791
- return this._attemptCharCodeUntilFn((n) => ot(n) || n == 36 || n === 95 || r && It(n) ? (r = true, false) : true), this._cursor.getChars(e).trim();
1792
- }
1793
- _consumeLetDeclarationValue() {
1794
- let e = this._cursor.clone();
1795
- for (this._beginToken(31, e); this._cursor.peek() !== 0; ) {
1796
- let r = this._cursor.peek();
1797
- if (r === 59) break;
1798
- $t(r) && (this._cursor.advance(), this._attemptCharCodeUntilFn((n) => n === 92 ? (this._cursor.advance(), false) : n === r)), this._cursor.advance();
1799
- }
1800
- this._endToken([this._cursor.getChars(e)]);
1801
- }
1802
- _tokenizeExpansionForm() {
1803
- if (this.isExpansionFormStart()) return this._consumeExpansionFormStart(), true;
1804
- if (Co(this._cursor.peek()) && this._isInExpansionForm()) return this._consumeExpansionCaseStart(), true;
1805
- if (this._cursor.peek() === 125) {
1806
- if (this._isInExpansionCase()) return this._consumeExpansionCaseEnd(), true;
1807
- if (this._isInExpansionForm()) return this._consumeExpansionFormEnd(), true;
1808
- }
1809
- return false;
1810
- }
1811
- _beginToken(e, r = this._cursor.clone()) {
1812
- this._currentTokenStart = r, this._currentTokenType = e;
1813
- }
1814
- _endToken(e, r) {
1815
- if (this._currentTokenStart === null) throw new ft("Programming error - attempted to end a token when there was no start to the token", this._currentTokenType, this._cursor.getSpan(r));
1816
- if (this._currentTokenType === null) throw new ft("Programming error - attempted to end a token which has no token type", null, this._cursor.getSpan(this._currentTokenStart));
1817
- let n = { type: this._currentTokenType, parts: e, sourceSpan: (r ?? this._cursor).getSpan(this._currentTokenStart, this._leadingTriviaCodePoints) };
1818
- return this.tokens.push(n), this._currentTokenStart = null, this._currentTokenType = null, n;
1819
- }
1820
- _createError(e, r) {
1821
- this._isInExpansionForm() && (e += ` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);
1822
- let n = new ft(e, this._currentTokenType, r);
1823
- return this._currentTokenStart = null, this._currentTokenType = null, new dt(n);
1824
- }
1825
- handleError(e) {
1826
- if (e instanceof gt && (e = this._createError(e.msg, this._cursor.getSpan(e.cursor))), e instanceof dt) this.errors.push(e.error);
1827
- else throw e;
1828
- }
1829
- _attemptCharCode(e) {
1830
- return this._cursor.peek() === e ? (this._cursor.advance(), true) : false;
1831
- }
1832
- _attemptCharCodeCaseInsensitive(e) {
1833
- return So(this._cursor.peek(), e) ? (this._cursor.advance(), true) : false;
1834
- }
1835
- _requireCharCode(e) {
1836
- let r = this._cursor.clone();
1837
- if (!this._attemptCharCode(e)) throw this._createError(je(this._cursor.peek()), this._cursor.getSpan(r));
1838
- }
1839
- _attemptStr(e) {
1840
- let r = e.length;
1841
- if (this._cursor.charsLeft() < r) return false;
1842
- let n = this._cursor.clone();
1843
- for (let s = 0; s < r; s++) if (!this._attemptCharCode(e.charCodeAt(s))) return this._cursor = n, false;
1844
- return true;
1845
- }
1846
- _attemptStrCaseInsensitive(e) {
1847
- for (let r = 0; r < e.length; r++) if (!this._attemptCharCodeCaseInsensitive(e.charCodeAt(r))) return false;
1848
- return true;
1849
- }
1850
- _requireStr(e) {
1851
- let r = this._cursor.clone();
1852
- if (!this._attemptStr(e)) throw this._createError(je(this._cursor.peek()), this._cursor.getSpan(r));
1853
- }
1854
- _requireStrCaseInsensitive(e) {
1855
- let r = this._cursor.clone();
1856
- if (!this._attemptStrCaseInsensitive(e)) throw this._createError(je(this._cursor.peek()), this._cursor.getSpan(r));
1857
- }
1858
- _attemptCharCodeUntilFn(e) {
1859
- for (; !e(this._cursor.peek()); ) this._cursor.advance();
1860
- }
1861
- _requireCharCodeUntilFn(e, r) {
1862
- let n = this._cursor.clone();
1863
- if (this._attemptCharCodeUntilFn(e), this._cursor.diff(n) < r) throw this._createError(je(this._cursor.peek()), this._cursor.getSpan(n));
1864
- }
1865
- _attemptUntilChar(e) {
1866
- for (; this._cursor.peek() !== e; ) this._cursor.advance();
1867
- }
1868
- _readChar() {
1869
- let e = String.fromCodePoint(this._cursor.peek());
1870
- return this._cursor.advance(), e;
1871
- }
1872
- _consumeEntity(e) {
1873
- this._beginToken(9);
1874
- let r = this._cursor.clone();
1875
- if (this._cursor.advance(), this._attemptCharCode(35)) {
1876
- let n = this._attemptCharCode(120) || this._attemptCharCode(88), s = this._cursor.clone();
1877
- if (this._attemptCharCodeUntilFn(fo), this._cursor.peek() != 59) {
1878
- this._cursor.advance();
1879
- let a = n ? tr.HEX : tr.DEC;
1880
- throw this._createError(ho(a, this._cursor.getChars(r)), this._cursor.getSpan());
1881
- }
1882
- let i = this._cursor.getChars(s);
1883
- this._cursor.advance();
1884
- try {
1885
- let a = parseInt(i, n ? 16 : 10);
1886
- this._endToken([String.fromCharCode(a), this._cursor.getChars(r)]);
1887
- } catch {
1888
- throw this._createError(Rs(this._cursor.getChars(r)), this._cursor.getSpan());
1889
- }
1890
- } else {
1891
- let n = this._cursor.clone();
1892
- if (this._attemptCharCodeUntilFn(go), this._cursor.peek() != 59) this._beginToken(e, r), this._cursor = n, this._endToken(["&"]);
1893
- else {
1894
- let s = this._cursor.getChars(n);
1895
- this._cursor.advance();
1896
- let i = Ye[s];
1897
- if (!i) throw this._createError(Rs(s), this._cursor.getSpan(r));
1898
- this._endToken([i, `&${s};`]);
1899
- }
1900
- }
1901
- }
1902
- _consumeRawText(e, r) {
1903
- this._beginToken(e ? 6 : 7);
1904
- let n = [];
1905
- for (; ; ) {
1906
- let s = this._cursor.clone(), i = r();
1907
- if (this._cursor = s, i) break;
1908
- e && this._cursor.peek() === 38 ? (this._endToken([this._processCarriageReturns(n.join(""))]), n.length = 0, this._consumeEntity(6), this._beginToken(6)) : n.push(this._readChar());
1909
- }
1910
- this._endToken([this._processCarriageReturns(n.join(""))]);
1911
- }
1912
- _consumeComment(e) {
1913
- this._beginToken(10, e), this._endToken([]), this._consumeRawText(false, () => this._attemptStr("-->")), this._beginToken(11), this._requireStr("-->"), this._endToken([]);
1914
- }
1915
- _consumeBogusComment(e) {
1916
- this._beginToken(10, e), this._endToken([]), this._consumeRawText(false, () => this._cursor.peek() === 62), this._beginToken(11), this._cursor.advance(), this._endToken([]);
1917
- }
1918
- _consumeCdata(e) {
1919
- this._beginToken(12, e), this._endToken([]), this._consumeRawText(false, () => this._attemptStr("]]>")), this._beginToken(13), this._requireStr("]]>"), this._endToken([]);
1920
- }
1921
- _consumeDocType(e) {
1922
- this._beginToken(18, e), this._endToken([]), this._consumeRawText(false, () => this._cursor.peek() === 62), this._beginToken(19), this._cursor.advance(), this._endToken([]);
1923
- }
1924
- _consumePrefixAndName() {
1925
- let e = this._cursor.clone(), r = "";
1926
- for (; this._cursor.peek() !== 58 && !mo(this._cursor.peek()); ) this._cursor.advance();
1927
- let n;
1928
- this._cursor.peek() === 58 ? (r = this._cursor.getChars(e), this._cursor.advance(), n = this._cursor.clone()) : n = e, this._requireCharCodeUntilFn($s, r === "" ? 0 : 1);
1929
- let s = this._cursor.getChars(n);
1930
- return [r, s];
1931
- }
1932
- _consumeTagOpen(e) {
1933
- let r, n, s, i = [];
1934
- try {
1935
- if (!ot(this._cursor.peek())) throw this._createError(je(this._cursor.peek()), this._cursor.getSpan(e));
1936
- for (s = this._consumeTagOpenStart(e), n = s.parts[0], r = s.parts[1], this._attemptCharCodeUntilFn(b); this._cursor.peek() !== 47 && this._cursor.peek() !== 62 && this._cursor.peek() !== 60 && this._cursor.peek() !== 0; ) {
1937
- let [o, u] = this._consumeAttributeName();
1938
- if (this._attemptCharCodeUntilFn(b), this._attemptCharCode(61)) {
1939
- this._attemptCharCodeUntilFn(b);
1940
- let p = this._consumeAttributeValue();
1941
- i.push({ prefix: o, name: u, value: p });
1942
- } else i.push({ prefix: o, name: u });
1943
- this._attemptCharCodeUntilFn(b);
1944
- }
1945
- this._consumeTagOpenEnd();
1946
- } catch (o) {
1947
- if (o instanceof dt) {
1948
- s ? s.type = 4 : (this._beginToken(5, e), this._endToken(["<"]));
1949
- return;
1950
- }
1951
- throw o;
1952
- }
1953
- if (this._canSelfClose && this.tokens[this.tokens.length - 1].type === 2) return;
1954
- let a = this._getTagContentType(r, n, this._fullNameStack.length > 0, i);
1955
- this._handleFullNameStackForTagOpen(n, r), a === I.RAW_TEXT ? this._consumeRawTextWithTagClose(n, r, false) : a === I.ESCAPABLE_RAW_TEXT && this._consumeRawTextWithTagClose(n, r, true);
1956
- }
1957
- _consumeRawTextWithTagClose(e, r, n) {
1958
- this._consumeRawText(n, () => !this._attemptCharCode(60) || !this._attemptCharCode(47) || (this._attemptCharCodeUntilFn(b), !this._attemptStrCaseInsensitive(e ? `${e}:${r}` : r)) ? false : (this._attemptCharCodeUntilFn(b), this._attemptCharCode(62))), this._beginToken(3), this._requireCharCodeUntilFn((s) => s === 62, 3), this._cursor.advance(), this._endToken([e, r]), this._handleFullNameStackForTagClose(e, r);
1959
- }
1960
- _consumeTagOpenStart(e) {
1961
- this._beginToken(0, e);
1962
- let r = this._consumePrefixAndName();
1963
- return this._endToken(r);
1964
- }
1965
- _consumeAttributeName() {
1966
- let e = this._cursor.peek();
1967
- if (e === 39 || e === 34) throw this._createError(je(e), this._cursor.getSpan());
1968
- this._beginToken(14);
1969
- let r = this._consumePrefixAndName();
1970
- return this._endToken(r), r;
1971
- }
1972
- _consumeAttributeValue() {
1973
- let e;
1974
- if (this._cursor.peek() === 39 || this._cursor.peek() === 34) {
1975
- let r = this._cursor.peek();
1976
- this._consumeQuote(r);
1977
- let n = () => this._cursor.peek() === r;
1978
- e = this._consumeWithInterpolation(16, 17, n, n), this._consumeQuote(r);
1979
- } else {
1980
- let r = () => $s(this._cursor.peek());
1981
- e = this._consumeWithInterpolation(16, 17, r, r);
1982
- }
1983
- return e;
1984
- }
1985
- _consumeQuote(e) {
1986
- this._beginToken(15), this._requireCharCode(e), this._endToken([String.fromCodePoint(e)]);
1987
- }
1988
- _consumeTagOpenEnd() {
1989
- let e = this._attemptCharCode(47) ? 2 : 1;
1990
- this._beginToken(e), this._requireCharCode(62), this._endToken([]);
1991
- }
1992
- _consumeTagClose(e) {
1993
- if (this._beginToken(3, e), this._attemptCharCodeUntilFn(b), this._allowHtmComponentClosingTags && this._attemptCharCode(47)) this._attemptCharCodeUntilFn(b), this._requireCharCode(62), this._endToken([]);
1994
- else {
1995
- let [r, n] = this._consumePrefixAndName();
1996
- this._attemptCharCodeUntilFn(b), this._requireCharCode(62), this._endToken([r, n]), this._handleFullNameStackForTagClose(r, n);
1997
- }
1998
- }
1999
- _consumeExpansionFormStart() {
2000
- this._beginToken(20), this._requireCharCode(123), this._endToken([]), this._expansionCaseStack.push(20), this._beginToken(7);
2001
- let e = this._readUntil(44), r = this._processCarriageReturns(e);
2002
- if (this._i18nNormalizeLineEndingsInICUs) this._endToken([r]);
2003
- else {
2004
- let s = this._endToken([e]);
2005
- r !== e && this.nonNormalizedIcuExpressions.push(s);
2006
- }
2007
- this._requireCharCode(44), this._attemptCharCodeUntilFn(b), this._beginToken(7);
2008
- let n = this._readUntil(44);
2009
- this._endToken([n]), this._requireCharCode(44), this._attemptCharCodeUntilFn(b);
2010
- }
2011
- _consumeExpansionCaseStart() {
2012
- this._beginToken(21);
2013
- let e = this._readUntil(123).trim();
2014
- this._endToken([e]), this._attemptCharCodeUntilFn(b), this._beginToken(22), this._requireCharCode(123), this._endToken([]), this._attemptCharCodeUntilFn(b), this._expansionCaseStack.push(22);
2015
- }
2016
- _consumeExpansionCaseEnd() {
2017
- this._beginToken(23), this._requireCharCode(125), this._endToken([]), this._attemptCharCodeUntilFn(b), this._expansionCaseStack.pop();
2018
- }
2019
- _consumeExpansionFormEnd() {
2020
- this._beginToken(24), this._requireCharCode(125), this._endToken([]), this._expansionCaseStack.pop();
2021
- }
2022
- _consumeWithInterpolation(e, r, n, s) {
2023
- this._beginToken(e);
2024
- let i = [];
2025
- for (; !n(); ) {
2026
- let o = this._cursor.clone();
2027
- this._interpolationConfig && this._attemptStr(this._interpolationConfig.start) ? (this._endToken([this._processCarriageReturns(i.join(""))], o), i.length = 0, this._consumeInterpolation(r, o, s), this._beginToken(e)) : this._cursor.peek() === 38 ? (this._endToken([this._processCarriageReturns(i.join(""))]), i.length = 0, this._consumeEntity(e), this._beginToken(e)) : i.push(this._readChar());
2028
- }
2029
- this._inInterpolation = false;
2030
- let a = this._processCarriageReturns(i.join(""));
2031
- return this._endToken([a]), a;
2032
- }
2033
- _consumeInterpolation(e, r, n) {
2034
- let s = [];
2035
- this._beginToken(e, r), s.push(this._interpolationConfig.start);
2036
- let i = this._cursor.clone(), a = null, o = false;
2037
- for (; this._cursor.peek() !== 0 && (n === null || !n()); ) {
2038
- let u = this._cursor.clone();
2039
- if (this._isTagStart()) {
2040
- this._cursor = u, s.push(this._getProcessedChars(i, u)), this._endToken(s);
2041
- return;
2042
- }
2043
- if (a === null) if (this._attemptStr(this._interpolationConfig.end)) {
2044
- s.push(this._getProcessedChars(i, u)), s.push(this._interpolationConfig.end), this._endToken(s);
2045
- return;
2046
- } else this._attemptStr("//") && (o = true);
2047
- let p = this._cursor.peek();
2048
- this._cursor.advance(), p === 92 ? this._cursor.advance() : p === a ? a = null : !o && a === null && $t(p) && (a = p);
2049
- }
2050
- s.push(this._getProcessedChars(i, this._cursor)), this._endToken(s);
2051
- }
2052
- _getProcessedChars(e, r) {
2053
- return this._processCarriageReturns(r.getChars(e));
2054
- }
2055
- _isTextEnd() {
2056
- return !!(this._isTagStart() || this._cursor.peek() === 0 || this._tokenizeIcu && !this._inInterpolation && (this.isExpansionFormStart() || this._cursor.peek() === 125 && this._isInExpansionCase()) || this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansion() && (this._isBlockStart() || this._cursor.peek() === 64 || this._cursor.peek() === 125));
2057
- }
2058
- _isTagStart() {
2059
- if (this._cursor.peek() === 60) {
2060
- let e = this._cursor.clone();
2061
- e.advance();
2062
- let r = e.peek();
2063
- if (97 <= r && r <= 122 || 65 <= r && r <= 90 || r === 47 || r === 33) return true;
2064
- }
2065
- return false;
2066
- }
2067
- _isBlockStart() {
2068
- if (this._tokenizeBlocks && this._cursor.peek() === 64) {
2069
- let e = this._cursor.clone();
2070
- if (e.advance(), Ms(e.peek())) return true;
2071
- }
2072
- return false;
2073
- }
2074
- _readUntil(e) {
2075
- let r = this._cursor.clone();
2076
- return this._attemptUntilChar(e), this._cursor.getChars(r);
2077
- }
2078
- _isInExpansion() {
2079
- return this._isInExpansionCase() || this._isInExpansionForm();
2080
- }
2081
- _isInExpansionCase() {
2082
- return this._expansionCaseStack.length > 0 && this._expansionCaseStack[this._expansionCaseStack.length - 1] === 22;
2083
- }
2084
- _isInExpansionForm() {
2085
- return this._expansionCaseStack.length > 0 && this._expansionCaseStack[this._expansionCaseStack.length - 1] === 20;
2086
- }
2087
- isExpansionFormStart() {
2088
- if (this._cursor.peek() !== 123) return false;
2089
- if (this._interpolationConfig) {
2090
- let e = this._cursor.clone(), r = this._attemptStr(this._interpolationConfig.start);
2091
- return this._cursor = e, !r;
2092
- }
2093
- return true;
2094
- }
2095
- _handleFullNameStackForTagOpen(e, r) {
2096
- let n = ze(e, r);
2097
- (this._fullNameStack.length === 0 || this._fullNameStack[this._fullNameStack.length - 1] === n) && this._fullNameStack.push(n);
2098
- }
2099
- _handleFullNameStackForTagClose(e, r) {
2100
- let n = ze(e, r);
2101
- this._fullNameStack.length !== 0 && this._fullNameStack[this._fullNameStack.length - 1] === n && this._fullNameStack.pop();
2102
- }
2103
- };
2104
- function b(t8) {
2105
- return !at(t8) || t8 === 0;
2106
- }
2107
- function $s(t8) {
2108
- return at(t8) || t8 === 62 || t8 === 60 || t8 === 47 || t8 === 39 || t8 === 34 || t8 === 61 || t8 === 0;
2109
- }
2110
- function mo(t8) {
2111
- return (t8 < 97 || 122 < t8) && (t8 < 65 || 90 < t8) && (t8 < 48 || t8 > 57);
2112
- }
2113
- function fo(t8) {
2114
- return t8 === 59 || t8 === 0 || !Cs(t8);
2115
- }
2116
- function go(t8) {
2117
- return t8 === 59 || t8 === 0 || !ot(t8);
2118
- }
2119
- function Co(t8) {
2120
- return t8 !== 125;
2121
- }
2122
- function So(t8, e) {
2123
- return Os(t8) === Os(e);
2124
- }
2125
- function Os(t8) {
2126
- return t8 >= 97 && t8 <= 122 ? t8 - 97 + 65 : t8;
2127
- }
2128
- function Ms(t8) {
2129
- return ot(t8) || It(t8) || t8 === 95;
2130
- }
2131
- function qs(t8) {
2132
- return t8 !== 59 && b(t8);
2133
- }
2134
- function _o(t8) {
2135
- let e = [], r;
2136
- for (let n = 0; n < t8.length; n++) {
2137
- let s = t8[n];
2138
- r && r.type === 5 && s.type === 5 || r && r.type === 16 && s.type === 16 ? (r.parts[0] += s.parts[0], r.sourceSpan.end = s.sourceSpan.end) : (r = s, e.push(r));
2139
- }
2140
- return e;
2141
- }
2142
- var rr = class t3 {
2143
- constructor(e, r) {
2144
- if (e instanceof t3) {
2145
- this.file = e.file, this.input = e.input, this.end = e.end;
2146
- let n = e.state;
2147
- this.state = { peek: n.peek, offset: n.offset, line: n.line, column: n.column };
2148
- } else {
2149
- if (!r) throw new Error("Programming error: the range argument must be provided with a file argument.");
2150
- this.file = e, this.input = e.content, this.end = r.endPos, this.state = { peek: -1, offset: r.startPos, line: r.startLine, column: r.startCol };
2151
- }
2152
- }
2153
- clone() {
2154
- return new t3(this);
2155
- }
2156
- peek() {
2157
- return this.state.peek;
2158
- }
2159
- charsLeft() {
2160
- return this.end - this.state.offset;
2161
- }
2162
- diff(e) {
2163
- return this.state.offset - e.state.offset;
2164
- }
2165
- advance() {
2166
- this.advanceState(this.state);
2167
- }
2168
- init() {
2169
- this.updatePeek(this.state);
2170
- }
2171
- getSpan(e, r) {
2172
- e = e || this;
2173
- let n = e;
2174
- if (r) for (; this.diff(e) > 0 && r.indexOf(e.peek()) !== -1; ) n === e && (e = e.clone()), e.advance();
2175
- let s = this.locationFromCursor(e), i = this.locationFromCursor(this), a = n !== e ? this.locationFromCursor(n) : s;
2176
- return new h(s, i, a);
2177
- }
2178
- getChars(e) {
2179
- return this.input.substring(e.state.offset, this.state.offset);
2180
- }
2181
- charAt(e) {
2182
- return this.input.charCodeAt(e);
2183
- }
2184
- advanceState(e) {
2185
- if (e.offset >= this.end) throw this.state = e, new gt('Unexpected character "EOF"', this);
2186
- let r = this.charAt(e.offset);
2187
- r === 10 ? (e.line++, e.column = 0) : Rt(r) || e.column++, e.offset++, this.updatePeek(e);
2188
- }
2189
- updatePeek(e) {
2190
- e.peek = e.offset >= this.end ? 0 : this.charAt(e.offset);
2191
- }
2192
- locationFromCursor(e) {
2193
- return new ae(e.file, e.state.offset, e.state.line, e.state.column);
2194
- }
2195
- };
2196
- var Mr = class t4 extends rr {
2197
- constructor(e, r) {
2198
- e instanceof t4 ? (super(e), this.internalState = { ...e.internalState }) : (super(e, r), this.internalState = this.state);
2199
- }
2200
- advance() {
2201
- this.state = this.internalState, super.advance(), this.processEscapeSequence();
2202
- }
2203
- init() {
2204
- super.init(), this.processEscapeSequence();
2205
- }
2206
- clone() {
2207
- return new t4(this);
2208
- }
2209
- getChars(e) {
2210
- let r = e.clone(), n = "";
2211
- for (; r.internalState.offset < this.internalState.offset; ) n += String.fromCodePoint(r.peek()), r.advance();
2212
- return n;
2213
- }
2214
- processEscapeSequence() {
2215
- let e = () => this.internalState.peek;
2216
- if (e() === 92) if (this.internalState = { ...this.state }, this.advanceState(this.internalState), e() === 110) this.state.peek = 10;
2217
- else if (e() === 114) this.state.peek = 13;
2218
- else if (e() === 118) this.state.peek = 11;
2219
- else if (e() === 116) this.state.peek = 9;
2220
- else if (e() === 98) this.state.peek = 8;
2221
- else if (e() === 102) this.state.peek = 12;
2222
- else if (e() === 117) if (this.advanceState(this.internalState), e() === 123) {
2223
- this.advanceState(this.internalState);
2224
- let r = this.clone(), n = 0;
2225
- for (; e() !== 125; ) this.advanceState(this.internalState), n++;
2226
- this.state.peek = this.decodeHexDigits(r, n);
2227
- } else {
2228
- let r = this.clone();
2229
- this.advanceState(this.internalState), this.advanceState(this.internalState), this.advanceState(this.internalState), this.state.peek = this.decodeHexDigits(r, 4);
2230
- }
2231
- else if (e() === 120) {
2232
- this.advanceState(this.internalState);
2233
- let r = this.clone();
2234
- this.advanceState(this.internalState), this.state.peek = this.decodeHexDigits(r, 2);
2235
- } else if (yr(e())) {
2236
- let r = "", n = 0, s = this.clone();
2237
- for (; yr(e()) && n < 3; ) s = this.clone(), r += String.fromCodePoint(e()), this.advanceState(this.internalState), n++;
2238
- this.state.peek = parseInt(r, 8), this.internalState = s.internalState;
2239
- } else Rt(this.internalState.peek) ? (this.advanceState(this.internalState), this.state = this.internalState) : this.state.peek = this.internalState.peek;
2240
- }
2241
- decodeHexDigits(e, r) {
2242
- let n = this.input.slice(e.internalState.offset, e.internalState.offset + r), s = parseInt(n, 16);
2243
- if (isNaN(s)) throw e.state = e.internalState, new gt("Invalid hexadecimal escape sequence", e);
2244
- return s;
2245
- }
2246
- };
2247
- var gt = class {
2248
- constructor(e, r) {
2249
- this.msg = e, this.cursor = r;
2250
- }
2251
- };
2252
- var L = class t5 extends Ue {
2253
- static create(e, r, n) {
2254
- return new t5(e, r, n);
2255
- }
2256
- constructor(e, r, n) {
2257
- super(r, n), this.elementName = e;
2258
- }
2259
- };
2260
- var Vr = class {
2261
- constructor(e, r) {
2262
- this.rootNodes = e, this.errors = r;
2263
- }
2264
- };
2265
- var nr = class {
2266
- constructor(e) {
2267
- this.getTagDefinition = e;
2268
- }
2269
- parse(e, r, n, s = false, i) {
2270
- let a = (D) => (R, ...F) => D(R.toLowerCase(), ...F), o = s ? this.getTagDefinition : a(this.getTagDefinition), u = (D) => o(D).getContentType(), p = s ? i : a(i), f = Ws(e, r, i ? (D, R, F, c) => {
2271
- let g = p(D, R, F, c);
2272
- return g !== void 0 ? g : u(D);
2273
- } : u, n), d = n && n.canSelfClose || false, C = n && n.allowHtmComponentClosingTags || false, A = new Ur(f.tokens, o, d, C, s);
2274
- return A.build(), new Vr(A.rootNodes, f.errors.concat(A.errors));
2275
- }
2276
- };
2277
- var Ur = class t6 {
2278
- constructor(e, r, n, s, i) {
2279
- this.tokens = e, this.getTagDefinition = r, this.canSelfClose = n, this.allowHtmComponentClosingTags = s, this.isTagNameCaseSensitive = i, this._index = -1, this._containerStack = [], this.rootNodes = [], this.errors = [], this._advance();
2280
- }
2281
- build() {
2282
- for (; this._peek.type !== 34; ) this._peek.type === 0 || this._peek.type === 4 ? this._consumeStartTag(this._advance()) : this._peek.type === 3 ? (this._closeVoidElement(), this._consumeEndTag(this._advance())) : this._peek.type === 12 ? (this._closeVoidElement(), this._consumeCdata(this._advance())) : this._peek.type === 10 ? (this._closeVoidElement(), this._consumeComment(this._advance())) : this._peek.type === 5 || this._peek.type === 7 || this._peek.type === 6 ? (this._closeVoidElement(), this._consumeText(this._advance())) : this._peek.type === 20 ? this._consumeExpansion(this._advance()) : this._peek.type === 25 ? (this._closeVoidElement(), this._consumeBlockOpen(this._advance())) : this._peek.type === 27 ? (this._closeVoidElement(), this._consumeBlockClose(this._advance())) : this._peek.type === 29 ? (this._closeVoidElement(), this._consumeIncompleteBlock(this._advance())) : this._peek.type === 30 ? (this._closeVoidElement(), this._consumeLet(this._advance())) : this._peek.type === 18 ? this._consumeDocType(this._advance()) : this._peek.type === 33 ? (this._closeVoidElement(), this._consumeIncompleteLet(this._advance())) : this._advance();
2283
- for (let e of this._containerStack) e instanceof Z && this.errors.push(L.create(e.name, e.sourceSpan, `Unclosed block "${e.name}"`));
2284
- }
2285
- _advance() {
2286
- let e = this._peek;
2287
- return this._index < this.tokens.length - 1 && this._index++, this._peek = this.tokens[this._index], e;
2288
- }
2289
- _advanceIf(e) {
2290
- return this._peek.type === e ? this._advance() : null;
2291
- }
2292
- _consumeCdata(e) {
2293
- let r = this._advance(), n = this._getText(r), s = this._advanceIf(13);
2294
- this._addToParent(new Wt(n, new h(e.sourceSpan.start, (s || r).sourceSpan.end), [r]));
2295
- }
2296
- _consumeComment(e) {
2297
- let r = this._advanceIf(7), n = this._advanceIf(11), s = r != null ? r.parts[0].trim() : null, i = n == null ? e.sourceSpan : new h(e.sourceSpan.start, n.sourceSpan.end, e.sourceSpan.fullStart);
2298
- this._addToParent(new jt(s, i));
2299
- }
2300
- _consumeDocType(e) {
2301
- let r = this._advanceIf(7), n = this._advanceIf(19), s = r != null ? r.parts[0].trim() : null, i = new h(e.sourceSpan.start, (n || r || e).sourceSpan.end);
2302
- this._addToParent(new Kt(s, i));
2303
- }
2304
- _consumeExpansion(e) {
2305
- let r = this._advance(), n = this._advance(), s = [];
2306
- for (; this._peek.type === 21; ) {
2307
- let a = this._parseExpansionCase();
2308
- if (!a) return;
2309
- s.push(a);
2310
- }
2311
- if (this._peek.type !== 24) {
2312
- this.errors.push(L.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
2313
- return;
2314
- }
2315
- let i = new h(e.sourceSpan.start, this._peek.sourceSpan.end, e.sourceSpan.fullStart);
2316
- this._addToParent(new zt(r.parts[0], n.parts[0], s, i, r.sourceSpan)), this._advance();
2317
- }
2318
- _parseExpansionCase() {
2319
- let e = this._advance();
2320
- if (this._peek.type !== 22) return this.errors.push(L.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'.")), null;
2321
- let r = this._advance(), n = this._collectExpansionExpTokens(r);
2322
- if (!n) return null;
2323
- let s = this._advance();
2324
- n.push({ type: 34, parts: [], sourceSpan: s.sourceSpan });
2325
- let i = new t6(n, this.getTagDefinition, this.canSelfClose, this.allowHtmComponentClosingTags, this.isTagNameCaseSensitive);
2326
- if (i.build(), i.errors.length > 0) return this.errors = this.errors.concat(i.errors), null;
2327
- let a = new h(e.sourceSpan.start, s.sourceSpan.end, e.sourceSpan.fullStart), o = new h(r.sourceSpan.start, s.sourceSpan.end, r.sourceSpan.fullStart);
2328
- return new Gt(e.parts[0], i.rootNodes, a, e.sourceSpan, o);
2329
- }
2330
- _collectExpansionExpTokens(e) {
2331
- let r = [], n = [22];
2332
- for (; ; ) {
2333
- if ((this._peek.type === 20 || this._peek.type === 22) && n.push(this._peek.type), this._peek.type === 23) if (zs(n, 22)) {
2334
- if (n.pop(), n.length === 0) return r;
2335
- } else return this.errors.push(L.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
2336
- if (this._peek.type === 24) if (zs(n, 20)) n.pop();
2337
- else return this.errors.push(L.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
2338
- if (this._peek.type === 34) return this.errors.push(L.create(null, e.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
2339
- r.push(this._advance());
2340
- }
2341
- }
2342
- _getText(e) {
2343
- let r = e.parts[0];
2344
- if (r.length > 0 && r[0] == `
2345
- `) {
2346
- let n = this._getClosestParentElement();
2347
- n != null && n.children.length == 0 && this.getTagDefinition(n.name).ignoreFirstLf && (r = r.substring(1));
2348
- }
2349
- return r;
2350
- }
2351
- _consumeText(e) {
2352
- let r = [e], n = e.sourceSpan, s = e.parts[0];
2353
- if (s.length > 0 && s[0] === `
2354
- `) {
2355
- let i = this._getContainer();
2356
- i != null && i.children.length === 0 && this.getTagDefinition(i.name).ignoreFirstLf && (s = s.substring(1), r[0] = { type: e.type, sourceSpan: e.sourceSpan, parts: [s] });
2357
- }
2358
- for (; this._peek.type === 8 || this._peek.type === 5 || this._peek.type === 9; ) e = this._advance(), r.push(e), e.type === 8 ? s += e.parts.join("").replace(/&([^;]+);/g, Gs) : e.type === 9 ? s += e.parts[0] : s += e.parts.join("");
2359
- if (s.length > 0) {
2360
- let i = e.sourceSpan;
2361
- this._addToParent(new Ut(s, new h(n.start, i.end, n.fullStart, n.details), r));
2362
- }
2363
- }
2364
- _closeVoidElement() {
2365
- let e = this._getContainer();
2366
- e instanceof G && this.getTagDefinition(e.name).isVoid && this._containerStack.pop();
2367
- }
2368
- _consumeStartTag(e) {
2369
- let [r, n] = e.parts, s = [];
2370
- for (; this._peek.type === 14; ) s.push(this._consumeAttr(this._advance()));
2371
- let i = this._getElementFullName(r, n, this._getClosestParentElement()), a = false;
2372
- if (this._peek.type === 2) {
2373
- this._advance(), a = true;
2374
- let C = this.getTagDefinition(i);
2375
- this.canSelfClose || C.canSelfClose || We(i) !== null || C.isVoid || this.errors.push(L.create(i, e.sourceSpan, `Only void, custom and foreign elements can be self closed "${e.parts[1]}"`));
2376
- } else this._peek.type === 1 && (this._advance(), a = false);
2377
- let o = this._peek.sourceSpan.fullStart, u = new h(e.sourceSpan.start, o, e.sourceSpan.fullStart), p = new h(e.sourceSpan.start, o, e.sourceSpan.fullStart), l = new h(e.sourceSpan.start.moveBy(1), e.sourceSpan.end), f = new G(i, s, [], u, p, void 0, l), d = this._getContainer();
2378
- this._pushContainer(f, d instanceof G && this.getTagDefinition(d.name).isClosedByChild(f.name)), a ? this._popContainer(i, G, u) : e.type === 4 && (this._popContainer(i, G, null), this.errors.push(L.create(i, u, `Opening tag "${i}" not terminated.`)));
2379
- }
2380
- _pushContainer(e, r) {
2381
- r && this._containerStack.pop(), this._addToParent(e), this._containerStack.push(e);
2382
- }
2383
- _consumeEndTag(e) {
2384
- let r = this.allowHtmComponentClosingTags && e.parts.length === 0 ? null : this._getElementFullName(e.parts[0], e.parts[1], this._getClosestParentElement());
2385
- if (r && this.getTagDefinition(r).isVoid) this.errors.push(L.create(r, e.sourceSpan, `Void elements do not have end tags "${e.parts[1]}"`));
2386
- else if (!this._popContainer(r, G, e.sourceSpan)) {
2387
- let n = `Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;
2388
- this.errors.push(L.create(r, e.sourceSpan, n));
2389
- }
2390
- }
2391
- _popContainer(e, r, n) {
2392
- let s = false;
2393
- for (let i = this._containerStack.length - 1; i >= 0; i--) {
2394
- let a = this._containerStack[i];
2395
- if (We(a.name) ? a.name === e : (e == null || a.name.toLowerCase() === e.toLowerCase()) && a instanceof r) return a.endSourceSpan = n, a.sourceSpan.end = n !== null ? n.end : a.sourceSpan.end, this._containerStack.splice(i, this._containerStack.length - i), !s;
2396
- (a instanceof Z || a instanceof G && !this.getTagDefinition(a.name).closedByParent) && (s = true);
2397
- }
2398
- return false;
2399
- }
2400
- _consumeAttr(e) {
2401
- let r = ze(e.parts[0], e.parts[1]), n = e.sourceSpan.end, s;
2402
- this._peek.type === 15 && (s = this._advance());
2403
- let i = "", a = [], o, u;
2404
- if (this._peek.type === 16) for (o = this._peek.sourceSpan, u = this._peek.sourceSpan.end; this._peek.type === 16 || this._peek.type === 17 || this._peek.type === 9; ) {
2405
- let f = this._advance();
2406
- a.push(f), f.type === 17 ? i += f.parts.join("").replace(/&([^;]+);/g, Gs) : f.type === 9 ? i += f.parts[0] : i += f.parts.join(""), u = n = f.sourceSpan.end;
2407
- }
2408
- this._peek.type === 15 && (u = n = this._advance().sourceSpan.end);
2409
- let l = o && u && new h((s == null ? void 0 : s.sourceSpan.start) ?? o.start, u, (s == null ? void 0 : s.sourceSpan.fullStart) ?? o.fullStart);
2410
- return new Yt(r, i, new h(e.sourceSpan.start, n, e.sourceSpan.fullStart), e.sourceSpan, l, a.length > 0 ? a : void 0, void 0);
2411
- }
2412
- _consumeBlockOpen(e) {
2413
- let r = [];
2414
- for (; this._peek.type === 28; ) {
2415
- let o = this._advance();
2416
- r.push(new ct(o.parts[0], o.sourceSpan));
2417
- }
2418
- this._peek.type === 26 && this._advance();
2419
- let n = this._peek.sourceSpan.fullStart, s = new h(e.sourceSpan.start, n, e.sourceSpan.fullStart), i = new h(e.sourceSpan.start, n, e.sourceSpan.fullStart), a = new Z(e.parts[0], r, [], s, e.sourceSpan, i);
2420
- this._pushContainer(a, false);
2421
- }
2422
- _consumeBlockClose(e) {
2423
- this._popContainer(null, Z, e.sourceSpan) || this.errors.push(L.create(null, e.sourceSpan, 'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'));
2424
- }
2425
- _consumeIncompleteBlock(e) {
2426
- let r = [];
2427
- for (; this._peek.type === 28; ) {
2428
- let o = this._advance();
2429
- r.push(new ct(o.parts[0], o.sourceSpan));
2430
- }
2431
- let n = this._peek.sourceSpan.fullStart, s = new h(e.sourceSpan.start, n, e.sourceSpan.fullStart), i = new h(e.sourceSpan.start, n, e.sourceSpan.fullStart), a = new Z(e.parts[0], r, [], s, e.sourceSpan, i);
2432
- this._pushContainer(a, false), this._popContainer(null, Z, null), this.errors.push(L.create(e.parts[0], s, `Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`));
2433
- }
2434
- _consumeLet(e) {
2435
- let r = e.parts[0], n, s;
2436
- if (this._peek.type !== 31) {
2437
- this.errors.push(L.create(e.parts[0], e.sourceSpan, `Invalid @let declaration "${r}". Declaration must have a value.`));
2438
- return;
2439
- } else n = this._advance();
2440
- if (this._peek.type !== 32) {
2441
- this.errors.push(L.create(e.parts[0], e.sourceSpan, `Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));
2442
- return;
2443
- } else s = this._advance();
2444
- let i = s.sourceSpan.fullStart, a = new h(e.sourceSpan.start, i, e.sourceSpan.fullStart), o = e.sourceSpan.toString().lastIndexOf(r), u = e.sourceSpan.start.moveBy(o), p = new h(u, e.sourceSpan.end), l = new pt(r, n.parts[0], a, p, n.sourceSpan);
2445
- this._addToParent(l);
2446
- }
2447
- _consumeIncompleteLet(e) {
2448
- let r = e.parts[0] ?? "", n = r ? ` "${r}"` : "";
2449
- if (r.length > 0) {
2450
- let s = e.sourceSpan.toString().lastIndexOf(r), i = e.sourceSpan.start.moveBy(s), a = new h(i, e.sourceSpan.end), o = new h(e.sourceSpan.start, e.sourceSpan.start.moveBy(0)), u = new pt(r, "", e.sourceSpan, a, o);
2451
- this._addToParent(u);
2452
- }
2453
- this.errors.push(L.create(e.parts[0], e.sourceSpan, `Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``));
2454
- }
2455
- _getContainer() {
2456
- return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
2457
- }
2458
- _getClosestParentElement() {
2459
- for (let e = this._containerStack.length - 1; e > -1; e--) if (this._containerStack[e] instanceof G) return this._containerStack[e];
2460
- return null;
2461
- }
2462
- _addToParent(e) {
2463
- let r = this._getContainer();
2464
- r === null ? this.rootNodes.push(e) : r.children.push(e);
2465
- }
2466
- _getElementFullName(e, r, n) {
2467
- if (e === "" && (e = this.getTagDefinition(r).implicitNamespacePrefix || "", e === "" && n != null)) {
2468
- let s = ut(n.name)[1];
2469
- this.getTagDefinition(s).preventNamespaceInheritance || (e = We(n.name));
2470
- }
2471
- return ze(e, r);
2472
- }
2473
- };
2474
- function zs(t8, e) {
2475
- return t8.length > 0 && t8[t8.length - 1] === e;
2476
- }
2477
- function Gs(t8, e) {
2478
- return Ye[e] !== void 0 ? Ye[e] || t8 : /^#x[a-f0-9]+$/i.test(e) ? String.fromCodePoint(parseInt(e.slice(2), 16)) : /^#\d+$/.test(e) ? String.fromCodePoint(parseInt(e.slice(1), 10)) : t8;
2479
- }
2480
- var sr = class extends nr {
2481
- constructor() {
2482
- super(Ge);
2483
- }
2484
- parse(e, r, n, s = false, i) {
2485
- return super.parse(e, r, n, s, i);
2486
- }
2487
- };
2488
- var Wr = null;
2489
- var Eo = () => (Wr || (Wr = new sr()), Wr);
2490
- function zr(t8, e = {}) {
2491
- let { canSelfClose: r = false, allowHtmComponentClosingTags: n = false, isTagNameCaseSensitive: s = false, getTagContentType: i, tokenizeAngularBlocks: a = false, tokenizeAngularLetDeclaration: o = false } = e;
2492
- return Eo().parse(t8, "angular-html-parser", { tokenizeExpansionForms: a, interpolationConfig: void 0, canSelfClose: r, allowHtmComponentClosingTags: n, tokenizeBlocks: a, tokenizeLet: o }, s, i);
2493
- }
2494
- function Ao(t8, e) {
2495
- let r = new SyntaxError(t8 + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
2496
- return Object.assign(r, e);
2497
- }
2498
- var Ys = Ao;
2499
- var Ct = 3;
2500
- function Do(t8) {
2501
- let e = t8.slice(0, Ct);
2502
- if (e !== "---" && e !== "+++") return;
2503
- let r = t8.indexOf(`
2504
- `, Ct);
2505
- if (r === -1) return;
2506
- let n = t8.slice(Ct, r).trim(), s = t8.indexOf(`
2507
- ${e}`, r), i = n;
2508
- if (i || (i = e === "+++" ? "toml" : "yaml"), s === -1 && e === "---" && i === "yaml" && (s = t8.indexOf(`
2509
- ...`, r)), s === -1) return;
2510
- let a = s + 1 + Ct, o = t8.charAt(a + 1);
2511
- if (!/\s?/u.test(o)) return;
2512
- let u = t8.slice(0, a);
2513
- return { type: "front-matter", language: i, explicitLanguage: n, value: t8.slice(r + 1, s), startDelimiter: e, endDelimiter: u.slice(-Ct), raw: u };
2514
- }
2515
- function vo(t8) {
2516
- let e = Do(t8);
2517
- if (!e) return { content: t8 };
2518
- let { raw: r } = e;
2519
- return { frontMatter: e, content: w(false, r, /[^\n]/gu, " ") + t8.slice(r.length) };
2520
- }
2521
- var js = vo;
2522
- var ir = { attrs: true, children: true, cases: true, expression: true };
2523
- var Ks = /* @__PURE__ */ new Set(["parent"]);
2524
- var ar = class t7 {
2525
- constructor(e = {}) {
2526
- for (let r of /* @__PURE__ */ new Set([...Ks, ...Object.keys(e)])) this.setProperty(r, e[r]);
2527
- }
2528
- setProperty(e, r) {
2529
- if (this[e] !== r) {
2530
- if (e in ir && (r = r.map((n) => this.createChild(n))), !Ks.has(e)) {
2531
- this[e] = r;
2532
- return;
2533
- }
2534
- Object.defineProperty(this, e, { value: r, enumerable: false, configurable: true });
2535
- }
2536
- }
2537
- map(e) {
2538
- let r;
2539
- for (let n in ir) {
2540
- let s = this[n];
2541
- if (s) {
2542
- let i = yo(s, (a) => a.map(e));
2543
- r !== s && (r || (r = new t7({ parent: this.parent })), r.setProperty(n, i));
2544
- }
2545
- }
2546
- if (r) for (let n in this) n in ir || (r[n] = this[n]);
2547
- return e(r || this);
2548
- }
2549
- walk(e) {
2550
- for (let r in ir) {
2551
- let n = this[r];
2552
- if (n) for (let s = 0; s < n.length; s++) n[s].walk(e);
2553
- }
2554
- e(this);
2555
- }
2556
- createChild(e) {
2557
- let r = e instanceof t7 ? e.clone() : new t7(e);
2558
- return r.setProperty("parent", this), r;
2559
- }
2560
- insertChildBefore(e, r) {
2561
- this.children.splice(this.children.indexOf(e), 0, this.createChild(r));
2562
- }
2563
- removeChild(e) {
2564
- this.children.splice(this.children.indexOf(e), 1);
2565
- }
2566
- replaceChild(e, r) {
2567
- this.children[this.children.indexOf(e)] = this.createChild(r);
2568
- }
2569
- clone() {
2570
- return new t7(this);
2571
- }
2572
- get firstChild() {
2573
- var e;
2574
- return (e = this.children) == null ? void 0 : e[0];
2575
- }
2576
- get lastChild() {
2577
- var e;
2578
- return (e = this.children) == null ? void 0 : e[this.children.length - 1];
2579
- }
2580
- get prev() {
2581
- var e, r;
2582
- return (r = (e = this.parent) == null ? void 0 : e.children) == null ? void 0 : r[this.parent.children.indexOf(this) - 1];
2583
- }
2584
- get next() {
2585
- var e, r;
2586
- return (r = (e = this.parent) == null ? void 0 : e.children) == null ? void 0 : r[this.parent.children.indexOf(this) + 1];
2587
- }
2588
- get rawName() {
2589
- return this.hasExplicitNamespace ? this.fullName : this.name;
2590
- }
2591
- get fullName() {
2592
- return this.namespace ? this.namespace + ":" + this.name : this.name;
2593
- }
2594
- get attrMap() {
2595
- return Object.fromEntries(this.attrs.map((e) => [e.fullName, e.value]));
2596
- }
2597
- };
2598
- function yo(t8, e) {
2599
- let r = t8.map(e);
2600
- return r.some((n, s) => n !== t8[s]) ? r : t8;
2601
- }
2602
- var wo = [{ regex: /^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su, parse: bo }, { regex: /^\[if([^\]]*)\]><!$/u, parse: To }, { regex: /^<!\s*\[endif\]$/u, parse: xo }];
2603
- function Qs(t8, e) {
2604
- if (t8.value) for (let { regex: r, parse: n } of wo) {
2605
- let s = t8.value.match(r);
2606
- if (s) return n(t8, e, s);
2607
- }
2608
- return null;
2609
- }
2610
- function bo(t8, e, r) {
2611
- let [, n, s, i] = r, a = 4 + n.length, o = t8.sourceSpan.start.moveBy(a), u = o.moveBy(i.length), [p, l] = (() => {
2612
- try {
2613
- return [true, e(i, o).children];
2614
- } catch {
2615
- return [false, [{ type: "text", value: i, sourceSpan: new h(o, u) }]];
2616
- }
2617
- })();
2618
- return { type: "ieConditionalComment", complete: p, children: l, condition: w(false, s.trim(), /\s+/gu, " "), sourceSpan: t8.sourceSpan, startSourceSpan: new h(t8.sourceSpan.start, o), endSourceSpan: new h(u, t8.sourceSpan.end) };
2619
- }
2620
- function To(t8, e, r) {
2621
- let [, n] = r;
2622
- return { type: "ieConditionalStartComment", condition: w(false, n.trim(), /\s+/gu, " "), sourceSpan: t8.sourceSpan };
2623
- }
2624
- function xo(t8) {
2625
- return { type: "ieConditionalEndComment", sourceSpan: t8.sourceSpan };
2626
- }
2627
- var or = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set(["accesskey", "autocapitalize", "autofocus", "class", "contenteditable", "dir", "draggable", "enterkeyhint", "hidden", "id", "inert", "inputmode", "is", "itemid", "itemprop", "itemref", "itemscope", "itemtype", "lang", "nonce", "popover", "slot", "spellcheck", "style", "tabindex", "title", "translate", "writingsuggestions"])], ["a", /* @__PURE__ */ new Set(["charset", "coords", "download", "href", "hreflang", "name", "ping", "referrerpolicy", "rel", "rev", "shape", "target", "type"])], ["applet", /* @__PURE__ */ new Set(["align", "alt", "archive", "code", "codebase", "height", "hspace", "name", "object", "vspace", "width"])], ["area", /* @__PURE__ */ new Set(["alt", "coords", "download", "href", "hreflang", "nohref", "ping", "referrerpolicy", "rel", "shape", "target", "type"])], ["audio", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"])], ["base", /* @__PURE__ */ new Set(["href", "target"])], ["basefont", /* @__PURE__ */ new Set(["color", "face", "size"])], ["blockquote", /* @__PURE__ */ new Set(["cite"])], ["body", /* @__PURE__ */ new Set(["alink", "background", "bgcolor", "link", "text", "vlink"])], ["br", /* @__PURE__ */ new Set(["clear"])], ["button", /* @__PURE__ */ new Set(["disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "name", "popovertarget", "popovertargetaction", "type", "value"])], ["canvas", /* @__PURE__ */ new Set(["height", "width"])], ["caption", /* @__PURE__ */ new Set(["align"])], ["col", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["colgroup", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["data", /* @__PURE__ */ new Set(["value"])], ["del", /* @__PURE__ */ new Set(["cite", "datetime"])], ["details", /* @__PURE__ */ new Set(["name", "open"])], ["dialog", /* @__PURE__ */ new Set(["open"])], ["dir", /* @__PURE__ */ new Set(["compact"])], ["div", /* @__PURE__ */ new Set(["align"])], ["dl", /* @__PURE__ */ new Set(["compact"])], ["embed", /* @__PURE__ */ new Set(["height", "src", "type", "width"])], ["fieldset", /* @__PURE__ */ new Set(["disabled", "form", "name"])], ["font", /* @__PURE__ */ new Set(["color", "face", "size"])], ["form", /* @__PURE__ */ new Set(["accept", "accept-charset", "action", "autocomplete", "enctype", "method", "name", "novalidate", "target"])], ["frame", /* @__PURE__ */ new Set(["frameborder", "longdesc", "marginheight", "marginwidth", "name", "noresize", "scrolling", "src"])], ["frameset", /* @__PURE__ */ new Set(["cols", "rows"])], ["h1", /* @__PURE__ */ new Set(["align"])], ["h2", /* @__PURE__ */ new Set(["align"])], ["h3", /* @__PURE__ */ new Set(["align"])], ["h4", /* @__PURE__ */ new Set(["align"])], ["h5", /* @__PURE__ */ new Set(["align"])], ["h6", /* @__PURE__ */ new Set(["align"])], ["head", /* @__PURE__ */ new Set(["profile"])], ["hr", /* @__PURE__ */ new Set(["align", "noshade", "size", "width"])], ["html", /* @__PURE__ */ new Set(["manifest", "version"])], ["iframe", /* @__PURE__ */ new Set(["align", "allow", "allowfullscreen", "allowpaymentrequest", "allowusermedia", "frameborder", "height", "loading", "longdesc", "marginheight", "marginwidth", "name", "referrerpolicy", "sandbox", "scrolling", "src", "srcdoc", "width"])], ["img", /* @__PURE__ */ new Set(["align", "alt", "border", "crossorigin", "decoding", "fetchpriority", "height", "hspace", "ismap", "loading", "longdesc", "name", "referrerpolicy", "sizes", "src", "srcset", "usemap", "vspace", "width"])], ["input", /* @__PURE__ */ new Set(["accept", "align", "alt", "autocomplete", "checked", "dirname", "disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "height", "ismap", "list", "max", "maxlength", "min", "minlength", "multiple", "name", "pattern", "placeholder", "popovertarget", "popovertargetaction", "readonly", "required", "size", "src", "step", "type", "usemap", "value", "width"])], ["ins", /* @__PURE__ */ new Set(["cite", "datetime"])], ["isindex", /* @__PURE__ */ new Set(["prompt"])], ["label", /* @__PURE__ */ new Set(["for", "form"])], ["legend", /* @__PURE__ */ new Set(["align"])], ["li", /* @__PURE__ */ new Set(["type", "value"])], ["link", /* @__PURE__ */ new Set(["as", "blocking", "charset", "color", "crossorigin", "disabled", "fetchpriority", "href", "hreflang", "imagesizes", "imagesrcset", "integrity", "media", "referrerpolicy", "rel", "rev", "sizes", "target", "type"])], ["map", /* @__PURE__ */ new Set(["name"])], ["menu", /* @__PURE__ */ new Set(["compact"])], ["meta", /* @__PURE__ */ new Set(["charset", "content", "http-equiv", "media", "name", "scheme"])], ["meter", /* @__PURE__ */ new Set(["high", "low", "max", "min", "optimum", "value"])], ["object", /* @__PURE__ */ new Set(["align", "archive", "border", "classid", "codebase", "codetype", "data", "declare", "form", "height", "hspace", "name", "standby", "type", "typemustmatch", "usemap", "vspace", "width"])], ["ol", /* @__PURE__ */ new Set(["compact", "reversed", "start", "type"])], ["optgroup", /* @__PURE__ */ new Set(["disabled", "label"])], ["option", /* @__PURE__ */ new Set(["disabled", "label", "selected", "value"])], ["output", /* @__PURE__ */ new Set(["for", "form", "name"])], ["p", /* @__PURE__ */ new Set(["align"])], ["param", /* @__PURE__ */ new Set(["name", "type", "value", "valuetype"])], ["pre", /* @__PURE__ */ new Set(["width"])], ["progress", /* @__PURE__ */ new Set(["max", "value"])], ["q", /* @__PURE__ */ new Set(["cite"])], ["script", /* @__PURE__ */ new Set(["async", "blocking", "charset", "crossorigin", "defer", "fetchpriority", "integrity", "language", "nomodule", "referrerpolicy", "src", "type"])], ["select", /* @__PURE__ */ new Set(["autocomplete", "disabled", "form", "multiple", "name", "required", "size"])], ["slot", /* @__PURE__ */ new Set(["name"])], ["source", /* @__PURE__ */ new Set(["height", "media", "sizes", "src", "srcset", "type", "width"])], ["style", /* @__PURE__ */ new Set(["blocking", "media", "type"])], ["table", /* @__PURE__ */ new Set(["align", "bgcolor", "border", "cellpadding", "cellspacing", "frame", "rules", "summary", "width"])], ["tbody", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["td", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["template", /* @__PURE__ */ new Set(["shadowrootclonable", "shadowrootdelegatesfocus", "shadowrootmode"])], ["textarea", /* @__PURE__ */ new Set(["autocomplete", "cols", "dirname", "disabled", "form", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows", "wrap"])], ["tfoot", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["th", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["thead", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["time", /* @__PURE__ */ new Set(["datetime"])], ["tr", /* @__PURE__ */ new Set(["align", "bgcolor", "char", "charoff", "valign"])], ["track", /* @__PURE__ */ new Set(["default", "kind", "label", "src", "srclang"])], ["ul", /* @__PURE__ */ new Set(["compact", "type"])], ["video", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "height", "loop", "muted", "playsinline", "poster", "preload", "src", "width"])]]);
2628
- var Xs = /* @__PURE__ */ new Set(["a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "command", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "isindex", "kbd", "keygen", "label", "legend", "li", "link", "listing", "main", "map", "mark", "marquee", "math", "menu", "menuitem", "meta", "meter", "multicol", "nav", "nextid", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "pre", "progress", "q", "rb", "rbc", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp"]);
2629
- function ko(t8) {
2630
- if (t8.type === "block") {
2631
- if (t8.name = w(false, t8.name.toLowerCase(), /\s+/gu, " ").trim(), t8.type = "angularControlFlowBlock", !qe(t8.parameters)) {
2632
- delete t8.parameters;
2633
- return;
2634
- }
2635
- for (let e of t8.parameters) e.type = "angularControlFlowBlockParameter";
2636
- t8.parameters = { type: "angularControlFlowBlockParameters", children: t8.parameters, sourceSpan: new h(t8.parameters[0].sourceSpan.start, X(false, t8.parameters, -1).sourceSpan.end) };
2637
- }
2638
- }
2639
- function Bo(t8) {
2640
- t8.type === "letDeclaration" && (t8.type = "angularLetDeclaration", t8.id = t8.name, t8.init = { type: "angularLetDeclarationInitializer", sourceSpan: new h(t8.valueSpan.start, t8.valueSpan.end), value: t8.value }, delete t8.name, delete t8.value);
2641
- }
2642
- function Lo(t8) {
2643
- (t8.type === "plural" || t8.type === "select") && (t8.clause = t8.type, t8.type = "angularIcuExpression"), t8.type === "expansionCase" && (t8.type = "angularIcuCase");
2644
- }
2645
- function Zs(t8, e, r) {
2646
- let { name: n, canSelfClose: s = true, normalizeTagName: i = false, normalizeAttributeName: a = false, allowHtmComponentClosingTags: o = false, isTagNameCaseSensitive: u = false, shouldParseAsRawText: p } = e, { rootNodes: l, errors: f } = zr(t8, { canSelfClose: s, allowHtmComponentClosingTags: o, isTagNameCaseSensitive: u, getTagContentType: p ? (...c) => p(...c) ? I.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: n === "angular" ? true : void 0, tokenizeAngularLetDeclaration: n === "angular" ? true : void 0 });
2647
- if (n === "vue") {
2648
- if (l.some((x) => x.type === "docType" && x.value === "html" || x.type === "element" && x.name.toLowerCase() === "html")) return Zs(t8, ti, r);
2649
- let g, y = () => g ?? (g = zr(t8, { canSelfClose: s, allowHtmComponentClosingTags: o, isTagNameCaseSensitive: u })), M = (x) => y().rootNodes.find(({ startSourceSpan: V }) => V && V.start.offset === x.startSourceSpan.start.offset) ?? x;
2650
- for (let [x, V] of l.entries()) {
2651
- let { endSourceSpan: jr, startSourceSpan: ri } = V;
2652
- if (jr === null) f = y().errors, l[x] = M(V);
2653
- else if (Fo(V, r)) {
2654
- let Kr = y().errors.find((Qr) => Qr.span.start.offset > ri.start.offset && Qr.span.start.offset < jr.end.offset);
2655
- Kr && Js(Kr), l[x] = M(V);
2656
- }
2657
- }
2658
- }
2659
- f.length > 0 && Js(f[0]);
2660
- let d = (c) => {
2661
- let g = c.name.startsWith(":") ? c.name.slice(1).split(":")[0] : null, y = c.nameSpan.toString(), M = g !== null && y.startsWith(`${g}:`), x = M ? y.slice(g.length + 1) : y;
2662
- c.name = x, c.namespace = g, c.hasExplicitNamespace = M;
2663
- }, C = (c) => {
2664
- switch (c.type) {
2665
- case "element":
2666
- d(c);
2667
- for (let g of c.attrs) d(g), g.valueSpan ? (g.value = g.valueSpan.toString(), /["']/u.test(g.value[0]) && (g.value = g.value.slice(1, -1))) : g.value = null;
2668
- break;
2669
- case "comment":
2670
- c.value = c.sourceSpan.toString().slice(4, -3);
2671
- break;
2672
- case "text":
2673
- c.value = c.sourceSpan.toString();
2674
- break;
2675
- }
2676
- }, A = (c, g) => {
2677
- let y = c.toLowerCase();
2678
- return g(y) ? y : c;
2679
- }, D = (c) => {
2680
- if (c.type === "element" && (i && (!c.namespace || c.namespace === c.tagDefinition.implicitNamespacePrefix || Se(c)) && (c.name = A(c.name, (g) => Xs.has(g))), a)) for (let g of c.attrs) g.namespace || (g.name = A(g.name, (y) => or.has(c.name) && (or.get("*").has(y) || or.get(c.name).has(y))));
2681
- }, R = (c) => {
2682
- c.sourceSpan && c.endSourceSpan && (c.sourceSpan = new h(c.sourceSpan.start, c.endSourceSpan.end));
2683
- }, F = (c) => {
2684
- if (c.type === "element") {
2685
- let g = Ge(u ? c.name : c.name.toLowerCase());
2686
- !c.namespace || c.namespace === g.implicitNamespacePrefix || Se(c) ? c.tagDefinition = g : c.tagDefinition = Ge("");
2687
- }
2688
- };
2689
- return Qt(new class extends ht {
2690
- visitExpansionCase(c, g) {
2691
- n === "angular" && this.visitChildren(g, (y) => {
2692
- y(c.expression);
2693
- });
2694
- }
2695
- visit(c) {
2696
- C(c), F(c), D(c), R(c);
2697
- }
2698
- }(), l), l;
2699
- }
2700
- function Fo(t8, e) {
2701
- var n;
2702
- if (t8.type !== "element" || t8.name !== "template") return false;
2703
- let r = (n = t8.attrs.find((s) => s.name === "lang")) == null ? void 0 : n.value;
2704
- return !r || Oe(e, { language: r }) === "html";
2705
- }
2706
- function Js(t8) {
2707
- let { msg: e, span: { start: r, end: n } } = t8;
2708
- throw Ys(e, { loc: { start: { line: r.line + 1, column: r.col + 1 }, end: { line: n.line + 1, column: n.col + 1 } }, cause: t8 });
2709
- }
2710
- function ei(t8, e, r = {}, n = true) {
2711
- let { frontMatter: s, content: i } = n ? js(t8) : { frontMatter: null, content: t8 }, a = new Te(t8, r.filepath), o = new ae(a, 0, 0, 0), u = o.moveBy(t8.length), p = { type: "root", sourceSpan: new h(o, u), children: Zs(i, e, r) };
2712
- if (s) {
2713
- let d = new ae(a, 0, 0, 0), C = d.moveBy(s.raw.length);
2714
- s.sourceSpan = new h(d, C), p.children.unshift(s);
2715
- }
2716
- let l = new ar(p), f = (d, C) => {
2717
- let { offset: A } = C, D = w(false, t8.slice(0, A), /[^\n\r]/gu, " "), F = ei(D + d, e, r, false);
2718
- F.sourceSpan = new h(C, X(false, F.children, -1).sourceSpan.end);
2719
- let c = F.children[0];
2720
- return c.length === A ? F.children.shift() : (c.sourceSpan = new h(c.sourceSpan.start.moveBy(A), c.sourceSpan.end), c.value = c.value.slice(A)), F;
2721
- };
2722
- return l.walk((d) => {
2723
- if (d.type === "comment") {
2724
- let C = Qs(d, f);
2725
- C && d.parent.replaceChild(d, C);
2726
- }
2727
- ko(d), Bo(d), Lo(d);
2728
- }), l;
2729
- }
2730
- function ur(t8) {
2731
- return { parse: (e, r) => ei(e, t8, r), hasPragma: os, astFormat: "html", locStart: se, locEnd: ie };
2732
- }
2733
- var ti = { name: "html", normalizeTagName: true, normalizeAttributeName: true, allowHtmComponentClosingTags: true };
2734
- var No = ur(ti);
2735
- var Po = ur({ name: "angular" });
2736
- var Io = ur({ name: "vue", isTagNameCaseSensitive: true, shouldParseAsRawText(t8, e, r, n) {
2737
- return t8.toLowerCase() !== "html" && !r && (t8 !== "template" || n.some(({ name: s, value: i }) => s === "lang" && i !== "html" && i !== "" && i !== void 0));
2738
- } });
2739
- var Ro = ur({ name: "lwc", canSelfClose: false });
2740
- var $o = { html: As };
2741
- var Ih = Yr;
2742
-
2743
- export { Ih as default, Ds as languages, ys as options, Gr as parsers, $o as printers };
2744
- //# sourceMappingURL=html-SRQHPYU4.js.map
2745
- //# sourceMappingURL=html-SRQHPYU4.js.map